"use strict";this.default_b=this.default_b||{};(function(__){var window=this;
try{
var g,aa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,aa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b);this.reportErrorToServer=!0},aaa=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");aa.call(this,c+a[d])},ca=function(){var a=ba.navigator;return a&&(a=a.userAgent)?a:""},ea=function(a){return da(ca(),a)},baa=function(){return ea("Trident")||ea("MSIE")},fa=function(){return ea("Firefox")||
ea("FxiOS")},caa=function(){return ea("Safari")&&!(ia()||ea("Coast")||ea("Opera")||ea("Edge")||ea("Edg/")||ea("OPR")||fa()||ea("Silk")||ea("Android"))},ia=function(){return(ea("Chrome")||ea("CriOS"))&&!ea("Edge")||ea("Silk")},daa=function(){return ea("Android")&&!(ia()||fa()||ea("Opera")||ea("Silk"))},eaa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});return function(c){return b[c.find(function(d){return d in b})]||""}},faa=function(a){var b=ca();if("Internet Explorer"===a){if(baa())if((a=
/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);b=eaa(c);switch(a){case "Opera":if(ea("Opera"))return b(["Version","Opera"]);
if(ea("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(ea("Edge"))return b(["Edge"]);if(ea("Edg/"))return b(["Edg"]);break;case "Chromium":if(ia())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&fa()||"Safari"===a&&caa()||"Android Browser"===a&&daa()||"Silk"===a&&ea("Silk")?(b=c[2])&&b[1]||"":""},ja=function(a){a=faa(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])},la=function(){return ea("iPhone")&&!ea("iPod")&&!ea("iPad")},ma=function(){return la()||
ea("iPad")||ea("iPod")},gaa=function(){var a=ca(),b="";ea("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):ma()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):ea("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):na(ca(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):ea("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):ea("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&
a[1]);return 0<=oa(b||"",12)},pa=function(a){return a[a.length-1]},haa=function(a,b){var c=0;qa(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},jaa=function(a){for(var b=iaa,c="string"===typeof a?a.split(""):a,d=a.length-1;0<=d;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1},sa=function(a,b){return 0<=ra(a,b)},ua=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},wa=function(a,b){b=ra(a,b);var c;(c=0<=b)&&va(a,b);return c},va=function(a,b){Array.prototype.splice.call(a,
b,1)},za=function(a,b){a:{for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}0<=b&&va(a,b)},Ba=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},kaa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ca(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}},maa=function(a,b,c,d){return Array.prototype.splice.apply(a,laa(arguments,
1))},laa=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Fa=function(a,b,c){b=b||a;var d=function(q){return Da(q)?"o"+Ea(q):(typeof q).charAt(0)+q};c=c||d;for(var e=d=0,f={};e<a.length;){var h=a[e++],k=c(h);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=h)}b.length=d},Ga=function(a,b){a.sort(b||naa)},oaa=function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]={index:d,value:a[d]};var e=b||naa;Ga(c,function(f,h){return e(f.value,
h.value)||f.index-h.index});for(b=0;b<a.length;b++)a[b]=c[b].value},naa=function(a,b){return a>b?1:a<b?-1:0},paa=function(){for(var a=[],b=0;5>b;b+=1)a.push(b);return a},qaa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},saa=function(a){if(null==a||Ia(a))return a;if("string"===typeof a)return raa(a);La(a);return null},Ia=function(a){return Na&&null!=a&&a instanceof Uint8Array},taa=function(a){if(a!==Oa)throw Error("B");},vaa=function(a){if("string"===
typeof a)return{buffer:raa(a),isImmutable:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===Uint8Array)return{buffer:a,isImmutable:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===Pa)return{buffer:uaa(a)||Qa||(Qa=new Uint8Array(0)),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("D");},waa=function(a,b){return 4294967296*
b+(a>>>0)},xaa=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=waa(a,b);return c?-a:a},zaa=function(a){if(a!==yaa)throw Error("E");},Aaa=function(a,b){Object.isFrozen(a)||(Ra?a[Ra]|=b:void 0!==a.internalArrayState?a.internalArrayState|=b:Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}}))},Baa=function(a){var b;Ra?b=a[Ra]:b=a.internalArrayState;return null==b?0:b},Caa=function(a){return Array.isArray(a)?!!(Baa(a)&1):!1},
Ta=function(a){Aaa(a,1);return a},Va=function(a){return Array.isArray(a)?!!(Baa(a)&2):!1},Wa=function(a){if(!Array.isArray(a))throw Error("F");Aaa(a,2)},Daa=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object},Za=function(a){if(null==a)return Ya();if(a.constructor===Pa)return a;if("string"===typeof a)return a?new Pa(a,Oa):Ya();if(Ia(a))return a.length?new Pa(new Uint8Array(a),Oa):Ya();La(a);return Ya()},Eaa=function(a){a instanceof Pa&&(taa(Oa),a=a.value_||
"");return a},Faa=function(a){return Array.isArray(a)&&Caa(a)&&!a.length},Gaa=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}},$a=function(a){ba.setTimeout(function(){throw a;},0)},Haa=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Ia(a))return ab(a);if(a instanceof Pa)return db(a);if(a instanceof gb)return a.toArrayInternal()}}return a},ib=function(a,b){b=void 0===b?Iaa:b;return Jaa(a,b)},Kaa=function(a,b){if(null!=
a){if(Array.isArray(a))a=Jaa(a,b);else if(Daa(a)){var c={},d;for(d in a)c[d]=Kaa(a[d],b);a=c}else a=b(a);return a}},Jaa=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=Kaa(c[d],b);Caa(a)&&Ta(c);return c},Laa=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=Haa(a);return Array.isArray(a)?ib(a,Laa):a},Maa=function(a){return a.clone()},Iaa=function(a){return Ia(a)?new Uint8Array(a):a instanceof gb?Naa(a,Maa):a},kb=function(a,b,c){var d=jb(a,b,!1);if(d.length&&!(Baa(d)&4)){Object.isFrozen(d)&&
(d=Ta(d.slice()),l(a,b,d,void 0,!0));for(b=0;b<d.length;b++)d[b]=c(d[b]);Aaa(d,5)}Va(a.internalArray_)&&Object.freeze(d);return d},nb=function(a,b,c,d){lb(a);c!==d?l(a,b,c):mb(a,b);return a},ob=function(a,b,c,d){lb(a);b=jb(a,b);void 0!=d?b.splice(d,0,c):b.push(c);return a},qb=function(a,b,c){return pb(a,b)===c?c:-1},Paa=function(a,b){a=a||{};b=b||{};var c={},d;for(d in a)c[d]=0;for(var e in b)c[e]=0;for(var f in c)if(!Oaa(a,f,a[f],b,f,b[f]))return!1;return!0},Qaa=function(a){return a&&"object"===
typeof a?a.internalArray_||a:a},Saa=function(a,b){return null!=b&&Raa(a.toArrayInternal(),b.toArrayInternal())},Taa=function(a,b,c,d){if(null==d)d=[];else if(!Array.isArray(d))return null;return b[c]=new gb(d,a.valueCtor)},Oaa=function(a,b,c,d,e,f){c=Eaa(c);f=Eaa(f);c=Qaa(c);f=Qaa(f);if(c==f)return!0;if(Na){var h=Ia(c),k=Ia(f);if(h||k){if(h)a=c;else if("string"===typeof c)a=saa(c);else return!1;if(!k)if("string"===typeof f)f=saa(f);else return!1;if(a.length!==f.length)return!1;for(k=0;k<a.length;k++)if(a[k]!==
f[k])return!1;return!0}}if(c instanceof gb)return Saa(c,f instanceof gb?f:Taa(c,d,e,f));if(f instanceof gb)return Saa(f,Taa(f,a,b,c));if(null==c&&Faa(f)||null==f&&Faa(c))return!0;if(!Da(c)||!Da(f))return"number"===typeof c&&isNaN(c)||"number"===typeof f&&isNaN(f)?String(c)==String(f):!1;if(c.constructor!=f.constructor)return!1;if(c.constructor===Array){k=c;b=a=void 0;c=Math.max(k.length,f.length);for(d=0;d<c;d++)if(e=k[d],h=f[d],e&&e.constructor==Object&&(a=e,e=void 0),h&&h.constructor==Object&&(b=
h,h=void 0),!Oaa(k,d,e,f,d,h))return!1;return a||b?(a=a||{},b=b||{},Paa(a,b)):!0}if(c.constructor===Object)return Paa(c,f);throw Error("I");},Raa=function(a,b){return Oaa(void 0,void 0,a,void 0,void 0,b)},Uaa=function(a,b){return Haa(b)},Vaa=function(a,b){b.internalUnknownFields_&&(a.internalUnknownFields_=b.internalUnknownFields_.slice());var c=b.internalWrappers_;if(c){b=b.internalSparseObject_;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=rb(a,
e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Vaa(f[h],e[h])}else(f=m(a,e.constructor,h,void 0,f))&&Vaa(f,e)}}}},Waa=function(a,b,c){return a[sb]||(a[sb]=function(d,e){return b(d,e,c)})},Zaa=function(a){var b=a[sb];if(!b){var c=Xaa(a);b=function(d,e){return Yaa(d,e,c)};a[sb]=b}return b},$aa=function(a){var b=a.binaryFieldsInitializer;if(b)return Zaa(b);if(b=a.messageSetReaderFn)return Waa(a.fieldInfo.ctor,b,a.messageSetExtensions)},aba=function(a){var b=$aa(a),c=a.fieldInfo,d=a.readerWriterSelector.reader;
return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}},cba=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(tb in c||bba in c||0<c.length&&"function"==typeof c[0])?c:void 0},dba=function(a,b){a[0]=b},eba=function(a,b,c,d){var e=c.reader;a[b]=d?function(f,h,k){return e(f,h,k,d)}:e},fba=function(a,b,c,d,e){var f=c.reader,h=Zaa(d),k=Xaa(d).ctor;a[b]=function(q,w,y){return f(q,w,y,k,h,e)}},gba=function(a,b,c,d,e,f,h){var k=c.reader,
q=Waa(d,e,f);a[b]=function(w,y,E){return k(w,y,E,d,q,h)}},Xaa=function(a){var b=a[tb];if(b)return b;b=a[tb]={};var c=dba,d=eba,e=fba,f=gba;b.ctor=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var k=a[h++];c(b,k)}for(;h<a.length;){c=a[h++];for(var q=h+1;q<a.length&&"number"!==typeof a[q];)q++;k=a[h++];q-=h;switch(q){case 0:d(b,c,k);break;case 1:(q=cba(a,h))?(h++,e(b,c,k,q)):d(b,c,k,a[h++]);break;case 2:q=b;var w=h++;w=cba(a,w);e(q,c,k,w,a[h++]);break;case 3:f(b,c,k,a[h++],a[h++],a[h++]);break;
case 4:f(b,c,k,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("M`"+q);}}tb in a&&bba in a&&(a.length=0);return b},Yaa=function(a,b,c){for(;hba(b)&&4!=b.nextWireType_;){var d=b.nextField_,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=aba(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.fieldCursor_,vb(f),!f.discardUnknownFields){var h=f.decoder_.getCursor()-d;f.decoder_.cursor_=d;d=f.decoder_.readByteString(h);(f=e.internalUnknownFields_)?f.push(d):e.internalUnknownFields_=[d]}}return a},wb=function(a,
b){return{reader:a,writer:b}},yb=function(a,b,c,d){return new iba(a,b,c,d)},jba=function(a){var b=this.ctor,c=this.fieldIndex;return this.isRepeated?rb(a,b,c,!0):m(a,b,c,void 0,!0)},kba=function(a,b){var c=this.fieldIndex;return this.isRepeated?zb(a,c,b,!0):Ab(a,c,b,!0)},mba=function(a,b,c,d,e,f){(a=a.internalWrappers_&&a.internalWrappers_[c])?Array.isArray(a)?(e=f.copyRepeatedFields?Ta(a.slice()):a,zb(b,c,e)):Ab(b,c,a):(Na&&d instanceof Uint8Array?e=d.length?new Pa(new Uint8Array(d),Oa):Ya():d instanceof
gb?e=Naa(d,lba):(Array.isArray(d)&&(e?Wa(d):Caa(d)&&f.copyRepeatedFields&&(d=d.slice())),e=d),l(b,c,e))},Bb=function(a,b,c){for(var d=[],e=0;e<a.length;e++)d.push(b(c,a[e]));return d},Cb=function(a,b,c,d){for(var e in c){var f=c[e],h=a.getExtension(f);if(null!=h){var k=void 0;for(k in f.fieldName)if(f.fieldName.hasOwnProperty(k))break;var q=f.toObjectFn;b[k]=q?f.isRepeated?Bb(h,q,d):q(d,h):h}}},nba=function(a){a instanceof Pa&&(a=a.value_||"",a="string"===typeof a?a:new Uint8Array(a));return a},Db=
function(a,b,c){var d=[];a.forEach(function(e,f){d.push([f,c?c(b,e):e])});return d},n=function(a){return null===a?void 0:a},Eb=function(a){return null==a?void 0:Array.isArray(a)?a.map(function(b){return db(b)}):db(a)},oba=function(a){a=p(a,2);if(null==a)return"";if("string"===typeof a)return a;if(Ia(a))return ab(a);if(Array.isArray(a))return ib(a);if(a instanceof Pa)return db(a);throw Error("O`"+a);},pba=function(a,b){return Zone.current.wrap(a,b)},qba=function(a,b){for(var c=a.length-1;0<=c;c--)"function"===
typeof a[c]&&(a[c]=pba(a[c],b+"_"+c));return a},sba=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={$jscomp$loop$prop$name$1584:d.$jscomp$loop$prop$name$1584},e++){d.$jscomp$loop$prop$name$1584=b[e];var f=a[d.$jscomp$loop$prop$name$1584];if(f){var h=Fb(a,d.$jscomp$loop$prop$name$1584);rba(h)&&(a[d.$jscomp$loop$prop$name$1584]=function(k){return function(q){var w=function(){return q.apply(this,qba(arguments,c+"."+k.$jscomp$loop$prop$name$1584))};
Gb(w,q);return w}}(d)(f))}}},rba=function(a){return a?!1===a.writable?!1:!("function"===typeof a.get&&"undefined"===typeof a.set):!0},vba=function(a,b,c){var d=Fb(a,b);!d&&c&&Fb(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=Ib("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,h=b.slice(2),k=Jb[h];k||(k=Jb[h]=Ib("ON_PROPERTY"+h));d.set=function(q){var w=this;w||a!==Kb||(w=Kb);w&&("function"===typeof w[k]&&w.removeEventListener(h,
tba),f&&f.call(w,null),w[k]=q,"function"===typeof q&&w.addEventListener(h,tba,!1))};d.get=function(){var q=this;q||a!==Kb||(q=Kb);if(!q)return null;var w=q[k];return w?w:e&&(w=e.call(this))?(d.set.call(this,w),"function"===typeof q.removeAttribute&&q.removeAttribute(b),w):null};uba(a,b,d);a[c]=!0}},wba=function(a,b,c){if(b)for(var d=0;d<b.length;d++)vba(a,"on"+b[d],c);else{b=[];for(d in a)"on"==d.slice(0,2)&&b.push(d);for(d=0;d<b.length;d++)vba(a,b[d],c)}},Nb=function(a){var b=Kb[a];if(b){Kb[Ib(a)]=
b;Kb[a]=function(){var e=qba(arguments,a);switch(e.length){case 0:this[Mb]=new b;break;case 1:this[Mb]=new b(e[0]);break;case 2:this[Mb]=new b(e[0],e[1]);break;case 3:this[Mb]=new b(e[0],e[1],e[2]);break;case 4:this[Mb]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("da");}};Gb(Kb[a],b);var c=new b(function(){}),d;for(d in c)"XMLHttpRequest"===a&&"responseBlob"===d||function(e){"function"===typeof c[e]?Kb[a].prototype[e]=function(){return this[Mb][e].apply(this[Mb],arguments)}:uba(Kb[a].prototype,
e,{set:function(f){"function"===typeof f?(this[Mb][e]=pba(f,a+"."+e),Gb(this[Mb][e],f)):this[Mb][e]=f},get:function(){return this[Mb][e]}})}(d);for(d in b)"prototype"!==d&&b.hasOwnProperty(d)&&(Kb[a][d]=b[d])}},Ob=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=xba(d);!d&&a[b]&&(d=a);a=Ib(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&Fb(d,b);if(rba(f)){var h=c(e,a,b);d[b]=function(){return h(this,arguments)};Gb(d[b],e)}}return e},yba=function(a,b,c){function d(f){var h=
f.data;h.args[h.cbIdx]=function(){f.invoke.apply(this,arguments)};e.apply(h.target,h.args);return f}var e=null;e=Ob(a,b,function(f){return function(h,k){var q=c(h,k);return 0<=q.cbIdx&&"function"===typeof k[q.cbIdx]?Zone.current.scheduleMacroTask(q.name,k[q.cbIdx],q,d):f.apply(h,k)}})},Gb=function(a,b){a[Ib("OriginalDelegate")]=b},Bba=function(){if(zba)return Aba;zba=!0;try{var a=Pb.navigator.userAgent;if(-1!==a.indexOf("MSIE ")||-1!==a.indexOf("Trident/")||-1!==a.indexOf("Edge/"))Aba=!0}catch(b){}return Aba},
Cba=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=Qb+c;b=Qb+b;Rb[a]={};Rb[a]["false"]=c;Rb[a]["true"]=b},Iba=function(a,b,c,d){function e(ka,ha,ya){if(ha=ha||a.event){ka=ka||ha.target||a;var Ha=ka[Rb[ha.type][ya?"true":"false"]];if(Ha){ya=[];if(1===Ha.length)(ha=I(Ha[0],ka,ha))&&ya.push(ha);else{Ha=Ha.slice();for(var Ja=0;Ja<Ha.length&&(!ha||!0!==ha[Dba]);Ja++){var Ka=I(Ha[Ja],ka,ha);Ka&&ya.push(Ka)}}if(1===ya.length)throw ya[0];ha={};for(ka=0;ka<ya.length;ha={$jscomp$loop$prop$err$1171$1586:ha.$jscomp$loop$prop$err$1171$1586},
ka++)ha.$jscomp$loop$prop$err$1171$1586=ya[ka],b.nativeScheduleMicroTask(function(Ma){return function(){throw Ma.$jscomp$loop$prop$err$1171$1586;}}(ha))}}}function f(ka,ha){if(!ka)return!1;var ya=!0;ha&&void 0!==ha.useG&&(ya=ha.useG);var Ha=ha&&ha.vh,Ja=!0;ha&&void 0!==ha.chkDup&&(Ja=ha.chkDup);var Ka=!1;ha&&void 0!==ha.rt&&(Ka=ha.rt);for(var Ma=ka;Ma&&!Ma.hasOwnProperty(h);)Ma=xba(Ma);!Ma&&ka[h]&&(Ma=ka);if(!Ma||Ma[y])return!1;var hb=ha&&ha.eventNameToString,fb={},Lb=Ma[y]=Ma[h],ta=Ma[Ib(k)]=Ma[k];
ka=Ma[Ib(q)]=Ma[q];var Aa=Ma[Ib(w)]=Ma[w],xa;ha&&ha.prepend&&(xa=Ma[Ib(ha.prepend)]=Ma[ha.prepend]);var Xa=function(cb){if(!cb.isRemoved){var xb=Rb[cb.eventName],Hb;xb&&(Hb=xb[cb.capture?"true":"false"]);if(xb=Hb&&cb.target[Hb])for(var cc=0;cc<xb.length;cc++)if(xb[cc]===cb){xb.splice(cc,1);cb.isRemoved=!0;0===xb.length&&(cb.allRemoved=!0,cb.target[Hb]=null);break}}if(cb.allRemoved)return ta.call(cb.target,cb.eventName,cb.capture?L:N,cb.options)},eb=function(cb){return Lb.call(fb.target,fb.eventName,
cb.invoke,fb.options)},yc=function(cb){return xa.call(fb.target,fb.eventName,cb.invoke,fb.options)},Ua=function(cb){return ta.call(cb.target,cb.eventName,cb.invoke,cb.options)};eb=ya?function(){if(!fb.isExisting)return Lb.call(fb.target,fb.eventName,fb.capture?L:N,fb.options)}:eb;Xa=ya?Xa:Ua;Ua=function(cb,xb){var Hb=typeof xb;return"function"===Hb&&cb.callback===xb||"object"===Hb&&cb.originalDelegate===xb};var bb=ha&&ha.diff?ha.diff:Ua,Sa=Zone[Ib("UNPATCHED_EVENTS")],ub=a[Ib("PASSIVE_EVENTS")];Ua=
function(cb,xb,Hb,cc,zc,qe){zc=void 0===zc?!1:zc;qe=void 0===qe?!1:qe;return function(){var fd=this||a,Cd=arguments[0];ha&&ha.transferEventName&&(Cd=ha.transferEventName(Cd));var Wg=arguments[1];if(!Wg||Sb&&"uncaughtException"===Cd)return cb.apply(this,arguments);var tK=!1;if("function"!==typeof Wg){if(!Wg.handleEvent)return cb.apply(this,arguments);tK=!0}if(!Ha||Ha(cb,Wg,fd,arguments)){var Nl=Tb&&!!ub&&-1!==ub.indexOf(Cd);var gc=arguments[2];gc=!Tb&&"object"===typeof gc&&gc?!!gc.capture:Tb&&Nl?"boolean"===
typeof gc?{capture:gc,passive:!0}:gc?"object"===typeof gc&&!1!==gc.passive?Object.assign({},gc,{passive:!0}):gc:{passive:!0}:gc;if(Sa)for(var dc=0;dc<Sa.length;dc++)if(Cd===Sa[dc])return Nl?cb.call(fd,Cd,Wg,gc):cb.apply(this,arguments);Nl=gc?"boolean"===typeof gc?!0:gc.capture:!1;dc=gc&&"object"===typeof gc?gc.once:!1;var re=Zone.current,Ci=Rb[Cd];Ci||(Cba(Cd,hb),Ci=Rb[Cd]);var Dn=Ci[Nl?"true":"false"];Ci=fd[Dn];var Fp=!1;if(Ci){if(Fp=!0,Ja)for(Dn=0;Dn<Ci.length;Dn++)if(bb(Ci[Dn],Wg))return}else Ci=
fd[Dn]=[];var Dk;Dn=fd.constructor.name;var Kza=Eba[Dn];Kza&&(Dk=Kza[Cd]);Dk||(Dk=Dn+xb+(hb?hb(Cd):Cd));fb.options=gc;dc&&(fb.options.once=!1);fb.target=fd;fb.capture=Nl;fb.eventName=Cd;fb.isExisting=Fp;if(Fp=ya?Fba:void 0)Fp.taskData=fb;Dk=re.scheduleEventTask(Dk,Wg,Fp,Hb,cc);fb.target=null;Fp&&(Fp.taskData=null);dc&&(gc.once=!0);if(Tb||"boolean"!==typeof Dk.options)Dk.options=gc;Dk.target=fd;Dk.capture=Nl;Dk.eventName=Cd;tK&&(Dk.originalDelegate=Wg);qe?Ci.unshift(Dk):Ci.push(Dk);if(zc)return fd}}};
Ma[h]=Ua(Lb,E,eb,Xa,Ka);xa&&(Ma.prependListener=Ua(xa,".prependListener:",yc,Xa,Ka,!0));Ma[k]=function(){var cb=this||a,xb=arguments[0];ha&&ha.transferEventName&&(xb=ha.transferEventName(xb));var Hb=arguments[2],cc=Hb?"boolean"===typeof Hb?!0:Hb.capture:!1;Hb=arguments[1];if(!Hb)return ta.apply(this,arguments);if(!Ha||Ha(ta,Hb,cb,arguments)){var zc=Rb[xb],qe;zc&&(qe=zc[cc?"true":"false"]);if(cc=qe&&cb[qe])for(zc=0;zc<cc.length;zc++){var fd=cc[zc];if(bb(fd,Hb)){cc.splice(zc,1);fd.isRemoved=!0;0===
cc.length&&(fd.allRemoved=!0,cb[qe]=null,"string"===typeof xb&&(cb[Qb+"ON_PROPERTY"+xb]=null));fd.zone.cancelTask(fd);if(Ka)return cb;return}}return ta.apply(this,arguments)}};Ma[q]=function(cb){var xb=this||a,Hb=cb;ha&&ha.transferEventName&&(Hb=ha.transferEventName(Hb));cb=[];xb=Gba(xb,hb?hb(Hb):Hb);for(Hb=0;Hb<xb.length;Hb++){var cc=xb[Hb];cb.push(cc.originalDelegate?cc.originalDelegate:cc.callback)}return cb};Ma[w]=function(cb){var xb=this||a;if(cb){ha&&ha.transferEventName&&(cb=ha.transferEventName(cb));
var Hb=Rb[cb];if(Hb){var cc=xb[Hb["false"]];xb=xb[Hb["true"]];if(cc)for(cc=cc.slice(),Hb=0;Hb<cc.length;Hb++){var zc=cc[Hb];this[k].call(this,cb,zc.originalDelegate?zc.originalDelegate:zc.callback,zc.options)}if(xb)for(xb=xb.slice(),cc=0;cc<xb.length;cc++)Hb=xb[cc],this[k].call(this,cb,Hb.originalDelegate?Hb.originalDelegate:Hb.callback,Hb.options)}}else{cb=Object.keys(xb);for(xb=0;xb<cb.length;xb++)(cc=(cc=Hba.exec(cb[xb]))&&cc[1])&&"removeListener"!==cc&&this[w].call(this,cc);this[w].call(this,
"removeListener")}if(Ka)return this};Gb(Ma[h],Lb);Gb(Ma[k],ta);Aa&&Gb(Ma[w],Aa);ka&&Gb(Ma[q],ka);return!0}for(var h=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",w=d&&d.rmAll||"removeAllListeners",y=Ib(h),E="."+h+":",I=function(ka,ha,ya){if(!ka.isRemoved){var Ha=ka.callback;"object"===typeof Ha&&Ha.handleEvent&&(ka.callback=function(Ma){return Ha.handleEvent(Ma)},ka.originalDelegate=Ha);try{ka.invoke(ka,ha,[ya])}catch(Ma){var Ja=Ma}var Ka=ka.options;
Ka&&"object"===typeof Ka&&Ka.once&&ha[k].call(ha,ya.type,ka.originalDelegate?ka.originalDelegate:ka.callback,Ka);return Ja}},N=function(ka){return e(this,ka,!1)},L=function(ka){return e(this,ka,!0)},S=[],Y=0;Y<c.length;Y++)S[Y]=f(c[Y],d);return S},Gba=function(a,b){if(!b){var c=[],d;for(d in a){var e=Hba.exec(d);if((e=e&&e[1])&&(!b||e===b)&&(e=a[d]))for(var f=0;f<e.length;f++)c.push(e[f])}return c}c=Rb[b];c||(Cba(b),c=Rb[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():
[]},Jba=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[Dba]=!0;c&&c.apply(d,e)}})},Vb=function(a,b,c,d){function e(w){var y=w.data;y.args[0]=function(){return w.invoke.apply(this,arguments)};y.handleId=h.apply(a,y.args);return w}function f(w){return k.call(a,w.data.handleId)}var h=null,k=null;b+=d;c+=d;var q={};h=Ob(a,b,function(w){return function(y,E){if("function"===typeof E[0]){var I={isPeriodic:"Interval"===d,delay:"Timeout"===
d||"Interval"===d?E[1]||0:void 0,args:E},N=E[0];E[0]=function(){try{return N.apply(this,arguments)}finally{I.isPeriodic||("number"===typeof I.handleId?delete q[I.handleId]:I.handleId&&(I.handleId[Ub]=null))}};y=Zone.current.scheduleMacroTask(b,E[0],I,e,f);if(!y)return y;E=y.data.handleId;"number"===typeof E?q[E]=y:E&&(E[Ub]=y);E&&E.ref&&E.unref&&"function"===typeof E.ref&&"function"===typeof E.unref&&(y.ref=E.ref.bind(E),y.unref=E.unref.bind(E));return"number"===typeof E||E?E:y}return w.apply(a,E)}});
k=Ob(a,c,function(w){return function(y,E){y=E[0];if("number"===typeof y)var I=q[y];else(I=y&&y[Ub])||(I=y);I&&"string"===typeof I.type?"notScheduled"!==I.state&&(I.cancelFn&&I.data.isPeriodic||0===I.runCount)&&("number"===typeof y?delete q[y]:y&&(y[Ub]=null),I.zone.cancelTask(I)):w.apply(a,E)}})},Kba=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var h=b[f]=b[d];b[d]=function(k,q,w){q&&q.prototype&&e.forEach(function(y){var E=c+"."+d+"::"+y,I=q.prototype;try{if(I.hasOwnProperty(y)){var N=
a.ObjectGetOwnPropertyDescriptor(I,y);N&&N.value?(N.value=a.wrapWithCurrentZone(N.value,E),a._redefineProperty(q.prototype,y,N)):I[y]&&(I[y]=a.wrapWithCurrentZone(I[y],E))}else I[y]&&(I[y]=a.wrapWithCurrentZone(I[y],E))}catch(L){}});return h.call(b,k,q,w)};a.attachOriginToPatched(b[d],h)}},Lba=function(a,b,c){if(!c||0===c.length)return b;c=c.filter(function(e){return e.target===a});if(!c||0===c.length)return b;var d=c[0].ignoreProperties;return b.filter(function(e){return-1===d.indexOf(e)})},Mba=
function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&2<b.length}).map(function(b){return b.substring(2)})},Rba=function(){Wb=Zone.__symbol__;Xb=Object[Wb("defineProperty")]=Object.defineProperty;Nba=Object[Wb("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor;Oba=Object.create;Yb=Wb("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[Yb]&&a[Yb][b])throw new TypeError("ha`"+b+"`"+a);var d=c.configurable;"prototype"!==b&&(c=Pba(a,b,c));
return Qba(a,b,c,d)};Object.defineProperties=function(a,b){Object.keys(b).forEach(function(f){Object.defineProperty(a,f,b[f])});for(var c=r(Object.getOwnPropertySymbols(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;(null==(e=Object.getOwnPropertyDescriptor(b,d))?0:e.enumerable)&&Object.defineProperty(a,d,b[d])}return a};Object.create=function(a,b){"object"!==typeof b||Object.isFrozen(b)||Object.keys(b).forEach(function(c){b[c]=Pba(a,c,b[c])});return Oba(a,b)};Object.getOwnPropertyDescriptor=
function(a,b){var c=Nba(a,b);c&&a&&a[Yb]&&a[Yb][b]&&(c.configurable=!1);return c}},Sba=function(a,b,c){var d=c.configurable;c=Pba(a,b,c);return Qba(a,b,c,d)},Pba=function(a,b,c){Object.isFrozen(c)||(c.configurable=!0);c.configurable||(a[Yb]||Object.isFrozen(a)||Xb(a,Yb,{writable:!0,value:{}}),a[Yb]&&(a[Yb][b]=!0));return c},Qba=function(a,b,c,d){try{return Xb(a,b,c)}catch(e){if(c.configurable){"undefined"==typeof d?delete c.configurable:c.configurable=d;try{return Xb(a,b,c)}catch(f){d=!1;if("createdCallback"===
b||"attachedCallback"===b||"detachedCallback"===b||"attributeChangedCallback"===b)d=!0;if(!d)throw f;d=null;try{d=JSON.stringify(c)}catch(h){d=c.toString()}console.log("Attempting to configure '"+b+"' with descriptor '"+d+"' on object '"+a+"' and got error, giving up: "+f)}}else throw e;}},Tba=function(a,b){var c=b.getGlobalObjects(),d=c.eventNames,e=c.globalSources,f=c.zoneSymbolEventNames,h=c.TRUE_STR,k=c.FALSE_STR,q=c.ZONE_SYMBOL_PREFIX,w="ApplicationCache EventSource FileReader InputMethodContext MediaController MessagePort Node Performance SVGElementInstance SharedWorker TextTrack TextTrackCue TextTrackList WebKitNamedFlow Window Worker WorkerGlobalScope XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor DBIndex WebSocket".split(" ");
c=[];var y="Anchor Area Audio BR Base BaseFont Body Button Canvas Content DList Directory Div Embed FieldSet Font Form Frame FrameSet HR Head Heading Html IFrame Image Input Keygen LI Label Legend Link Map Marquee Media Menu Meta Meter Mod OList Object OptGroup Option Output Paragraph Pre Progress Quote Script Select Source Span Style TableCaption TableCell TableCol Table TableRow TableSection TextArea Title Track UList Unknown Video".split(" ");a.wtf?c=y.map(function(ha){return"HTML"+ha+"Element"}).concat(w):
a.EventTarget?c.push("EventTarget"):c=w;var E=a.__Zone_disable_IE_check||!1,I=a.__Zone_enable_cross_context_check||!1,N=b.isIEOrEdge(),L={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"};for(w=0;w<d.length;w++){var S=d[w],Y=q+(S+k),ka=q+(S+h);f[S]={};f[S][k]=Y;f[S][h]=ka}for(f=0;f<y.length;f++)for(h=
y[f],k=e[h]={},q=0;q<d.length;q++)w=d[q],k[w]=h+".addEventListener:"+w;d=[];for(e=0;e<c.length;e++)y=a[c[e]],d.push(y&&y.prototype);b.patchEventTarget(a,b,d,{vh:function(ha,ya,Ha,Ja){if(!E&&N)if(I)try{var Ka=ya.toString();if("[object FunctionWrapper]"===Ka||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==Ka)return ha.apply(Ha,Ja),!1}catch(Ma){return ha.apply(Ha,Ja),!1}else{if(ya=ya.toString(),"[object FunctionWrapper]"===ya||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==
ya)return ha.apply(Ha,Ja),!1}else if(I)try{ya.toString()}catch(Ma){return ha.apply(Ha,Ja),!1}return!0},transferEventName:function(ha){return L[ha]||ha}});Zone[b.symbol("patchEventTarget")]=!!a.EventTarget},Uba=function(a,b){var c=a.getGlobalObjects(),d=c.ADD_EVENT_LISTENER_STR,e=c.REMOVE_EVENT_LISTENER_STR,f=b.WebSocket;b.EventTarget||a.patchEventTarget(b,a,[f.prototype]);b.WebSocket=function(k,q){var w=1<arguments.length?new f(k,q):new f(k),y=a.ObjectGetOwnPropertyDescriptor(w,"onmessage");if(y&&
!1===y.configurable){var E=a.ObjectCreate(w);var I=w;[d,e,"send","close"].forEach(function(N){E[N]=function(){var L=a.ArraySlice.call(arguments);if(N===d||N===e){var S=0<L.length?L[0]:void 0;S&&(S=Zone.__symbol__("ON_PROPERTY"+S),w[S]=E[S])}return w[N].apply(w,L)}})}else E=w;a.patchOnProperties(E,["close","error","message","open"],I);return E};c=b.WebSocket;for(var h in f)c[h]=f[h]},Vba=function(a,b){var c=a.getGlobalObjects(),d=c.isMix;if((c.isBrowser||d)&&!a.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,
"onclick")&&"undefined"!==typeof Element){if((c=a.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick"))&&!c.configurable)return!1;if(c)return a.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}}),d=!!document.createElement("div").onclick,a.ObjectDefineProperty(Element.prototype,"onclick",c),d}var e=b.XMLHttpRequest;if(!e)return!1;c=e.prototype;if(d=a.ObjectGetOwnPropertyDescriptor(c,"onreadystatechange"))return a.ObjectDefineProperty(c,
"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}}),e=!!(new e).onreadystatechange,a.ObjectDefineProperty(c,"onreadystatechange",d||{}),e;var f=a.symbol("fake");a.ObjectDefineProperty(c,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[f]},set:function(h){this[f]=h}});a=new e;c=function(){};a.onreadystatechange=c;c=a[f]===c;a.onreadystatechange=null;return c},Xba=function(a){for(var b=a.symbol("unbound"),c={},d=0;d<Wba.length;c={$jscomp$loop$prop$onproperty$1593:c.$jscomp$loop$prop$onproperty$1593},
d++){var e=Wba[d];c.$jscomp$loop$prop$onproperty$1593="on"+e;self.addEventListener(e,function(f){return function(h){h=h.target;var k;for(k=h?h.constructor.name+"."+f.$jscomp$loop$prop$onproperty$1593:"unknown."+f.$jscomp$loop$prop$onproperty$1593;h;){if(h[f.$jscomp$loop$prop$onproperty$1593]&&!h[f.$jscomp$loop$prop$onproperty$1593][b]){var q=a.wrapWithCurrentZone(h[f.$jscomp$loop$prop$onproperty$1593],k);q[b]=h[f.$jscomp$loop$prop$onproperty$1593];h[f.$jscomp$loop$prop$onproperty$1593]=q}h=h.parentElement}}}(c),
!0)}},Zb=function(a){for(var b in a)if(a[b]===Zb)return b;throw Error("ia");},Yba=function(a,b){for(var c in b)b.hasOwnProperty(c)&&!a.hasOwnProperty(c)&&(a[c]=b[c])},$b=function(a){if("string"===typeof a)return a;if(Array.isArray(a))return"["+a.map($b).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return""+a.overriddenName;if(a.name)return""+a.name;a=a.toString();if(null==a)return""+a;var b=a.indexOf("\n");return-1===b?a:a.substring(0,b)},Zba=function(a,b){return null==a||""===a?null===
b?"":b:null==b||""===b?a:a+" "+b},ac=function(a){a.__forward_ref__=ac;a.toString=function(){return $b(this())};return a},bc=function(a){return $ba(a)?a():a},$ba=function(a){return"function"===typeof a&&a.hasOwnProperty(aca)&&a.__forward_ref__===ac},ec=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},fc=function(a){return{providers:a.providers||[],imports:a.imports||[]}},dca=function(a){var b;(b=a.hasOwnProperty(bca)?a[bca]:null)||(b=a.hasOwnProperty(cca)?
a[cca]:null);return b},eca=function(a){var b=a&&(a[bca]||a[cca]);return b?(a.hasOwnProperty("name")?a=a.name:(a=(""+a).match(/^function\s*([^\s(]+)/),a=null===a?"":a[1]),console.warn('DEPRECATED: DI is instantiating a token "'+a+'" 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 "'+(a+'" class.')),b):null},hca=function(a){return a&&(a.hasOwnProperty(fca)||a.hasOwnProperty(gca))?a[fca]:
null},hc=function(a){return"string"===typeof a?a:null==a?"":String(a)},ica=function(a){return"function"===typeof a?a.name||a.toString():"object"===typeof a&&null!=a&&"function"===typeof a.type?a.type.name||a.type.toString():hc(a)},jca=function(a,b){throw new ic(-201,"No provider for "+ica(a)+" found"+(b?" in "+b:""));},jc=function(a){var b=kca;kca=a;return b},lca=function(a,b,c){var d=dca(a);if(d&&"root"==d.providedIn)return void 0===d.value?d.value=d.factory():d.value;if(c&8)return null;if(void 0!==
b)return b;jca($b(a),"Injector")},lc=function(a){var b=kc;kc=a;return b},mca=function(a,b){b=void 0===b?0:b;if(void 0===kc)throw new ic(203,"");return null===kc?lca(a,void 0,b):kc.get(a,b&8?null:void 0,b)},t=function(a,b){b=void 0===b?0:b;return(kca||mca)(bc(a),b)},nca=function(a){for(var b=[],c=0;c<a.length;c++){var d=bc(a[c]);if(Array.isArray(d)){if(0===d.length)throw new ic(900,"");for(var e=void 0,f=0,h=0;h<d.length;h++){var k=d[h],q=k.__NG_DI_FLAG__;"number"===typeof q?-1===q?e=k.token:f|=q:
e=k}b.push(t(e,f))}else b.push(t(d))}return b},mc=function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},nc=function(a){return{toString:a}.toString()},oca=function(a){return function(){var b=oc.apply(0,arguments);if(a){b=a.apply(null,u(b));for(var c in b)this[c]=b[c]}}},pc=function(a){return nc(function(){function b(){function d(h,k,q){for(k=h.hasOwnProperty("__parameters__")?h.__parameters__:Object.defineProperty(h,"__parameters__",{value:[]}).__parameters__;k.length<=q;)k.push(null);
(k[q]=k[q]||[]).push(f);return h}var e=oc.apply(0,arguments);if(this instanceof b)return c.apply(this,e),this;var f=new (Function.prototype.bind.apply(b,[null].concat(u(e))));d.annotation=f;return d}var c=oca(a);return b})},v=function(a){return nc(function(){var b={},c={type:a.type,providersResolver:null,decls:a.decls,vars:a.vars,factory:null,template:a.template||null,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||
null,contentQueries:a.contentQueries||null,declaredInputs:b,inputs:null,outputs:null,exportAs:a.exportAs||null,onPush:0===a.changeDetection,directiveDefs:null,pipeDefs:null,standalone:!0===a.standalone,selectors:a.selectors||qc,viewQuery:a.viewQuery||null,features:a.features||null,data:a.data||{},encapsulation:a.encapsulation||0,id:"c",styles:a.styles||qc,_:null,setInput:null,schemas:a.schemas||null,tView:null},d=a.dependencies,e=a.features;c.id+=pca++;c.inputs=qca(a.inputs,b);c.outputs=qca(a.outputs);
e&&e.forEach(function(f){return f(c)});c.directiveDefs=d?function(){return("function"===typeof d?d():d).map(rca).filter(sca)}:null;c.pipeDefs=d?function(){return("function"===typeof d?d():d).map(tca).filter(sca)}:null;return c})},uca=function(a,b,c){a=a.\u0275cmp;a.directiveDefs=function(){return b.map(rca)};a.pipeDefs=function(){return c.map(tca)}},rca=function(a){return a[vca]||a[wca]||null},sca=function(a){return null!==a},rc=function(a){return nc(function(){return{type:a.type,bootstrap:a.bootstrap||
qc,declarations:a.declarations||qc,imports:a.imports||qc,exports:a.exports||qc,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},qca=function(a,b){if(null==a)return sc;var c={},d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d],f=e;Array.isArray(e)&&(f=e[1],e=e[0]);c[e]=d;b&&(b[e]=f)}return c},tc=function(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,standalone:!0===a.standalone,onDestroy:a.type.prototype.ngOnDestroy||null}},tca=function(a){return a[xca]||null},
uc=function(a){return Array.isArray(a)&&"object"===typeof a[1]},vc=function(a){return Array.isArray(a)&&!0===a[1]},xc=function(a){return a.hasOwnProperty(wc)?a[wc]:null},Ac=function(){return yca},yca=function(a){a.type.prototype.ngOnChanges&&(a.setInput=zca);return Aca},Aca=function(){var a=this.__ngSimpleChanges__||null,b=null==a?void 0:a.current;if(b){var c=a.previous;if(c===sc)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},zca=function(a,b,c,d){var e;(e=a.__ngSimpleChanges__||
null)||(e=a.__ngSimpleChanges__={previous:sc,current:null});var f=e;e=f.current||(f.current={});f=f.previous;c=this.declaredInputs[c];var h=f[c];e[c]=new Bca(h&&h.currentValue,b,f===sc);a[d]=b},Dca=function(){if(void 0!==Cca)return Cca;if("undefined"!==typeof document)return document},Bc=function(a){for(;Array.isArray(a);)a=a[0];return a},Cc=function(a,b){return Bc(b[a.index])},Dc=function(a,b){a=b[a];return uc(a)?a:a[0]},Ec=function(a,b){return null===b||void 0===b?null:a[b]},Eca=function(a,b){a[5]+=
b;var c=a;for(a=a[3];null!==a&&(1===b&&1===c[5]||-1===b&&0===c[5]);)a[5]+=b,c=a,a=a[3]},x=function(){return Fc.lView},z=function(a){Fc.contextLView=a;return a[8]},A=function(a){Fc.contextLView=null;return a},Gc=function(){for(var a=Fc.currentTNode;null!==a&&64===a.type;)a=a.parent;return a},Hc=function(a,b){var c=Fc;c.currentTNode=a;c.isParent=b},Ic=function(){var a=Fc,b=a.bindingRootIndex;-1===b&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},Jc=function(a){var b=Fc,c=b.bindingIndex;
b.bindingIndex+=a;return c},Fca=function(a){var b=Fc.currentDirectiveIndex;return-1===b?null:a[b]},Hca=function(a,b,c){if(c&4){for(;!(b=b.parent,null!==b||c&1);){b=a[1];b=2===b.type?b.declTNode:1===b.type?a[6]:null;if(null===b)break;a=a[15];if(b.type&10)break}if(null===b)return!1}c=Fc=Gca();c.currentTNode=b;c.lView=a;return!0},Ica=function(a){var b=Gca(),c=a[1];Fc=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},Gca=function(){var a=
Fc,b=null===a?null:a.child;return null===b?Jca(a):b},Jca=function(a){var b={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:a,child:null,inI18n:!1};null!==a&&(a.child=b);return b},Kca=function(){var a=Fc;Fc=a.parent;a.currentTNode=null;a.lView=null;return a},Lca=function(){var a=Kca();a.isParent=!0;a.tView=null;a.selectedIndex=-1;
a.contextLView=null;a.elementDepthCount=0;a.currentDirectiveIndex=-1;a.currentNamespace=null;a.bindingRootIndex=-1;a.bindingIndex=-1;a.currentQueryIndex=0},Kc=function(){var a=Fc;return a.tView.data[a.selectedIndex]},Lc=function(){Fc.currentNamespace="svg"},Mc=function(){Fc.currentNamespace=null},Nc=function(a,b){var c=b.directiveStart;for(b=b.directiveEnd;c<b;c++){var d=a.data[c].type.prototype,e=d.ngAfterContentInit,f=d.ngAfterContentChecked,h=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;
e&&(a.contentHooks||(a.contentHooks=[])).push(-c,e);f&&((a.contentHooks||(a.contentHooks=[])).push(c,f),(a.contentCheckHooks||(a.contentCheckHooks=[])).push(c,f));h&&(a.viewHooks||(a.viewHooks=[])).push(-c,h);k&&((a.viewHooks||(a.viewHooks=[])).push(c,k),(a.viewCheckHooks||(a.viewCheckHooks=[])).push(c,k));null!=d&&(a.destroyHooks||(a.destroyHooks=[])).push(c,d)}},Pc=function(a,b,c,d){(a[2]&3)===c&&Oc(a,b,c,d)},Mca=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&4095)+1)},Oc=function(a,b,c,d){for(var e=
null!=d?d:-1,f=b.length-1,h=0,k=void 0!==d?a[18]&65535:0;k<f;k++)if("number"===typeof b[k+1]){if(h=b[k],null!=d&&h>=d)break}else{0>b[k]&&(a[18]+=65536);if(h<e||-1==e){var q=0>b[k],w=b[k+1],y=a[q?-b[k]:b[k]];q?a[2]>>12<a[18]>>16&&(a[2]&3)===c&&(a[2]+=4096,w.call(y)):w.call(y);a[18]=(a[18]&4294901760)+k+2}k++}},Qc=function(a,b,c){for(var d=!!a.listen,e=0;e<c.length;){var f=c[e];if("number"===typeof f){if(0!==f)break;e++;f=c[e++];var h=c[e++],k=c[e++];d?a.setAttribute(b,h,k,f):b.setAttributeNS(f,h,k)}else h=
c[++e],64===f.charCodeAt(0)?d&&a.setProperty(b,f,h):d?a.setAttribute(b,f,h):b.setAttribute(f,h),e++}},Rc=function(a,b){if(null!==b&&0!==b.length)if(null===a||0===a.length)a=b.slice();else for(var c=-1,d=0;d<b.length;d++){var e=b[d];"number"===typeof e?c=e:0!==c&&(-1===c||2===c?Nca(a,c,e,b[++d]):Nca(a,c,e,null))}return a},Nca=function(a,b,c,d){var e=0,f=a.length;if(-1===b)f=-1;else for(;e<a.length;){var h=a[e++];if("number"===typeof h)if(h===b){f=-1;break}else if(h>b){f=e-1;break}}for(;e<a.length;){h=
a[e];if("number"===typeof h)break;else if(h===c){null!==d&&(a[e+1]=d);return}e++;null!==d&&e++}-1!==f&&(a.splice(f,0,b),e=f+1);a.splice(e++,0,c);null!==d&&a.splice(e++,0,d)},Sc=function(a,b){for(a>>=16;0<a;)b=b[15],a--;return b},Tc=function(a){var b=Oca;Oca=a;return b},Vc=function(a,b,c){var d;"string"===typeof c?d=c.charCodeAt(0)||0:c.hasOwnProperty(Uc)&&(d=c[Uc]);null==d&&(d=c[Uc]=Pca++);c=d&255;b.data[a+(c>>5)]|=1<<c},Wc=function(a,b){var c=Qca(a,b);if(-1!==c)return c;c=b[1];c.firstCreatePass&&
(a.injectorIndex=b.length,Rca(c.data,a),Rca(b,null),Rca(c.blueprint,null));c=Sca(a,b);a=a.injectorIndex;if(-1!==c)for(var d=c&32767,e=Sc(c,b),f=e[1].data,h=0;8>h;h++)b[a+h]=e[d+h]|f[d+h];b[a+8]=c;return a},Rca=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Qca=function(a,b){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===b[a.injectorIndex+8]?-1:a.injectorIndex},Sca=function(a,b){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;a=0;for(var c=b;null!==
c;){b=Tca(c);if(null===b)break;a++;c=c[15];if(-1!==b.injectorIndex)return b.injectorIndex|a<<16}return-1},Xc=function(a){var b=Gc();if("class"===a)return b.classes;if("style"===a)return b.styles;if(b=b.attrs)for(var c=b.length,d=0;d<c;){var e=b[d];if(3===e||4===e||6===e)break;if(0===e)d+=2;else if("number"===typeof e)for(d++;d<c&&"string"===typeof b[d];)d++;else{if(e===a)return b[d+1];d+=2}}return null},Uca=function(a,b,c){if(c&8)return a;jca(b,"NodeInjector")},Vca=function(a,b,c,d){c&8&&void 0===
d&&(d=null);if(0===(c&3)){a=a[9];var e=jc();try{return a?a.get(b,d,c&8):lca(b,d,c&8)}finally{jc(e)}}return Uca(d,b,c)},Xca=function(a,b,c,d,e){d=void 0===d?0:d;if(null!==a){if(b[2]&2048){a:{var f=d;for(var h=a,k=b;null!==h&&null!==k&&k[2]&2048&&!(k[2]&512);){var q=Wca(h,k,c,f|2);if(q!==Yc){f=q;break a}h=h.parent;if(!h){if(h=k[21])if(h=h.get(c,Yc,f),h!==Yc){f=h;break a}h=Tca(k);k=k[15]}}f=Yc}if(f!==Yc)return f}a=Wca(a,b,c,d);if(a!==Yc)return a}return Vca(b,c,d,e)},Wca=function(a,b,c,d){if("string"===
typeof c)var e=c.charCodeAt(0)||0;else e=c.hasOwnProperty(Uc)?c[Uc]:void 0,e="number"===typeof e?0<=e?e&255:Yca:e;if("function"===typeof e){if(!Hca(b,a,d))return d&1?Uca(Yc,c,d):Vca(b,c,d,Yc);try{var f=e(d);if(null!=f||d&8)return f;jca(c)}finally{Kca()}}else if("number"===typeof e){f=null;var h=Qca(a,b),k=d&1?b[16][6]:null;if(-1===h||d&4){var q=-1===h?Sca(a,b):b[h+8];-1===q||d&2?h=-1:(f=b[1],h=q&32767,b=Sc(q,b))}for(;-1!==h;){a=b[1];if(a.data[h+(e>>5)]&1<<e){q=b[1];var w=q.data[h+8],y=Zc(w,q,c,null==
f?2===(w.flags&2)&&Oca:f!=q&&0!==(w.type&3),d&1&&k===w);q=null!==y?$c(b,q,y,w):Yc;if(q!==Yc)return q}q=b[h+8];-1!==q&&!(d&2||d&1&&b[1].data[h+8]===k)&&b[h+(e>>5)]&1<<e?(f=a,h=q&32767,b=Sc(q,b)):h=-1}}return Yc},Zc=function(a,b,c,d,e){var f=a.providerIndexes,h=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var q=f>>20;f=e?k+q:a;for(d=d?k:k+q;d<f;d++)if(k=h[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=h[b])&&null!==e.template&&e.type===c?b:null},$c=function(a,b,c,d){var e=a[c],f=b.data;
if(e instanceof ad){var h=e;if(h.resolving)throw new ic(-200,"Circular dependency in DI detected for "+ica(f[c]));var k=Tc(h.canSeeViewProviders);h.resolving=!0;var q=h.injectImpl?jc(h.injectImpl):null;Hca(a,d,0);try{if(e=a[c]=h.factory(void 0,f,a,d),b.firstCreatePass&&c>=d.directiveStart){var w=f[c],y=w.type.prototype,E=y.ngOnInit,I=y.ngDoCheck;if(y.ngOnChanges){var N=yca(w);(b.preOrderHooks||(b.preOrderHooks=[])).push(c,N);(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,N)}E&&(b.preOrderHooks||
(b.preOrderHooks=[])).push(-c,E);I&&((b.preOrderHooks||(b.preOrderHooks=[])).push(c,I),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,I))}}finally{null!==q&&jc(q),Tc(k),h.resolving=!1,Kca()}}return e},Yca=function(){return new bd(Gc(),x())},cd=function(a){return nc(function(){var b=a.prototype.constructor;b=b[wc]||Zca(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[wc]||Zca(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},
Zca=function(a){return $ba(a)?function(){var b=Zca(bc(a));return b&&b()}:xc(a)},Tca=function(a){var b=a[1],c=b.type;return 2===c?b.declTNode:1===c?a[6]:null},$ca=function(a,b){void 0===b&&(b=a);for(var c=0;c<a.length;c++){var d=a[c];Array.isArray(d)?(b===a&&(b=a.slice(0,c)),$ca(d,b)):b!==a&&b.push(d)}return b},dd=function(a,b){a.forEach(function(c){return Array.isArray(c)?dd(c,b):b(c)})},ed=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},ada=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b);
return c},hd=function(a,b,c){var d=gd(a,b);if(0<=d)a[d|1]=c;else{d=~d;var e=a.length;if(e==d)a.push(b,c);else if(1===e)a.push(c,a[0]),a[0]=b;else{e--;for(a.push(a[e-1],a[e]);e>d;)a[e]=a[e-2],e--;a[d]=b;a[d+1]=c}}},bda=function(a,b){b=gd(a,b);if(0<=b)return a[b|1]},gd=function(a,b){for(var c=0,d=a.length>>1;d!==c;){var e=c+(d-c>>1),f=a[e<<1];if(b===f)return e<<1;f>b?d=e:c=e+1}return~(d<<1)},eda=function(){void 0===cda&&(cda=new dda);return cda},hda=function(a,b,c,d){a=fda(a,void 0===b?null:b,void 0===
c?null:c,d);gda(a);return a},fda=function(a,b,c,d,e){b=void 0===b?null:b;e=void 0===e?new Set:e;c=[].concat(u($ca((void 0===c?null:c)||qc)),u(ida(a)));d=d||("object"===typeof a?void 0:$b(a));return new id(c,b||eda(),d||null,e)},jda=function(a,b,c,d){a=bc(a);if(!a)return!1;var e=hca(a),f=null==e&&a.ngModule||void 0,h=void 0===f?a:f,k=d.has(h);void 0!==f&&(e=hca(f));if(null==e)return!1;if(null!=e.imports&&!k){d.add(h);var q;dd(e.imports,function(I){jda(I,b,c,d)&&(void 0===q&&(q=[]),q.push(I))});if(void 0!==
q)for(var w={},y=0;y<q.length;w={$jscomp$loop$prop$providers$1595:w.$jscomp$loop$prop$providers$1595,$jscomp$loop$prop$ngModule$1204$1596:w.$jscomp$loop$prop$ngModule$1204$1596},y++){var E=q[y];w.$jscomp$loop$prop$ngModule$1204$1596=E.ngModule;w.$jscomp$loop$prop$providers$1595=E.providers;dd(w.$jscomp$loop$prop$providers$1595,function(){return function(I){kda(I);b.push(I)}}(w))}}w=xc(h)||function(){return new h};b.push({provide:h,useFactory:w,deps:qc});b.push({provide:lda,useValue:h,multi:!0});b.push({provide:mda,
useValue:function(){return t(h)},multi:!0});e=e.providers;null==e||k||dd(e,function(I){kda(I);b.push(I)});return void 0!==f&&void 0!==a.providers},ida=function(){var a=[];dd(oc.apply(0,arguments),function(b){return jda(b,a,[],new Set)});return a},oda=function(a){var b=dca(a);b=null!==b?b.factory:xc(a);if(null!==b)return b;if(a instanceof jd)throw new ic(204,!1);if(a instanceof Function)return nda(a);throw new ic(204,!1);},nda=function(a){var b=a.length;if(0<b)throw ada(b,"?"),new ic(204,!1);var c=
eca(a);return null!==c?function(){return c.factory(a)}:function(){return new a}},rda=function(a){if(pda(a))return kd(void 0,a.useValue);a=qda(a);return kd(a,ld)},qda=function(a){var b=void 0;if(md(a))return b=bc(a),xc(b)||oda(b);if(pda(a))b=function(){return bc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,u(nca(a.deps||[])))};else if(a&&a.useExisting)b=function(){return t(bc(a.useExisting))};else{var c=bc(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,
[null].concat(u(nca(a.deps)))))};else return xc(c)||oda(c)}return b},kd=function(a,b,c){return{factory:a,value:b,multi:(void 0===c?0:c)?[]:void 0}},pda=function(a){return null!==a&&"object"==typeof a&&sda in a},md=function(a){return"function"===typeof a},kda=function(a){md(a)||pda(a)||a&&a.useFactory||a&&a.useExisting||bc(a&&(a.useClass||a.provide))},tda=function(a){a.error.apply(a,u(oc.apply(1,arguments)))},od=function(a,b){return new nd(Cc(a,b))},uda=function(a){return a instanceof nd?a.nativeElement:
a},pd=function(a,b){uc(b)?(a.__ngContext__=b[20],vda.set(b[20],b)):a.__ngContext__=b},wda=function(a){a=a.__ngContext__;return(a="number"===typeof a?vda.get(a)||null:a||null)?uc(a)?a:a.lView:null},qd=function(a){return a.ownerDocument.defaultView},xda=function(a){return a.ownerDocument},B=function(a){yda(Fc.tView,x(),Fc.selectedIndex+a)},yda=function(a,b,c){3===(b[2]&3)?(a=a.preOrderCheckHooks,null!==a&&Oc(b,a,3,c)):(a=a.preOrderHooks,null!==a&&Pc(b,a,0,c));Fc.selectedIndex=c},zda=function(){if(void 0===
rd&&(rd=null,sd.trustedTypes))try{rd=sd.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return rd},td=function(a){var b;return(null==(b=zda())?void 0:b.createHTML(a))||a},Ada=function(a){a=a[3];return vc(a)?a[3]:a},ud=function(a){for(;null!==a&&!vc(a);)a=a[4];return a},wd=function(a,b,c,d,e){if(null!=d){var f=!1;if(vc(d))var h=d;else uc(d)&&(f=!0,d=d[0]);d=Bc(d);if(0===a&&null!==c)null==e?Bda(b,
c,d):vd(b,c,d,e||null,!0);else if(1===a&&null!==c)vd(b,c,d,e||null,!0);else if(2===a){var k=Cda(b,d);k&&(b.listen?b.removeChild(k,d,f):k.removeChild(d))}else 3===a&&b.destroyNode(d);if(null!=h)for(d=h[7],f=Bc(h),d!==f&&wd(a,b,c,d,e),e=10;e<h.length;e++)f=h[e],xd(b,a,f[1].firstChild,f,c,d,!1)}},Dda=function(a,b,c){if(a.listen)return a.createElement(b,c);null!==c?(c=c.toLowerCase(),c="svg"===c?"http://www.w3.org/2000/svg":"math"===c?"http://www.w3.org/1998/MathML/":null):c=null;return null===c?a.createElement(b):
a.createElementNS(c,b)},Eda=function(a,b){a=a[9];var c=a.indexOf(b),d=b[3];b[2]&1024&&(b[2]&=-1025,Eca(d,-1));a.splice(c,1)},Fda=function(a,b){if(!(10>=a.length)){var c=10+b,d=a[c];if(d){var e=d[17];null!==e&&e!==a&&Eda(e,d);0<b&&(a[c-1][4]=d[4]);a=ed(a,10+b);xd(d[11],2,d[1].firstChild,d,null,null,!1);d[0]=null;d[6]=null;b=a[19];null!==b&&b.detachView(a[1]);d[3]=null;d[4]=null;d[2]&=-129}return d}},Hda=function(a,b){if(!(b[2]&256)){var c=b[11];c.listen&&c.destroyNode&&xd(c,3,a.firstChild,b,null,null,
!1);if(a=b[13])for(;a;){c=null;if(uc(a))c=a[13];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)uc(a)&&Gda(a[1],a),a=a[3];null===a&&(a=b);uc(a)&&Gda(a[1],a);c=a&&a[4]}a=c}else Gda(b[1],b)}},Gda=function(a,b){if(!(b[2]&256)){b[2]&=-129;b[2]|=256;var c;if(null!=a&&null!=(c=a.destroyHooks))for(var d=0;d<c.length;d+=2){var e=b[c[d]];if(!(e instanceof ad)){var f=c[d+1];if(Array.isArray(f))for(var h=0;h<f.length;h+=2)f[h+1].call(e[f[h]]);else f.call(e)}}d=a.cleanup;c=b[7];f=-1;if(null!==d)for(e=
0;e<d.length-1;e+=2)if("string"===typeof d[e]){f=d[e+1];h="function"===typeof f?f(b):Bc(b[f]);var k=c[f=d[e+2]],q=d[e+3];if("boolean"===typeof q)h.removeEventListener(d[e],k,q);else if(0<=q)c[f=q]();else c[f=-q].unsubscribe();e+=2}else h=c[f=d[e+1]],d[e].call(h);if(null!==c){for(d=f+1;d<c.length;d++)(0,c[d])();b[7]=null}1===b[1].type&&b[11].listen&&b[11].destroy();c=b[17];null!==c&&vc(b[3])&&(c!==b[3]&&Eda(c,b),c=b[19],null!==c&&c.detachView(a));vda.delete(b[20])}},Ida=function(a,b,c){for(;null!==
b&&b.type&40;)b=b.parent;return null===b?c[0]:b.flags&2&&(a=a.data[b.directiveStart].encapsulation,2===a||0===a)?null:Cc(b,c)},vd=function(a,b,c,d,e){a.listen?a.insertBefore(b,c,d,e):("TEMPLATE"===b.tagName&&void 0!==b.content?b.content:b).insertBefore(c,d,e)},Bda=function(a,b,c){a.listen?a.appendChild(b,c):("TEMPLATE"===b.tagName&&void 0!==b.content?b.content:b).appendChild(c)},Cda=function(a,b){return a.listen?a.parentNode(b):b.parentNode},yd=function(a,b,c,d){a=Ida(a,d.parent,b);var e=b[11];d=
d.parent||b[6];b=d.type&40?Cc(d,b):null;if(null!=a)if(Array.isArray(c))for(d=0;d<c.length;d++){var f=c[d];null!==b?vd(e,a,f,b,!1):Bda(e,a,f)}else null!==b?vd(e,a,c,b,!1):Bda(e,a,c)},zd=function(a,b){if(null!==b){var c=b.type;if(c&3)return Cc(b,a);if(c&4)return Jda(-1,a[b.index]);if(c&8){c=b.child;if(null!==c)return zd(a,c);a=a[b.index];return vc(a)?Jda(-1,a):Bc(a)}if(c&32)return(void 0)(b,a)()||Bc(a[b.index]);c=null!==b?a[16][6].projection[b.projection]:null;if(null!==c){if(Array.isArray(c))return c[0];
a=Ada(a[16]);return zd(a,c)}return zd(a,b.next)}return null},Jda=function(a,b){a+=11;if(a<b.length){a=b[a];var c=a[1].firstChild;if(null!==c)return zd(a,c)}return b[7]},xd=function(a,b,c,d,e,f,h){for(;null!=c;){var k=d[c.index],q=c.type;h&&0===b&&(k&&pd(Bc(k),d),c.flags|=4);if(64!==(c.flags&64))if(q&8)xd(a,b,c.child,d,e,f,!1),wd(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var w;w=q();)wd(b,a,e,w,f);wd(b,a,e,k,f)}else q&16?Kda(a,b,d,c,e,f):wd(b,a,e,k,f);c=h?c.projectionNext:c.next}},Kda=function(a,
b,c,d,e,f){c=c[16];d=c[6].projection[d.projection];if(Array.isArray(d))for(c=0;c<d.length;c++)wd(b,a,e,d[c],f);else xd(a,b,d,c[3],e,f,!0)},Lda=function(a,b,c){a.listen?""===c?a.removeAttribute(b,"class"):a.setAttribute(b,"class",c):b.className=c},Mda=function(a,b){for(var c=0,d=a.length;;){c=a.indexOf(b,c);if(-1===c)return c;if(0===c||32>=a.charCodeAt(c-1)){var e=b.length;if(c+e===d||32>=a.charCodeAt(c+e))return c}c+=1}},Nda=function(a,b,c){var d=4,e=a.attrs||[],f;a:{for(f=0;f<e.length;f++){var h=
e[f];if(3===h||4===h||6===h)break a}f=e.length}h=!1;for(var k=0;k<b.length;k++){var q=b[k];if("number"===typeof q){if(!h&&0!==(d&1)&&0!==(q&1))return!1;h&&0===(q&1)||(h=!1,d=q|d&1)}else if(!h)if(d&4){if(d=2|d&1,""!==q&&q!==(4!==a.type||c?a.value:"ng-template")||""===q&&1===b.length){if(0===(d&1))return!1;h=!0}}else{var w=d&8?q:b[++k];if(d&8&&null!==a.attrs){a:{q=a.attrs;for(var y=c,E=0;E<q.length;){var I=q[E++];if(y&&"class"===I){if(I=q[E],-1!==Mda(I.toLowerCase(),w)){w=!0;break a}}else if(1===I){for(;E<
q.length&&"string"==typeof(I=q[E++]);)if(I.toLowerCase()===w){w=!0;break a}break}}w=!1}if(!w){if(0===(d&1))return!1;h=!0}}else{a:if(q=d&8?"class":q,null===e)q=-1;else if(y=0,c||4!==a.type||"ng-template"===a.value){for(E=!1;y<e.length;){I=e[y];if(I===q){q=y;break a}if(3===I||6===I)E=!0;else if(1===I||2===I){for(I=e[++y];"string"===typeof I;)I=e[++y];continue}else if(4===I)break;else if(0===I){y+=4;continue}y+=E?1:2}q=-1}else b:{y=e.indexOf(4);if(-1<y)for(y++;y<e.length;){E=e[y];if("number"===typeof E)break;
if(E===q){q=y;break b}y++}q=-1}if(-1===q){if(0===(d&1))return!1;h=!0}else if(""!==w&&(q=q>f?"":e[q+1].toLowerCase(),(y=d&8?q:null)&&-1!==Mda(y,w)||d&2&&w!==q)){if(0===(d&1))return!1;h=!0}}}}return 0===(d&1)||h},Oda=function(a,b,c){c=void 0===c?!1:c;for(var d=0;d<b.length;d++)if(Nda(a,b[d],c))return!0;return!1},Pda=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var h=a[c];if("string"===typeof h)if(d&2){var k=a[++c];e+="["+h+(0<k.length?'="'+k+'"':"")+"]"}else d&8?e+="."+h:d&4&&(e+=" "+h);
else""!==e&&0!==(h&1)&&(b+=f?":not("+e.trim()+")":e,e=""),d=h,f=f||0!==(d&1);c++}""!==e&&(b+=f?":not("+e.trim()+")":e);return b},Bd=function(a){return a instanceof Ad?a.changingThisBreaksApplicationSecurity:a},Dd=function(a,b){a=a instanceof Ad&&a.getTypeName()||null;if(null!=a&&a!==b){if("ResourceURL"===a&&"URL"===b)return!0;throw Error("na`"+b+"`"+a);}return a===b},Ed=function(a){a=String(a);return a.match(Qda)||a.match(Rda)?a:"unsafe:"+a},Sda=function(a){a=String(a);return a.split(",").map(function(b){return Ed(b.trim())}).join(", ")},
Fd=function(a){var b={};a=r(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},Gd=function(){for(var a={},b=r(oc.apply(0,arguments)),c=b.next();!c.done;c=b.next()){c=c.value;for(var d in c)c.hasOwnProperty(d)&&(a[d]=!0)}return a},Vda=function(a){return a.replace(/&/g,"&amp;").replace(Tda,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Uda,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},
eea=function(a,b){var c=null;try{var d;if(!(d=Hd)){var e=new Wda(a);try{var f=!!(new window.DOMParser).parseFromString(td(""),"text/html")}catch(Y){f=!1}d=f?new Xda(e):e}Hd=d;var h=b?String(b):"";c=Hd.getInertBodyElement(h);a=5;b=h;do{if(0===a)throw Error("pa");a--;h=b;b=c.innerHTML;c=Hd.getInertBodyElement(h)}while(h!==b);var k=new Yda,q=(("content"in c&&c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName?c.content:null)||c).firstChild;for(h=!0;q;){if(q.nodeType===Node.ELEMENT_NODE){a=k;b=q;
var w=b.nodeName.toLowerCase();if(Zda.hasOwnProperty(w)){a.buf.push("<");a.buf.push(w);var y=b.attributes;for(b=0;b<y.length;b++){var E=y.item(b),I=E.name,N=I.toLowerCase();if($da.hasOwnProperty(N)){var L=E.value;aea[N]&&(L=Ed(L));bea[N]&&(L=Sda(L));a.buf.push(" ",I,'="',Vda(L),'"')}}a.buf.push(">");h=!0}else h=!cea.hasOwnProperty(w)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(Vda(q.nodeValue));if(h&&q.firstChild)q=q.firstChild;else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var S=
dea(q,q.nextSibling);if(S){q=S;break}q=dea(q,q.parentNode)}}return td(k.buf.join(""))}finally{if(c)for(c=("content"in c&&c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName?c.content:null)||c;c.firstChild;)c.removeChild(c.firstChild)}},fea=function(){if(void 0===Id&&(Id=null,sd.trustedTypes))try{Id=sd.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Id},gea=function(a){var b;
return(null==(b=fea())?void 0:b.createHTML(a))||a},hea=function(a){var b;return(null==(b=fea())?void 0:b.createScriptURL(a))||a},Jd=function(a){var b=iea();return b?gea(b.sanitize(1,a)||""):Dd(a,"HTML")?gea(Bd(a)):eea(Dca(),hc(a))},Kd=function(a){var b=iea();return b?b.sanitize(4,a)||"":Dd(a,"URL")?Bd(a):Ed(hc(a))},jea=function(a){var b=iea();if(b)return hea(b.sanitize(5,a)||"");if(Dd(a,"ResourceURL"))return hea(Bd(a));throw new ic(904,"");},iea=function(){var a=x();return a&&a[12]},kea=function(a,
b){var c=a.contentQueries;if(null!==c)for(var d=0;d<c.length;d+=2){var e=c[d],f=c[d+1];if(-1!==f){var h=a.data[f];Fc.currentQueryIndex=e;h.contentQueries(2,b[f],f)}}},Ld=function(a,b,c,d,e,f,h,k,q,w,y){var E=b.blueprint.slice();E[0]=e;E[2]=d|140;if(null!==y||a&&a[2]&2048)E[2]|=2048;E[18]=0;E[3]=E[15]=a;E[8]=c;E[10]=h||a&&a[10];E[11]=k||a&&a[11];E[12]=q||a&&a[12]||null;E[9]=w||a&&a[9]||null;E[6]=f;E[20]=lea++;E[21]=y;E[16]=2==b.type?a[16]:E;return E},Md=function(a,b,c,d,e){var f=a.data[b];if(null===
f){f=Fc.currentTNode;var h=Fc.isParent,k=h?f:f&&f.parent;b=a.data[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:k?k.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:d,attrs:e,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:k,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,
residualClasses:void 0,classBindings:0,styleBindings:0};null===a.firstChild&&(a.firstChild=b);null!==f&&(h?null==f.child&&null!==b.parent&&(f.child=b):null===f.next&&(f.next=b));f=b;Fc.inI18n&&(f.flags|=64)}else f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=Fc,b=a.currentTNode,a=a.isParent?b:b.parent,f.injectorIndex=null===a?-1:a.injectorIndex);Hc(f,!0);return f},mea=function(a,b,c,d){if(0===c)return-1;for(var e=b.length,f=0;f<c;f++)b.push(d),a.blueprint.push(d),a.data.push(null);return e},Nd=function(a,
b,c){Ica(b);try{var d=a.viewQuery;null!==d&&(Fc.currentQueryIndex=0,d(1,c));var e=a.template;null!==e&&nea(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);a.staticContentQueries&&kea(a,b);if(a.staticViewQueries){var f=a.viewQuery;Fc.currentQueryIndex=0;f(2,c)}var h=a.components;if(null!==h)for(c=0;c<h.length;c++){for(var k=Dc(h[c],b),q=k[1],w=k.length;w<q.blueprint.length;w++)k.push(q.blueprint[w]);Nd(q,k,k[8])}}catch(y){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),
y;}finally{b[2]&=-5,Lca()}},Od=function(a,b,c,d){var e=b[2];if(256!==(e&256)){Ica(b);try{b[18]=0;Fc.bindingIndex=a.bindingStartIndex;null!==c&&nea(a,b,c,2,d);if(c=3===(e&3)){var f=a.preOrderCheckHooks;null!==f&&Oc(b,f,3,null)}else{var h=a.preOrderHooks;null!==h&&Pc(b,h,0,null);Mca(b,0)}for(var k=ud(b[13]);null!==k;k=ud(k[4]))if(k[2]){var q=k[9];for(f=0;f<q.length;f++){var w=q[f],y=w[3];0===(w[2]&1024)&&Eca(y,1);w[2]|=1024}}for(var E=ud(b[13]);null!==E;E=ud(E[4]))for(k=10;k<E.length;k++){var I=E[k],
N=I[1];128===(I[2]&128)&&Od(N,I,N.template,I[8])}null!==a.contentQueries&&kea(a,b);if(c){var L=a.contentCheckHooks;null!==L&&Oc(b,L,3)}else{var S=a.contentHooks;null!==S&&Pc(b,S,1);Mca(b,1)}var Y=a.hostBindingOpCodes;if(null!==Y)try{for(E=0;E<Y.length;E++){var ka=Y[E];if(0>ka)Fc.selectedIndex=~ka;else{I=ka;var ha=Y[++E],ya=Y[++E];N=Fc;N.bindingIndex=N.bindingRootIndex=ha;Fc.currentDirectiveIndex=I;ya(2,b[I])}}}finally{Fc.selectedIndex=-1}var Ha=a.components;if(null!==Ha)for(Y=0;Y<Ha.length;Y++){var Ja=
Dc(Ha[Y],b);if(128===(Ja[2]&128)){var Ka=Ja[1];Ja[2]&80?Od(Ka,Ja,Ka.template,Ja[8]):0<Ja[5]&&oea(Ja)}}var Ma=a.viewQuery;null!==Ma&&(Fc.currentQueryIndex=0,Ma(2,d));if(c){var hb=a.viewCheckHooks;null!==hb&&Oc(b,hb,3)}else{var fb=a.viewHooks;null!==fb&&Pc(b,fb,2);Mca(b,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1);b[2]&=-73;b[2]&1024&&(b[2]&=-1025,Eca(b[3],-1))}finally{Lca()}}},nea=function(a,b,c,d,e){var f=Fc.selectedIndex;try{Fc.selectedIndex=-1,d&2&&22<b.length&&yda(a,b,22),c(d,e)}finally{Fc.selectedIndex=
f}},pea=function(a,b,c){if(0!==(b.flags&8)){var d=b.directiveEnd;for(b=b.directiveStart;b<d;b++){var e=a.data[b];e.contentQueries&&e.contentQueries(1,c[b],b)}}},rea=function(a,b,c){var d=Cc(c,b),e=c.directiveStart,f=c.directiveEnd;a.firstCreatePass||Wc(c,b);pd(d,b);d=c.initialInputs;for(var h=e;h<f;h++){var k=a.data[h],q=null!==k.template;if(q){var w=b,y=c,E=Cc(y,w),I=qea(k),N=w[10];E=Pd(w,Ld(w,I,null,k.onPush?64:16,E,y,N,N.createRenderer(E,k),null,null,null));w[y.index]=E}w=$c(b,a,h,c);pd(w,b);if(null!==
d&&(y=d[h-e],null!==y))for(E=k.setInput,I=0;I<y.length;){N=y[I++];var L=y[I++],S=y[I++];null!==E?k.setInput(w,S,N,L):w[L]=S}q&&(Dc(c.index,b)[8]=w)}if(128===(c.flags&128)){f=c.directiveStart;e=c.directiveEnd;d=c.index;c=Fc.currentDirectiveIndex;try{for(Fc.selectedIndex=d;f<e;f++){var Y=a.data[f],ka=b[f];Fc.currentDirectiveIndex=f;null===Y.hostBindings&&0===Y.hostVars&&null===Y.hostAttrs||null===Y.hostBindings||Y.hostBindings(1,ka)}}finally{Fc.selectedIndex=-1,Fc.currentDirectiveIndex=c}}},sea=function(a,
b,c){c=void 0===c?Cc:c;var d=b.localNames;if(null!==d)for(var e=b.index+1,f=0;f<d.length;f+=2){var h=d[f+1];h=-1===h?c(b,a):a[h];a[e++]=h}},qea=function(a){var b=a.tView;return null===b||b.incompleteFirstPass?a.tView=tea(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts):b},tea=function(a,b,c,d,e,f,h,k,q,w){d=22+d;e=d+e;for(var y=[],E=0;E<e;E++)y.push(E<d?null:Qd);w="function"===typeof w?w():w;return y[1]={type:a,blueprint:y,template:c,queries:null,viewQuery:k,
declTNode:b,data:y.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:e,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"===typeof f?f():f,pipeRegistry:"function"===typeof h?h():h,firstChild:null,schemas:q,consts:w,incompleteFirstPass:!1}},
uea=function(a,b,c,d){b=b[7]||(b[7]=[]);null===c?b.push(d):(b.push(c),a.firstCreatePass&&(a.cleanup||(a.cleanup=[])).push(d,b.length-1))},vea=function(a,b,c){for(var d in a)if(a.hasOwnProperty(d)){c=null===c?{}:c;var e=a[d];c.hasOwnProperty(d)?c[d].push(b,e):c[d]=[b,e]}return c},Rd=function(a,b,c,d,e,f,h,k){var q=Cc(b,c),w=b.inputs,y;!k&&null!=w&&(y=w[d])?(wea(a,c,y,d,e),2===(b.flags&2)&&(a=Dc(b.index,c),a[2]&16||(a[2]|=64))):b.type&3&&(d="class"===d?"className":"for"===d?"htmlFor":"formaction"===
d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,e=null!=h?h(e,b.value||"",d):e,f.listen?f.setProperty(q,d,e):64===d.charCodeAt(0)||(q.setProperty?q.setProperty(d,e):q[d]=e))},yea=function(a,b,c){var d=Gc();if(a.firstCreatePass){c.providersResolver&&c.providersResolver(c);var e=mea(a,b,1,null);xea(a,d,b,e,c)}a=$c(b,a,d.directiveStart,d);pd(a,b);(d=Cc(d,b))&&pd(d,b);return a},Aea=function(a,b,c,d){var e=a.directiveRegistry;var f=null;if(e)for(var h=0;h<
e.length;h++){var k=e[h];if(Oda(c,k.selectors,!1)){f||(f=[]);var q=Wc(c,b);Vc(q,a,k.type);null!==k.template?(zea(a,c),f.unshift(k)):f.push(k)}}e=null===d?null:{"":-1};if(null!==f){h=a.data.length;k=f.length;c.flags|=1;c.directiveStart=h;c.directiveEnd=h+k;c.providerIndexes=h;for(h=0;h<f.length;h++)k=f[h],k.providersResolver&&k.providersResolver(k);k=h=!1;q=mea(a,b,f.length,null);for(var w=0;w<f.length;w++){var y=f[w];c.mergedAttrs=Rc(c.mergedAttrs,y.hostAttrs);xea(a,c,b,q,y);var E=q;if(e){if(y.exportAs)for(var I=
0;I<y.exportAs.length;I++)e[y.exportAs[I]]=E;null!==y.template&&(e[""]=E)}null!==y.contentQueries&&(c.flags|=8);if(null!==y.hostBindings||null!==y.hostAttrs||0!==y.hostVars)c.flags|=128;y=y.type.prototype;!h&&(y.ngOnChanges||y.ngOnInit||y.ngDoCheck)&&((a.preOrderHooks||(a.preOrderHooks=[])).push(c.index),h=!0);k||!y.ngOnChanges&&!y.ngDoCheck||((a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(c.index),k=!0);q++}b=c.directiveEnd;a=a.data;f=c.attrs;h=[];q=k=null;for(w=c.directiveStart;w<b;w++){y=
a[w];E=y.inputs;if(null===f||4===c.type&&"ng-template"!==c.value)I=null;else{I=null;for(var N=0;N<f.length;){var L=f[N];if(0===L)N+=4;else{if(5!==L){if("number"===typeof L)break;E.hasOwnProperty(L)&&(null===I&&(I=[]),I.push(L,E[L],f[N+1]))}N+=2}}}h.push(I);k=vea(E,w,k);q=vea(y.outputs,w,q)}null!==k&&(k.hasOwnProperty("class")&&(c.flags|=16),k.hasOwnProperty("style")&&(c.flags|=32));c.initialInputs=h;c.inputs=k;c.outputs=q}if(e&&d)for(a=c.localNames=[],b=0;b<d.length;b+=2){f=e[d[b+1]];if(null==f)throw new ic(-301,
!1);a.push(d[b],f)}c.mergedAttrs=Rc(c.mergedAttrs,c.attrs)},Bea=function(a,b,c,d,e){if(e=e.hostBindings){var f=a.hostBindingOpCodes;null===f&&(f=a.hostBindingOpCodes=[]);a=~b.index;a:{for(b=f.length;0<b;){var h=f[--b];if("number"===typeof h&&0>h){b=h;break a}}b=0}b!=a&&f.push(a);f.push(c,d,e)}},zea=function(a,b){b.flags|=2;(a.components||(a.components=[])).push(b.index)},xea=function(a,b,c,d,e){a.data[d]=e;var f=e.factory||(e.factory=xc(e.type));f=new ad(f,null!==e.template,null);a.blueprint[d]=f;
c[d]=f;Bea(a,b,d,mea(a,c,e.hostVars,Qd),e)},Sd=function(a,b,c,d,e,f){var h=Cc(a,b);b=b[11];a=a.value;null==d?b.listen?b.removeAttribute(h,c,f):h.removeAttribute(c):(d=null==e?hc(d):e(d,a||"",c),b.listen?b.setAttribute(h,c,d,f):f?h.setAttributeNS(f,c,d):h.setAttribute(c,d))},oea=function(a){for(var b=ud(a[13]);null!==b;b=ud(b[4]))for(var c=10;c<b.length;c++){var d=b[c];if(d[2]&1024){var e=d[1];Od(e,d,e.template,d[8])}else 0<d[5]&&oea(d)}b=a[1].components;if(null!==b)for(c=0;c<b.length;c++)d=Dc(b[c],
a),128===(d[2]&128)&&0<d[5]&&oea(d)},Pd=function(a,b){a[13]?a[14][4]=b:a[13]=b;return a[14]=b},Cea=function(a){for(;a;){a[2]|=64;var b=Ada(a);if(0!==(a[2]&512)&&!b)break;a=b}},Dea=function(a,b,c){if(null===a||null!==a.template)a:{for(a=c[b.index];Array.isArray(a);){if("object"===typeof a[1]){c=a;break a}a=a[0]}c=null}return c[11]},Eea=function(a,b){(a=(a=a[9])?a.get(Td,null):null)&&a.handleError(b)},wea=function(a,b,c,d,e){for(var f=0;f<c.length;){var h=c[f++],k=c[f++],q=b[h];h=a.data[h];null!==h.setInput?
h.setInput(q,e,d,k):q[k]=e}},Fea=function(a,b){var c=Bc(a[Fc.selectedIndex]);a=a[11];a.listen?a.setValue(c,b):c.textContent=b},Ud=function(a,b,c){var d=c?a.styles:null,e=c?a.classes:null,f=0;if(null!==b)for(var h=0;h<b.length;h++){var k=b[h];if("number"===typeof k)f=k;else if(1==f)e=Zba(e,k);else if(2==f){var q=b[++h];d=Zba(d,k+": "+q+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},Hea=function(a,b,c,d){var e=[Gea],f=c[1],h=yea(f,c,b);d.components.push(h);a[8]=h;e&&
e.forEach(function(k){return k(h,b)});b.contentQueries&&b.contentQueries(1,h,Gc().directiveStart);a=Gc();!f.firstCreatePass||null===b.hostBindings&&null===b.hostAttrs||(Fc.selectedIndex=a.index,Bea(c[1],a,a.directiveStart,a.directiveEnd,b),null!==b.hostBindings&&b.hostBindings(1,h));return h},Gea=function(a){a=wda(a)[1];Nc(a,Gc())},Vd=function(a,b,c,d,e){for(e=void 0===e?!1:e;null!==c;){var f=b[c.index];null!==f&&d.push(Bc(f));if(vc(f))for(var h=10;h<f.length;h++){var k=f[h],q=k[1].firstChild;null!==
q&&Vd(k[1],k,q,d)}f=c.type;if(f&8)Vd(a,b,c.child,d);else if(f&32)for(f=(void 0)(c,b);h=f();)d.push(h);else f&16&&(f=null!==c?b[16][6].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,u(f)):(h=Ada(b[16]),Vd(h[1],h,f,d,!0)));c=e?c.projectionNext:c.next}return d},Iea=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push({propName:a[c],templateName:c});return b},Wd=function(a){return!!a&&"function"===typeof a.then},Jea=function(a){return!!a&&"function"===typeof a.subscribe},Kea=function(){},
Mea=function(){return Lea()+Lea()+Lea()},Lea=function(){return String.fromCharCode(97+Math.floor(25*Math.random()))},Xd=function(a){var b=a.toLowerCase().replace(/_/g,"-"),c=Nea(b);if(c)return c;b=b.split("-")[0];if(c=Nea(b))return c;if("en"===b)return Oea;throw Error("qa`"+a);},Nea=function(a){a in Pea||(Pea[a]=sd.ng&&sd.ng.common&&sd.ng.common.locales&&sd.ng.common.locales[a]);return Pea[a]},Rea=function(a){"undefined"===typeof Zone?Qea.then(function(){a&&a.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",
a)},Yd=function(a){setTimeout(function(){throw a;},0)},Zd=function(a){return"function"===typeof a},$d=function(a){return null!==a&&"object"===typeof a},Sea=function(a){return a instanceof ae||a&&"closed"in a&&"function"===typeof a.remove&&"function"===typeof a.add&&"function"===typeof a.unsubscribe},Tea=function(a){return a.reduce(function(b,c){return b.concat(c instanceof be?c.errors:c)},[])},Uea=function(a){for(;a;){var b=a,c=b.destination,d=b.isStopped;if(b.closed||d)return!1;c&&c instanceof ce?
a=c:a=null}return!0},de=function(a){return a},Vea=function(a){return 0===a.length?de:1===a.length?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},Wea=function(a){return a&&"function"===typeof a.next&&"function"===typeof a.error&&"function"===typeof a.complete},Xea=function(a){a||(a=ee.Promise||Promise);if(!a)throw Error("ta");return a},Yea=function(a){return new fe(function(b){return a.schedule(function(){return b.complete()})})},Zea=function(a,b){return new fe(function(c){var d=
new ae,e=0;d.add(b.schedule(function(){e===a.length?c.complete():(c.next(a[e++]),c.closed||d.add(this.schedule()))}));return d})},ge=function(a,b){return b?Zea(a,b):new fe($ea(a))},he=function(a){return a&&"function"===typeof a.schedule},afa=function(){var a=oc.apply(0,arguments),b=a[a.length-1];return he(b)?(a.pop(),Zea(a,b)):ge(a)},bfa=function(a){a.subscriber.error(a.error)},ie=function(a,b){if(a&&"function"===typeof a.lift)return a.lift(b);throw new TypeError("ua");},je=function(){return function(a){return ie(a,
new cfa)}},C=function(a){return function(b){if("function"!==typeof a)throw new TypeError("va");return ie(b,new dfa(a))}},efa=function(a,b,c){if(b)if(he(b))c=b;else return function(){return efa(a,c).apply(null,u(oc.apply(0,arguments))).pipe(C(function(d){return ke(d)?b.apply(null,u(d)):b(d)}))};return function(){var d=oc.apply(0,arguments),e=this,f,h={context:e,subject:void 0,callbackFunc:a,scheduler:c};return new fe(function(k){if(c)return c.schedule(ffa,0,{args:d,subscriber:k,params:h});if(!f){f=
new le;var q=function(){var w=oc.apply(0,arguments);f.next(1>=w.length?w[0]:w);f.complete()};try{a.apply(e,[].concat(u(d),[q]))}catch(w){Uea(f)?f.error(w):console.warn(w)}}return f.subscribe(k)})}},ffa=function(a){var b=this,c=a.args,d=a.subscriber,e=a.params;a=e.callbackFunc;var f=e.context,h=e.scheduler,k=e.subject;if(!k){k=e.subject=new le;e=function(){var q=oc.apply(0,arguments);b.add(h.schedule(gfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{a.apply(f,[].concat(u(c),[e]))}catch(q){k.error(q)}}this.add(k.subscribe(d))},
gfa=function(a){var b=a.subject;b.next(a.value);b.complete()},hfa=function(a,b,c){if(b)if(he(b))c=b;else return function(){return hfa(a,c).apply(null,u(oc.apply(0,arguments))).pipe(C(function(d){return ke(d)?b.apply(null,u(d)):b(d)}))};return function(){var d=oc.apply(0,arguments),e={subject:void 0,args:d,callbackFunc:a,scheduler:c,context:this};return new fe(function(f){var h=e.context,k=e.subject;if(c)return c.schedule(ifa,0,{params:e,subscriber:f,context:h});if(!k){k=e.subject=new le;var q=function(){var w=
oc.apply(0,arguments),y=w.shift();y?k.error(y):(k.next(1>=w.length?w[0]:w),k.complete())};try{a.apply(h,[].concat(u(d),[q]))}catch(w){Uea(k)?k.error(w):console.warn(w)}}return k.subscribe(f)})}},ifa=function(a){var b=this,c=a.params,d=a.subscriber;a=a.context;var e=c.callbackFunc,f=c.args,h=c.scheduler,k=c.subject;if(!k){k=c.subject=new le;c=function(){var q=oc.apply(0,arguments),w=q.shift();w?b.add(h.schedule(jfa,0,{err:w,subject:k})):b.add(h.schedule(kfa,0,{value:1>=q.length?q[0]:q,subject:k}))};
try{e.apply(a,[].concat(u(f),[c]))}catch(q){this.add(h.schedule(jfa,0,{err:q,subject:k}))}}this.add(k.subscribe(d))},kfa=function(a){var b=a.subject;b.next(a.value);b.complete()},jfa=function(a){a.subject.error(a.err)},lfa=function(a){return!!a&&"function"!==typeof a.subscribe&&"function"===typeof a.then},nfa=function(a){return function(b){mfa(a,b).catch(function(c){return b.error(c)})}},mfa=function(a,b){var c,d,e;return me(function(f){switch(f.nextAddress){case 1:var h=a[Symbol.asyncIterator];c=
void 0!==h?h.call(a):new ofa(r(a));case 2:return ne(f,c.next(),5);case 5:d=f.yieldResult;if(d.done){f.jumpTo(4);break}e=d.value;b.next(e);f.jumpTo(2);break;case 4:b.complete(),oe(f)}})},se=function(a,b){if(!b.closed)return a instanceof fe?a.subscribe(b):pe(a)(b)},pfa=function(a,b){if(!a)throw Error("ya");return new fe(function(c){var d=new ae;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(h){h.done?c.complete():(c.next(h.value),
f.schedule())})}))}));return d})},qfa=function(a,b){if(!a)throw Error("ya");return new fe(function(c){var d=new ae,e;d.add(function(){e&&"function"===typeof e.return&&e.return()});d.add(b.schedule(function(){e=a[te]();d.add(b.schedule(function(){if(!c.closed){try{var f=e.next();var h=f.value;var k=f.done}catch(q){c.error(q);return}k?c.complete():(c.next(h),this.schedule())}}))}));return d})},rfa=function(a,b){return new fe(function(c){var d=new ae;d.add(b.schedule(function(){var e=a[ue]();d.add(e.subscribe({next:function(f){d.add(b.schedule(function(){return c.next(f)}))},
error:function(f){d.add(b.schedule(function(){return c.error(f)}))},complete:function(){d.add(b.schedule(function(){return c.complete()}))}}))}));return d})},sfa=function(a,b){return new fe(function(c){var d=new ae;d.add(b.schedule(function(){return a.then(function(e){d.add(b.schedule(function(){c.next(e);d.add(b.schedule(function(){return c.complete()}))}))},function(e){d.add(b.schedule(function(){return c.error(e)}))})}));return d})},ufa=function(a,b){if(null!=a){if(a&&"function"===typeof a[ue])return rfa(a,
b);if(lfa(a))return sfa(a,b);if(tfa(a))return Zea(a,b);if(a&&"function"===typeof a[te]||"string"===typeof a)return qfa(a,b);if(Symbol&&Symbol.asyncIterator&&"function"===typeof a[Symbol.asyncIterator])return pfa(a,b)}throw new TypeError("za`"+(null!==a&&typeof a||a));},ve=function(a,b){return b?ufa(a,b):a instanceof fe?a:new fe(pe(a))},we=function(a,b){var c=void 0===c?Infinity:c;if("function"===typeof b)return function(d){return d.pipe(we(function(e,f){return ve(a(e,f)).pipe(C(function(h,k){return b(e,
h,f,k)}))},c))};"number"===typeof b&&(c=b);return function(d){return ie(d,new vfa(a,c))}},xe=function(a){a=void 0===a?Infinity:a;return we(de,a)},ye=function(){return xe(1)(afa.apply(null,u(oc.apply(0,arguments))))},wfa=function(a){return new fe(function(b){try{var c=a()}catch(d){b.error(d);return}return ve(c).subscribe(b)})},zfa=function(a){return new fe(function(b){var c=a||xfa,d=c.now(),e=function(h){var k=c.now();b.next({timestamp:a?k:h,elapsed:k-d});b.closed||(f=yfa(e))};var f=yfa(e);return function(){return f.unsubscribe()}})},
ze=function(a,b){return new fe(function(c){var d=a.length;if(0===d)c.complete();else for(var e=Array(d),f=0,h=0,k={$jscomp$loop$prop$i$1601:0};k.$jscomp$loop$prop$i$1601<d;k={$jscomp$loop$prop$hasValue$1602:k.$jscomp$loop$prop$hasValue$1602,$jscomp$loop$prop$i$1601:k.$jscomp$loop$prop$i$1601},k.$jscomp$loop$prop$i$1601++){var q=ve(a[k.$jscomp$loop$prop$i$1601]);k.$jscomp$loop$prop$hasValue$1602=!1;c.add(q.subscribe({next:function(w){return function(y){w.$jscomp$loop$prop$hasValue$1602||(w.$jscomp$loop$prop$hasValue$1602=
!0,h++);e[w.$jscomp$loop$prop$i$1601]=y}}(k),error:function(w){return c.error(w)},complete:function(w){return function(){f++;f!==d&&w.$jscomp$loop$prop$hasValue$1602||(h===d&&c.next(b?b.reduce(function(y,E,I){return y[E]=e[I],y},{}):e),c.complete())}}(k)}))}})},Afa=function(a,b,c,d){Zd(c)&&(d=c,c=void 0);return d?Afa(a,b,c).pipe(C(function(e){return ke(e)?d.apply(null,u(e)):d(e)})):new fe(function(e){Bfa(a,b,function(f){1<arguments.length?e.next(Array.prototype.slice.call(arguments)):e.next(f)},e,
c)})},Bfa=function(a,b,c,d,e){if(a&&"function"===typeof a.addEventListener&&"function"===typeof a.removeEventListener){a.addEventListener(b,c,e);var f=function(){return a.removeEventListener(b,c,e)}}else if(a&&"function"===typeof a.on&&"function"===typeof a.off)a.on(b,c),f=function(){return a.off(b,c)};else if(a&&"function"===typeof a.addListener&&"function"===typeof a.removeListener)a.addListener(b,c),f=function(){return a.removeListener(b,c)};else if(a&&a.length)for(var h=0,k=a.length;h<k;h++)Bfa(a[h],
b,c,d,e);else throw new TypeError("Aa");d.add(f)},Cfa=function(a,b,c){return c?Cfa(a,b).pipe(C(function(d){return ke(d)?c.apply(null,u(d)):c(d)})):new fe(function(d){var e=function(){var h=oc.apply(0,arguments);return d.next(1===h.length?h[0]:h)};try{var f=a(e)}catch(h){d.error(h);return}if(Zd(b))return function(){return b(e,f)}})},Dfa=function(a){var b=a.subscriber,c=a.condition;if(!b.closed){if(a.needIterate)try{a.state=a.iterate(a.state)}catch(f){b.error(f);return}else a.needIterate=!0;if(c){try{var d=
c(a.state)}catch(f){b.error(f);return}if(!d){b.complete();return}if(b.closed)return}try{var e=a.resultSelector(a.state)}catch(f){b.error(f);return}if(!b.closed&&(b.next(e),!b.closed))return this.schedule(a)}},Efa=function(a){return!ke(a)&&0<=a-parseFloat(a)+1},Ffa=function(a){var b=a.subscriber,c=a.counter;a=a.period;b.next(c);this.schedule({subscriber:b,counter:c+1,period:a},a)},Ae=function(){},Gfa=function(){var a=oc.apply(0,arguments);if(0===a.length)return Be;var b=r(a),c=b.next().value,d=Ce(b);
return 1===a.length&&ke(c)?Gfa.apply(null,u(c)):new fe(function(e){var f=function(){return e.add(Gfa.apply(null,u(d)).subscribe(e))};return ve(c).subscribe({next:function(h){e.next(h)},error:f,complete:f})})},Hfa=function(a){var b=a.keys,c=a.index,d=a.subscriber,e=a.subscription;a=a.obj;if(!d.closed)if(c<b.length){var f=b[c];d.next([f,a[f]]);e.add(this.schedule({keys:b,index:c+1,subscriber:d,subscription:e,obj:a}))}else d.complete()},De=function(a,b){return function(c){return ie(c,new Ifa(a,b))}},
Jfa=function(a,b){function c(){return!c.pred.apply(c.thisArg,arguments)}c.pred=a;c.thisArg=b;return c},Kfa=function(a){var b=a.start,c=a.index,d=a.subscriber;c>=a.count?d.complete():(d.next(b),d.closed||(a.index=c+1,a.start=b+1,this.schedule(a)))},Lfa=function(a){return a instanceof Date&&!isNaN(a)},Nfa=function(a,b,c){a=void 0===a?0:a;var d=-1;null!=b&&(he(b)?c=b:d=b);he(c)||(c=Ee);return new fe(function(e){var f=Math.max(0,Lfa(a)?+a-c.now():a);return c.schedule(Mfa,f,{counter:0,period:d,subscriber:e})})},
Mfa=function(a){var b=a.period,c=a.subscriber,d=a.counter++;c.next(d);if(!c.closed){if(0>b)return c.complete();this.schedule(a,b)}},Fe=function(a){var b;return function(c){var d=void 0,e=void 0,f=null,h;b=null!=(h=b)?h:Ee;if(Lfa(a))var k=a;else if("number"===typeof a)d=a;else{k=a.first;d=a.each;e=a.with;b=a.scheduler||Ee;var q;f=null!=(q=a.meta)?q:null}var w;e=null!=(w=e)?w:Ofa;if(null==k&&null==d)throw new TypeError("Ca");return ie(c,new Pfa(k,d,e,b,f))}},Ofa=function(a){throw new Qfa(a);},Sfa=function(a){return a in
Rfa?(delete Rfa[a],!0):!1},Tfa=function(a){return function(b){setTimeout(a,void 0,b)}},Ge=function(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(function(){return a.onStable.emit(null)})}finally{a.isStable=!0}}},Vfa=function(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(sd,function(){a.fakeTopEventTask||
(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){a.lastRequestAnimationFrameId=-1;Ufa(a);a.isCheckStableRunning=!0;Ge(a);a.isCheckStableRunning=!1},void 0,function(){},function(){}));a.fakeTopEventTask.invoke()}),Ufa(a))},Xfa=function(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,h){try{return Wfa(a),b.invokeTask(d,e,f,h)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===e.type||a.shouldCoalesceRunChangeDetection)&&
Vfa(a),a._nesting--,Ge(a)}},onInvoke:function(b,c,d,e,f,h,k){try{return Wfa(a),b.invoke(d,e,f,h,k)}finally{a.shouldCoalesceRunChangeDetection&&Vfa(a),a._nesting--,Ge(a)}},onHasTask:function(b,c,d,e){b.hasTask(d,e);c===d&&("microTask"==e.change?(a._hasPendingMicrotasks=e.microTask,Ufa(a),Ge(a)):"macroTask"==e.change&&(a.hasPendingMacrotasks=e.macroTask))},onHandleError:function(b,c,d,e){b.handleError(d,e);a.runOutsideAngular(function(){return a.onError.emit(e)});return!1}})},Ufa=function(a){a.hasPendingMicrotasks=
a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId?!0:!1},Wfa=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},Zfa=function(a){return function(b){return ie(b,new Yfa(a))}},He=function(a,b){b=void 0===b?Ee:b;return Zfa(function(){return Nfa(a,b)})},aga=function(a){return function(b){return ie(b,new $fa(a))}},Ie=function(a){return function(b){var c=new bga(a);b=ie(b,c);return c.caught=b}},
cga=function(){var a=oc.apply(0,arguments);return function(b){var c=ye.apply(null,[b].concat(u(a)));if(b&&"function"===typeof b.lift)b=b.lift.call(c);else throw new TypeError("ua");return b}},ega=function(a){return function(b){return ie(b,new dga(a))}},Je=function(a,b){b=void 0===b?Ee:b;return function(c){return ie(c,new fga(a,b))}},hga=function(a){gga(a)},jga=function(a){a=void 0===a?null:a;return function(b){return ie(b,new iga(a))}},Ke=function(a,b){b=void 0===b?Ee:b;var c=Lfa(a)?+a-b.now():Math.abs(a);
return function(d){return ie(d,new kga(c,b))}},Le=function(a){return function(b){return ie(b,new lga(a))}},Me=function(){if(isNaN(1))throw new TypeError("Ha");return function(a){return ie(a,new mga)}},pga=function(a){a=void 0===a?nga:a;return function(b){return ie(b,new oga(a))}},nga=function(){return new Ne},rga=function(a){return function(b){return ie(b,new qga(a))}},Oe=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?De(function(e,f){return a(e,f,d)}):de,Me(),c?jga(b):
pga(function(){return new Ne}))}},tga=function(){return function(a){return ie(a,new sga)}},vga=function(){if(isNaN(1))throw new TypeError("Ha");return function(a){return ie(a,new uga)}},wga=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?De(function(e,f){return a(e,f,d)}):de,vga(),c?jga(b):pga(function(){return new Ne}))}},Pe=function(a){return function(b){return ie(b,new xga(a))}},Qe=function(a,b){var c=!1;2<=arguments.length&&(c=!0);return function(d){return ie(d,new yga(a,
b,c))}},Aga=function(a){return function(b){var c;"function"===typeof a?c=a:c=function(){return a};var d=Object.create(b,zga);d.source=b;d.subjectFactory=c;return d}},Bga=function(){var a=new Re(1,void 0,void 0);return function(b){return Aga(function(){return a})(b)}},Cga=function(){return new Se},Te=function(){return function(a){return je()(Aga(Cga)(a))}},Ue=function(a){var b;a&&"object"===typeof a?b=a:b={bufferSize:a,windowTime:void 0,refCount:!1,scheduler:void 0};return function(c){return ie(c,
Dga(b))}},Dga=function(a){var b=void 0===a.bufferSize?Infinity:a.bufferSize,c=void 0===a.windowTime?Infinity:a.windowTime,d=a.refCount,e=a.scheduler,f,h=0,k;return function(q){h++;if(f)var w=f.subscribe(this);else f=new Re(b,c,e),w=f.subscribe(this),k=q.subscribe({next:function(y){f.next(y)},error:function(y){var E=f;f=k=void 0;E.error(y)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);this.add(function(){h--;w.unsubscribe();d&&0===h&&k&&(k.unsubscribe(),f=k=void 0)})}},Ve=function(a){return function(b){return ie(b,
new Ega(a))}},We=function(){var a=oc.apply(0,arguments),b=a[a.length-1];return he(b)?(a.pop(),function(c){return ye(a,c,b)}):function(c){return ye(a,c)}},Xe=function(a){return function(b){return ie(b,new Fga(a))}},Gga=function(a){return Xe(function(){return a})},Ye=function(a){return function(b){return ie(b,new Hga(a))}},Jga=function(a){var b=void 0===b?!1:b;return function(c){return ie(c,new Iga(a,b))}},Ze=function(a,b){return function(c){return ie(c,new Kga(a,b))}},Nga=function(a){var b=void 0===
b?Lga:b;return function(c){return ie(c,new Mga(a,!!b.leading,!!b.trailing))}},$e=function(){var a=oc.apply(0,arguments);return function(b){var c;"function"===typeof a[a.length-1]&&(c=a.pop());return ie(b,new Oga(a,c))}},Rga=function(a){if(af&&!af.get(Pga,!1))throw new ic(400,"");af=a;a.get(bf);(a=a.get(Qga,null))&&a.forEach(function(b){return b()})},Uga=function(a,b,c){c=void 0===c?[]:c;var d="Platform: "+b,e=new jd(d);return function(f){f=void 0===f?[]:f;var h=Sga();if(!h||h.injector.get(Pga,!1))f=
[].concat(u(c),u(f),[{provide:e,useValue:!0}]),a?a(f):Rga(Tga(f,d));f=Sga();if(!f)throw new ic(401,"");return f}},Tga=function(a,b){a=void 0===a?[]:a;return cf({name:b,providers:[{provide:Vga,useValue:"platform"},{provide:Wga,useValue:function(){return af=null}}].concat(u(a))})},Sga=function(){var a,b;return null!=(b=null==(a=af)?void 0:a.get(bf))?b:null},Xga=function(a,b){var c;"noop"===a?c=new df:c=("zone.js"===a?void 0:a)||new ef({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(null==
b||!b.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!(null==b||!b.ngZoneRunCoalescing)});return c},Yga=function(a,b,c){try{var d=c();return Wd(d)?d.catch(function(e){b.runOutsideAngular(function(){return a.handleError(e)});throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a.handleError(e)}),e;}},Zga=function(a,b){Array.isArray(b)?a=b.reduce(Zga,a):a=Object.assign({},a,b);return a},ff=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)},gf=function(a){for(var b=Object.getPrototypeOf(a.type.prototype).constructor,
c=!0,d=[a];b;){if(null!==a.template)var e=b.\u0275cmp||b.\u0275dir;else{if(b.\u0275cmp)throw new ic(903,"");e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=$ga(a.inputs);f.declaredInputs=$ga(a.declaredInputs);f.outputs=$ga(a.outputs);(f=e.hostBindings)&&aha(a,f);f=e.viewQuery;var h=e.contentQueries;f&&bha(a,f);h&&cha(a,h);Yba(a.inputs,e.inputs);Yba(a.declaredInputs,e.declaredInputs);Yba(a.outputs,e.outputs);null!==e.template&&e.data.animation&&(f=a.data,f.animation=(f.animation||[]).concat(e.data.animation))}if(e=
e.features)for(f=0;f<e.length;f++)(h=e[f])&&h.ngInherit&&h(a),h===gf&&(c=!1)}b=Object.getPrototypeOf(b)}a=0;b=null;for(c=d.length-1;0<=c;c--)e=d[c],e.hostVars=a+=e.hostVars,e.hostAttrs=Rc(e.hostAttrs,b=Rc(b,e.hostAttrs))},$ga=function(a){return a===sc?{}:a===qc?[]:a},bha=function(a,b){var c=a.viewQuery;c?a.viewQuery=function(d,e){b(d,e);c(d,e)}:a.viewQuery=b},cha=function(a,b){var c=a.contentQueries;c?a.contentQueries=function(d,e,f){b(d,e,f);c(d,e,f)}:a.contentQueries=b},aha=function(a,b){var c=
a.hostBindings;c?a.hostBindings=function(d,e){b(d,e);c(d,e)}:a.hostBindings=b},jf=function(){if(!hf){var a=sd.Symbol;if(a&&a.iterator)hf=a.iterator;else{a=Object.getOwnPropertyNames(Map.prototype);for(var b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(hf=c)}}}return hf},eha=function(a){return dha(a)?Array.isArray(a)||!(a instanceof Map)&&jf()in a:!1},fha=function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(a=a[jf()]();!(c=
a.next()).done;)b(c.value)},dha=function(a){return null!==a&&("function"===typeof a||"object"===typeof a)},kf=function(a,b,c){return a[b]=c},lf=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},mf=function(a,b,c,d){c=lf(a,b,c);return lf(a,b+1,d)||c},gha=function(a,b,c,d,e){c=mf(a,b,c,d);return lf(a,b+2,e)||c},nf=function(a,b,c,d){var e=x(),f=Fc.bindingIndex++;lf(e,f,b)&&(f=Kc(),Sd(f,e,a,b,c,d));return nf},of=function(a,b,c,d){return lf(a,Fc.bindingIndex++,c)?b+hc(c)+d:Qd},hha=function(a,
b,c,d,e,f){a=mf(a,Fc.bindingIndex,c,e);Jc(2);return a?b+hc(c)+d+hc(e)+f:Qd},pf=function(a,b,c,d,e,f){var h=x();b=of(h,b,c,d);b!==Qd&&(c=Kc(),Sd(c,h,a,b,e,f));return pf},qf=function(a,b,c,d,e,f,h,k){var q=x();b=hha(q,b,c,d,e,f);b!==Qd&&(c=Kc(),Sd(c,q,a,b,h,k));return qf},iha=function(a,b,c,d,e,f,h,k,q,w){var y=x(),E=gha(y,Fc.bindingIndex,c,e,h);Jc(3);b=E?b+hc(c)+d+hc(e)+f+hc(h)+k:Qd;b!==Qd&&(c=Kc(),Sd(c,y,a,b,q,w));return iha},D=function(a,b,c){var d=x(),e=Fc.bindingIndex++;if(lf(d,e,b)){e=Fc.tView;
var f=Kc();Rd(e,f,d,a,b,d[11],c,!1)}return D},jha=function(a,b,c,d,e){e=e?"class":"style";wea(a,c,b.inputs[e],e,d)},kha=function(a,b,c,d){for(var e=a[c+1],f=null===b,h=d?e>>17&32767:(e&131068)>>2,k=!1;0!==h&&(!1===k||f);){var q=a[h+1],w=a[h],y=b;if(null===w||null==y||(Array.isArray(w)?w[1]:w)===y||Array.isArray(w)&&"string"===typeof y&&0<=gd(w,y))k=!0,a[h+1]=d?q|1:q|2;h=d?q>>17&32767:(q&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},pha=function(a,b){var c=lha;if(c===b)return-1;for(b=mha=b;b<c&&32<a.charCodeAt(b);)b++;
b=nha=b;return oha(a,b,c)},oha=function(a,b,c){for(;b<c&&32>=a.charCodeAt(b);)b++;return b},rf=function(a,b,c){qha(a,b,c,!1);return rf},sf=function(a,b){qha(a,b,null,!0);return sf},qha=function(a,b,c,d){var e=x(),f=Fc.tView,h=Jc(2);f.firstUpdatePass&&rha(f,a,h,d);if(b!==Qd&&lf(e,h,b)){var k=f.data[Fc.selectedIndex],q=e[11];null!=b&&("string"===typeof c?b+=c:"object"===typeof b&&(b=$b(Bd(b))));sha(f,k,e,q,a,e[h+1]=b,d,h)}},tf=function(a){var b=Fc.tView,c=Jc(2);b.firstUpdatePass&&rha(b,null,c,!0);var d=
x();if(a!==Qd&&lf(d,c,a)){var e=b.data[Fc.selectedIndex];if(0===(e.flags&16)||c>=b.expandoStartIndex){var f=d[11],h=d[c+1];if(null==a||""===a)var k=qc;else if(k=[],a=Bd(a),Array.isArray(a))for(var q=0;q<a.length;q++)hd(k,a[q],!0);else if("object"===typeof a)for(q in a)a.hasOwnProperty(q)&&hd(k,q,a[q]);else if("string"===typeof a)for(nha=mha=0,lha=a.length,q=pha(a,oha(a,0,lha));0<=q;q=pha(a,q))hd(k,a.substring(mha,nha),!0);k=d[c+1]=k;h===Qd&&(h=qc);q=a=0;for(var w=0<h.length?h[0]:null,y=0<k.length?
k[0]:null;null!==w||null!==y;){var E=a<h.length?h[a+1]:void 0,I=q<k.length?k[q+1]:void 0,N=null,L=void 0;w===y?(a+=2,q+=2,E!==I&&(N=y,L=I)):null===y||null!==w&&w<y?(a+=2,N=w):(q+=2,N=y,L=I);null!==N&&sha(b,e,d,f,N,L,!0,c);w=a<h.length?h[a]:null;y=q<k.length?k[q]:null}}else c=e.classesWithoutHost,null!==c&&(a=Zba(c,a?a:"")),jha(b,e,d,a,!0)}},rha=function(a,b,c,d){var e=a.data;if(null===e[c+1]){var f=e[Fc.selectedIndex];a=c>=a.expandoStartIndex;0!==(f.flags&(d?16:32))&&null===b&&!a&&(b=!1);var h=Fca(e),
k=d?f.residualClasses:f.residualStyles;if(null===h)0===(d?f.classBindings:f.styleBindings)&&(b=tha(null,e,f,b,d),b=uf(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(-1===q||e[q]!==h)if(b=tha(h,e,f,b,d),null===k)h=d?f.classBindings:f.styleBindings,h=0!==(h&131068)>>2?e[h>>17&32767]:void 0,void 0!==h&&Array.isArray(h)&&(h=tha(null,e,f,h[1],d),h=uf(h,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=h);else{k=void 0;h=f.directiveEnd;for(q=1+f.directiveStylingLast;q<h;q++)k=uf(k,
e[q].hostAttrs,d);k=uf(k,f.attrs,d)}}void 0!==k&&(d?f.residualClasses=k:f.residualStyles=k);q=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=q;var w=!1;if(Array.isArray(q)){if(h=q[1],null===h||0<gd(q,h))w=!0}else h=q;a?0!==k?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,0!==a&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,0!==b&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,0===b?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);w&&(e[c+1]=e[c+1]|2);kha(e,h,c,!0);
kha(e,h,c,!1);a=d?f.residualClasses:f.residualStyles;null!=a&&"string"==typeof h&&0<=gd(a,h)&&(e[c+1]=e[c+1]|1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},tha=function(a,b,c,d,e){var f=c.directiveEnd,h=c.directiveStylingLast;for(-1===h?h=c.directiveStart:h++;h<f;){var k=b[h];d=uf(d,k.hostAttrs,e);if(k===a)break;h++}null!==a&&(c.directiveStylingLast=h);return d},uf=function(a,b,c){var d=c?1:2,e=-1;if(null!==b)for(var f=0;f<b.length;f++){var h=b[f];"number"===typeof h?e=h:e===d&&(Array.isArray(a)||
(a=void 0===a?[]:["",a]),hd(a,h,c?!0:b[++f]))}return void 0===a?null:a},sha=function(a,b,c,d,e,f,h,k){if(b.type&3){a=a.data;var q=a[k+1];if(void 0===(1===(q&1)?uha(a,b,c,e,(q&131068)>>2,h):void 0))if(void 0!==f||2==(q&2)&&(f=uha(a,null,c,e,k,h)),b=Bc(c[Fc.selectedIndex]),c=!!d.listen,h)f?c?d.addClass(b,e):b.classList.add(e):c?d.removeClass(b,e):b.classList.remove(e);else if(h=-1===e.indexOf("-")?void 0:2,null==f)c?d.removeStyle(b,e,h):b.style.removeProperty(e);else{if(k="string"===typeof f?f.endsWith("!important"):
!1)f=f.slice(0,-10),h|=1;c?d.setStyle(b,e,f,h):b.style.setProperty(e,f,k?"important":"")}}},uha=function(a,b,c,d,e,f){for(var h=null===b,k=void 0;0<e;){var q=a[e],w=Array.isArray(q),y=w?q[1]:q,E=null===y,I=c[e+1];I===Qd&&(I=E?qc:void 0);y=E?bda(I,d):y===d?I:void 0;w&&void 0===y&&(y=bda(q,d));if(void 0!==y&&(k=y,h))return k;e=a[e+1];e=h?e>>17&32767:(e&131068)>>2}null!==b&&(a=f?b.residualClasses:b.residualStyles,null!=a&&(k=bda(a,d)));return k},vf=function(a,b,c){a=of(x(),a,b,c);tf(a)},F=function(a,
b){b=void 0===b?0:b;var c=x();return null===c?t(a,b):Xca(Gc(),c,bc(a),b)},wf=function(){throw Error("Ia");},G=function(a,b,c,d){var e=x(),f=Fc.tView,h=22+a;a=e[11];var k=e[h]=Dda(a,b,Fc.currentNamespace);if(f.firstCreatePass){var q=f.consts;c=Ec(q,c);b=Md(f,h,2,b,c);Aea(f,e,b,Ec(q,d));null!==b.attrs&&Ud(b,b.attrs,!1);null!==b.mergedAttrs&&Ud(b,b.mergedAttrs,!0);null!==f.queries&&f.queries.elementStart(f,b)}else b=f.data[h];Hc(b,!0);q=b.mergedAttrs;null!==q&&Qc(a,k,q);q=b.classes;null!==q&&Lda(a,k,
q);q=b.styles;null!==q&&(a.listen?a.setAttribute(k,"style",q):k.style.cssText=q);64!==(b.flags&64)&&yd(f,e,k,b);0===Fc.elementDepthCount&&pd(k,e);Fc.elementDepthCount++;1===(b.flags&1)&&(rea(f,e,b),pea(f,b,e));null!==d&&sea(e,b);return G},H=function(){var a=Gc();Fc.isParent?Fc.isParent=!1:(a=a.parent,Hc(a,!1));var b=a;Fc.elementDepthCount--;var c=Fc.tView;c.firstCreatePass&&(Nc(c,a),0!==(a.flags&8)&&c.queries.elementEnd(a));null!=b.classesWithoutHost&&0!==(b.flags&16)&&jha(c,b,x(),b.classesWithoutHost,
!0);null!=b.stylesWithoutHost&&0!==(b.flags&32)&&jha(c,b,x(),b.stylesWithoutHost,!1);return H},J=function(a,b,c,d){G(a,b,c,d);H();return J},xf=function(a,b,c){var d=x(),e=Fc.tView;a+=22;if(e.firstCreatePass){var f=e.consts;var h=Ec(f,b);b=Md(e,a,8,"ng-container",h);null!==h&&Ud(b,h,!0);f=Ec(f,c);Aea(e,d,b,f);null!==e.queries&&e.queries.elementStart(e,b);f=b}else f=e.data[a];Hc(f,!0);a=d[a]=d[11].createComment("");yd(e,d,a,f);pd(a,d);1===(f.flags&1)&&(rea(e,d,f),pea(e,f,d));null!=c&&sea(d,f);return xf},
yf=function(){var a=Gc(),b=Fc.tView;Fc.isParent?Fc.isParent=!1:(a=a.parent,Hc(a,!1));b.firstCreatePass&&(Nc(b,a),0!==(a.flags&8)&&b.queries.elementEnd(a));return yf},zf=function(a,b,c){xf(a,b,c);yf();return zf},Af=function(a,b,c){var d=x(),e=Fc.bindingIndex++;if(lf(d,e,b)){e=Fc.tView;var f=Kc();Rd(e,f,d,a,b,d[11],c,!0)}return Af},Bf=function(a,b,c){var d=x(),e=Fc.bindingIndex++;if(lf(d,e,b)){e=Fc.tView;var f=Kc(),h=Dea(Fca(e.data),f,d);Rd(e,f,d,a,b,h,c,!0)}return Bf},K=function(a,b,c,d){var e=x();
vha(Fc.tView,e,e[11],Gc(),a,b,!!c,d);return K},wha=function(a,b){var c=Gc(),d=x(),e=Fc.tView,f=Dea(Fca(e.data),c,d);vha(e,d,f,c,a,b,!1);return wha},xha=function(a,b,c,d){a=a.cleanup;if(null!=a)for(var e=0;e<a.length-1;e+=2){var f=a[e];if(f===c&&a[e+1]===d)return b=b[7],c=a[e+2],b.length>c?b[c]:null;"string"===typeof f&&(e+=2)}return null},vha=function(a,b,c,d,e,f,h,k){var q=1===(d.flags&1),w=a.firstCreatePass&&(a.cleanup||(a.cleanup=[])),y=b[7]||(b[7]=[]),E=!0;if(d.type&3||k){var I=Cc(d,b),N=k?k(I):
I;I=y.length;var L=k?function(Y){return k(Bc(Y[d.index]))}:d.index;c.listen?(h=null,!k&&q&&(h=xha(a,b,e,d.index)),null!==h?((h.__ngLastListenerFn__||h).__ngNextListenerFn__=f,h.__ngLastListenerFn__=f,E=!1):(f=yha(d,b,f,!1),a=c.listen(N,e,f),y.push(f,a),w&&w.push(e,L,I,I+1))):(f=yha(d,b,f,!0),N.addEventListener(e,f,h),y.push(f),w&&w.push(e,L,I,h))}else f=yha(d,b,f,!1);a=d.outputs;var S;if(E&&null!==a&&(S=a[e])&&(E=S.length))for(a=0;a<E;a+=2)c=b[S[a]][S[a+1]].subscribe(f),q=y.length,y.push(f,c),w&&
w.push(e,d.index,q,-(q+1))},zha=function(a,b,c){try{return!1!==b(c)}catch(d){return Eea(a,d),!1}finally{}},yha=function(a,b,c,d){return function h(f){if(f===Function)return c;var k=a.flags&2?Dc(a.index,b):b;0===(b[2]&32)&&Cea(k);k=zha(b,c,f);for(var q=h.__ngNextListenerFn__;q;)k=zha(b,q,f)&&k,q=q.__ngNextListenerFn__;d&&!1===k&&(f.preventDefault(),f.returnValue=!1);return k}},M=function(a){var b=Fc;a=void 0===a?1:a;for(var c=Fc.contextLView;0<a;)c=c[15],a--;return(b.contextLView=c)[8]},Cf=function(a){var b=
x()[16][6];if(!b.projection){var c=b.projection=ada(a?a.length:1,null),d=c.slice();for(b=b.child;null!==b;){if(a)a:{var e=b;var f=a,h=null;b:{var k=e.attrs;if(null!=k){var q=k.indexOf(5);if(0===(q&1)){k=k[q+1];break b}}k=null}for(q=0;q<f.length;q++){var w=f[q];if("*"===w)h=q;else{if(null===k)w=Oda(e,w,!0);else b:{var y=0;c:for(;y<w.length;y++){var E=w[y];if(k.length===E.length){for(var I=0;I<k.length;I++)if(k[I]!==E[I])continue c;w=!0;break b}}w=!1}if(w){e=q;break a}}}e=h}else e=0;null!==e&&(d[e]?
d[e].projectionNext=b:c[e]=b,d[e]=b);b=b.next}}},Df=function(a,b,c){b=void 0===b?0:b;var d=x(),e=Fc.tView;a=Md(e,22+a,16,null,c||null);null===a.projection&&(a.projection=b);Fc.isParent=!1;64!==(a.flags&64)&&(b=d[11],e=Ida(e,a.parent,d),c=a.parent||d[6],c=c.type&40?Cc(c,d):null,Kda(b,0,d,a,e,c))},Ff=function(a,b,c){Ef(a,"",b,"",c);return Ff},Ef=function(a,b,c,d,e){var f=x();b=of(f,b,c,d);b!==Qd&&(c=Fc.tView,d=Kc(),Rd(c,d,f,a,b,f[11],e,!1));return Ef},Gf=function(a,b,c,d,e,f,h){var k=x();b=hha(k,b,
c,d,e,f);b!==Qd&&(c=Fc.tView,d=Kc(),Rd(c,d,k,a,b,k[11],h,!1));return Gf},Hf=function(a){return Fc.contextLView[22+a]},O=function(a,b,c,d,e,f,h,k){var q=x(),w=Fc.tView;a+=22;if(w.firstCreatePass){var y=w.consts;e=Md(w,a,4,e||null,Ec(y,f));Aea(w,q,e,Ec(y,h));Nc(w,e);b=e.tViews=tea(2,e,b,c,d,w.directiveRegistry,w.pipeRegistry,null,w.schemas,y);null!==w.queries&&(w.queries.template(w,e),b.queries=w.queries.embeddedTView(e));b=e}else b=w.data[a];Hc(b,!1);c=q[11].createComment("");yd(w,q,c,b);pd(c,q);Pd(q,
q[a]=[c,!0,!1,q,null,0,b,c,null,null]);1===(b.flags&1)&&rea(w,q,b);null!=h&&sea(q,b,k)},P=function(a,b){b=void 0===b?"":b;var c=x(),d=Fc.tView,e=a+22;a=d.firstCreatePass?Md(d,e,1,b,null):d.data[e];var f=c[11];b=c[e]=f.listen?f.createText(b):f.createTextNode(b);yd(d,c,b,a);Hc(a,!1)},Jf=function(a){If("",a,"");return Jf},If=function(a,b,c){var d=x();a=of(d,a,b,c);a!==Qd&&Fea(d,a);return If},Kf=function(a,b,c,d,e){var f=x();a=hha(f,a,b,c,d,e);a!==Qd&&Fea(f,a);return Kf},Aha=function(a,b,c,d,e,f,h){var k=
x(),q=gha(k,Fc.bindingIndex,b,d,f);Jc(3);a=q?a+hc(b)+c+hc(d)+e+hc(f)+h:Qd;a!==Qd&&Fea(k,a);return Aha},Bha=function(a,b,c,d,e){a=bc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)Bha(a[f],b,c,d,e);else{f=Fc.tView;var h=x(),k=md(a)?a:bc(a.provide),q=qda(a),w=Gc(),y=w.providerIndexes&1048575,E=w.directiveStart,I=w.providerIndexes>>20;if(md(a)||!a.multi)d=new ad(q,e,F),q=Cha(k,b,e?y:y+I,E),-1===q?(q=Wc(w,h),Vc(q,f,k),Dha(f,a,b.length),b.push(k),w.directiveStart++,w.directiveEnd++,e&&(w.providerIndexes+=
1048576),c.push(d),h.push(d)):(c[q]=d,h[q]=d);else{E=Cha(k,b,y+I,E);y=Cha(k,b,y,y+I);var N=0<=E&&c[E];I=0<=y&&c[y];e&&!I||!e&&!N?(E=Wc(w,h),Vc(E,f,k),E=c.length,N=new ad(e?Eha:Fha,e,F),N.multi=[],N.index=E,N.componentProviders=0,d&&!e&&N.componentProviders++,N.multi.push(q),!e&&I&&(c[y].providerFactory=N),Dha(f,a,b.length,0),b.push(k),w.directiveStart++,w.directiveEnd++,e&&(w.providerIndexes+=1048576),c.push(N),h.push(N)):(b=c[e?y:E],!e&&d&&b.componentProviders++,b=b.multi.push(q)-1,Dha(f,a,-1<E?
E:y,b));!e&&d&&I&&c[y].componentProviders++}}},Dha=function(a,b,c,d){var e=md(b),f=!!b.useClass;if(e||f)if(f=(f?bc(b.useClass):b).prototype.ngOnDestroy)a=a.destroyHooks||(a.destroyHooks=[]),!e&&b.multi?(b=a.indexOf(c),-1===b?a.push(c,[d,f]):a[b+1].push(d,f)):a.push(c,f)},Cha=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},Fha=function(){return Gha(this.multi,[])},Eha=function(a,b,c,d){b=this.multi;if(this.providerFactory){var e=this.providerFactory.componentProviders;d=$c(c,c[1],this.providerFactory.index,
d);c=d.slice(0,e);Gha(b,c);for(b=e;b<d.length;b++)c.push(d[b])}else c=[],Gha(b,c);return c},Gha=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Lf=function(a){var b=void 0===b?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=Fc.tView;f.firstCreatePass&&(d=null!==d.template,Bha(b,f.data,f.blueprint,d,!0),Bha(e,f.data,f.blueprint,d,!1))}}},Mf=function(a,b){a=Ic()+a;var c=x();return c[a]===Qd?kf(c,a,b()):c[a]},Nf=function(a,b,c){return Hha(x(),Ic(),a,b,
c)},Of=function(a,b,c,d){return Iha(x(),Ic(),a,b,c,d)},Pf=function(a,b,c,d){return Jha(x(),Ic(),2,a,b,c,d)},Lha=function(a,b,c,d,e,f){var h=Kha,k=Ic()+8,q=x();var w=mf(q,k,a,b);w=mf(q,k+2,c,d)||w;return mf(q,k+4,e,f)||w?kf(q,k+6,h(a,b,c,d,e,f)):q[k+6]},Qf=function(a,b){a=a[b];return a===Qd?void 0:a},Hha=function(a,b,c,d,e,f){b+=c;return lf(a,b,e)?kf(a,b+1,f?d.call(f,e):d(e)):Qf(a,b+1)},Iha=function(a,b,c,d,e,f,h){b+=c;return mf(a,b,e,f)?kf(a,b+2,h?d.call(h,e,f):d(e,f)):Qf(a,b+2)},Jha=function(a,b,
c,d,e,f,h,k){b+=c;return gha(a,b,e,f,h)?kf(a,b+3,k?d.call(k,e,f,h):d(e,f,h)):Qf(a,b+3)},Q=function(a,b){var c=Fc.tView;a+=22;if(c.firstCreatePass){a:{var d=c.pipeRegistry;if(d)for(var e=d.length-1;0<=e;e--){var f=d[e];if(b===f.name){b=f;break a}}b=void 0}c.data[a]=b;b.onDestroy&&(c.destroyHooks||(c.destroyHooks=[])).push(a,b.onDestroy)}else b=c.data[a];b=b.factory||(b.factory=xc(b.type));d=jc(F);try{var h=Tc(!1),k=b();Tc(h);var q=x();a>=c.data.length&&(c.data[a]=null,c.blueprint[a]=null);q[a]=k}finally{jc(d)}},
R=function(a,b,c){a+=22;var d=x(),e=d[a];return d[1].data[a].pure?Hha(d,Ic(),b,e.transform,c,e):e.transform(c)},Rf=function(a,b,c,d){a+=22;var e=x(),f=e[a];return e[1].data[a].pure?Iha(e,Ic(),b,f.transform,c,d,f):f.transform(c,d)},Mha=function(){return this._results[jf()]()},Nha=function(){return Sf(Gc(),x())},Sf=function(a,b){return a.type&4?new Tf(b,a,od(a,b)):null},Pha=function(){return Oha(Gc(),x())},Qha=function(a){return a[8]||(a[8]=[])},Oha=function(a,b){var c=b[a.index];if(!vc(c)){if(a.type&
8)var d=Bc(c);else{var e=b[11];d=e.createComment("");var f=Cc(a,b),h=Cda(e,f);vd(e,h,d,e.listen?e.nextSibling(f):f.nextSibling,!1)}b[a.index]=c=[c,!0,!1,b,null,0,a,d,null,null];Pd(b,c)}return new Uf(c,a,b)},Rha=function(a,b,c,d){d=b[19].queries[d];if(null===d.matches){a=a.data;for(var e=c.matches,f=[],h=0;h<e.length;h+=2){var k=e[h];if(0>k)f.push(null);else{var q=f,w=q.push,y=b,E=a[k],I=e[h+1];k=c.metadata.read;-1===I?(k=E,y=k.type&11?od(k,y):k.type&4?Sf(k,y):null):-2===I?y=k===nd?od(E,y):k===Vf?
Sf(E,y):k===Wf?Oha(E,y):void 0:y=$c(y,y[1],I,E);w.call(q,y)}}d.matches=f}return d.matches},Sha=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(null!==f)for(a=Rha(a,b,e,c),c=0;c<f.length;c+=2){var h=f[c];if(0<h)d.push(a[c/2]);else{e=f[c+1];h=b[-h];for(var k=10;k<h.length;k++){var q=h[k];q[17]===q[3]&&Sha(q[1],q,e,d)}if(null!==h[9])for(h=h[9],k=0;k<h.length;k++)q=h[k],Sha(q[1],q,e,d)}}return d},Yf=function(a){var b=x(),c=Fc.tView,d=Fc.currentQueryIndex;Fc.currentQueryIndex=d+1;var e=c.queries.queries[d];
return a.dirty&&4===(b[2]&4)===(2===(e.metadata.flags&2))?(null===e.matches?a.reset([]):(b=e.crossesNgTemplate?Sha(c,b,d,[]):Rha(c,b,e,d),a.reset(b,uda),Xf(a)),!0):!1},Zf=function(a,b,c){var d=Fc.tView;d.firstCreatePass&&(Tha(d,new Uha(a,b,c),-1),2===(b&2)&&(d.staticViewQueries=!0));Vha(d,b)},$f=function(a,b,c,d){var e=Fc.tView;e.firstCreatePass&&(Tha(e,new Uha(b,c,d),Gc().index),b=e.contentQueries||(e.contentQueries=[]),a!==(b.length?b[b.length-1]:-1)&&b.push(e.queries.length-1,a),2===(c&2)&&(e.staticContentQueries=
!0));Vha(e,c)},ag=function(){return x()[19].queries[Fc.currentQueryIndex].queryList},Vha=function(a,b){var c=x();b=new bg(4===(b&4));uea(a,c,b,b.destroy);null===c[19]&&(c[19]=new cg);c[19].queries.push(new dg(b))},Tha=function(a,b,c){null===a.queries&&(a.queries=new eg);a.queries.track(new fg(b,c))},gg=function(a,b){return Sf(a,b)},Wha=function(a){var b=Gc(),c=x();2===(b.flags&2)&&16!==(a&16)?(a=Dc(b.index,c),a=new hg(a,a)):a=b.type&47?new hg(c[16],c):null;return a},Xha=function(a,b,c){a=a.previousIndex;
if(null===a)return a;var d=0;c&&a<c.length&&(d=c[a]);return a+b+d},ig=function(a){return"boolean"===typeof a?a:null!=a&&"false"!==a},Yha=function(a,b){if(b&&!b.createEmbeddedView)throw Error("Ja`"+a+"`"+$b(b));},Zha=function(a,b,c){a=Xd(a);b=jg([a[1],a[2]],b);return jg(b,c)},$ha=function(a,b,c){a=Xd(a);b=jg([a[3],a[4]],b);return jg(b,c)},aia=function(a,b,c){a=Xd(a);b=jg([a[5],a[6]],b);return jg(b,c)},bia=function(a,b){a=Xd(a)[7];return jg(a,b)},kg=function(a,b){a=Xd(a);return jg(a[10],b)},lg=function(a,
b){a=Xd(a);return jg(a[11],b)},mg=function(a,b){a=Xd(a)[12];return jg(a,b)},ng=function(a,b){a=Xd(a);var c=a[13][b];if("undefined"===typeof c){if(12===b)return a[13][0];if(13===b)return a[13][1]}return c},cia=function(a){if(!a[21])throw Error("La`"+a[0]);},eia=function(a){a=Xd(a);cia(a);return(a[21][2]||[]).map(function(b){return"string"===typeof b?dia(b):[dia(b[0]),dia(b[1])]})},fia=function(a,b,c){a=Xd(a);cia(a);b=jg([a[21][0],a[21][1]],b)||[];return jg(b,c)||[]},jg=function(a,b){for(;-1<b;b--)if("undefined"!==
typeof a[b])return a[b];throw Error("Ma");},dia=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},og=function(){return new ic(2100,"")},mia=function(a,b,c,d){var e=gia(a);b=pg(c,b)||b;a=[];for(var f;b;)if(f=hia.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);break}var h=e.getTimezoneOffset();d&&(h=iia(d,h),e=jia(e,d));var k="";a.forEach(function(q){a:if(kia[q])var w=kia[q];else{switch(q){case "G":case "GG":case "GGG":w=qg(3,1);break;
case "GGGG":w=qg(3,2);break;case "GGGGG":w=qg(3,0);break;case "y":w=rg(0,1,0,!1,!0);break;case "yy":w=rg(0,2,0,!0,!0);break;case "yyy":w=rg(0,3,0,!1,!0);break;case "yyyy":w=rg(0,4,0,!1,!0);break;case "Y":w=sg(1);break;case "YY":w=sg(2,!0);break;case "YYY":w=sg(3);break;case "YYYY":w=sg(4);break;case "M":case "L":w=rg(1,1,1);break;case "MM":case "LL":w=rg(1,2,1);break;case "MMM":w=qg(2,1);break;case "MMMM":w=qg(2,2);break;case "MMMMM":w=qg(2,0);break;case "LLL":w=qg(2,1,1);break;case "LLLL":w=qg(2,
2,1);break;case "LLLLL":w=qg(2,0,1);break;case "w":w=lia(1);break;case "ww":w=lia(2);break;case "W":w=lia(1,!0);break;case "d":w=rg(2,1);break;case "dd":w=rg(2,2);break;case "c":case "cc":w=rg(7,1);break;case "ccc":w=qg(1,1,1);break;case "cccc":w=qg(1,2,1);break;case "ccccc":w=qg(1,0,1);break;case "cccccc":w=qg(1,3,1);break;case "E":case "EE":case "EEE":w=qg(1,1);break;case "EEEE":w=qg(1,2);break;case "EEEEE":w=qg(1,0);break;case "EEEEEE":w=qg(1,3);break;case "a":case "aa":case "aaa":w=qg(0,1);break;
case "aaaa":w=qg(0,2);break;case "aaaaa":w=qg(0,0);break;case "b":case "bb":case "bbb":w=qg(0,1,1,!0);break;case "bbbb":w=qg(0,2,1,!0);break;case "bbbbb":w=qg(0,0,1,!0);break;case "B":case "BB":case "BBB":w=qg(0,1,0,!0);break;case "BBBB":w=qg(0,2,0,!0);break;case "BBBBB":w=qg(0,0,0,!0);break;case "h":w=rg(3,1,-12);break;case "hh":w=rg(3,2,-12);break;case "H":w=rg(3,1);break;case "HH":w=rg(3,2);break;case "m":w=rg(4,1);break;case "mm":w=rg(4,2);break;case "s":w=rg(5,1);break;case "ss":w=rg(5,2);break;
case "S":w=rg(6,1);break;case "SS":w=rg(6,2);break;case "SSS":w=rg(6,3);break;case "Z":case "ZZ":case "ZZZ":w=tg(0);break;case "ZZZZZ":w=tg(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":w=tg(1);break;case "OOOO":case "ZZZZ":case "zzzz":w=tg(2);break;default:w=null;break a}kia[q]=w}k+=w?w(e,c,h):"''"===q?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},ug=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},pg=function(a,b){var c=Xd(a)[0];
vg[c]=vg[c]||{};if(vg[c][b])return vg[c][b];var d="";switch(b){case "shortDate":d=kg(a,0);break;case "mediumDate":d=kg(a,1);break;case "longDate":d=kg(a,2);break;case "fullDate":d=kg(a,3);break;case "shortTime":d=lg(a,0);break;case "mediumTime":d=lg(a,1);break;case "longTime":d=lg(a,2);break;case "fullTime":d=lg(a,3);break;case "short":d=pg(a,"shortTime");var e=pg(a,"shortDate");d=wg(mg(a,0),[d,e]);break;case "medium":d=pg(a,"mediumTime");e=pg(a,"mediumDate");d=wg(mg(a,1),[d,e]);break;case "long":d=
pg(a,"longTime");e=pg(a,"longDate");d=wg(mg(a,2),[d,e]);break;case "full":d=pg(a,"fullTime"),e=pg(a,"fullDate"),d=wg(mg(a,3),[d,e])}d&&(vg[c][b]=d);return d},wg=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return null!=b&&d in b?b[d]:c}));return a},xg=function(a,b,c,d,e){var f="";if(0>a||e&&0>=a)e?a=-a+1:(a=-a,f=void 0===c?"-":c);for(a=String(a);a.length<b;)a="0"+a;d&&(a=a.slice(a.length-b));return f+a},rg=function(a,b,c,d,e){c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!1:e;return function(f,
h){f=nia(a,f);if(0<c||f>-c)f+=c;if(3===a)0===f&&-12===c&&(f=12);else if(6===a)return xg(f,3).substring(0,b);h=ng(h,5);return xg(f,b,h,d,e)}},nia=function(a,b){switch(a){case 0:return b.getFullYear();case 1:return b.getMonth();case 2:return b.getDate();case 3:return b.getHours();case 4:return b.getMinutes();case 5:return b.getSeconds();case 6:return b.getMilliseconds();case 7:return b.getDay();default:throw Error("Na`"+a);}},qg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;return function(e,
f){return oia(e,f,a,b,c,d)}},oia=function(a,b,c,d,e,f){switch(c){case 2:return aia(b,e,d)[a.getMonth()];case 1:return $ha(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=eia(b),a=fia(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var w=r(q);q=w.next().value;w=w.next().value;var y=h>=q.hours&&k>=q.minutes,E=h<w.hours||h===w.hours&&k<w.minutes;if(q.hours<w.hours){if(y&&E)return!0}else if(y||E)return!0}else if(q.hours===h&&q.minutes===k)return!0;return!1}),-1!==c)?a[c]:
Zha(b,e,d)[12>h?0:1];case 3:return bia(b,d)[0>=a.getFullYear()?0:1];default:throw Error("Oa`"+c);}},tg=function(a){return function(b,c,d){b=-1*d;c=ng(c,5);var e=0<b?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(0<=b?"+":"")+xg(e,2,c)+xg(Math.abs(b%60),2,c);case 1:return"GMT"+(0<=b?"+":"")+xg(e,1,c);case 2:return"GMT"+(0<=b?"+":"")+xg(e,2,c)+":"+xg(Math.abs(b%60),2,c);case 3:return 0===d?"Z":(0<=b?"+":"")+xg(e,2,c)+":"+xg(Math.abs(b%60),2,c);default:throw Error("Pa`"+a);}}},pia=function(a){return ug(a.getFullYear(),
a.getMonth(),a.getDate()+(4-a.getDay()))},lia=function(a,b){b=void 0===b?!1:b;return function(c,d){if(b){var e=(new Date(c.getFullYear(),c.getMonth(),1)).getDay()-1;c=c.getDate();e=1+Math.floor((c+e)/7)}else{e=pia(c);c=e.getFullYear();var f=ug(c,0,1).getDay();c=ug(c,0,1+(4>=f?4:11)-f);e=1+Math.round((e.getTime()-c.getTime())/6048E5)}return xg(e,a,ng(d,5))}},sg=function(a,b){b=void 0===b?!1:b;return function(c,d){c=pia(c).getFullYear();return xg(c,a,ng(d,5),b)}},iia=function(a,b){a=a.replace(/:/g,
"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},jia=function(a,b){var c=a.getTimezoneOffset();b=iia(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},gia=function(a){if(a instanceof Date&&!isNaN(a.valueOf()))return a;if("number"===typeof a&&!isNaN(a))return new Date(a);if("string"===typeof a){a=a.trim();if(/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(a)){var b=r(a.split("-").map(function(d){return+d}));a=b.next().value;var c=b.next().value;c=void 0===c?1:
c;b=b.next().value;return ug(a,c-1,void 0===b?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(qia))return ria(b)}b=new Date(a);if(!(b instanceof Date)||isNaN(b.valueOf()))throw Error("Qa`"+a);return b},ria=function(a){var b=new Date(0),c=0,d=0,e=a[8]?b.setUTCFullYear:b.setFullYear,f=a[8]?b.setUTCHours:b.setHours;a[9]&&(c=Number(a[9]+a[10]),d=Number(a[9]+a[11]));e.call(b,Number(a[1]),Number(a[2])-1,Number(a[3]));f.call(b,Number(a[4]||0)-c,Number(a[5]||0)-d,Number(a[6]||0),Math.floor(1E3*
parseFloat("0."+(a[7]||0))));return b},sia=function(a,b){a=a.key;b=b.key;if(a===b)return 0;if(void 0===a)return 1;if(void 0===b)return-1;if(null===a)return 1;if(null===b)return-1;if("string"==typeof a&&"string"==typeof b)return a<b?-1:1;if("number"==typeof a&&"number"==typeof b)return a-b;if("boolean"==typeof a&&"boolean"==typeof b)return a<b?-1:1;a=String(a);b=String(b);return a==b?0:a<b?-1:1},yia=function(a,b,c,d){var e=void 0===e?!1:e;var f="",h=!1;if(isFinite(a)){h=tia(a);e&&(h=uia(h));f=b.minInt;
e=b.minFrac;var k=b.maxFrac;if(d){var q=d.match(via);if(null===q)throw Error("Ra`"+d);d=q[1];var w=q[3];q=q[5];null!=d&&(f=wia(d));null!=w&&(e=wia(w));null!=q?k=wia(q):null!=w&&e>k&&(k=e)}xia(h,e,k);d=h.digits;q=h.integerLen;e=h.exponent;k=[];for(h=d.every(function(y){return!y});q<f;q++)d.unshift(0);for(;0>q;q++)d.unshift(0);0<q?k=d.splice(q,d.length):(k=d,d=[0]);f=[];for(d.length>=b.lgSize&&f.unshift(d.splice(-b.lgSize,d.length).join(""));d.length>b.gSize;)f.unshift(d.splice(-b.gSize,d.length).join(""));
d.length&&f.unshift(d.join(""));f=f.join(ng(c,1));k.length&&(f+=ng(c,0)+k.join(""));e&&(f+=ng(c,6)+"+"+e)}else f=ng(c,9);return f=0>a&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},uia=function(a){if(0===a.digits[0])return a;var b=a.digits.length-a.integerLen;a.exponent?a.exponent+=2:(0===b?a.digits.push(0,0):1===b&&a.digits.push(0),a.integerLen+=2);return a},tia=function(a){a=Math.abs(a)+"";var b=0,c,d,e,f;-1<(c=a.indexOf("."))&&(a=a.replace(".",""));0<(d=a.search(/e/i))?(0>c&&(c=d),c+=+a.slice(d+
1),a=a.substring(0,d)):0>c&&(c=a.length);for(d=0;"0"===a.charAt(d);d++);if(d===(f=a.length)){var h=[0];c=1}else{for(f--;"0"===a.charAt(f);)f--;c-=d;h=[];for(e=0;d<=f;d++,e++)h[e]=Number(a.charAt(d))}22<c&&(h=h.splice(0,21),b=c-1,c=1);return{digits:h,exponent:b,integerLen:c}},xia=function(a,b,c){if(b>c)throw Error("Sa`"+b+"`"+c);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,h=d[f];if(0<f){d.splice(Math.max(a.integerLen,f));for(var k=f;k<d.length;k++)d[k]=0}else for(e=
Math.max(0,e),a.integerLen=1,d.length=Math.max(1,f=c+1),d[0]=0,k=1;k<f;k++)d[k]=0;if(5<=h)if(0>f-1){for(h=0;h>f;h--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);var q=0!==c,w=b+a.integerLen;if(b=d.reduceRight(function(y,E,I,N){E+=y;N[I]=10>E?E:E-10;q&&(0===N[I]&&I>=w?N.pop():q=!1);return 10<=E?1:0},0))d.unshift(b),a.integerLen++},wia=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Ta`"+a);return b},zia=function(a,b){if(0==a.length)return b;
if(0==b.length)return a;var c=0;a.endsWith("/")&&c++;b.startsWith("/")&&c++;return 2==c?a+b.substring(1):1==c?a+b:a+"/"+b},Aia=function(a){var b=a.match(/#|\?|$/);b=b&&b.index||a.length;return a.slice(0,b-("/"===a[b-1]?1:0))+a.slice(b)},yg=function(a){return a&&"?"!==a[0]?"?"+a:a},zg=function(a){return null==a||("string"===typeof a||Array.isArray(a))&&0===a.length},Bia=function(a){return function(b){if(zg(b.value)||zg(a))return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:
null}},Cia=function(a){return zg(a.value)?{required:!0}:null},Dia=function(a){return function(b){var c=b.value;return null!=c&&"number"===typeof c.length&&b.value.length>a?{maxlength:{requiredLength:a,actualLength:b.value.length}}:null}},Fia=function(a){if(!a)return Eia;if("string"===typeof a){var b="";"^"!==a.charAt(0)&&(b+="^");b+=a;"$"!==a.charAt(a.length-1)&&(b+="$");var c=new RegExp(b)}else b=a.toString(),c=a;return function(d){if(zg(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,
actualValue:d}}}},Eia=function(){return null},Gia=function(a){return null!=a},Hia=function(a){return Wd(a)?(0,T.from)(a):a},Iia=function(a){var b={};a.forEach(function(c){b=null!=c?Object.assign({},b,c):b});return 0===Object.keys(b).length?null:b},Jia=function(a,b){return b.map(function(c){return c(a)})},Kia=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Lia=function(a){if(!a)return null;var b=a.filter(Gia);return 0==b.length?null:function(c){return Iia(Jia(c,
b))}},Mia=function(a){return null!=a?Lia(Kia(a)):null},Nia=function(a){if(!a)return null;var b=a.filter(Gia);return 0==b.length?null:function(c){c=Jia(c,b).map(Hia);return(0,T.forkJoin)(c).pipe(C(Iia))}},Oia=function(a){return null!=a?Nia(Kia(a)):null},Pia=function(a,b){return null===a?[b]:Array.isArray(a)?[].concat(u(a),[b]):[a,b]},Qia=function(a,b){return[].concat(u(b.path),[a])},Ag=function(a,b){Ria(a,b);b.valueAccessor.writeValue(a.value);if(a.disabled){var c,d;null==(d=(c=b.valueAccessor).setDisabledState)||
d.call(c,!0)}Sia(a,b);Tia(a,b);Uia(a,b);Via(a,b)},Cg=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));Bg(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Dg=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},Via=function(a,b){if(b.valueAccessor.setDisabledState){var c=function(d){b.valueAccessor.setDisabledState(d)};a._onDisabledChange.push(c);
b._registerOnDestroy(function(){a._unregisterOnDisabledChange(c)})}},Ria=function(a,b){var c=a._rawValidators;null!==b.validator?Wia(a,Pia(c,b.validator)):"function"===typeof c&&Wia(a,[c]);c=a._rawAsyncValidators;null!==b.asyncValidator?Xia(a,Pia(c,b.asyncValidator)):"function"===typeof c&&Xia(a,[c]);c=function(){return Eg(a)};Dg(b._rawValidators,c);Dg(b._rawAsyncValidators,c)},Bg=function(a,b){var c=!1;if(null!==a){if(null!==b.validator){var d=a._rawValidators;if(Array.isArray(d)&&0<d.length){var e=
d.filter(function(f){return f!==b.validator});e.length!==d.length&&(c=!0,Wia(a,e))}}null!==b.asyncValidator&&(d=a._rawAsyncValidators,Array.isArray(d)&&0<d.length&&(e=d.filter(function(f){return f!==b.asyncValidator}),e.length!==d.length&&(c=!0,Xia(a,e))))}a=function(){};Dg(b._rawValidators,a);Dg(b._rawAsyncValidators,a);return c},Sia=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;"change"===a.updateOn&&Yia(a,b)})},Uia=function(a,
b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;"blur"===a.updateOn&&a._pendingChange&&Yia(a,b);"submit"!==a.updateOn&&Zia(a)})},Yia=function(a,b){a._pendingDirty&&$ia(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},Tia=function(a,b){var c=function(d,e){b.valueAccessor.writeValue(d);e&&b.viewToModelUpdate(d)};a.registerOnChange(c);b._registerOnDestroy(function(){a._unregisterOnChange(c)})},aja=function(a,b){if(!a.hasOwnProperty("model"))return!1;
a=a.model;return a.isFirstChange()?!0:!Object.is(b,a.currentValue)},bja=function(a,b){a._syncPendingControls();b.forEach(function(c){var d=c.control;"submit"===d.updateOn&&d._pendingChange&&(c.viewToModelUpdate(d._pendingValue),d._pendingChange=!1)})},cja=function(a){if(!a)return null;Array.isArray(a);var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===Fg?b=e:Object.getPrototypeOf(e.constructor)===Gg?c=e:d=e});return d?d:c?c:b?b:null},dja=function(a){return(Hg(a)?a.validators:a)||
null},eja=function(a){return Array.isArray(a)?Mia(a):a||null},fja=function(a){return Array.isArray(a)?Oia(a):a||null},Hg=function(a){return null!=a&&!Array.isArray(a)&&"object"===typeof a},gja=function(a,b){a._forEachChild(function(c,d){if(void 0===b[d])throw new ic(1002,"");})},hja=function(a){return"object"===typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a},jja=function(){if(Ig)return Ig;if("object"!==typeof document||!document)return Ig=new Set(ija);var a=document.createElement("input");
return Ig=new Set(ija.filter(function(b){a.setAttribute("type",b);return a.type===b}))},kja=function(){if(null==Jg&&"undefined"!==typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Jg=!0}}))}finally{Jg=Jg||!1}return Jg},Kg=function(a){return kja()?a:!!a.capture},lja=function(){if(null==Lg){if("object"!==typeof document||!document||"function"!==typeof Element||!Element)return Lg=!1;if("scrollBehavior"in document.documentElement.style)Lg=
!0;else{var a=Element.prototype.scrollTo;Lg=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return Lg},mja=function(){if("object"!==typeof document||!document)return 0;if(null==Mg){var a=document.createElement("div"),b=a.style;a.dir="rtl";b.width="1px";b.overflow="auto";b.visibility="hidden";b.pointerEvents="none";b.position="absolute";b=document.createElement("div");var c=b.style;c.width="2px";c.height="1px";a.appendChild(b);document.body.appendChild(a);Mg=0;0===a.scrollLeft&&(a.scrollLeft=
1,Mg=0===a.scrollLeft?1:2);a.remove()}return Mg},Ng=function(a){if(null==nja){var b="undefined"!==typeof document?document.head:null;nja=!(!b||!b.createShadowRoot&&!b.attachShadow)}return nja&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Og=function(){for(var a="undefined"!==typeof document&&document?document.activeElement:null;a&&a.shadowRoot;){var b=a.shadowRoot.activeElement;if(b===a)break;else a=b}return a},Pg=function(a){return a.composedPath?
a.composedPath()[0]:a.target},oja=function(){return"undefined"!==typeof __karma__&&!!__karma__||"undefined"!==typeof jasmine&&!!jasmine||"undefined"!==typeof jest&&!!jest||"undefined"!==typeof Mocha&&!!Mocha},pja=function(a){if(!a.hasAttribute("tabindex")||void 0===a.tabIndex)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},qja=function(a){if(!pja(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},Qg=function(a){return Array.isArray(a)?a:[a]},
Rg=function(a){return null!=a&&"false"!==""+a},Sg=function(a){return null==a?"":"string"===typeof a?a:a+"px"},Tg=function(a){return a instanceof nd?a.nativeElement:a},Ug=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?void 0===b?0:b:Number(a)},rja=function(a){var b=void 0===b?/\s+/:b;var c=[];if(null!=a)for(a=Array.isArray(a)?a:(""+a).split(b),a=r(a),b=a.next();!b.done;b=a.next())(b=(""+b.value).trim())&&c.push(b);return c},sja=function(){var a="undefined"!==typeof window?window.trustedTypes:
void 0;return null!=a?a:null},Zg=function(a){var b,c=null==(b=Vg())?void 0:b.createHTML(a);return new Xg(null!=c?c:a,Yg)},tja=function(a){if(a instanceof Xg)return a.privateDoNotAccessOrElseWrappedHtml;throw Error("Xa");},uja=function(a){a=tja(a);var b;return(null==(b=sja())?0:b.isHTML(a))?TrustedHTML.prototype.toString.apply(a):a},vja=function(a){var b,c=null==(b=Vg())?void 0:b.createScriptURL(a);return new $g(null!=c?c:a,Yg)},wja=function(a){if(a instanceof $g)return a.privateDoNotAccessOrElseWrappedResourceUrl;
throw Error("Xa");},xja=function(a){a=wja(a);var b;return(null==(b=sja())?0:b.isScriptURL(a))?TrustedScriptURL.prototype.toString.apply(a):a},ah=function(a){var b=void 0===b?{}:b;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");b.preserveSpaces&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));b.preserveNewlines&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));b.preserveTabs&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));return Zg(a)},
bh=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);},ch=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},dh=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},yja=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},zja=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Aja=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Bja=function(a,b){return null!==a&&b in a},Cja=function(a,b){for(var c in a)if(b.call(void 0,
a[c],c,a))return c},Dja=function(a,b){return(b=Cja(a,b))&&a[b]},eh=function(a){for(var b in a)return!1;return!0},Eja=function(a){for(var b in a)delete a[b]},fh=function(a,b){b in a&&delete a[b]},Fja=function(a,b,c){if(null!==a&&b in a)throw Error("Ya`"+b);a[b]=c},Gja=function(a,b){return null!==a&&b in a?a[b]:void 0},gh=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Ija=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Hja.length;f++)c=
Hja[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Jja=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return Jja.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},Qja=function(a){if(a instanceof hh)return'url("'+ih(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof jh)a=kh(a);else{a=String(a);var b=a.replace(Kja,"$1").replace(Kja,"$1").replace(Lja,"url");if(Mja.test(b)){if(b=!Nja.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=
a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Oja(a)}a=b?Pja(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new aaa("Value does not allow [{;}], got: %s.",[a]);return a},Oja=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b},Pja=function(a){return a.replace(Lja,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,k,q){f=k;return q});
b=(Rja(d)||lh).getTypedStringValue();return c+f+b+f+e})},nh=function(a){if(a instanceof mh)return a.privateDoNotAccessOrElseWrappedUrl;throw Error("Xa");},qh=function(a){return a instanceof oh?tja(a):ph(a)},sh=function(a){return a instanceof rh?nh(a):ih(a)},Sja=function(a){return a instanceof th?wja(a).toString():uh(a)},Tja=function(a,b){a.src=Sja(b)},vh=function(a,b){b=b instanceof th?wja(b):Uja(b);a.src=b;var c,d;(c=(b=null==(d=(c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?
void 0:d.call(c,"script[nonce]"))?b.nonce||b.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",c)},wh=function(a){return new Vja(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},xh=function(a){var b=void 0===b?Wja:b;a:{b=void 0===b?Wja:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Vja&&d.isValid(a)){a=new mh(a,Yg);break a}}a=void 0}return a||Xja},yh=function(a){var b=oc.apply(1,arguments);if(0===b.length)return vja(a[0]);for(var c=[a[0]],d=0;d<b.length;d++)c.push(encodeURIComponent(b[d])),
c.push(a[d+1]);return vja(c.join(""))},Yja=function(a){zh.remove(a)},Ah=function(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];Array.isArray(e)?Ah(a,e,c):(e=e.replace(Zja,a),c.push(e))}return c},$ja=function(a){return function(b){if("__ngUnwrap__"===b)return a;!1===a(b)&&(b.preventDefault(),b.returnValue=!1)}},cka=function(a){var b=a.key;if(null==b){b=a.keyIdentifier;if(null==b)return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),3===a.location&&aka.hasOwnProperty(b)&&
(b=aka[b]))}return bka[b]||b},fka=function(a,b){var c=[];"string"==typeof a?a.split(/\s*,\s*/).forEach(function(d){a:{if(":"==d[0]&&(d=dka(d,b),"function"==typeof d)){c.push(d);d=void 0;break a}var e=d.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==e||4>e.length)b.push(new ic(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(eka(d,e));"<"!=f[0]||"*"==d&&"*"==e||c.push(eka(e,d));d=void 0}}return d}):c.push(a);return c},dka=function(a,b){switch(a){case ":enter":return"void => *";case ":leave":return"* => void";
case ":increment":return function(c,d){return parseFloat(d)>parseFloat(c)};case ":decrement":return function(c,d){return parseFloat(d)<parseFloat(c)};default:return b.push(new ic(3016,!1)),"* => *"}},eka=function(a,b){var c=Bh.has(a)||Ch.has(a),d=Bh.has(b)||Ch.has(b);return function(e,f){var h="*"==a||a==e,k="*"==b||b==f;!h&&c&&"boolean"===typeof e&&(h=e?Bh.has(a):Ch.has(a));!k&&d&&"boolean"===typeof f&&(k=f?Bh.has(b):Ch.has(b));return h&&k}},Dh=function(a,b){return{type:7,name:a,definitions:b,options:{}}},
Eh=function(a,b){return{type:4,styles:void 0===b?null:b,timings:a}},Fh=function(a){return{type:6,styles:a,offset:null}},Gh=function(a,b){return{type:0,name:a,styles:b,options:void 0}},Hh=function(a,b,c){return{type:1,expr:a,animation:b,options:void 0===c?null:c}},Ih=function(){return{type:9,options:null}},Jh=function(a,b){var c={optional:!0};return{type:11,selector:a,animation:b,options:void 0===c?null:c}},gka=function(){return"undefined"!==typeof process&&"[object process]"==={}.toString.call(process)},
Lh=function(a){switch(a.length){case 0:return new Kh;case 1:return a[0];default:return new hka(a)}},jka=function(a,b,c){b=void 0===b?new Map:b;c=void 0===c?new Map:c;var d=[],e=[],f=-1,h=null;a.forEach(function(k){var q=k.get("offset"),w=q==f,y=w&&h||new Map;k.forEach(function(E,I){var N=I;if("offset"!==I)switch(N=Mh(N),E){case "!":E=b.get(I);break;case "*":E=c.get(I);break;default:E=ika(N,E,d)}y.set(N,E)});w||e.push(y);h=y;f=q});if(d.length)throw new ic(3502,!1);return e},lka=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&
kka(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&kka(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&kka(c,"destroy",a))})}},kka=function(a,b,c){var d=c.totalTime;b=mka(a.element,a.triggerName,a.fromState,a.toState,b||a.phaseName,void 0==d?a.totalTime:d,c.disabled?!0:!1);a=a._data;null!=a&&(b._data=a);return b},mka=function(a,b,c,d,e,f,h){return{element:a,triggerName:b,fromState:c,toState:d,phaseName:void 0===e?"":e,totalTime:void 0===f?0:f,disabled:!!h}},
Nh=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},nka=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},pka=function(a){a=a.parentNode||a.host;return a===oka?null:a},Oh=function(a){if("number"==typeof a)return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||2>a.length?0:qka(parseFloat(a[1]),a[2])},qka=function(a,b){switch(b){case "s":return 1E3*a;default:return a}},Ph=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,
e=0,f="";if("string"===typeof a){d=a.match(d);if(null===d){b.push(new ic(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=qka(parseFloat(d[1]),d[2]);var h=d[3];null!=h&&(e=qka(parseFloat(h),d[4]));(d=d[5])&&(f=d)}c||(c=!1,d=b.length,0>a&&(b.push(new ic(3100,!1)),c=!0),0>e&&(b.push(new ic(3101,!1)),c=!0),c&&b.splice(d,0,new ic(3E3,!1)));b={duration:a,delay:e,easing:f}}return b},Qh=function(a){var b=void 0===b?{}:b;Object.keys(a).forEach(function(c){b[c]=a[c]});return b},rka=function(a){var b=new Map;
Object.keys(a).forEach(function(c){b.set(c,a[c])});return b},ska=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return rka(b)}):[]},Rh=function(a,b,c){b=void 0===b?new Map:b;if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.set(d,e)}}a=r(a);for(c=a.next();!c.done;c=a.next())d=r(c.value),c=d.next().value,d=d.next().value,b.set(c,d);return b},tka=function(a){for(var b="",c=0;c<a.style.length;c++){var d=a.style.item(c),e=a.style.getPropertyValue(d);
b+=e?d+":"+e+";":""}for(var f in a.style)a.style.hasOwnProperty(f)&&!f.startsWith("_")&&(c=f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d=a.style[f],b+=d?c+":"+d+";":"");a.setAttribute("style",b)},Sh=function(a,b,c){a.style&&(b.forEach(function(d,e){var f=Mh(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d}),gka()&&tka(a))},Th=function(a,b){a.style&&(b.forEach(function(c,d){d=Mh(d);a.style[d]=""}),gka()&&tka(a))},Uh=function(a){return Array.isArray(a)?1==a.length?a[0]:{type:2,steps:a,options:null}:
a},vka=function(a,b,c){var d=b.params||{};a=uka(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new ic(3001,!1))})},uka=function(a){var b=[];if("string"===typeof a){for(var c;c=wka.exec(a);)b.push(c[1]);wka.lastIndex=0}return b},Vh=function(a,b,c){var d=a.toString(),e=d.replace(wka,function(f,h){h=b[h];null==h&&(c.push(new ic(3003,!1)),h="");return h.toString()});return e==d?a:e},Wh=function(a){for(var b=[],c=a.next();!c.done;)b.push(c.value),c=a.next();return b},Mh=function(a){return a.replace(xka,
function(){return oc.apply(0,arguments)[1].toUpperCase()})},yka=function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(h,k){d.has(k)||e.push(k);d.set(k,h)});if(e.length){c={};for(var f=1;f<b.length;c={$jscomp$loop$prop$kf$1607:c.$jscomp$loop$prop$kf$1607},f++)c.$jscomp$loop$prop$kf$1607=b[f],e.forEach(function(h){return function(k){var q=h.$jscomp$loop$prop$kf$1607,w=q.set;var y=window.getComputedStyle(a)[k];return w.call(q,k,y)}}(c))}}return b},Xh=function(a,b,c){switch(b.type){case 7:return a.visitTrigger(b,
c);case 0:return a.visitState(b,c);case 1:return a.visitTransition(b,c);case 2:return a.visitSequence(b,c);case 3:return a.visitGroup(b,c);case 4:return a.visitAnimate(b,c);case 5:return a.visitKeyframes(b,c);case 6:return a.visitStyle(b,c);case 8:return a.visitReference(b,c);case 9:return a.visitAnimateChild(b,c);case 10:return a.visitAnimateRef(b,c);case 11:return a.visitQuery(b,c);case 12:return a.visitStagger(b,c);default:throw new ic(3004,!1);}},Aka=function(a){var b=a.split(/\s*,\s*/).find(function(c){return":self"==
c})?!0:!1;b&&(a=a.replace(zka,""));a=a.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(c){return".ng-trigger-"+c.slice(1)}).replace(/:animating/g,".ng-animating");return[a,b]},Bka=function(a){if("string"==typeof a)return null;var b=null;Array.isArray(a)?a.forEach(function(c){c instanceof Map&&c.has("offset")&&(b=parseFloat(c.get("offset")),c.delete("offset"))}):a instanceof Map&&a.has("offset")&&(b=parseFloat(a.get("offset")),a.delete("offset"));return b},Cka=function(a,b){if(a.hasOwnProperty("duration"))return a;
if("number"==typeof a)return{duration:Ph(a,b).duration,delay:0,easing:""};if(a.split(/\s+/).some(function(c){return"{"==c.charAt(0)&&"{"==c.charAt(1)}))return b={duration:0,delay:0,easing:"",dynamic:!0},b.strValue=a,b;a=Ph(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},Yh=function(a){if(a){if(a=Qh(a),a.params){var b=a;var c=(c=a.params)?Qh(c):null;b.params=c}}else a={};return a},Dka=function(a,b,c,d,e,f,h,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,
delay:f,totalTime:e+f,easing:void 0===h?null:h,subTimeline:void 0===k?!1:k}},Fka=function(a,b,c,d,e,f,h,k,q,w){f=void 0===f?new Map:f;h=void 0===h?new Map:h;w=void 0===w?[]:w;return(new Eka).buildKeyframes(a,b,c,d,e,f,h,k,q,w)},Gka=function(a){var b=Math.pow(10,2);return Math.round(a*b)/b},Hka=function(a,b){var c=new Map,d;a.forEach(function(e){if("*"===e){d=d||b.keys();e=r(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else Rh(e,c)});return c},Ika=function(a,b,c,d,e,f,h,k,q,w,y,E,I){return{type:0,
element:a,triggerName:b,isRemovalTransition:e,fromState:c,fromStyles:f,toState:d,toStyles:h,timelines:k,queriedElements:q,preStyleProps:w,postStyleProps:y,totalTime:E,errors:I}},Jka=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},Kka=function(a,b){b=Qh(b);for(var c in a)a.hasOwnProperty(c)&&null!=a[c]&&(b[c]=a[c]);return b},Lka=function(a,b){return new Zh(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},
Mka=function(a,b,c){a.has(b)?a.has(c)||a.set(c,a.get(b)):a.has(c)&&a.set(b,a.get(c))},$h=function(a){return a&&1===a.nodeType},Nka=function(a,b){var c=a.style.display;a.style.display=null!=b?b:"none";return c},Pka=function(a,b,c,d,e){var f=[];c.forEach(function(q){return f.push(Nka(q))});var h=[];d.forEach(function(q,w){var y=new Map;q.forEach(function(E){var I=b.computeStyle(w,E,e);y.set(E,I);I&&0!=I.length||(w.__ng_removed=Oka,h.push(w))});a.set(w,y)});var k=0;c.forEach(function(q){return Nka(q,
f[k++])});return h},Qka=function(a,b){function c(h){if(!h)return 1;var k=f.get(h);if(k)return k;var q=h.parentNode;d.has(q)?k=q:e.has(q)?k=1:k=c(q);f.set(h,k);return k}var d=new Map;a.forEach(function(h){return d.set(h,[])});if(0==b.length)return d;var e=new Set(b),f=new Map;b.forEach(function(h){var k=c(h);1!==k&&d.get(k).push(h)});return d},ai=function(a,b){var c;null==(c=a.classList)||c.add(b)},bi=function(a,b){var c;null==(c=a.classList)||c.remove(b)},Rka=function(a,b,c){Lh(c).onDone(function(){return ci(a,
b)})},Tka=function(a){var b=[];Ska(a,b);return b},Ska=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof hka?Ska(d.players,b):b.push(d)}},Uka=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(d=0;d<c.length;d++){var e=c[d];if(!b.hasOwnProperty(e)||a[e]!==b[e])return!1}return!0},Vka=function(a,b,c){var d=c.get(a);if(!d)return!1;var e=b.get(a);e?d.forEach(function(f){return e.add(f)}):b.set(a,d);c.delete(a);return!0},Xka=function(a,b){var c=null,d=
null;Array.isArray(b)&&b.length?(c=Wka(b[0]),1<b.length&&(d=Wka(b[b.length-1]))):b instanceof Map&&(c=Wka(b));return c||d?new di(a,c,d):null},Wka=function(a){var b=null;a.forEach(function(c,d){if("display"===d||"position"===d)b=b||new Map,b.set(d,c)});return b},Yka=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},Zka=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},ei=function(a){return 0===
a.buttons||0===a.offsetX&&0===a.offsetY},fi=function(a){a=a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0];return!!a&&-1===a.identifier&&(null==a.radiusX||1===a.radiusX)&&(null==a.radiusY||1===a.radiusY)},gi=function(a){var b=oc.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},$ka=function(){return null},ala=function(a,b){var c=hi(a);c.some(function(d){return d.trim()==b.trim()})||(c.push(b.trim()),a.setAttribute("aria-describedby",
c.join(" ")))},bla=function(a,b){var c=hi(a).filter(function(d){return d!=b.trim()});c.length?a.setAttribute("aria-describedby",c.join(" ")):a.removeAttribute("aria-describedby")},hi=function(a){return(a.getAttribute("aria-describedby")||"").match(/\S+/g)||[]},cla=function(a,b){return"string"===typeof a?(b||"")+"/"+a:a},ela=function(a){a.id||(a.id="cdk-describedby-message-"+dla++)},fla=function(){return t(ii)},gla=function(a,b){return b.some(function(c){var d=a.top>c.bottom,e=a.right<c.left,f=a.left>
c.right;return a.bottom<c.top||d||e||f})},hla=function(a,b){return b.some(function(c){var d=a.bottom>c.bottom,e=a.left<c.left,f=a.right>c.right;return a.top<c.top||d||e||f})},ila=function(a){return a&&"function"===typeof a.connect},ji=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},kla=function(a){if("number"!==typeof a&&null!=a){var b=r(a.split(jla));a=b.next().value;return(b=b.next().value)&&"px"!==b?null:parseFloat(a)}return a||null},lla=function(a){return{top:Math.floor(a.top),
right:Math.floor(a.right),bottom:Math.floor(a.bottom),left:Math.floor(a.left),width:Math.floor(a.width),height:Math.floor(a.height)}},li=function(a,b){var c=function(){var d=a.apply(this,[].concat(u(oc.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};U(c,a);ki.Object.defineProperties(c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},set:function(d){d=d||this.defaultColor;d!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+
this._color),d&&this._elementRef.nativeElement.classList.add("mat-"+d),this._color=d)}}});return c},mi=function(a){var b=function(){var c=a.apply(this,[].concat(u(oc.apply(0,arguments))))||this;c._disableRipple=!1;return c};U(b,a);ki.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=Rg(c)}}});return b},ni=function(a){var b=function(){var c=a.apply(this,[].concat(u(oc.apply(0,arguments))))||
this;c._disabled=!1;return c};U(b,a);ki.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=Rg(c)}}});return b},mla=function(a){var b=function(){var c=a.apply(this,[].concat(u(oc.apply(0,arguments))))||this;c.errorState=!1;return c};U(b,a);b.prototype.updateErrorState=function(){var c=this.ngControl?this.ngControl.control:null;var d=this._parentFormGroup||this._parentForm;c=!!(c&&c.invalid&&(c.touched||d&&
d.submitted));c!==this.errorState&&(this.errorState=c,this.stateChanges.next())};return b},nla=function(a){var b=function(){var c=a.apply(this,[].concat(u(oc.apply(0,arguments))))||this;c._isInitialized=!1;c._pendingSubscribers=[];c.initialized=new T.Observable(function(d){c._isInitialized?c._notifySubscriber(d):c._pendingSubscribers.push(d)});return c};U(b,a);b.prototype._markInitialized=function(){this._isInitialized=!0;this._pendingSubscribers.forEach(this._notifySubscriber);this._pendingSubscribers=
null};b.prototype._notifySubscriber=function(c){c.next();c.complete()};return b},oi=function(a){var b=void 0===b?0:b;var c=function(){var d=a.apply(this,[].concat(u(oc.apply(0,arguments))))||this;d._tabIndex=b;d.defaultTabIndex=b;return d};U(c,a);ki.Object.defineProperties(c.prototype,{tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:this._tabIndex},set:function(d){this._tabIndex=null!=d?Ug(d):this.defaultTabIndex}}});return c},ola=function(){return t(pi)},pla=function(a,
b){for(var c=Array(a),d=0;d<a;d++)c[d]=b(d);return c},qla=function(a,b){var c=void 0===c?"mat":c;a.changes.pipe(We(a)).subscribe(function(d){d=d.length;b.nativeElement.classList.toggle(c+"-2-line",!1);b.nativeElement.classList.toggle(c+"-3-line",!1);b.nativeElement.classList.toggle(c+"-multi-line",!1);2===d||3===d?b.nativeElement.classList.toggle(c+"-"+d+"-line",!0):3<d&&b.nativeElement.classList.toggle(c+"-multi-line",!0)})},rla=function(a,b,c){a=Math.max(Math.abs(a-c.left),Math.abs(a-c.right));
b=Math.max(Math.abs(b-c.top),Math.abs(b-c.bottom));return Math.sqrt(a*a+b*b)},sla=function(a){a&1&&J(0,"mat-pseudo-checkbox",4);a&2&&(a=M(),D("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},tla=function(a){a&1&&(G(0,"span",5),P(1),H());a&2&&(a=M(),B(1),If("(",a.group.label,")"))},ula=function(a,b,c){if(c.length){b=b.toArray();c=c.toArray();for(var d=0,e=0;e<a+1;e++)b[e].group&&b[e].group===c[d]&&d++;return d}return 0},vla=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):
c},wla=function(a){a&1&&(G(0,"tr",2)(1,"td",3),P(2),H()());a&2&&(a=M(),B(1),rf("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),nf("colspan",a.numCols),B(1),If(" ",a.label," "))},xla=function(a){a&1&&(G(0,"td",3),P(1),H());a&2&&(a=M(2),rf("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),nf("colspan",a._firstRowOffset),B(1),If(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},yla=function(a,b){if(a&1){var c=x();G(0,"td",7)(1,"button",8);K("click",function(f){var h=
z(c).$implicit,k=M(2);return A(k._cellClicked(h,f))})("focus",function(f){var h=z(c).$implicit,k=M(2);return A(k._emitActiveDateChange(h,f))});G(2,"div",9);P(3);H();J(4,"div",10);H()()}if(a&2){a=b.$implicit;b=b.index;var d=M().index,e=M();rf("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);nf("data-mat-row",d)("data-mat-col",b);B(1);sf("mat-calendar-body-disabled",!a.enabled)("mat-calendar-body-active",e._isActiveCell(d,b))("mat-calendar-body-range-start",e._isRangeStart(a.compareValue))("mat-calendar-body-range-end",
e._isRangeEnd(a.compareValue))("mat-calendar-body-in-range",e._isInRange(a.compareValue))("mat-calendar-body-comparison-bridge-start",e._isComparisonBridgeStart(a.compareValue,d,b))("mat-calendar-body-comparison-bridge-end",e._isComparisonBridgeEnd(a.compareValue,d,b))("mat-calendar-body-comparison-start",e._isComparisonStart(a.compareValue))("mat-calendar-body-comparison-end",e._isComparisonEnd(a.compareValue))("mat-calendar-body-in-comparison-range",e._isInComparisonRange(a.compareValue))("mat-calendar-body-preview-start",
e._isPreviewStart(a.compareValue))("mat-calendar-body-preview-end",e._isPreviewEnd(a.compareValue))("mat-calendar-body-in-preview",e._isInPreview(a.compareValue));D("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);nf("aria-label",a.ariaLabel)("aria-disabled",!a.enabled||null)("aria-pressed",e._isSelected(a.compareValue))("aria-current",e.todayValue===a.compareValue?"date":null);B(1);sf("mat-calendar-body-selected",e._isSelected(a.compareValue))("mat-calendar-body-comparison-identical",
e._isComparisonIdentical(a.compareValue))("mat-calendar-body-today",e.todayValue===a.compareValue);B(1);If(" ",a.displayValue," ")}},zla=function(a,b){a&1&&(G(0,"tr",4),O(1,xla,2,6,"td",5),O(2,yla,5,47,"td",6),H());if(a&2){a=b.$implicit;b=b.index;var c=M();B(1);D("ngIf",0===b&&c._firstRowOffset);B(1);D("ngForOf",a)}},Ala=function(a,b,c){return null!==c&&b!==c&&a<c&&a===b},Bla=function(a,b,c){return null!==b&&b!==c&&a>=b&&a===c},Cla=function(a,b,c,d){return d&&null!==b&&null!==c&&b!==c&&a>=b&&a<=c},
Dla=function(a,b){a&1&&(G(0,"th",5)(1,"span",6),P(2),H(),G(3,"span",7),P(4),H()());a&2&&(a=b.$implicit,B(2),Jf(a.long),B(2),Jf(a.narrow))},Fla=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=Ela(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},qi=function(a,b,c,d){return((a.getYear(b)-Ela(a,c,d))%24+24)%24},Ela=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},Gla=function(){},Hla=function(a){if(a&1){var b=x();G(0,"mat-month-view",5);K("activeDateChange",function(c){z(b);
var d=M();return A(d.activeDate=c)})("_userSelection",function(c){z(b);var d=M();return A(d._dateSelected(c))});H()}a&2&&(a=M(),D("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd))},Ila=function(a){if(a&1){var b=x();G(0,"mat-year-view",6);K("activeDateChange",function(c){z(b);var d=M();return A(d.activeDate=c)})("monthSelected",function(c){z(b);
var d=M();return A(d._monthSelectedInYearView(c))})("selectedChange",function(c){z(b);var d=M();return A(d._goToDateInView(c,"month"))});H()}a&2&&(a=M(),D("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Jla=function(a){if(a&1){var b=x();G(0,"mat-multi-year-view",7);K("activeDateChange",function(c){z(b);var d=M();return A(d.activeDate=c)})("yearSelected",function(c){z(b);var d=M();return A(d._yearSelectedInMultiYearView(c))})("selectedChange",
function(c){z(b);var d=M();return A(d._goToDateInView(c,"year"))});H()}a&2&&(a=M(),D("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Kla=function(a,b,c){void 0!==a._containerInstance&&(a._containerInstance._closeInteractionType=b);a.close(c)},Lla=function(){},Mla=function(a,b){return Object.assign({},b,a)},Nla=function(a,b){for(var c=a.nativeElement.parentElement;c&&!c.classList.contains("mat-dialog-container");)c=
c.parentElement;return c?b.find(function(d){return d.id===c.id}):null},Ola=function(a){a&1&&(xf(0),G(1,"div",14),J(2,"div",15)(3,"div",16)(4,"div",17),H(),G(5,"div",18),J(6,"div",15)(7,"div",16)(8,"div",17),H(),yf())},Pla=function(a){if(a&1){var b=x();G(0,"div",19);K("cdkObserveContent",function(){z(b);var c=M();return A(ri(c))});Df(1,1);H()}a&2&&(a=M(),D("cdkObserveContentDisabled","outline"!=a.appearance))},Qla=function(a){a&1&&(xf(0),Df(1,2),G(2,"span"),P(3),H(),yf());a&2&&(a=M(2),B(3),Jf(a._control.placeholder))},
Rla=function(a){a&1&&Df(0,3,["*ngSwitchCase","true"])},Sla=function(a){a&1&&(G(0,"span",23),P(1," *"),H())},Tla=function(a){if(a&1){var b=x();G(0,"label",20,21);K("cdkObserveContent",function(){z(b);var c=M();return A(ri(c))});O(2,Qla,4,1,"ng-container",12);O(3,Rla,1,0,"ng-content",12);O(4,Sla,2,0,"span",22);H()}a&2&&(a=M(),sf("mat-empty",a._control.empty&&!a._shouldAlwaysFloat())("mat-form-field-empty",a._control.empty&&!a._shouldAlwaysFloat())("mat-accent","accent"==a.color)("mat-warn","warn"==
a.color),D("cdkObserveContentDisabled","outline"!=a.appearance)("id",a._labelId)("ngSwitch",a._hasLabel()),nf("for",a._control.id)("aria-owns",a._control.id),B(2),D("ngSwitchCase",!1),B(1),D("ngSwitchCase",!0),B(1),D("ngIf",!a.hideRequiredMarker&&a._control.required&&!a._control.disabled))},Ula=function(a){a&1&&(G(0,"div",24),Df(1,4),H())},Vla=function(a){a&1&&(G(0,"div",25),J(1,"span",26),H());a&2&&(a=M(),B(1),sf("mat-accent","accent"==a.color)("mat-warn","warn"==a.color))},Wla=function(a){a&1&&
(G(0,"div"),Df(1,5),H());a&2&&(a=M(),D("@transitionMessages",a._subscriptAnimationState))},Xla=function(a){a&1&&(G(0,"div",30),P(1),H());a&2&&(a=M(2),D("id",a._hintLabelId),B(1),Jf(a.hintLabel))},Yla=function(a){a&1&&(G(0,"div",27),O(1,Xla,2,2,"div",28),Df(2,6),J(3,"div",29),Df(4,7),H());a&2&&(a=M(),D("@transitionMessages",a._subscriptAnimationState),B(1),D("ngIf",a.hintLabel))},Zla=function(a){a&1&&J(0,"input",8);a&2&&(a=M(),D("formControl",a.timeFormControl))},$la=function(a){a&1&&(G(0,"mat-error",
9),P(1),H());a&2&&(a=M(),B(1),Jf(a.formErrorMessage))},ama=function(a,b){return a.open(si,{data:b,width:"450px",height:"auto"})},cma=function(a,b){b-=a;if(2592E6<=b)return bma(a);if(1728E5<=b)a=Math.floor(b/864E5),b="days";else if(864E5<=b)a=1,b="day";else if(72E5<=b)a=Math.floor(b/36E5),b="hours";else if(36E5<=b)a=1,b="hour";else if(12E4<=b)a=Math.floor(b/6E4),b="minutes";else if(6E4<=b)a=1,b="minute";else{if(0<=b)return"just now";if(2592E6<=-b)return bma(a);if(1728E5<=-b)a=-Math.floor(-b/864E5),
b="days";else if(864E5<=-b)a=-1,b="day";else if(72E5<=-b)a=-Math.floor(-b/36E5),b="hours";else if(36E5<=-b)a=-1,b="hour";else if(12E4<=-b)a=-Math.floor(-b/6E4),b="minutes";else if(6E4<=-b)a=-1,b="minute";else return"now"}b=Math.abs(a)+" "+b;0<=a?b+=" ago":0>a&&(b="in "+b);return b},bma=function(a){a=new Date(a);return(new ti("y-MM-dd")).format(a)},dma=function(a){if(a&1){var b=x();G(0,"button",6);K("click",function(){z(b);var c=M();return A(c.action.emit())});P(1);H()}a&2&&(a=M(),B(1),If(" ",a.actionBtnText,
" "))},ema=function(a){if(a&1){var b=x();G(0,"onedev-feature-tooltip-body",1);K("action",function(){z(b);var c=M();return A(c.action.emit())})("dismiss",function(){z(b);var c=M();c.hideFeatureTooltip();c.dismiss.emit();return A()});Df(1);H()}a&2&&(a=M(),D("actionBtnText",a.actionBtnText)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},ui=function(a){a&&"function"==typeof a.dispose&&a.dispose()},fma=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];
Ca(d)?fma.apply(null,d):ui(d)}},gma=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;y=w=0}function b(E){for(var I=h,N=0;64>N;N+=4)I[N/4]=E[N]<<24|E[N+1]<<16|E[N+2]<<8|E[N+3];for(N=16;80>N;N++)E=I[N-3]^I[N-8]^I[N-14]^I[N-16],I[N]=(E<<1|E>>>31)&4294967295;E=e[0];var L=e[1],S=e[2],Y=e[3],ka=e[4];for(N=0;80>N;N++){if(40>N)if(20>N){var ha=Y^L&(S^Y);var ya=1518500249}else ha=L^S^Y,ya=1859775393;else 60>N?(ha=L&S|Y&(L|S),ya=2400959708):(ha=L^S^Y,ya=
3395469782);ha=((E<<5|E>>>27)&4294967295)+ha+ka+ya+I[N]&4294967295;ka=Y;Y=S;S=(L<<30|L>>>2)&4294967295;L=E;E=ha}e[0]=e[0]+E&4294967295;e[1]=e[1]+L&4294967295;e[2]=e[2]+S&4294967295;e[3]=e[3]+Y&4294967295;e[4]=e[4]+ka&4294967295}function c(E,I){if("string"===typeof E){E=unescape(encodeURIComponent(E));for(var N=[],L=0,S=E.length;L<S;++L)N.push(E.charCodeAt(L));E=N}I||(I=E.length);N=0;if(0==w)for(;N+64<I;)b(E.slice(N,N+64)),N+=64,y+=64;for(;N<I;)if(f[w++]=E[N++],y++,64==w)for(w=0,b(f);N+64<I;)b(E.slice(N,
N+64)),N+=64,y+=64}function d(){var E=[],I=8*y;56>w?c(k,56-w):c(k,64-(w-56));for(var N=63;56<=N;N--)f[N]=I&255,I>>>=8;b(f);for(N=I=0;5>N;N++)for(var L=24;0<=L;L-=8)E[I++]=e[N]>>L&255;return E}for(var e=[],f=[],h=[],k=[128],q=1;64>q;++q)k[q]=0;var w,y;a();return{reset:a,update:c,digest:d,digestString:function(){for(var E=d(),I="",N=0;N<E.length;N++)I+="0123456789ABCDEF".charAt(Math.floor(E[N]/16))+"0123456789ABCDEF".charAt(E[N]%16);return I}}},hma=function(a,b,c){vi(a.url,function(d){d=d.target;d.isSuccess()?
b(d.getResponseText()):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)},ima=function(a){this.logSource_=a;this.sessionIndex_="0";this.destinationUrl_="https://play.google.com/log?format=json&hasfast=true";this.enableServiceWorkerScope_=!1;this.networkIOSend_=hma;this.componentId_="";this.useGetRequestForFinalFlush_=this.useSendBeaconForFinalFlush_=!1},jma=function(a){var b=new Map;0<a.length&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");
d=r(-1==d?[decodeURIComponent(c),""]:[decodeURIComponent(c.slice(0,d)),decodeURIComponent(c.slice(d+1))]);c=d.next().value;d=d.next().value;var e=b.get(c)||[];e.push(d);b.set(c,e)});return b},mma=function(a){return encodeURIComponent(a).replace(kma,function(b,c){var d;return null!=(d=lma[c])?d:b})},nma=function(a){return"undefined"!==typeof ArrayBuffer&&a instanceof ArrayBuffer},oma=function(a){return"undefined"!==typeof Blob&&a instanceof Blob},pma=function(a){return"undefined"!==typeof FormData&&
a instanceof FormData},qma=function(a,b){return{body:b,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}},rma=function(){if(void 0===wi&&(wi=null,"undefined"!==typeof window)){var a=window;void 0!==a.trustedTypes&&(wi=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return wi},sma=function(a){var b;return(null==(b=rma())?void 0:b.createHTML(a))||a},
tma=function(){var a=t(ii),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},uma=function(a){a&1&&(Lc(),G(0,"svg",2),J(1,"polygon",3),H())},vma=function(a){if(a&1){var b=x();G(0,"div",0);K("keydown",function(c){z(b);var d=M();return A(d._handleKeydown(c))})("click",function(){z(b);var c=M();return A(c.closed.emit("click"))})("@transformMenu.start",function(c){z(b);var d=M();return A(d._onAnimationStart(c))})("@transformMenu.done",function(c){z(b);var d=M();return A(d._onAnimationDone(c))});
G(1,"div",1);Df(2);H()()}a&2&&(a=M(),D("id",a.panelId)("ngClass",a._classList)("@transformMenu",a._panelAnimationState),nf("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},wma=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},xma=function(a){return{matches:"all"===a||""===a,media:a,addListener:function(){},removeListener:function(){}}},yma=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,
c){return b.concat(c)}).map(function(b){return b.trim()})},zma=function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}},Ama=function(a){a&1&&J(0,"mat-icon",22)},Bma=function(a){a&1&&(xf(0),G(1,"mat-icon",22)(2,"span",23),P(3),H()(),yf());a&2&&(a=M(),B(3),Jf(a.pinnedTasksCount))},Cma=function(a){a&1&&(xf(0),G(1,"mat-icon",22),J(2,"mat-icon",24),H(),yf());a&2&&(a=M(),B(2),D("ngClass",a.subscriptIconStyleClass)("svgIcon",a.subscriptIcon))},Dma=function(a){if(a&1){var b=x();G(0,"span",39);K("click",
function(c){z(b);var d=M(2);return A(d.stopPropagation(c))});P(1);Q(2,"date");H()}a&2&&(a=M(2),D("disableRipple",!0),B(1),If(" Until ",Rf(2,2,a.snoozeUntilMsInternal,"EEE, MMM d, h:mm a")," "))},Ema=function(a){if(a&1){var b=x();G(0,"button",40);K("click",function(){z(b);M(2).addTaskByUrl.emit();return A()});J(1,"mat-icon",41);H()}},Fma=function(a){a&1&&J(0,"mat-icon",42)},Gma=function(a){a&1&&J(0,"mat-icon",43)},Hma=function(a){a&1&&J(0,"mat-icon",44)},Ima=function(a){a&1&&J(0,"mat-icon",45)},Jma=
function(a){a&1&&J(0,"mat-icon",46)},Kma=function(a){a&1&&J(0,"mat-icon",47)},Lma=function(a){if(a&1){var b=x();xf(0);O(1,Dma,3,5,"span",25);G(2,"div",26);O(3,Ema,2,0,"button",27);G(4,"button",28);K("click",function(){z(b);var c=M();return A(xi(c,c.taskStatusInternal===c.TaskStatus.PINNED?c.TaskStatus.INCOMING:c.TaskStatus.PINNED))});O(5,Fma,1,0,"mat-icon",29);O(6,Gma,1,0,"mat-icon",30);H();G(7,"button",31);K("click",function(){z(b);var c=M();try{c.widgetMenuTrigger.closeMenu(),yi(c.snoozeMenuTrigger)}catch(d){}return A()});
J(8,"mat-icon",32);H();G(9,"button",33);K("click",function(){z(b);var c=M();return A(xi(c,c.taskStatusInternal===c.TaskStatus.ARCHIVED?c.TaskStatus.INCOMING:c.TaskStatus.ARCHIVED))});O(10,Hma,1,0,"mat-icon",34);O(11,Ima,1,0,"mat-icon",35);H();G(12,"button",36);K("click",function(){z(b);var c=M();return A(xi(c,c.taskStatusInternal===c.TaskStatus.MUTED?c.TaskStatus.INCOMING:c.TaskStatus.MUTED))});O(13,Jma,1,0,"mat-icon",37);O(14,Kma,1,0,"mat-icon",38);H()();yf()}a&2&&(a=M(),B(1),D("ngIf",a.taskStatusInternal===
a.TaskStatus.SNOOZED),B(2),D("ngIf",a.shouldShowAddToG3cButton),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),nf("aria-label",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),B(1),D("ngIf",a.taskStatusInternal!==a.TaskStatus.PINNED),B(1),D("ngIf",a.taskStatusInternal===a.TaskStatus.PINNED),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.SNOOZED?"Unsnooze this task":"Snooze this task"),nf("aria-label",a.taskStatusInternal===
a.TaskStatus.SNOOZED?"Unsnooze this task":"Snooze this task"),B(1),sf("orange",a.taskStatusInternal===a.TaskStatus.SNOOZED),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),nf("aria-label",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),B(1),D("ngIf",a.taskStatusInternal!==a.TaskStatus.ARCHIVED),B(1),D("ngIf",a.taskStatusInternal===a.TaskStatus.ARCHIVED),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.MUTED?
"Unmute this task":"Mute this task"),nf("aria-label",a.taskStatusInternal===a.TaskStatus.MUTED?"Unmute this task":"Mute this task"),B(1),D("ngIf",a.taskStatusInternal!==a.TaskStatus.MUTED),B(1),D("ngIf",a.taskStatusInternal===a.TaskStatus.MUTED))},Mma=function(a){if(a&1){var b=x();G(0,"button",16);K("click",function(){z(b);var c=M();zi(c,c.laterThisWeek);return A()});P(1," Later this week ");G(2,"span",17);P(3);Q(4,"date");H()()}a&2&&(a=M(),B(3),Jf(Rf(4,1,a.laterThisWeek,"EEE, MMM d, h:mm a")))},
Nma=function(a){if(a&1){var b=x();G(0,"button",16);K("click",function(){z(b);var c=M();xi(c,6);return A()});J(1,"mat-icon",48);P(2,"Unsnooze now ");H()}},Oma=function(a){if(a&1){var b=x();G(0,"onedev-feature-tooltip",50);K("beforeShown",function(){z(b);var c=M(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=M(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_ACKED);
return A()});G(1,"p",51);P(2,"G3 Console");H();P(3," Navigate to the G3 Console to see all of your tasks. ");H()}a&2&&(a=M(2),D("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS))},Pma=function(a){if(a&1){var b=x();G(0,"onedev-feature-tooltip",50);K("beforeShown",function(){z(b);var c=M(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=M(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_ACKED);
return A()});G(1,"p",51);P(2,"G3 Console");H();P(3," Pin, snooze, archive or mute this task. ");H()}a&2&&(a=M(2),D("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS))},Qma=function(a){a&1&&(G(0,"onedev-feature-tooltip-controller"),O(1,Oma,4,1,"onedev-feature-tooltip",49),O(2,Pma,4,1,"onedev-feature-tooltip",49),H());a&2&&(a=M(),B(1),D("ngIf",a.skipTasksActions),B(1),D("ngIf",!a.skipTasksActions))},Rma=function(a){if(a&1){var b=x();xf(0);G(1,"g3c-widget",1);K("updateTaskStatus",function(c){z(b);
var d=M();return A(d.updateTaskStatus(c))})("addTaskByUrl",function(){z(b);var c=M();return A(c.addTaskByUrl())})("widgetMenuOpen",function(){z(b);var c=M();return A(c.emitWidgetMenuOpen())})("openInG3cClicked",function(){z(b);var c=M();return A(c.emitOpenInG3cClicked())})("featureTooltipActioned",function(c){z(b);M().userActionPerformed.emit(c);return A()});Q(2,"async");Q(3,"async");H();yf()}a&2&&(a=M(),B(1),D("task",R(2,6,a.task$))("pinnedTasksCount",R(3,8,a.pinnedTasksCount$))("menuXPosition",
a.menuXPosition)("skipTasksActions",a.skipTasksActionsInternal)("featureHighlightingEnabled",a.featureHighlightingEnabled)("customWidgetClass",a.customWidgetClass))},Tma=function(a){var b=a.xhr_?a.xhr_.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new Ai:new Sma;if(b.startsWith("application/x-protobuf")){a=a.xhr_?a.xhr_.getResponseHeader("Content-Transfer-Encoding"):null;if(!a)return new Bi;
if("base64"==a.toLowerCase())return new Di}return null},Uma=function(a){return"nonprod"===a.environment?"https://autopushcorp-devopsconsole-pa-googleapis.corp.google.com":"https://devopsconsole-pa-googleapis.corp.google.com"},Ei=function(a,b){if(a===b)return!0;if(null==a||null==b)return a===b;if(Array.isArray(a)){if(!Array.isArray(b))return!1;var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(!Ei(a[d],b[d]))return!1;return!0}if(a instanceof Date)return b instanceof Date?a.getTime()===
b.getTime():!1;if(a instanceof RegExp)return b instanceof RegExp?a.toString()===b.toString():!1;if("object"===typeof a){if("object"!==typeof b)return!1;c=Object.keys(a);d=c.length;if(d!==Object.keys(b).length)return!1;for(var e=0;e<d;e++){var f=c[e];if(!Vma.call(b,f)||!Ei(a[f],b[f]))return!1}return!0}return!1},Wma=function(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=r(b),f=e.next();!f.done;f=e.next())if(Ei(c,f.value)){d=!0;break}d||b.push(c)}return b},Xma=function(a,
b){for(var c=a.length-1;0<=c;c--)Ei(a[c],b)&&a.splice(c,1)},Yma=function(a,b,c){c=void 0===c?Infinity:c;if(a===b)return!0;if((null==a||null==b)&&a!==b)return!1;var d=Object.keys(a),e=Object.keys(b);if(d.length!==e.length)return!1;c=Math.min(d.length,c);for(e=0;e<c;e++){var f=d[e];if(a[f]!==b[f]&&("object"!==typeof a[f]||"object"!==typeof b[f]))return!1}return!0},$ma=function(a){return Object.assign.apply(Object,[{}].concat(u(Zma.map(function(b){var c={};return c[b]=a[b],c}))))},Fi=function(a){if(null!==
a&&void 0!==a&&-1===["boolean","function","number","string"].indexOf(typeof a))if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(Fi(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof Map){b=new Map;a=r(a);for(c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.set(Fi(c),Fi(d))}a=b}else{b={};c=r(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b[d]=
Fi(e)}b.__proto__=a.__proto__;a=b}return a},Gi=function(a){return"number"===typeof a},Hi=function(a){return"string"===typeof a},ana=function(a){return Gi(a)||Hi(a)},bna=function(a){return Array.isArray(a)&&a.every(Hi)},cna=function(a){return Array.isArray(a)&&a.every(Gi)},dna=function(a){return null==a?!1:"function"===typeof a.then},ena=function(a){if(null==a)return!1;a=String(a).trim();if(2>=a.length)return!1;var b=Number(a);return isNaN(b)?!1:String(b).length===a.length},Ii=function(a){return a.toLowerCase().replace(/_([a-z])/g,
function(b,c){return c.toUpperCase()})},Li=function(a){if(a){if(Gi(a)){var b=new Date(a);47E3<b.getFullYear()&&(b=new Date(a/1E3));return new Ji(b)}b=a.split("/");if(3===b.length)return a=Ki(b[2]),50>a?a+=2E3:100>a&&(a+=1900),new Ji(a,Ki(b[0])-1,Ki(b[1]));if(1===b.length)return Li(Number(a))}return new Ji},fna=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},gna=function(a){return!(!a||!Mi(a,"text/")&&!Mi(a,"image/")&&"application/pdf"!==a)},Ni=function(a,b){return a.map(function(c){return c[b]})},
Oi=function(a,b){return a.filter(function(c){return!b.has(c)})},hna=function(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b.has(d.value))return!1;b=r(b);for(d=b.next();!d.done;d=b.next())if(!a.has(d.value))return!1;return!0},Pi=function(a,b){return Oi(a,new Set(b))},Ri=function(a,b){var c=/[,;]/;(void 0===b||b)&&(c=/[\s,;]/);return a.split(c).map(Qi).filter(function(d){return!!d})},Ti=function(a){"duplicateOfIssueId"===a&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Si({type:String(a).replace(/([A-Z])/g,
"_$1").toUpperCase()}):0===b?a=null:(a={customFieldId:b},a=new Si({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},ina=function(a){a=Ui(a);if(Vi(a))return null;var b=a.split(":");if(2!==b.length||Vi(b[1]))return null;a="asc"===b[1].toLowerCase()?"ASCENDING":"DESCENDING";return(b=Ti(b[0]))&&a?new Wi(b,a):null},Xi=function(){if(null==jna){var a=void 0===a?kna.buganizerSessionJspb:a;a=jna=new lna(a)}else a=jna;return a},Zi=function(a){var b=void 0===b?Xi():b;var c,
d;return null==(d=null==(c=b.getConfig())?void 0:Yi(c,4))?void 0:d.get(a)},mna=function(a){a=void 0===a?Xi():a;return V(a,4)||"INTERNAL"},$i=function(a){a=void 0===a?Xi():a;return"INTERNAL"===mna(a)},nna=function(){var a=void 0===a?Xi():a;return!$i(a)},ona=function(){var a=void 0===a?Xi():a;return"PUBLIC"===mna(a)},pna=function(){var a=void 0===a?Xi():a;return a.getUser()||void 0},qna=function(a){if(null==a)return 0;switch(aj[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},
rna=function(a){switch(a){case "showHotlists":return{get:function(b){return b.showHotlists},set:function(b,c){b.showHotlists=c}};case "wrapTitles":return{get:function(b){return b.wrapTitles},set:function(b,c){b.wrapTitles=c}};case "wrapComponents":return{get:function(b){return b.wrapComponents},set:function(b,c){b.wrapComponents=c}};case "showStatusIcons":return{get:function(b){return b.showStatusIcons},set:function(b,c){b.showStatusIcons=c}};case "rtlComponentPath":return{get:function(b){return b.rtlComponentPath},
set:function(b,c){b.rtlComponentPath=c}};default:throw Error("fc`"+a);}},bj=function(a){if(nna())return!1;var b;return!0===(null==a?void 0:null==(b=a.newIssueDetailsPagePreferences)?void 0:b.newIdpOptOut)?!1:!0},zna=function(a){var b={};cj(a,1)&&(b.showFullHistory=W(a,1));cj(a,2)&&(b.useCodefont=W(a,2));cj(a,5)&&(b.resultsPerPage=dj(a,5));cj(a,26)&&(b.showRecentEventsFirst=W(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(sna)});if(c=a.getSortColumns())b.sortColumns=
{column:c.getColumnList().map(tna)};cj(a,7)&&(b.bannerMessageId=V(a,7));if(c=m(a,ej,3)){var d={};cj(c,1)&&(d.reportedPriority=fj[X(c,1,0)]);cj(c,2)&&(d.assignedPriority=fj[X(c,2,0)]);cj(c,3)&&(d.verifiedPriority=fj[X(c,3,0)]);cj(c,4)&&(d.ccdPriority=fj[X(c,4,0)]);cj(c,5)&&(d.starredPriority=fj[X(c,5,0)]);cj(c,6)&&(d.excludeChangesByMe=W(c,6));cj(c,7)&&(d.unsubscribeFromAll=W(c,7));cj(c,8)&&(d.enableV2Prefs=W(c,8));b.notificationPreferences=d}if(c=m(a,gj,9))d={},cj(c,1)&&(d.showHotlists=W(c,1)),cj(c,
4)&&(d.showStatusIcons=W(c,4)),cj(c,3)&&(d.wrapComponents=W(c,3)),cj(c,2)&&(d.wrapTitles=W(c,2)),cj(c,5)&&(d.rtlComponentPath=W(c,5)),b.listViewPreferences=d;if(c=a.getLayoutPreferences())d={},cj(c,1)&&(d.leftSidebarWidth=dj(c,1)),cj(c,2)&&(d.expandIssueSlo=W(c,2)),cj(c,3)&&(d.rightSidebarWidth=dj(c,3)),b.layoutPreferences=d;if(c=m(a,hj,11))d={},cj(c,1)&&(d.calendarFormat=V(c,1)),cj(c,2)&&(d.timeFormat=V(c,2)),c.hasTimeZone()&&(d.timeZone=c.getTimeZone()),b.dateTimePreferences=d;if(c=m(a,ij,8))d=
{},cj(c,1)&&(d.density=una[c.getDensity()]),b.themePreferences=d;if(c=a.getHomepagePreferences())d={},c.hasResourceType()&&(d.resourceType=vna(c.getResourceType())),c.hasResourceId()&&(d.resourceId=c.getResourceId()),b.homepagePreferences=d;if(c=m(a,jj,17))d={},cj(c,1)&&(d.enableAllHotkeys=W(c,1,!0)),b.keyboardPreferences=d;cj(a,16)&&(b.newFeaturesAcknowledgedMillis=kj(a,16));cj(a,18)&&(b.autoCcOnComment=W(a,18));cj(a,20)&&(d=m(a,lj,20),c=d.getCommentDisplayOverride(),d=X(d,1,0),b.textDisplayPreferences=
{commentDisplayOverride:wna(c),lastPublishMode:wna(d)});cj(a,21)&&(c=m(a,mj,21),d={},cj(c,2)&&(d.announcementDismissed=W(c,2)),cj(c,1)&&(d.enableBugScreensaver=W(c,1)),b.bugScreensaverPreferences=d);cj(a,24)&&(c=m(a,nj,24),d={},cj(c,1)&&(d.announcementDismissedMillis=dj(c,1)),b.g3nPreferences=d);cj(a,22)&&(c=m(a,oj,22),d={},cj(c,1)&&(d.enableNewIssueDetailsPage=W(c,1)),cj(c,3)&&(d.newIdpOptOut=W(c,3)),cj(c,2)&&(d.onboardingDialogAcknowledgedMillis=dj(c,2)),b.newIssueDetailsPagePreferences=d);if(c=
m(a,pj,23))b.teamWarningPreferences={componentTeamWarnings:rb(c,qj,1).map(xna)};Yi(a,25,rj).size&&(b.dismissalTimestamps=yna(Yi(a,25,rj)));return b},sna=function(a){var b={};a.hasType()&&(b.type=Ana[a.getType()]);a.hasCustomFieldId()&&(b.customFieldId=a.getCustomFieldId());return b},tna=function(a){var b={};if(cj(a,2)){a:{var c=X(a,2,1);switch(c){case 1:c="ASCENDING";break a;case 2:c="DESCENDING";break a;default:c=bh(c,"Unknown sortOrder: "+c)}}b.order=c}if(a=a.getColumn())b.column=sna(a);return b},
wna=function(a){if(0!==a)return aj[a]},vna=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";default:return bh(a,"Unknown resourceType: "+a)}},xna=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId());cj(a,2)&&(b.dismissMillis=dj(a,2));return b},yna=function(a){a=Array.from(a.entries()).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},Hna=function(a){var b=new sj;
null!=a.showFullHistory&&l(b,1,a.showFullHistory);null!=a.useCodefont&&l(b,2,a.useCodefont);null!=a.resultsPerPage&&l(b,5,a.resultsPerPage);if(null!=a.displayColumns){var c=Bna(a.displayColumns);Ab(b,4,c)}null!=a.sortColumns&&(c=Cna(a.sortColumns),Ab(b,6,c));null!=a.bannerMessageId&&l(b,7,a.bannerMessageId);if(null!=a.notificationPreferences){c=a.notificationPreferences;var d=new ej;d=l(d,1,tj[c.reportedPriority]);d=l(d,2,tj[c.assignedPriority]);d=l(d,3,tj[c.verifiedPriority]);d=l(d,4,tj[c.ccdPriority]);
d=l(d,5,tj[c.starredPriority]);d=l(d,6,c.excludeChangesByMe);d=l(d,7,c.unsubscribeFromAll);c=l(d,8,c.unsubscribeFromAll);Ab(b,3,c)}null!=a.listViewPreferences&&(c=a.listViewPreferences,d=new gj,d=l(d,1,c.showHotlists),d=l(d,2,c.wrapTitles),d=l(d,3,c.wrapComponents),d=l(d,4,c.showStatusIcons),c=l(d,5,c.rtlComponentPath),Ab(b,9,c));null!=a.layoutPreferences&&(c=a.layoutPreferences,d=new uj,null!=c.leftSidebarWidth&&l(d,1,c.leftSidebarWidth),null!=c.expandIssueSlo&&l(d,2,c.expandIssueSlo),null!=c.rightSidebarWidth&&
l(d,3,c.rightSidebarWidth),Ab(b,10,d));null!=a.dateTimePreferences&&(c=a.dateTimePreferences,d=new hj,d=l(d,1,c.calendarFormat),c=l(d,2,c.timeFormat).setTimeZone(c.timeZone),Ab(b,11,c));null!=a.themePreferences&&(c=a.themePreferences,c=(new ij).setDensity(Dna[c.density]),Ab(b,8,c));null!=a.homepagePreferences&&(c=a.homepagePreferences,d=new vj,null!=c.resourceType&&d.setResourceType(Ena(c.resourceType)),null!=c.resourceId&&d.setResourceId(c.resourceId),Ab(b,13,d));null!=a.keyboardPreferences&&(c=
a.keyboardPreferences,d=new jj,c=l(d,1,c.enableAllHotkeys),Ab(b,17,c));null!=a.newFeaturesAcknowledgedMillis&&l(b,16,a.newFeaturesAcknowledgedMillis);null!=a.autoCcOnComment&&l(b,18,a.autoCcOnComment);null!=a.textDisplayPreferences&&(c=a.textDisplayPreferences,d=new lj,c.commentDisplayOverride&&d.setCommentDisplayOverride(Fna(c.commentDisplayOverride)),c.lastPublishMode&&l(d,1,Fna(c.lastPublishMode)),Ab(b,20,d));null!=a.bugScreensaverPreferences&&(c=a.bugScreensaverPreferences,d=new mj,null!=c.enableBugScreensaver&&
l(d,1,c.enableBugScreensaver),null!=c.announcementDismissed&&l(d,2,c.announcementDismissed),Ab(b,21,d));null!=a.g3nPreferences&&(c=a.g3nPreferences,d=new nj,null!=c.announcementDismissedMillis&&l(d,1,c.announcementDismissedMillis),Ab(b,24,d));null!=a.newIssueDetailsPagePreferences&&(c=a.newIssueDetailsPagePreferences,d=new oj,null!=c.enableNewIssueDetailsPage&&l(d,1,c.enableNewIssueDetailsPage),null!=c.newIdpOptOut&&l(d,3,c.newIdpOptOut),null!=c.onboardingDialogAcknowledgedMillis&&l(d,2,c.onboardingDialogAcknowledgedMillis),
Ab(b,22,d));null!=a.teamWarningPreferences&&(c=Gna(a.teamWarningPreferences),Ab(b,23,c));if(null!=a.dismissalTimestamps){c=Yi(b,25,rj);d=r(Object.entries(a.dismissalTimestamps));for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;var h=f.next().value;f=c;var k=f.set,q=new rj;h=h.getTime();q.setSeconds(Math.floor(h/1E3)).setNanos(h%1E3*1E6);k.call(f,e,q)}}null!=a.showRecentEventsFirst&&l(b,26,a.showRecentEventsFirst);return b},Bna=function(a){return(new wj).setColumnList(a.column.map(function(b){return Ina(b)}))},
Ina=function(a){var b=new xj,c=b.setType,d=a.type;if(!yj.hasOwnProperty(d))throw Error("gc`"+d);b=c.call(b,Jna[d]);null!=a.customFieldId&&b.setCustomFieldId(a.customFieldId);return b},Cna=function(a){return(new zj).setColumnList(a.column.map(function(b){var c=(new Aj).setColumn(Ina(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=bh(b,"Unknown sortOrder: "+b)}return l(c,2,b)}))},Ena=function(a){switch(a){case "HOTLIST":return 1;case "SAVED_SEARCH":return 2;
case "BOOKMARK_GROUP":return 3;default:return bh(a,"Unknown resourceType: "+a)}},Fna=function(a){switch(aj[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},Gna=function(a){var b=new pj;null!=a.componentTeamWarnings&&Kna(b,a.componentTeamWarnings.map(function(c){var d=new qj;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&l(d,2,c.dismissMillis);return d}));return b},Bj=function(a){return a},Cj=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?
!1:c[d]=!0})},Dj=function(a,b){for(var c=Math.max(a.length,b.length),d=[],e=0;e<c;e++)d.push([a[e],b[e]]);return d},Lna=function(a){a=void 0===a?[]:a;return a.filter(function(b){return"number"===typeof b}).filter(function(b){return 0!==b})},Mna=function(a,b){if(a.length!==b.length)return!1;a=[].concat(u(a)).sort();b=[].concat(u(b)).sort();return a.every(function(c,d){return c===b[d]})},Nna=function(a,b){var c=new Set(a),d=new Set(b);return{added:b.filter(function(e){return!c.has(e)}),removed:a.filter(function(e){return!d.has(e)})}},
Ej=function(a){a=void 0===a?{}:a;return Lna(Object.values(a)).sort(function(b,c){return b-c})},Ona=function(a,b){if(a&1){var c=x();G(0,"button",4);K("click",function(){var d=z(c).$implicit,e=M();return A(e.quickBulkEdit("PRIORITY",d))});P(1);H()}a&2&&(a=b.$implicit,b=M(),B(1),If(" ",b.constants.protoIssuePrioritiesDisplayNames.get(a)," "))},Pna=function(a,b){if(a&1){var c=x();G(0,"button",4);K("click",function(){var d=z(c).$implicit,e=M();return A(e.quickBulkEdit("SEVERITY",d))});P(1);H()}a&2&&(a=
b.$implicit,b=M(),B(1),If(" ",b.constants.protoIssueSeveritiesDisplayNames.get(a)," "))},Qna=function(a,b){if(a&1){var c=x();G(0,"button",4);K("click",function(){var d=z(c).$implicit,e=M();return A(e.quickBulkEdit("STATUS",d))});P(1);H()}a&2&&(a=b.$implicit,b=M(),B(1),If(" ",b.constants.protoIssueStatusesDisplayNames.get(a)," "))},Rna=function(a,b){if(a&1){var c=x();G(0,"button",16);K("click",function(){var e=z(c).$implicit,f=M();return A(f.quickBulkEdit("TYPE",e))});P(1);H()}if(a&2){a=b.$implicit;
b=M();var d;D("matTooltip",null!==(d=b.constants.protoIssueTypesShortDescriptions.get(a))&&void 0!==d?d:"");B(1);If(" ",b.constants.protoIssueTypesDisplayNames.get(a)," ")}},Sna=function(a){if(a&1){var b=x();G(0,"button",5);K("click",function(){z(b);var c=M(2);return A(c.exportCsvClicked.emit())});P(1,"Export issues to CSV ");H()}},Tna=function(a){if(a&1){var b=x();G(0,"button",5);K("click",function(){z(b);var c=M(2);return A(c.flagAsSpamClicked.emit())});P(1,"Flag issues as spam ");H()}},Una=function(a){a&
1&&(xf(0),G(1,"button",1)(2,"span"),P(3,"More"),H(),J(4,"b-icon",2),H(),G(5,"mat-menu",null,3),O(7,Sna,2,0,"button",4),O(8,Tna,2,0,"button",4),H(),yf());if(a&2){var b=Hf(6);a=M();B(1);D("disabled",a.isAnonymous)("matMenuTriggerFor",b);B(6);D("ngIf",a.showExportCsv);B(1);D("ngIf",a.showFlagIssuesAsSpam)}},Vna=function(a){a&1&&(xf(0),P(1," Network connection has been interrupted. "),yf())},Wna=function(a){a&1&&P(0," Network connection has been interrupted or login credentials may have expired. ")},
Zna=function(a){if(a&1){var b=x();G(0,"button",5);K("click",function(c){z(b);M(2);c.stopPropagation();c.preventDefault();var d={width:690,height:500,top:window.screenTop+(window.outerHeight-500)/2,left:window.screenLeft+(window.outerWidth-690)/2};c=window;var e=Rja("undefined"!=typeof"/refreshSso".href?"/refreshSso".href:"/refreshSso")||lh;var f=void 0!==self.crossOriginIsolated,h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);var k="unsafe-url"===h;h=d.noreferrer;
if(f&&h){if(k)throw Error("hc");h=!1}f=d.target||"/refreshSso".target;k=[];for(var q in d)switch(q){case "width":case "height":case "top":case "left":k.push(q+"="+d[q]);break;case "target":case "noopener":case "noreferrer":break;default:k.push(q+"="+(d[q]?1:0))}q=k.join(",");ma()&&c.navigator&&c.navigator.standalone&&f&&"_self"!=f?(d=Fj(document,"A"),e=e instanceof hh?e:Gj(e),d.href=ih(e),d.target=f,h&&(d.rel="noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),d.dispatchEvent(e)):
h?(c=Xna("",c,f,q),e=ih(e),c&&(Yna&&da(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,""===e&&(e="javascript:''"),e=Hj('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ij(e)+'">',null),(c=c.document)&&c.write&&(c.write(ph(e)),c.close()))):(c=Xna(e,c,f,q))&&d.noopener&&(c.opener=null);return A()});P(1," Log in again ");H()}},$na=function(a){a&1&&(G(0,"b-callout",1)(1,"b-callout-body"),O(2,Vna,2,0,"ng-container",2),O(3,Wna,1,0,"ng-template",null,3,gg),
H(),G(5,"b-callout-actions"),O(6,Zna,2,0,"button",4),H()());if(a&2){var b=Hf(4);a=M();D("messageType","error");B(2);D("ngIf",a.isAnonymous)("ngIfElse",b);B(4);D("ngIf",!a.isAnonymous)}},Jj=function(){return new aoa},boa=function(a){var b={};a=r(Yi(a,1,Kj).entries());for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:X(d,1,0),detailedUserType:X(d,2,0)}}return b},coa=function(a,b){return a.map(function(c){return b[c]||null})},doa=function(a){if(a)return a;
a=new Kj;l(a,1,1);l(a,2,0);return a},eoa=function(a){return null===a?function(){}:function(b){a:{if(Array.isArray(b)&&1===b.length&&(b=b[0],Array.isArray(b))){b=new a(b);break a}b=void 0}if(void 0!==b)return b;throw Error("mc");}},foa=function(a){a&1&&(G(0,"a",1),P(1," Hiring!\n"),H())},goa=function(a){return a instanceof Lj?a:new Lj(a,{})},Mj=function(a){a=goa(a);return new Lj(a.char,Object.assign({},a.modifiers,{shift:!0}))},hoa=function(a){a=goa(a);return new Lj(a.char,Object.assign({},a.modifiers,
{ctrl:!0}))},ioa=function(){var a=Mj("f");a=goa(a);return new Lj(a.char,Object.assign({},a.modifiers,{alt:!0}))},koa=function(a){if(a instanceof Lj){var b=joa(a.char);a.modifiers.ctrl&&(b="ctrl+"+b);a.modifiers.alt&&(b="alt+"+b);a.modifiers.shift&&(b="shift+"+b);return b}return a instanceof Array?a.map(koa).join(" "):joa(a)},Nj=function(){return oc.apply(0,arguments)},joa=function(a){switch(a){case "a":case "b":case "c":case "d":case "e":case "f":case "g":case "h":case "i":case "j":case "k":case "l":case "m":case "n":case "o":case "p":case "q":case "r":case "s":case "t":case "u":case "v":case "w":case "x":case "y":case "z":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":case "0":case "/":case "*":case ".":case "<":case ">":case "?":return a;
case "F1":return"f1";case "F3":return"f3";case "DOWN":return"down";case "UP":return"up";case "RIGHT":return"right";case "LEFT":return"left";case "SPACE":return"space";case "ENTER":return"enter";default:return bh(a)}},loa=function(a){var b=200,c=500;b=void 0===b?200:b;c=void 0===c?500:c;var d=a.length;return(0,T.concat)((0,T.of)(b),(0,T.timer)(c,c).pipe(Qe(function(e){return e+b},b),Jga(function(e){return e<d})),(0,T.of)(a.length)).pipe(Le()).pipe(C(function(e){return a.slice(0,Math.min(e,d))}))},
Oj=function(a,b){b=new T.BehaviorSubject(b);a.subscribe(b);return b},Pj=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},Qj=function(){return Le(function(a,b){return Ei(a,b)})},moa=function(){return function(a){return a.pipe(C(function(b){return{event:b,timestamp:Date.now()}}),aga(a.pipe(Je(1E4,T.asapScheduler))))}},noa=function(a){a=Error("nc`"+a);a.ngNavigationCancelingError=!0;return a},ooa=function(a,b,c){var d=c.path.split("/");if(d.length>a.length||"full"===c.pathMatch&&
(b.hasChildren()||d.length<a.length))return null;b={};for(c=0;c<d.length;c++){var e=d[c],f=a[c];if(e.startsWith(":"))b[e.substring(1)]=f;else if(e!==f.path)return null}return{consumed:a.slice(0,d.length),posParams:b}},Rj=function(a,b){var c=a?Object.keys(a):void 0,d=b?Object.keys(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!poa(a[d],b[d]))return!1;return!0},poa=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(u(a)).sort();
var c=[].concat(u(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},Sj=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},Tj=function(a){return Jea(a)?a:Wd(a)?(0,T.from)(Promise.resolve(a)):(0,T.of)(a)},soa=function(a,b,c){return qoa[c.paths](a.root,b.root,c.matrixParams)&&roa[c.queryParams](a.queryParams,b.queryParams)&&!("exact"===c.fragment&&a.fragment!==b.fragment)},toa=function(a,b){return Rj(a,b)},uoa=function(a,b,c){if(!Uj(a.segments,b.segments)||!Vj(a.segments,
b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!uoa(a.children[d],b.children[d],c))return!1;return!0},voa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return poa(a[c],b[c])})},xoa=function(a,b,c){return woa(a,b,b.segments,c)},woa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Uj(a,c)&&!b.hasChildren()&&Vj(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!Uj(a.segments,
c)||!Vj(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!xoa(a.children[e],b.children[e],d))return!1;return!0}e=c.slice(0,a.segments.length);c=c.slice(a.segments.length);return Uj(a.segments,e)&&Vj(a.segments,e,d)&&a.children.primary?woa(a.children.primary,b,c,d):!1},Vj=function(a,b,c){return b.every(function(d,e){return roa[c](a[e].parameters,d.parameters)})},yoa=function(a,b){return Uj(a,b)&&a.every(function(c,d){return Rj(c.parameters,b[d].parameters)})},Uj=function(a,b){return a.length!==
b.length?!1:a.every(function(c,d){return c.path===b[d].path})},zoa=function(a,b){var c=[];Sj(a.children,function(d,e){"primary"===e&&(c=c.concat(b(d,e)))});Sj(a.children,function(d,e){"primary"!==e&&(c=c.concat(b(d,e)))});return c},Xj=function(a){return a.segments.map(function(b){return Wj(b.path)+Aoa(b.parameters)}).join("/")},Yj=function(a,b){if(!a.hasChildren())return Xj(a);if(b){b=a.children.primary?Yj(a.children.primary,!1):"";var c=[];Sj(a.children,function(d,e){"primary"!==e&&c.push(e+":"+
Yj(d,!1))});return 0<c.length?b+"("+c.join("//")+")":b}b=zoa(a,function(d,e){return"primary"===e?[Yj(a.children.primary,!1)]:[e+":"+Yj(d,!1)]});return 1===Object.keys(a.children).length&&null!=a.children.primary?Xj(a)+"/"+b[0]:Xj(a)+"/("+b.join("//")+")"},Boa=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},Zj=function(a){return Boa(a).replace(/%3B/gi,";")},Wj=function(a){return Boa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,
"&")},Aoa=function(a){return Object.keys(a).map(function(b){return";"+Wj(b)+"="+Wj(a[b])}).join("")},Coa=function(a){var b=Object.keys(a).map(function(c){var d=a[c];return Array.isArray(d)?d.map(function(e){return Zj(c)+"="+Zj(e)}).join("&"):Zj(c)+"="+Zj(d)}).filter(function(c){return!!c});return b.length?"?"+b.join("&"):""},ak=function(a){return(a=a.match(Doa))?a[0]:""},Eoa=function(a,b){if(a===b.value)return b;b=r(b.children);for(var c=b.next();!c.done;c=b.next())if(c=Eoa(a,c.value))return c;return null},
Foa=function(a,b){if(a===b.value)return[b];for(var c=r(b.children),d=c.next();!d.done;d=c.next())if(d=Foa(a,d.value),d.length)return d.unshift(b),d;return[]},bk=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},Goa=function(a,b){a=new ck("",new dk(new ek([],{},{},"",{},"primary",b,null,a.root,-1,{}),[]));b=new fk(new T.BehaviorSubject([new gk("",{})]),new T.BehaviorSubject({}),new T.BehaviorSubject({}),new T.BehaviorSubject(""),new T.BehaviorSubject({}),
"primary",b,a.root);b.snapshot=a.root;return new hk(new dk(b,[]),a)},Ioa=function(a,b){a=a.pathFromRoot;var c=0;if("always"!==(void 0===b?"emptyOnly":b))for(c=a.length-1;1<=c;){b=a[c];var d=a[c-1];if(b.routeConfig&&""===b.routeConfig.path)c--;else if(d.component)break;else c--}return Hoa(a.slice(c))},Hoa=function(a){return a.reduce(function(b,c){var d=Object.assign({},b.params,c.params),e=Object.assign({},b.data,c.data),f;b=Object.assign({},c.data,b.resolve,null==(f=c.routeConfig)?void 0:f.data,c._resolvedData);
return{params:d,data:e,resolve:b}},{params:{},data:{},resolve:{}})},Joa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return Joa(a,c)})},Koa=function(a){var b=0<a.children.length?" { "+a.children.map(Koa).join(", ")+" } ":"";return""+a.value+b},Loa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Rj(b.queryParams,c.queryParams)||a.queryParams.next(c.queryParams);b.fragment!==c.fragment&&a.fragment.next(c.fragment);Rj(b.params,c.params)||a.params.next(c.params);
a:{var d=b.url;var e=c.url;if(d.length!==e.length)d=!1;else{for(var f=0;f<d.length;++f)if(!Rj(d[f],e[f])){d=!1;break a}d=!0}}d||a.url.next(c.url);Rj(b.data,c.data)||a.data.next(c.data)}else a.snapshot=a._futureSnapshot,a.data.next(a._futureSnapshot.data)},Moa=function(a,b){var c=Rj(a.params,b.params)&&yoa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||Moa(a.parent,b.parent))},ik=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;
b=Noa(a,b,c);return new dk(d,b)}if(a.shouldAttach()&&(d=a.retrieve(),null!==d))return d=d.route,d.value._futureSnapshot=b.value,d.children=b.children.map(function(e){return ik(a,e)}),d;d=Ooa(b.value);b=b.children.map(function(e){return ik(a,e)});return new dk(d,b)},Noa=function(a,b,c){return b.children.map(function(d){for(var e=r(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return ik(a,d,f);return ik(a,d)})},Ooa=function(a){return new fk(new T.BehaviorSubject(a.url),
new T.BehaviorSubject(a.params),new T.BehaviorSubject(a.queryParams),new T.BehaviorSubject(a.fragment),new T.BehaviorSubject(a.data),a.outlet,a.component,a)},jk=function(a){return"object"===typeof a&&null!=a&&!a.outlets&&!a.segmentPath},kk=function(a){return"object"===typeof a&&null!=a&&a.outlets},Qoa=function(a,b,c,d,e){var f={};d&&Sj(d,function(h,k){f[k]=Array.isArray(h)?h.map(function(q){return""+q}):""+h});if(a===b)return new lk(c,f,e);a=Poa(a,b,c);return new lk(a,f,e)},Poa=function(a,b,c){var d=
{};Sj(a.children,function(e,f){d[f]=e===b?c:Poa(e,b,c)});return new mk(a.segments,d)},Soa=function(a){if("string"===typeof a[0]&&1===a.length&&"/"===a[0])return new Roa(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,e,f){if("object"===typeof e&&null!=e){if(e.outlets){var h={};Sj(e.outlets,function(k,q){h[q]="string"===typeof k?k.split("/"):k});return[].concat(u(d),[{outlets:h}])}if(e.segmentPath)return[].concat(u(d),[e.segmentPath])}return"string"!==typeof e?[].concat(u(d),[e]):0===f?(e.split("/").forEach(function(k,
q){if(0!=q||"."!==k)0==q&&""===k?c=!0:".."===k?b++:""!=k&&d.push(k)}),d):[].concat(u(d),[e])},[]);return new Roa(c,b,a)},Toa=function(a){if(kk(a[0]))return a[0].outlets;var b={};return b.primary=a,b},Voa=function(a,b,c){a||(a=new mk([],{}));if(0===a.segments.length&&a.hasChildren())return nk(a,b,c);a:{var d=a;for(var e=0,f=b,h={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=h;break a}var k=d.segments[f],q=c[e];if(kk(q))break;q=""+q;var w=e<c.length-1?c[e+1]:null;if(0<
f&&void 0===q)break;if(q&&w&&"object"===typeof w&&void 0===w.outlets){if(q!=k.path||!Rj(w,k.parameters)){d=h;break a}e+=2}else{w={};if(q!=k.path||!Rj(w,k.parameters)){d=h;break a}e++}f++}d={match:!0,pathIndex:f,commandIndex:e}}e=c.slice(d.commandIndex);return d.match&&d.pathIndex<a.segments.length?(b=new mk(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new mk(a.segments.slice(d.pathIndex),a.children),nk(b,0,e)):d.match&&0===e.length?new mk(a.segments,{}):d.match&&!a.hasChildren()?Uoa(a,b,
c):d.match?nk(a,0,e):Uoa(a,b,c)},nk=function(a,b,c){if(0===c.length)return new mk(a.segments,{});var d=Toa(c),e={};Sj(d,function(f,h){"string"===typeof f&&(f=[f]);null!==f&&(e[h]=Voa(a.children[h],b,f))});Sj(a.children,function(f,h){void 0===d[h]&&(e[h]=f)});return new mk(a.segments,e)},Uoa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(kk(f))return a=Woa(f.outlets),new mk(d,a);if(0===e&&jk(c[0]))d.push(new gk(a.segments[b].path,Xoa(c[0]))),e++;else{f=kk(f)?f.outlets.primary:
""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&jk(h)?(d.push(new gk(f,Xoa(h))),e+=2):(d.push(new gk(f,{})),e++)}}return new mk(d,{})},Woa=function(a){var b={};Sj(a,function(c,d){"string"===typeof c&&(c=[c]);null!==c&&(b[d]=Uoa(new mk([],{}),0,c))});return b},Xoa=function(a){var b={};Sj(a,function(c,d){return b[d]=""+c});return b},ok=function(a){var b=a.children&&a.children.map(ok);a=b?Object.assign({},a,{children:b}):Object.assign({},a);!a.component&&(b||a.loadChildren)&&a.outlet&&"primary"!==a.outlet&&
(a.component=pk);return a},qk=function(a){return a.outlet||"primary"},Yoa=function(a,b){var c=a.filter(function(d){return qk(d)===b});c.push.apply(c,u(a.filter(function(d){return qk(d)!==b})));return c},Zoa=function(a){if(!a)return null;for(a=a.parent;a;a=a.parent){var b=a.routeConfig;if(b&&b._loadedInjector)return b._loadedInjector}return null},rk=function(a){return"function"===typeof a},sk=function(a){return a instanceof lk},uk=function(){return Xe(function(a){return(0,T.combineLatest)(a.map(function(b){return b.pipe(Me(),
We(tk))})).pipe(Qe(function(b,c){var d=!1;return c.reduce(function(e,f,h){if(e!==tk)return e;f===tk&&(d=!0);if(!d){if(!1===f)return f;if(h===c.length-1||sk(f))return f}return e},b)},tk),De(function(b){return b!==tk}),C(function(b){return sk(b)?b:!0===b}),Me())})},vk=function(a,b,c){if(""===b.path)return"full"===b.pathMatch&&(a.hasChildren()||0<c.length)?Object.assign({},$oa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||ooa)(c,a,b);if(!a)return Object.assign({},
$oa);var d={};Sj(a.posParams,function(f,h){d[h]=f.path});b=0<a.consumed.length?Object.assign({},d,a.consumed[a.consumed.length-1].parameters):d;var e;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:b,positionalParamSegments:null!=(e=a.posParams)?e:{}}},xk=function(a,b,c,d,e){e=void 0===e?"corrected":e;if(0<c.length&&apa(a,c,d)){var f=new mk(c,a.children);c={};c.primary=f;f._sourceSegment=a;f._segmentIndexShift=b.length;f=r(d);for(var h=f.next();!h.done;h=
f.next())h=h.value,""===h.path&&"primary"!==qk(h)&&(e=new mk([],{}),e._sourceSegment=a,e._segmentIndexShift=b.length,c[qk(h)]=e);c=new mk(b,c);c._sourceSegment=a;c._segmentIndexShift=b.length;return{segmentGroup:c,slicedSegments:[]}}if(0===c.length&&bpa(a,c,d)){f=a.segments;h=a.children;var k={};d=r(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,wk(a,c,q)&&!h[qk(q)]){var w=new mk([],{});w._sourceSegment=a;w._segmentIndexShift="legacy"===e?a.segments.length:b.length;k[qk(q)]=w}h=Object.assign({},
h,k);f=new mk(f,h);f._sourceSegment=a;f._segmentIndexShift=b.length;return{segmentGroup:f,slicedSegments:c}}f=new mk(a.segments,a.children);f._sourceSegment=a;f._segmentIndexShift=b.length;return{segmentGroup:f,slicedSegments:c}},apa=function(a,b,c){return c.some(function(d){return wk(a,b,d)&&"primary"!==qk(d)})},bpa=function(a,b,c){return c.some(function(d){return wk(a,b,d)})},wk=function(a,b,c){return(a.hasChildren()||0<b.length)&&"full"===c.pathMatch?!1:""===c.path},cpa=function(a,b,c,d){return qk(a)===
d||"primary"!==d&&wk(b,c,a)?"**"===a.path?!0:vk(b,a,c).matched:!1},zk=function(a){return(0,T.throwError)(new yk(a))},dpa=function(a){for(var b={},c=r(Object.keys(a.children)),d=c.next();!d.done;d=c.next()){d=d.value;var e=dpa(a.children[d]);if(0<e.segments.length||e.hasChildren())b[d]=e}a=new mk(a.segments,b);1===a.numberOfChildren&&a.children.primary&&(b=a.children.primary,a=new mk(a.segments.concat(b.segments),b.children));return a},epa=function(a,b,c,d){return Xe(function(e){return(new Ak(a,b,
c,e.extractedUrl,d)).apply().pipe(C(function(f){return Object.assign({},e,{urlAfterRedirects:f})}))})},Bk=function(a,b,c){var d;return(null!=(d=Zoa(b))?d:c).get(a)},Ck=function(a,b,c,d,e){e=void 0===e?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=bk(b);a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),w=e;w=void 0===w?{canDeactivateChecks:[],canActivateChecks:[]}:w;var y=h.value,E=k?k.value:null,I=c?c.getContext(h.value.outlet):null;if(E&&y.routeConfig===E.routeConfig){var N=
fpa(E,y,y.routeConfig.runGuardsAndResolvers);N?w.canActivateChecks.push(new gpa(q)):(y.data=E.data,y._resolvedData=E._resolvedData);y.component?Ck(h,k,I?I.children:null,q,w):Ck(h,k,c,q,w);N&&I&&I.outlet&&I.outlet.isActivated&&w.canDeactivateChecks.push(new Ek(I.outlet.component,E))}else E&&Fk(k,I,w),w.canActivateChecks.push(new gpa(q)),y.component?Ck(h,null,I?I.children:null,q,w):Ck(h,null,c,q,w);delete f[h.value.outlet]});Sj(f,function(h,k){return Fk(h,c.getContext(k),e)});return e},fpa=function(a,
b,c){if("function"===typeof c)return c(a,b);switch(c){case "pathParamsChange":return!Uj(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Uj(a.url,b.url)||!Rj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!Moa(a,b)||!Rj(a.queryParams,b.queryParams);default:return!Moa(a,b)}},Fk=function(a,b,c){var d=bk(a),e=a.value;Sj(d,function(f,h){e.component?b?Fk(f,b.children.getContext(h),c):Fk(f,null,c):Fk(f,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?
c.canDeactivateChecks.push(new Ek(b.outlet.component,e)):c.canDeactivateChecks.push(new Ek(null,e)):c.canDeactivateChecks.push(new Ek(null,e))},jpa=function(a,b){return we(function(c){var d=c.targetSnapshot,e=c.currentSnapshot,f=c.guards,h=f.canActivateChecks;f=f.canDeactivateChecks;return 0===f.length&&0===h.length?(0,T.of)(Object.assign({},c,{guardsResult:!0})):hpa(f,d,e,a).pipe(we(function(k){return k&&"boolean"===typeof k?ipa(d,h,a,b):(0,T.of)(k)}),C(function(k){return Object.assign({},c,{guardsResult:k})}))})},
hpa=function(a,b,c,d){return(0,T.from)(a).pipe(we(function(e){return kpa(e.component,e.route,c,b,d)}),Oe(function(e){return!0!==e},!0))},ipa=function(a,b,c,d){return(0,T.from)(b).pipe(we(function(e){var f=T.concat;var h=e.route.parent;null!==h&&d&&d(new lpa(h));h=(0,T.of)(!0);var k=e.route;null!==k&&d&&d(new Gk(k));k=(0,T.of)(!0);return f.call(T,h,k,mpa(a,e.path,c),npa(a,e.route,c))},1),Oe(function(e){return!0!==e},!0))},npa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||
0===d.length)return(0,T.of)(!0);d=d.map(function(e){return(0,T.defer)(function(){var f=Bk(e,b,c);if(f&&rk(f.canActivate))f=Tj(f.canActivate(b,a));else if(rk(f))f=Tj(f(b,a));else throw Error("Bc");return f.pipe(Oe())})});return(0,T.of)(d).pipe(uk())},mpa=function(a,b,c){var d=b[b.length-1];b=b.slice(0,b.length-1).reverse().map(function(e){var f=e.routeConfig?e.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:e,guards:f}:null}).filter(function(e){return null!==e}).map(function(e){return(0,T.defer)(function(){var f=
e.guards.map(function(h){if((h=Bk(h,e.node,c))&&rk(h.canActivateChild))h=Tj(h.canActivateChild(d,a));else if(rk(h))h=Tj(h(d,a));else throw Error("Cc");return h.pipe(Oe())});return(0,T.of)(f).pipe(uk())})});return(0,T.of)(b).pipe(uk())},kpa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||0===f.length)return(0,T.of)(!0);f=f.map(function(h){if((h=Bk(h,b,e))&&rk(h.canDeactivate))h=Tj(h.canDeactivate(a,b,c,d));else if(rk(h))h=Tj(h(a,b,c,d));else throw Error("Dc");return h.pipe(Oe())});
return(0,T.of)(f).pipe(uk())},opa=function(a){return new T.Observable(function(b){return b.error(a)})},rpa=function(a,b,c,d,e,f){try{var h=(new ppa(a,b,c,d,void 0===e?"emptyOnly":e,void 0===f?"legacy":f)).recognize();return null===h?opa(new qpa):(0,T.of)(h)}catch(k){return opa(k)}},spa=function(a){a.sort(function(b,c){return"primary"===b.value.outlet?-1:"primary"===c.value.outlet?1:b.value.outlet.localeCompare(c.value.outlet)})},tpa=function(a){return(a=a.value.routeConfig)&&""===a.path&&void 0===
a.redirectTo},upa=function(a){var b=[],c=new Set,d={};a=r(a);for(var e=a.next();!e.done;d={$jscomp$loop$prop$node$1622:d.$jscomp$loop$prop$node$1622},e=a.next())d.$jscomp$loop$prop$node$1622=e.value,tpa(d.$jscomp$loop$prop$node$1622)?(e=b.find(function(f){return function(h){return f.$jscomp$loop$prop$node$1622.value.routeConfig===h.value.routeConfig}}(d)),void 0!==e?(e.children.push.apply(e.children,u(d.$jscomp$loop$prop$node$1622.children)),c.add(e)):b.push(d.$jscomp$loop$prop$node$1622)):b.push(d.$jscomp$loop$prop$node$1622);
d=r(c);for(a=d.next();!a.done;a=d.next())a=a.value,e=upa(a.children),b.push(new dk(a.value,e));return b.filter(function(f){return!c.has(f)})},vpa=function(a){for(;a._sourceSegment;)a=a._sourceSegment;return a},wpa=function(a){for(var b,c=null!=(b=a._segmentIndexShift)?b:0;a._sourceSegment;)a=a._sourceSegment,b=void 0,c+=null!=(b=a._segmentIndexShift)?b:0;return c-1},xpa=function(a,b,c,d,e){return we(function(f){return rpa(a,b,f.urlAfterRedirects,c(f.urlAfterRedirects),d,e).pipe(C(function(h){return Object.assign({},
f,{targetSnapshot:h})}))})},zpa=function(a,b){return we(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return(0,T.of)(c);var f=0;return(0,T.from)(e).pipe(we(function(h){return ypa(h.route,d,a,b)},1),Ze(function(){return f++}),vga(),we(function(){return f===e.length?(0,T.of)(c):T.EMPTY}))})},ypa=function(a,b,c,d){var e=a.routeConfig,f=a._resolve;void 0!==(null==e?void 0:e.title)&&"string"!==typeof e.title&&null!==e.title&&(f[Apa]=e.title);return Bpa(f,a,b,d).pipe(C(function(h){a._resolvedData=
h;a.data=Ioa(a,c).resolve;!e||"string"!==typeof e.title&&null!==e.title||(a.data[Apa]=e.title);return null}))},Bpa=function(a,b,c,d){var e=Cpa(a);if(0===e.length)return(0,T.of)({});var f={};return(0,T.from)(e).pipe(we(function(h){return Dpa(a[h],b,c,d).pipe(Oe(),Ze(function(k){f[h]=k}))}),vga(),Pe(f),Ie(function(h){return h instanceof T.EmptyError?T.EMPTY:(0,T.throwError)(h)}))},Cpa=function(a){return[].concat(u(Object.keys(a)),u(Object.getOwnPropertySymbols(a)))},Dpa=function(a,b,c,d){a=Bk(a,b,d);
return a.resolve?Tj(a.resolve(b,c)):Tj(a(b,c))},Epa=function(a){return Xe(function(b){var c=a(b);return c?(0,T.from)(c).pipe(C(function(){return b})):(0,T.of)(b)})},Fpa=function(a){throw a;},Gpa=function(a,b){return b.parse("/")},Hpa=function(){return(0,T.of)(null)},Jpa=function(a,b,c,d,e,f,h,k,q,w,y){h=void 0===h?{}:h;a=new Hk(null,a,b,c,d,e,Array.prototype.concat.apply([],f));w&&(a.urlHandlingStrategy=w);y&&(a.routeReuseStrategy=y);a.titleStrategy=null!=q?q:k;Ipa(h,a);h.enableTracing&&a.events.subscribe(function(E){var I,
N;null==(N=(I=console).group)||N.call(I,"Router Event: "+E.constructor.name);console.log(E.toString());console.log(E);var L,S;null==(S=(L=console).groupEnd)||S.call(L)});return a},Ipa=function(a,b){a.errorHandler&&(b.errorHandler=a.errorHandler);a.malformedUriErrorHandler&&(b.malformedUriErrorHandler=a.malformedUriErrorHandler);a.onSameUrlNavigation&&(b.onSameUrlNavigation=a.onSameUrlNavigation);a.paramsInheritanceStrategy&&(b.paramsInheritanceStrategy=a.paramsInheritanceStrategy);a.relativeLinkResolution&&
(b.relativeLinkResolution=a.relativeLinkResolution);a.urlUpdateStrategy&&(b.urlUpdateStrategy=a.urlUpdateStrategy);a.canceledNavigationResolution&&(b.canceledNavigationResolution=a.canceledNavigationResolution)},Kpa=function(a){return a.routerState.root},Lpa=function(a){return"/"+a.map(function(b){return b.path}).join("/")},Mpa=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},Npa=function(a,b){a&1&&(G(0,"tr")(1,"td",5),P(2),H(),G(3,"td"),P(4,":"),H(),G(5,"td",6),P(6),H()());
a&2&&(a=b.$implicit,B(2),Jf(a.displayAs),B(4),Jf(a.description))},Opa=function(a,b){a&1&&(G(0,"thead")(1,"tr"),J(2,"th",3),G(3,"th",4),P(4),H()(),O(5,Npa,7,2,"tr",1),H());a&2&&(a=b.$implicit,B(4),Jf(a.title),B(1),D("ngForOf",a.hotkeys))},Ik=function(a){return void 0!==a.user},Jk=function(a){return void 0!==a.group},Ppa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return Kk(a.replace(/_/g," ").toLowerCase())}},
Lk=function(a){return new Ji(a.year,a.month-1,a.day)},Mk=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},Qpa=function(a){return!(!a||null==a.day||null==a.month||null==a.year)},Spa=function(a){if(a)return{accessLevel:Rpa[a.getAccessLevel()]}},Upa=function(a){a=Tpa[a.accessLevel];var b=new Nk;b.setAccessLevel(a);return b},Ok=function(a){return null==console?!1:"function"===typeof console[a]},Pk=function(){Ok("debug")&&console.debug.apply(console,oc.apply(0,arguments))},
Vpa=function(){Ok("info")&&console.info.apply(console,oc.apply(0,arguments))},Wpa=function(){Ok("log")&&console.log.apply(console,oc.apply(0,arguments))},Qk=function(){Ok("warn")&&console.warn.apply(console,oc.apply(0,arguments))},Xpa=function(){Ok("error")&&console.error.apply(console,oc.apply(0,arguments))},Ypa=function(a){if(null!=a){var b=a.toObject();a=b.year;var c=b.day;b=b.month;if(null==a)Qk("No year. dateToJs");else if(null==c)Qk("No day. dateToJs");else if(null==b)Qk("No month. dateToJs");
else return{year:a,day:c,month:b}}},Zpa=function(a){var b=new Rk;Sk(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},Tk=function(a){if(null!=a){var b=a.getSeconds();a=a.getNanos();return{seconds:b,nanos:a}}},Uk=function(a){var b=new rj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},$pa=function(a){if(null!=a)return Number(a.toDate())},Vk=function(a){if(null!=a&&(a=String(a),""!==a.trim()))return a=Number(a),isNaN(a)?void 0:a},Wk=function(a){if(null!=a)return String(a)},Xk=function(a){return null==
a?void 0:a},Yk=function(a){return null==a?null:a},Zk=function(a){return function(b){return null==b?a:b}},$k=function(a){return null!=a},al=function(a,b){return null==a?b[0]:b[a]},bl=function(a,b){if(null!=a)return b[a]},cl=function(a){return String(a)},dl=function(a){a=Vk(a);return void 0===a?NaN:a},bqa=function(a){if(null!=a)return a=a.toObject(),{customFieldId:Xk(a.customFieldId),standardField:al(a.standardField,aqa)}},dqa=function(a){var b=new el;a.customFieldId?b.setCustomFieldId(a.customFieldId):
a.standardField&&b.setStandardField(cqa[a.standardField]);return b},fqa=function(a){if(a&&(a=eqa(a)))return fl(a)},eqa=function(a){if(null!=a){var b=a.toObject(),c=b.name,d=b.description,e=b.required,f=b.enabledOnIssues,h=Vk(b.customFieldId),k=Vk(b.componentId),q=Xk(b.allowedValueList);a=gqa(a.getTypedDefaultValue());if(null==c)Qk("No name. customFieldToJs");else if(null==h)Qk("No customFieldId. customFieldToJs");else if(null==b.type)Qk("No type. customFieldToJs");else{var w=b.type,y=Zk(0)(b.stateOnIssues);
b=Zk(0)(b.fieldSignificance);return{name:c,description:Xk(d),required:Xk(e),enabledOnIssues:!!f,type:hqa[w],customFieldId:h,componentId:k,allowedValue:q,stateOnIssues:iqa[y],fieldSignificance:jqa[b],typedDefaultValue:a}}}},gqa=function(a){if(null!=a){var b=a.toObject(),c=Vk(b.customFieldId),d=Xk(b.displayValuesList),e;var f=(e=null==(f=b.repeatedTextValue)?void 0:f.valuesList)?{values:e}:void 0;var h=(e=null==(h=b.repeatedEnumValue)?void 0:h.valuesList)?{values:e}:void 0;var k=(e=null==(k=b.repeatedNumericValue)?
void 0:k.valuesList)?{values:e}:void 0;var q,w,y;e=(e=null==(q=a.getRepeatedDateValue())?void 0:null==(w=q.getValuesList())?void 0:null==(y=w.map(Ypa))?void 0:y.filter($k))?{values:e}:void 0;a=Ypa(a.getDateValue());if(null==c)Qk("No customFieldId. customFieldValueToJs");else return{customFieldId:c,displayValues:d,textValue:Xk(b.textValue),enumValue:Xk(b.enumValue),numericValue:Xk(b.numericValue),dateValue:a,repeatedTextValue:f,repeatedEnumValue:h,repeatedNumericValue:k,repeatedDateValue:e}}},kqa=
function(a){var b=new gl;b.setCustomFieldId(String(a.customFieldId));a.displayValues&&hl(b,12,a.displayValues);if(void 0!==a.textValue)b.setTextValue(a.textValue);else if(void 0!==a.enumValue)b.setEnumValue(a.enumValue);else if(void 0!==a.numericValue)b.setNumericValue(a.numericValue);else if(void 0!==a.dateValue)b.setDateValue(Zpa(a.dateValue));else if(void 0!==a.repeatedTextValue){var c=new il;c.setValuesList(a.repeatedTextValue.values);b.setRepeatedTextValue(c)}else void 0!==a.repeatedEnumValue?
(c=new il,c.setValuesList(a.repeatedEnumValue.values),b.setRepeatedEnumValue(c)):void 0!==a.repeatedNumericValue?(c=new jl,c.setValuesList(a.repeatedNumericValue.values),b.setRepeatedNumericValue(c)):void 0!==a.repeatedDateValue&&(c=new kl,c.setValuesList(a.repeatedDateValue.values.map(Zpa)),b.setRepeatedDateValue(c));return b},lqa=function(a){return fqa(a.getCustomField())},oqa=function(a){var b=new ll;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));
b.setType(mqa[a.type]);b.setRequired(a.required);b.setName(a.name);b.setDescription(a.description);a.typedDefaultValue&&b.setTypedDefaultValue(kqa(a.typedDefaultValue));a.allowedValue&&hl(b,8,a.allowedValue);b.setFieldSignificance(nqa[a.fieldSignificance]);b.setStateOnIssues(a.stateOnIssues);b.setEnabledOnIssues(a.enabledOnIssues);return b},rl=function(a){var b=new ml;a.inherit&&b.setInherit(a.inherit);a.id&&b.setId(a.id);a.name&&b.setName(a.name);a.customFieldId&&b.setCustomFieldId(a.customFieldId);
a.numericSpec&&pqa(b,qqa(new nl,a.numericSpec.multiplier));if(a.enumSpec){var c;rqa(b,(new ol).setOptionsList((null!=(c=a.enumSpec.options)?c:[]).map(function(d){return(new pl).setLabel(d.label).setValue(d.value)})))}if(a.aggregationType){a:switch(a.aggregationType){case "MAX":a=2;break a;case "SUM":a=1;break a;default:a=0}ql(b,6,a)}return b},sqa=function(a){var b=new sl;a.specId&&Sk(b,1,a.specId);a.estimate&&tl(b,2,a.estimate);a.averageDays&&nb(b,3,a.averageDays,0);a.totalOpen&&nb(b,4,a.totalOpen,
0);a.totalComplete&&nb(b,5,a.totalComplete,0);return b},tqa=function(a){var b=a.getInherit(),c=a.getId(),d=a.getName();a:switch(X(a,6,0)){case 2:var e="MAX";break a;case 1:e="SUM";break a;default:e="AGGREGATION_TYPE_UNSPECIFIED"}b={inherit:b,id:c,name:d,aggregationType:e,customFieldId:a.getCustomFieldId()};if(ul(a,4,vl)){var f=wl(a,nl,4,vl);f&&(b.numericSpec={multiplier:xl(f,1)})}else if(ul(a,5,vl)&&(a=yl(a),b.enumSpec={options:[]},a&&0<(null==a?void 0:null==(f=a.getOptionsList())?void 0:f.length)))for(f=
r(a.getOptionsList()),a=f.next();!a.done;a=f.next())a=a.value,d=c=void 0,null==(c=b.enumSpec)||null==(d=c.options)||d.push({label:a.getLabel(),value:a.getValue()});return b},zl=function(a){switch(a){case 2:return"PII";case 3:return"SPII";case 0:case 1:return"NONE_DETECTED";default:return bh(a,"Unexpected pii severity")}},Al=function(a){switch(a){case "PII":return 2;case "SPII":return 3;case "NONE_DETECTED":return 1;case "PII_SEVERITY_UNSPECIFIED":return 0;default:return bh(a,"Unexpected pii severity")}},
Bl=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},Cl=function(a){switch(a){case "NONE_DETECTED":return 1;case "PII":return 2;case "SPII":return 3;default:return 1}},uqa=function(a){switch(a){case "PII":return"Restricted";case "SPII":return"Restricted+";default:return""}},vqa=function(a){var b=cj(a,1)?kj(a,1):void 0,c=a.hasResourcePath()?a.getResourcePath():void 0,d=zl(a.getSeverity()),e=a.getJudgementReason();a=V(a,5);return{contentJudgementId:b,resourcePath:c,severity:d,
judgementReason:e,contentJudge:a}},wqa=function(a){var b=new Dl;b.setJudgementReason(a.judgementReason);b.setSeverity(Al(a.severity));return b},yqa=function(a){var b=new El;l(b,1,xqa[a.retentionSelection]);null!==a.retentionPeriodDays&&l(b,2,a.retentionPeriodDays);l(b,3,xqa[a.piiRetentionSelection]);null!==a.piiRetentionPeriodDays&&l(b,4,a.piiRetentionPeriodDays);null!==a.spiiRetentionPeriodDays&&l(b,5,a.spiiRetentionPeriodDays);return b},Fl=function(a){if(null!=a){var b=Yk(Tk(a.getRetentionPeriod()));
a=Yk(Tk(a.getScheduledDeletionTime()));return{retentionPeriod:b,scheduledDeletionTime:a}}},Hl=function(a){if(null!=a){a:{a=m(a,Gl,1);if(null!=a)if(a=a.toObject(),null==a.severity)Qk("No severity. piiVerdictToJs");else{a={severity:zqa[a.severity]};break a}a=void 0}return{piiVerdict:a}}},Aqa=function(a){if(null!=a)return{startTime:Tk(a.getStartTime()),endTime:Tk(a.getEndTime()),targetTime:Tk(a.getTargetTime())}},Bqa=function(a){var b=new Il;a.startTime&&b.setStartTime(Uk(a.startTime));a.endTime&&b.setEndTime(Uk(a.endTime));
a.targetTime&&b.setTargetTime(Uk(a.targetTime));return b},Dqa=function(a){var b=new Jl;b.setInherit(a.inherit);b.setSource(Cqa[a.source]);b.setId(a.id);b.setComment(a.comment);l(b,6,a.sourceComponentId);b.setSourceTeamId(a.sourceTeamId);return b},Eqa=function(a){var b;return 1===(null==(b=a.getTeamSloEditPolicy())?void 0:X(b,2,0))},Fqa=function(a){var b;return 1===(null==(b=m(a,Kl,1))?void 0:b.getEffectiveSloEditPolicy())},Gqa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||"ACTIVE"===a||
"UNSPECIFIED"===a},Ml=function(a){return a?a.map(Ll):[]},Hqa=function(a){a=Ml(a);a.sort();return a},Ll=function(a){return a&&a.getUserGaiaStatus?Iqa(Ol(a)):Iqa(a)},Iqa=function(a){return a?"DELETED"===a.userGaiaStatus?"[Deleted User]":"UNAVAILABLE"===a.userGaiaStatus?"[Unavailable User]":Gqa(a)?Jqa(a)||"[No Data]":"[No Data]":""},Pl=function(a){return a&&a.getUserGaiaStatus?Jqa(Ol(a)):Jqa(a)},Jqa=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},Ol=function(a){if(null!=a){var b=
{},c;if(c=a.getEmailAddress())b.emailAddress=c;if(c=a.getObfuscatedEmailAddress())b.obfuscatedEmailAddress=c;if(c=a.getUserGaiaStatus())b.userGaiaStatus=Kqa[c];(c=a.getAliasesList())&&0<c.length&&(b.aliases=c);return b}},Ql=function(a){if(!a)return null;var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Ol(c.value))&&b.push(c);return b},Sl=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Rl;b&&e.setEmailAddress(b);c&&e.setObfuscatedEmailAddress(c);
d&&e.setAliasesList(d);a&&e.setUserGaiaStatus(Lqa[a]);return e},Tl=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},Mqa=function(a){if(null!=a)return{tag:a.getTag(),text:V(a,2)}},Sqa=function(a){if(null!=a){var b=a.toObject(),c,d,e,f,h,k,q,w,y,E;return{title:b.title||"",comment:Yk(b.comment),snapshotNumber:Yk(b.snapshotNumber),version:Yk(b.version),createdTimeMicros:Yk(b.createdTimeMicros),isArchived:!!b.isArchived,inProd:!!b.inProd,isDeleted:Yk(b.isDeleted),changelist:Yk(b.changelistList),
postmortems:Yk(b.postmortemsList),foundInVersion:Yk(b.foundInVersionList),targetedToVersion:Yk(b.targetedToVersionList),verifiedInVersion:Yk(b.verifiedInVersionList),componentId:Yk(Vk(b.componentId)),duplicateOfIssueId:Yk(Vk(b.duplicateOfIssueId)),attachmentId:Yk(null==(c=b.attachmentIdList)?void 0:c.map(Vk).filter($k)),blockedByIssueId:Yk(null==(d=b.blockedByIssueIdList)?void 0:d.map(Vk).filter($k)),blockingIssueId:Yk(null==(e=b.blockingIssueIdList)?void 0:e.map(Vk).filter($k)),hotlistId:Yk(null==
(f=b.hotlistIdList)?void 0:f.map(Vk).filter($k)),duplicateIssueId:Yk(null==(h=b.duplicateIssueIdList)?void 0:h.map(Vk).filter($k)),sloSnoozeUntil:a.getSloSnoozeUntil(),authorUser:Yk(Ol(m(a,Rl,36))),reporterUser:Yk(Ol(m(a,Rl,37))),assigneeUser:Yk(Ol(m(a,Rl,38))),verifierUser:Yk(Ol(m(a,Rl,39))),ccUsers:Yk(Ql(rb(a,Rl,40))),commentContentVerdict:Hl(a.getCommentContentVerdict()),customField:rb(a,gl,24).map(gqa).filter($k),retention:al(b.retention,Ul),significanceOverride:al(b.significanceOverride,jqa),
deletionReason:al(b.deletionReason,Nqa),type:null!=(k=bl(b.type,Oqa))?k:null,priority:null!=(q=bl(b.priority,Pqa))?q:null,severity:null!=(w=bl(b.severity,Qqa))?w:null,status:null!=(y=bl(b.status,Rqa))?y:null,effort:null!=(E=a.getEffort())?E:void 0}}},Zqa=function(a){var b=new Vl;if(a.authorUser){var c=Sl(a.authorUser);Ab(b,36,c)}a.createdTimeMicros&&b.setCreatedTimeMicros(a.createdTimeMicros);a.componentId&&b.setComponentId(String(a.componentId));a.version&&b.setVersion(a.version);a.type&&b.setType(Tqa[a.type]);
a.status&&b.setStatus(Wl[a.status]);a.priority&&b.setPriority(Uqa[a.priority]);a.severity&&b.setSeverity(Vqa[a.severity]);void 0!==a.title&&b.setTitle(a.title);a.reporterUser&&(c=Sl(a.reporterUser),Ab(b,37,c));a.assigneeUser&&(c=Sl(a.assigneeUser),Ab(b,38,c));a.verifierUser&&(c=Sl(a.verifierUser),Ab(b,39,c));a.ccUsers&&(c=a.ccUsers.map(Sl),zb(b,40,c));a.attachmentId&&(c=a.attachmentId.map(cl),hl(b,14,c));a.duplicateOfIssueId&&l(b,15,String(a.duplicateOfIssueId));a.blockedByIssueId&&(c=a.blockedByIssueId.map(cl),
hl(b,16,c));a.blockingIssueId&&(c=a.blockingIssueId.map(cl),hl(b,17,c));a.changelist&&hl(b,18,a.changelist);a.postmortems&&b.setPostmortemsList(a.postmortems);a.foundInVersion&&hl(b,19,a.foundInVersion);a.targetedToVersion&&hl(b,20,a.targetedToVersion);a.verifiedInVersion&&hl(b,21,a.verifiedInVersion);a.hotlistId&&b.setHotlistIdList(a.hotlistId.map(cl));a.customField&&(c=a.customField.map(kqa),zb(b,24,c));a.comment&&b.setComment(a.comment);a.formattingMode&&b.setFormattingMode(Xl[a.formattingMode]);
if(a.commentContentVerdict){c=b.setCommentContentVerdict;var d=a.commentContentVerdict,e=new Yl;if(d.piiVerdict){d=d.piiVerdict;var f=new Gl;f.setSeverity(Wqa[d.severity]);Ab(e,1,f)}c.call(b,e)}a.snapshotNumber&&l(b,26,a.snapshotNumber);a.retention&&b.setRetention(Xqa[a.retention]);a.isDeleted&&b.setIsDeleted(a.isDeleted);a.deletionReason&&b.setDeletionReason(Yqa[a.deletionReason]);a.significanceOverride&&b.setSignificanceOverride(nqa[a.significanceOverride]);a.duplicateIssueId&&(c=a.duplicateIssueId.map(cl),
hl(b,30,c));void 0!==a.inProd&&b.setInProd(a.inProd);void 0!==a.isArchived&&b.setIsArchived(a.isArchived);a.sloSnoozeUntil&&b.setSloSnoozeUntil(a.sloSnoozeUntil);a.effort&&b.setEffort(a.effort);return b},$qa=function(a){var b={targetIssueId:String(dj(a,1))};if(a=dj(a,2))b.afterIssueId=Wk(a);return b},ara=function(a){var b=new Zl;b.setIssueId(String(a));return b},cra=function(a){var b=new bra;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},era=function(a){var b=new dra;
b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},fra=function(a){return{issueId:Number(a.getIssueId()),status:Rqa[a.getStatus()],title:a.getTitle()}},ira=function(a){var b=new $l;gra(b,a.fieldName);a.value&&b.setValue(a.value);a.actionType&&b.setActionType(hra[a.actionType]);a.customFieldValue&&b.setCustomFieldValue(kqa(a.customFieldValue));return b},jra=function(a){var b=new am;b.setIssueId(String(a.issueId));b.setActionsList(a.actions.map(ira));return b},mra=function(a){var b=
new bm;b.setAddHotlistIdsList(a.addHotlistIds.map(String));b.setRemoveHotlistIdsList(a.removeHotlistIds.map(String));var c=a.hotlistIssue;a=new cm;a.setIssueId(String(c.issueId));c.position&&a.setPosition(c.position);var d=a.setIssue;c=c.issue;var e=new dm;e.setIssueId(String(c.issueId));var f,h=(null!=(f=c.snapshot)?f:[]).map(Zqa);zb(e,2,h);if(c.userData){f=e.setUserData;h=c.userData;var k=new em;h.voted&&k.setVoted(h.voted);h.starred&&k.setStarred(h.starred);h.notificationSubscription&&k.setNotificationSubscription(kra[h.notificationSubscription]);
void 0!==h.lastViewedTimeMicros&&l(k,5,h.lastViewedTimeMicros);f.call(e,k)}if(c.aggregatedData){h=c.aggregatedData;f=new fm;f.setVoteCount(h.voteCount);f.setCreatedTimeMicros(h.createdTimeMicros);l(f,4,h.resolvedTimeMicros);l(f,5,h.verifiedTimeMicros);f.setModifiedTimeMicros(h.modifiedTimeMicros);f.setSloId(String(h.sloId));f.setTeamId(String(h.teamId));if(h.retentionState){k=f.setRetentionState;var q=h.retentionState,w=new gm;if(q.retentionPeriod){var y=w.setRetentionPeriod,E=q.retentionPeriod,I=
new hm;I.setSeconds(E.seconds);I.setNanos(E.nanos);y.call(w,I)}q.scheduledDeletionTime&&w.setScheduledDeletionTime(Uk(q.scheduledDeletionTime));k.call(f,w)}h.sloStatus&&(k=f.setSloStatus,h=h.sloStatus,q=new im,h.assignmentBounds&&q.setAssignmentBounds(Bqa(h.assignmentBounds)),h.responseBounds&&q.setResponseBounds(Bqa(h.responseBounds)),h.closureBounds&&q.setClosureBounds(Bqa(h.closureBounds)),k.call(f,q));Ab(e,4,f)}c.accessLimit&&e.setAccessLimit(Upa(c.accessLimit));var N;e.setVisibleFieldsList((null!=
(N=c.visibleFields)?N:[]).map(dqa));l(e,7,c.majorModifiedTimeMicros);e.setParentIssueIdsList(c.parentIssueIds);if(c.ancestors)for(N=e.getAncestorsMap(),f=r(c.ancestors.entries()),h=f.next();!h.done;h=f.next())k=r(h.value),h=k.next().value,k=k.next().value,q=N,w=q.set,y=new jm,y.setSourceIssueIdsList(k.sourceIssueIds),w.call(q,h,y);e.setChildIssueCount(c.childIssueCount);e.setIsArchived(c.isArchived);d.call(a,e);lra(b,a);return b},nra=function(a){var b;return{issueDigests:(null!=(b=a.getIssueDigestsList())?
b:[]).map(fra),numTotalResults:a.getNumTotalResults()}},pra=function(a){var b=new km;b.setIssueId(String(a.issueId));var c=a.targetIds.map(String);hl(b,2,c);b.setRelation(ora[a.relation]);b.setActionType(hra[a.actionType]);a.commentDisplayOverride&&b.setCommentDisplayOverride(Xl[a.commentDisplayOverride]);return b},rra=function(a){var b=new qra;b.setIssueId(String(a.issueId));b.setRetention(Xqa[a.retention]);a.significanceOverride&&b.setSignificanceOverride(nqa[a.significanceOverride]);a.commentDisplayOverride&&
b.setCommentDisplayOverride(Xl[a.commentDisplayOverride]);return b},sra=function(a){return{issueId:Number(a.getIssueId())}},tra=function(a){return{teamId:a.getTeamId(),score:xl(a,2)}},ura=function(a){var b=new lm;b.setTeamId(a.teamId);nb(b,2,a.score,0);return b},vra=function(a){var b=new mm;b.setInherit(a.inherit);b.setId(String(a.id));return b},om=function(a){if(a.hasRetentionSettings()){var b=a.getRetentionSettings();b={retentionSelection:wra[X(b,1,0)],retentionPeriodDays:dj(b,2),piiRetentionSelection:wra[X(b,
3,0)],piiRetentionPeriodDays:dj(b,4),spiiRetentionPeriodDays:dj(b,5)}}else b=void 0;if(cj(a,10)){var c=m(a,nm,10),d,e;var f=(null!=(d=jb(c,1))?d:[]).map(dl);d=jb(c,2);var h=rb(c,ll,4);if(h){c=[];h=r(h);for(var k=h.next();!k.done;k=h.next())(k=fqa(k.value))&&c.push(k)}else c=void 0;f={componentPathId:f,componentPathName:d,allCustomField:null!=(e=c)?e:[]}}else f=void 0;e=f;a.hasSlo()?(f=a.getSlo(),f={inherit:f.getInherit(),source:xra[f.getSource()],id:f.getId(),sourceComponentId:kj(f,6),sourceTeamId:f.getSourceTeamId(),
comment:f.getComment()}):f=void 0;d=cj(a,24)?tqa(a.getEffortSpec()):void 0;a.hasTeam()?(c=a.getTeam(),c={inherit:c.getInherit(),id:c.getId()}):c=void 0;var q,w;h=dl(a.getComponentId());k=dl(kj(a,2));var y=a.getName(),E=a.getDescription(),I=a.getArchived(),N=(null!=(q=jb(a,7))?q:[]).map(dl);q=Spa(a.getAccessLimit());var L=V(a,13),S=W(a,14);var Y=1===X(a,15,0)?"ENABLED":"DISABLED";return{componentId:h,parentComponentId:k,name:y,description:E,archived:I,customFieldId:N,componentPathInfo:e,accessLimit:q,
emailAlias:L,userHasEditAccess:S,commentEditState:Y,slo:f,bugscopeSloId:kj(a,20),retentionSettings:b,fieldOrdering:yra[X(a,23,0)],effortSpec:d,team:c,teamSuggestions:(null!=(w=a.getTeamSuggestionsList())?w:[]).map(tra)}},zra=function(a){var b=new pm;l(b,2,String(a.parentComponentId));b.setName(a.name);b.setDescription(a.description);a.commentEditState&&b.setCommentEditState("ENABLED"===a.commentEditState?1:2);a.retentionSettings&&b.setRetentionSettings(yqa(a.retentionSettings));return b},Ara=function(a){var b;
return(null!=(b=rb(a,pm,1))?b:[]).map(om)},Bra=function(a){return{warningHeader:V(a,1),warning:V(a,2),isAllowed:W(a,3),isExternalMove:W(a,4)}},Cra=function(a){return{templateId:a.getTemplateId(),componentId:dl(a.getComponentId()),default:!!a.getDefault(),name:a.getName(),description:a.getDescription(),snapshot:Sqa(a.getSnapshot())}},Dra=function(a){var b=new qm;b.setTemplateId(a.templateId);b.setComponentId(String(a.componentId));b.setDefault(a.default);b.setName(a.name);b.setDescription(a.description);
b.setSnapshot(Zqa(a.snapshot));return b},Era=function(a){var b={},c=Yi(a,2,ll).entries();c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;(e=fqa(e))&&(b[dl(d)]=e)}return{snapshot:Sqa(a.getSnapshot()),customFieldMap:b}},Fra=function(a){a=Fi(a);a.componentPathInfo&&(a.componentPathInfo.allCustomField=null);return a},rm=function(a){var b=Fi(a);b.componentPathInfo&&a.componentPathInfo&&(b.componentPathInfo.allCustomField=(a.componentPathInfo.allCustomField||
[]).map(function(c){return fl(c)}));a.slo&&(b.slo.id=String(a.slo.id),b.slo.sourceComponentId=String(a.slo.sourceComponentId),b.slo.sourceTeamId=String(a.slo.sourceTeamId));if(a.bugscopeSloId||0==a.bugscopeSloId)b.bugscopeSloId=String(a.bugscopeSloId);a.team&&(b.team.id=String(a.team.id));return b},Gra=function(a){var b;return(null!=(b=rb(a,pm,1))?b:[]).map(om)},sm=function(a){return null==a||null==a.componentId?!1:!0},tm=function(a){if(sm(a))return a;Qk("This object doesn't appear to be a 'Component'",
a)},Hra=function(a){var b=tm(a);if(null==b)throw Error("Gc`"+JSON.stringify(a,null,2));return b},Jra=function(a){return Array.isArray(a)?{results:a.map(tm).filter(sm)}:Ira},Kra=function(a){var b,c=Object.fromEntries(Object.entries(null!=(b=a.params)?b:{}).filter(function(e){e=r(e);e.next();return null!=e.next().value}));b=new um({fromObject:c});var d;return new vm(a.method,a.url,null!=(d=a.data)?d:null,{params:b,headers:new wm(a.headers)})},Lra=function(a){return function(b){return void 0===b?Object.fromEntries(a.keys().map(function(c){return[c,
a.get(c)]})):a.get(b)}},Mra=function(a){return!!a.data&&void 0!==a.data.message},Nra=function(a){var b;return void 0!==(null==(b=a.error)?void 0:b.message)},xm=function(a){return!!a&&Da(a)&&(Mra(a)||Nra(a))},ym=function(a){return Mra(a)&&a.data&&a.data.message?a.data.message:Nra(a)&&a.error&&a.error.message?a.error.message:""},Ora=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new hm;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},zm=function(a){if(!a||!a.seconds&&
!a.nanos)return null;var b=new rj;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Pra=function(a){if(a.snapshot){a=r(a.snapshot);for(var b=a.next();!b.done;b=a.next())b=b.value,b.sloSnoozeUntil&&(b.sloSnoozeUntil=zm(b.sloSnoozeUntil))}},Am=function(a){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")},Qra=
function(a,b){b=void 0===b?{}:b;for(var c=[],d=[],e=[],f=function(){var q=e.join("");e=[];if(q.startsWith(":")){q=q.slice(1);c.push(q);var w=b;q=(null==w?0:w.hasOwnProperty(q))?w[q]:void 0;(q=null===q||void 0===q?"":q.toString())&&d.push(Am(q))}else d.push(q)},h=0;h<a.length;h++)"/"===a[h]?(f(),"/"!==d[d.length-1]&&d.push("/")):e.push(a[h]);f();"/"===d[d.length-1]&&d.pop();a={};if(b)for(f=r(Object.entries(b)),h=f.next();!h.done;h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;-1===c.indexOf(h)&&
(a[h]=k)}return[d.join(""),a]},Rra=function(a){var b,c=null==(b=a.transformRequest)?void 0:b.call(a,a.data);return Object.assign({},a,{data:null!=c?c:a.data})},Tra=function(a){a=a.getFavorite();return{user:Ol(a.getUser()),resourceType:Sra[a.getResourceType()],resourceId:Number(a.getResourceId()),name:a.getName()}},Vra=function(a){if(!a.getType())throw Error("Jc");return{type:Ura[a.getType()],customFieldId:Vk(a.getCustomFieldId()),customFieldName:Xk(a.getCustomFieldName())}},Xra=function(a){var b=
new Bm;void 0!==a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));void 0!==a.customFieldName&&l(b,3,a.customFieldName);void 0!==a.type&&b.setType(Wra[a.type]);return b},Yra=function(a){var b=a.getField();if(!b)throw Error("Kc");if(!a.getDirection())throw Error("Lc");return{field:Vra(b),direction:1===a.getDirection()?"ASCENDING":"DESCENDING"}},Zra=function(a){var b=new Cm;b.setField(Xra(a.field));b.setDirection("ASCENDING"===a.direction?1:2);return b},$ra=function(a){var b=new Dm;b.setHotlistId(""+
a.hotlistId);b.setName(a.name);b.setDescription(a.description);b.setArchived(a.archived);b.setCreatedTimeMicros(a.createdTimeMicros);b.setModifiedTimeMicros(a.modifiedTimeMicros);var c;b.setDisplayColumnList((null!=(c=a.displayColumn)?c:[]).map(Xra));var d;b.setSortOrderList((null!=(d=a.sortOrder)?d:[]).map(Zra));void 0!==a.etag&&b.setEtag(a.etag);null!==a.ownerUser&&b.setOwnerUser(Sl(a.ownerUser));var e;b.setAdminUsersList((null!=(e=a.adminUsers)?e:[]).map(Sl));return b},Em=function(a){if(!a.getHotlistId())throw Error("Mc");
if(!a.getName())throw Error("Nc");if(!a.getCreatedTimeMicros())throw Error("Oc");if(!a.getModifiedTimeMicros())throw Error("Pc");var b,c,d,e;return{hotlistId:Number(a.getHotlistId()),name:a.getName(),description:null!=(b=a.getDescription())?b:"",archived:null!=(c=a.getArchived())?c:!1,createdTimeMicros:a.getCreatedTimeMicros(),modifiedTimeMicros:a.getModifiedTimeMicros(),displayColumn:(null!=(d=a.getDisplayColumnList())?d:[]).map(Vra),sortOrder:(null!=(e=a.getSortOrderList())?e:[]).map(Yra),etag:a.getEtag(),
ownerUser:Ol(a.getOwnerUser())||null,adminUsers:Ql(a.getAdminUsersList())}},asa=function(a){var b;return(null!=(b=a.getHotlistsList())?b:[]).map(Em)},bsa=function(a){var b;return(null!=(b=rb(a,Dm,1))?b:[]).map(Em)},csa=function(a){var b,c;return{searchId:Number(kj(a,1)),ownerUser:Ol(a.getOwnerUser()),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:(null!=(b=a.getSortOrderList())?b:[]).map(Yra),displayColumn:(null!=(c=a.getDisplayColumnList())?c:[]).map(Vra),adminUsers:Ql(a.getAdminUsersList())}},
dsa=function(a){var b;return(null!=(b=rb(a,Fm,1))?b:[]).map(csa)},esa=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Ol(a.getOwnerUser()))?b:null,starred:a.getStarred(),resourceType:a.getResourceType()}},fsa=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),ownerUser:Ol(a.getOwnerUser()),starred:a.getStarred(),sublinks:(null!=(b=rb(a,Gm,6))?b:[]).map(esa)}},gsa=function(a){var b,c,d,e;return{hotlists:(null!=
(b=a.getHotlistsList())?b:[]).map(esa),bookmarkGroups:(null!=(c=a.getBookmarkGroupsList())?c:[]).map(fsa),archivedHotlists:(null!=(d=rb(a,Gm,3))?d:[]).map(esa),archivedBookmarkGroups:(null!=(e=rb(a,Hm,4))?e:[]).map(fsa)}},hsa=function(a){return null==a.searchId||null==a.name||null==a.query?!1:!0},Im=function(a){return 0<Object.values(a).length},isa=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},Jm=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},
jsa=function(a,b){var c=a.getValue(),d={};c=r(Object.entries(c));for(var e=c.next();!e.done;e=c.next()){var f=r(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},Km=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(u(a)).sort());return JSON.stringify(b)},ksa=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},lsa=function(a){a=void 0===a?{}:a;return $ma(a)},msa=function(a){var b=new T.Subject,c=a.subscribe(b);a=
(0,T.firstValueFrom)(b);a.finally(function(){c.unsubscribe()});return a},nsa=function(a){return null==a?new Promise(function(){}):Promise.resolve(a)},psa=function(){var a;return osa[(null==(a=Xi().getConfig()||void 0)?void 0:a.getEnvironmentType())||""]},qsa=function(a,b,c){b=[b];c=r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.componentId!==a&&b.push(d);return b},rsa=function(a){return Cra(m(a,qm,1))},ssa=function(a){return(rb(a,qm,1)||[]).map(Cra)},tsa=function(a){return{encryptedMedia:db(Lm(a,
1)),errorMessage:a.getErrorMessage()}},usa=function(a){var b=new Mm;l(b,1,a.attachment);void 0!==a.contentJudgement&&b.setContentJudgement(wqa(a.contentJudgement));return b},vsa=function(a){var b;return{attachments:(null!=(b=a.getAttachmentsList())?b:[]).map(Nm)}},Nm=function(a){if(null!=a){var b=a.toObject(),c=Vk(b.attachmentId),d=Xk(b.filecompUrl),e=Xk(b.etag),f=Xk(b.contentType),h=Xk(b.description),k=Xk(b.filename),q=Xk(b.length);b=Ul[Zk(0)(b.piiRetention)];var w=Fl(a.getPiiRetentionState()),y=
wsa(a.getEntityStatus()),E=Hl(a.getContentVerdict());a=m(a,Om,3);null!=a?(a=a.toObject(),a={filename:Xk(a.filename),length:Xk(a.length),contentType:Xk(a.contentType)}):a=void 0;return{attachmentId:c,filecompUrl:d,etag:e,contentType:f,description:h,filename:k,length:q,piiRetention:b,piiRetentionState:w,entityStatus:y,contentVerdict:E,media:a}}},wsa=function(a){if(null!=a){var b=a.toObject();a=Zk(0)(b.reason);b=Zk(0)(b.status);return{reason:xsa[a],status:ysa[b]}}},Bsa=function(a){if(null!=a){var b=
a.toObject(),c=b.name,d=b.displayName,e=b.important;if(null==c)Qk("No name. eventDiffToJs");else{d=Xk(d);e=!!e;var f=Zk(0)(b.type);c={name:c,displayName:d,timestamp:$pa(a.getTimestamp()),important:e,type:zsa[f]};if(ul(a,6,Pm)){var h=wl(a,Qm,6,Pm);ul(h,1,Rm)&&(a=wl(h,Sm,1,Rm),c.isUser=!0,c.oldValue=Zk("<none>")(Pl(null==a?void 0:m(a,Rl,1))),c.newValue=Zk("<none>")(Pl(null==a?void 0:m(a,Rl,2))));if(ul(h,2,Rm)){var k,q;c.oldValue=Xk(null==(k=b.singleValueDiff)?void 0:null==(q=k.stringDiff)?void 0:q.oldValue);
var w,y;c.newValue=Xk(null==(w=b.singleValueDiff)?void 0:null==(y=w.stringDiff)?void 0:y.newValue)}}else if(ul(a,9,Pm)){var E;c.customFieldId=Xk(null==(E=b.customFieldDiff)?void 0:E.customFieldId);var I;c.oldValue=Xk(null==(I=b.customFieldDiff)?void 0:I.oldValue);var N;c.newValue=Xk(null==(N=b.customFieldDiff)?void 0:N.newValue)}else if(ul(a,10,Pm))k=wl(a,Tm,10,Pm),c.isUser=!0,b=(null==k?void 0:k.getAddedList())||[],k=(null==k?void 0:k.getRemovedList())||[],c.added=b.map(function(ka){return Pl(ka)}).map(Zk("<none>")),
c.removed=k.map(function(ka){return Pl(ka)}).map(Zk("<none>"));else if(ul(a,7,Pm)){var L;c.added=(null==(L=b.collectionDiff)?void 0:L.addedList)||[];var S;c.removed=(null==(S=b.collectionDiff)?void 0:S.removedList)||[]}else if(ul(a,8,Pm)){var Y;b=(null==(Y=wl(a,Um,8,Pm))?void 0:Y.getAddedList())||[];k=(null==(h=wl(a,Um,8,Pm))?void 0:h.getRemovedList())||[];c.added=b.map(Asa).filter($k);c.removed=k.map(Asa).filter($k)}return c}}},Asa=function(a){if(null!=a){var b=a.toObject();a=b.value;b=b.href;if(null==
a)Qk("No value. linkedItemToJs");else if(null==b)Qk("No href. linkedItemToJs");else return{value:a,href:b}}},Csa=function(a){a=qh(a).toString();var b=new Vm;l(b,2,a);return b},Wm=function(a){if(null!=a){var b=a.toObject();b=Vk(b.issueId);if(null==b)Qk("No issueId. issueToJs");else{for(var c=new Map,d=r(a.getAncestorsMap().entries()),e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c.set(e,{sourceIssueIds:f.getSourceIssueIdsList()})}var h,k,q,w;d=a.getUserData();if(null!=
d){d=d.toObject();var y;d={voted:Yk(d.voted),starred:Yk(d.starred),notificationSubscription:al(d.notificationSubscription,Dsa),lastViewedTimeMicros:null!=(y=d.lastViewedTimeMicros)?y:0}}else d=void 0;y=Spa(a.getAccessLimit());e=rb(a,Vl,2).map(Sqa).filter($k);f=a.getVisibleFieldsList().map(bqa).filter($k);var E;var I=m(a,fm,4);if(null!=I){var N=I.toObject(),L=N.createdTimeMicros,S=N.resolvedTimeMicros,Y=N.verifiedTimeMicros,ka=N.modifiedTimeMicros,ha=null!=(E=N.voteCount)?E:0;E=Vk(N.sloId);N=Vk(N.teamId);
var ya=Fl(I.getRetentionState());I=I.getSloStatus();I=null!=I?{assignmentBounds:Aqa(I.getAssignmentBounds()),responseBounds:Aqa(I.getResponseBounds()),closureBounds:Aqa(I.getClosureBounds())}:void 0;E={voteCount:ha,createdTimeMicros:null!=L?L:0,resolvedTimeMicros:null!=S?S:0,verifiedTimeMicros:null!=Y?Y:0,modifiedTimeMicros:null!=ka?ka:0,sloId:E,teamId:N,retentionState:ya,sloStatus:I}}else E=void 0;return{issueId:b,userData:d,accessLimit:y,snapshot:e,visibleFields:f,aggregatedData:E,majorModifiedTimeMicros:null!=
(h=dj(a,7))?h:0,parentIssueIds:null!=(k=a.getParentIssueIdsList())?k:[],ancestors:c,childIssueCount:null!=(q=a.getChildIssueCount())?q:0,isArchived:a.getIsArchived(),relatedLinks:(null!=(w=a.getRelatedLinksList())?w:[]).map(Esa)}}}},Fsa=function(a){if(null!=a){var b=a.toObject(),c=$pa(m(a,rj,4)),d=!!b.isMajorEvent,e=b.addedAttachmentIdsList||[],f,h=null!=(f=Xm(a.getComment()))?f:{},k;f=null==(k=rb(a,Ym,2))?void 0:k.map(Bsa).filter($k);var q;k=null==(q=rb(a,Ym,3))?void 0:q.map(Bsa).filter($k);var w;
q=null==(w=rb(a,Zm,9))?void 0:w.map(Mqa).filter($k);w=a.getAttachmentsList().map(Nm).filter($k);var y=Pl(m(a,Rl,5));y=Zk("<none>")(y);a=Ol(m(a,Rl,5));if(null==c)Qk("No modifiedDate. issueEventToJs");else return Object.assign({},h,{attachments:w,version:b.version,modifiedDate:c,preDiffs:f,postDiffs:k,isMajorEvent:d,addedAttachmentIds:e,taggedSummary:q,userPerformingAction:y,userPerformingActionUser:a})}},Xm=function(a){if(null==a)return{};var b=a.toObject(),c=Yk(bl(b.piiRetention,Ul)),d=bl(b.formattingMode,
$m),e,f=bl(null==(e=b.entityStatus)?void 0:e.status,ysa);e=b.lastModified;return{version:b.version,unlinkifiedComment:b.unlinkifiedComment,commentNumber:b.commentId,commentVersion:b.version,commentLastModifiedAtDate:null!=e?e/1E3:void 0,commentRedacted:Xk(b.redacted),commentContentVerdict:Hl(a.getCommentContentVerdict()),commentRetentionState:Fl(a.getPiiRetentionState()),commentDeletionStatus:f,commentRetention:c,lastCommentEditorUser:Ol(m(a,Rl,8)),formattingMode:d,formattedComment:Xk(a.getFormattedComment()),
commentEtag:b.etag}},cn=function(a){if(null!=a){var b=Wm(a.getIssue());if(null==b)Qk("No issue. issueFetchResponseToJs");else{var c={},d=Yi(a,4,an).entries();d=r(d);for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;(f=Nm(f))&&(c[e]=f)}d=Fsa(m(a,bn,5));return{issue:b,events:rb(a,bn,2).map(Fsa).filter($k),customFields:a.getCustomFieldsList().map(eqa).filter($k),attachmentMap:c,firstEvent:d}}}},Gsa=function(a){var b=[];a=r(a.entries());for(var c=a.next();!c.done;c=
a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.getIssueRelationshipsList().map($qa),totalChildCount:d.getTotalSize()})}return b},Hsa=function(a){var b=new dn;b.setIssueIdsList(a.issueIds.map(String));b.setActionsList(a.actions.map(ira));return b},Isa=function(a){return{issueId:Number(a.getIssueId()),message:a.getMessage()}},Jsa=function(a){for(var b={},c=r(Yi(a,1,dm).entries()),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;
b[Number(d)]=Wm(e)}c={};d=r(Yi(a,3,pm).entries());for(e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c[Number(e)]=om(f)}var h;a=(null!=(h=rb(a,en,2))?h:[]).map(Isa);return{affectedIssues:b,componentMap:c,errors:a}},Ksa=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(Xm)},Esa=function(a){var b=pb(a,fn);switch(b){case 2:return a=wl(a,gn,2,fn),0!==a.getCommentNumber()?{type:"issueReference",issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber()}:
{type:"issueReference",issueId:String(a.getIssueId())};case 1:return{type:"hyperlink",href:wl(a,hn,1,fn).getHref()};case 0:throw Error("Zc");default:return bh(b)}},Lsa=function(a){return a?"string"!==typeof a?a:Xl[a]:0},Msa=function(a){return{readTimestamp:dj(a,1)}},Nsa=function(a){var b=a.getIssueState();b={componentId:b.getComponentId(),type:Oqa[b.getType()],status:Rqa[b.getStatus()],priority:Pqa[b.getPriority()],severity:Qqa[b.getSeverity()]};return{issueId:a.getIssueId(),issueState:b,modifiedTime:Tk(a.getModifiedTime()),
teamId:a.getTeamId()}},Osa=function(a){switch(a){case "PLAIN":return 1;case "MARKDOWN":return 2;case "LITERAL":return 3;case void 0:case "UNSPECIFIED_FORMATTING_MODE":return 0;default:return bh(a,"Unexpected formatting mode")}},Psa=function(a){var b=void 0;a.hasCommentContentVerdict()&&(b=Hl(a.getCommentContentVerdict()));return{issueId:a.getIssueId(),commentNumber:a.getCommentId(),comment:a.getComment(),commentContentVerdict:b,formattingMode:$m[a.getFormattingMode()],lastEditorUser:Ol(m(a,Rl,8)),
lastModified:String(a.getLastModified()),version:a.getVersion(),unlinkifiedComment:V(a,7),entityStatus:wsa(a.getEntityStatus()),piiRetentionState:Fl(a.getPiiRetentionState()),piiRetention:Ul[a.getPiiRetention()],etag:a.getEtag()}},Qsa=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(Psa)},Rsa=function(a){var b=new jn,c=new kn;c.setContent(Csa(ah(a)));b.setLiteralFormat(c);return b},Ssa=function(a){var b=a.getIssuesList();if(b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())(d=
d.value)&&(d=Wm(d))&&c.push(d)}else c=[];b=a.getNumTotalResults();var e=Yi(a,3,pm);d={};e=r(e.entries());for(var f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;d[Number(f)]=om(h)}f=Yi(a,4);if(void 0!==f)for(e={},f=r(f.entries()),h=f.next();!h.done;h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e[Number(h)]=k}else e=void 0;return{issues:c,numTotalResults:b,componentMap:d,positionMap:e,nextPageToken:a.getNextPageToken()}},Tsa=function(a){var b={};if(null==
a)return b;a=r(rb(a,ln,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getResource(),e={id:d,admin:!1,writer:!1,appender:!1,reader:!1};b[d]=b[d]||e;switch(c.getRelation()){case 1:b[d].admin=!0;break;case 2:b[d].writer=!0;break;case 3:b[d].appender=!0;break;case 4:b[d].reader=!0}}return b},Usa=function(a){switch(a){case 1:return"admin";case 2:return"writer";case 3:return"appender";case 4:return"reader"}},Vsa=function(a){var b={};a=r(rb(a,ln,1));for(var c=a.next();!c.done;c=a.next()){c=
c.value;var d=Usa(c.getRelation());if(d){var e=void 0,f=null!=(e=b[c.getResource()])?e:{};f[d]=!0;b[c.getResource()]=f}}return b},Wsa=function(a,b){return a.map(function(c){var d=c.resourceName;c=c.relation;return void 0!==b[d]&&void 0!==b[d][c]?b[d][c]:!1})},Xsa=function(){},Ysa=function(a){if(a&1){var b=x();G(0,"div",2)(1,"button",3);K("click",function(){z(b);var c=M();return A(c.action())});P(2);H()()}a&2&&(a=M(),B(2),Jf(a.data.action))},Zsa=function(){return new mn},$sa=function(a){a&1&&(G(0,
"span",6),P(1),H());a&2&&(a=M(),B(1),Jf(a.data.message))},ata=function(a){a&1&&J(0,"span",7);a&2&&(a=M(),D("innerHtml",a.data.htmlMessage,Jd))},cta=function(a){if(a&1){var b=x();G(0,"button",8);K("click",function(){z(b);var c=M();return A(bta(c.snackBarRef))});P(1);H()}a&2&&(a=M(),B(1),If(" ",a.data.actionLabel," "))},dta=function(a){if(a&1){var b=x();G(0,"button",8);K("click",function(){z(b);var c=M();return A(c.snackBarRef.dismiss())});P(1);H()}a&2&&(a=M(),B(1),If(" ",a.data.dismissLabel," "))},
eta=function(a){if(a&1){var b=x();G(0,"button",9);K("click",function(){z(b);var c=M();return A(c.snackBarRef.dismiss())});J(1,"mat-icon",10);H()}},gta=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a)&&(a=rb(new fta(a),nn,1))&&1===a.length)return cn(a[0])},pn=function(a,b){return on("issues/:issueId",{id:a,params:b})},rn=function(a){return qn("issues",{params:a})},hta=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},ita=function(a){return a&&
a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},jta=function(a,b){return on("components/:componentId/manage",{id:a,tab:b})},kta=function(a){return a?qn("settings/:settingsTab?",{id:a,token:":settingsTab?"}):qn("settings")},on=function(a,b){b=void 0===b?{}:b;return null==b.id?"":qn(a,b)},qn=function(a,b){var c=b=void 0===b?{}:b;b=c.id;var d=c.params,e=c.tab;c=c.token;var f=a;null!=b&&(f=a.replace(c?c:/:\w+/,b.toString()));d&&(f=lta(f,d));e&&(f=f+"#"+e);return f},sn=function(a,
b){b=(void 0===b?{}:b).comment;return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},tn=function(a,b){b=void 0===b?{}:b;b=void 0===b?{}:b;a={q:"status:open componentid:"+a};b.includeArchived&&(a.q+=" archived:all");a={path:"/issues",queryParams:a};a.queryParams.s="created_time:desc";return a},mta=function(a){return{path:"/components/"+a}},nta=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},un=function(a){return{path:"/slos/"+a+"/edit"}},ota=function(a){for(var b=
{},c=r(a.keys),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.getAll(d);b[d]=1<e.length?e:e[0]}return b},vn=function(a){a=void 0===a?{}:a;return{headers:a.headers||{},params:Object.assign({},a.params,pta)}},qta=function(a){var b=Object.assign({},a);a=a.issue;b=(delete b.issue,b);return Object.assign({},b,{issueId:String(a.issueId)})},rta=function(a,b){var c;a=null==(c=a.componentPathInfo)?void 0:c.allCustomField;if(!a)return!0;c={};a=r(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$customField$1634:c.$jscomp$loop$prop$customField$1634},
d=a.next())if(c.$jscomp$loop$prop$customField$1634=d.value,c.$jscomp$loop$prop$customField$1634.required){d=!!c.$jscomp$loop$prop$customField$1634.typedDefaultValue;var e=void 0,f=void 0,h=null==(e=b)?void 0:null==(f=e.snapshot.customField)?void 0:f.some(function(k){return function(q){return q.customFieldId===k.$jscomp$loop$prop$customField$1634.customFieldId}}(c));if(!d&&!h)return!1}return!0},sta=function(a){return"component"===(null==a?void 0:a.name)},uta=function(a){return null==a?!1:tta.has(a.name)},
vta=function(a){return"hotlist"===(null==a?void 0:a.name)},wta=function(a){return null==a?!1:null!=a.href&&null!=a.value},xta=function(a){return Array.isArray(a)?a.every(wta):!1},yta=function(a){var b=new Set;if(null==a||!vta(a))return b;a=[].concat(u(a.added||[]),u(a.removed||[]));a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,wta(c)&&b.add(String(c.value));return b},wn=function(a,b){return function(c,d){return zta(c,a,b,d)}},zta=function(a,b,c,d){d=void 0===d?"":d;return""===d?a:[].concat(u(a)).sort(function(e,
f){var h="asc"===d?1:-1;return c(b(e),b(f))*h})},Ata=function(a,b){return null==a||null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:isNaN(a)&&isNaN(b)?0:isNaN(a)?1:isNaN(b)?-1:a>b?1:a<b?-1:0},Bta=function(a,b){return null==a||null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:a.localeCompare(b)},xn=function(a){return!(null==a||!a.commentNumber)},Cta=function(a){var b;return 0<(null==(b=a.attachments)?void 0:b.length)},Dta=function(a){var b=new Set;if(!Array.isArray(a)||0===a.length)return b;var c=
function(e){null!=e&&0<Number(e)&&b.add(e)};a=a.flatMap(function(e){return[].concat(u((null==e?void 0:e.preDiffs)||[]),u((null==e?void 0:e.postDiffs)||[]))}).filter(sta);a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c(d.oldValue),c(d.newValue);return b},Eta=function(a,b,c){var d=a.findIndex(function(f){return f.commentNumber===b}),e=a[d];if(null==e)return a;c=Object.assign({},e,c);return[].concat(u(a.slice(0,d)),[c],u(a.slice(d+1)))},Fta=function(a){var b=new Set;if(null==a)return b;a=a.map(function(e){return[].concat(u(e.preDiffs||
[]),u(e.postDiffs||[]))}).reduce(function(e,f){return e.concat(f)},[]).map(yta);a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},Gta=function(a){var b=new Set,c,d;a=null==a?void 0:null==(c=a.issue)?void 0:null==(d=c.snapshot)?void 0:d[0];if(null==a)return b;c=r(a.hotlistId||[]);for(d=c.next();!d.done;d=c.next())b.add(String(d.value));return b},Hta=function(a){var b=new Set,c,d;a=null==a?void 0:null==(c=a.issue)?void 0:null==
(d=c.snapshot)?void 0:d[0];if(null==a||null==a.componentId)return b;b.add(String(a.componentId));return b},yn=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Ita=function(a){if(null==a)return"";var b,c,d,e,f=a.etag,h=a.piiRetention;var k=a.piiRetentionState;k=null==k?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,h,k,null==(b=a.entityStatus)?void 0:b.reason,null==(c=a.entityStatus)?void 0:c.status,
null==(d=a.contentVerdict)?void 0:null==(e=d.piiVerdict)?void 0:e.severity].join("-")},Jta=function(a){if(null==a)return"";var b=a.attachments.map(Ita).join("-"),c,d;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,null==(c=a.commentContentVerdict)?void 0:null==(d=c.piiVerdict)?void 0:d.severity,a.commentDeletionStatus,a.commentRetention].join("-")},Kta=function(a){return a.map(function(b){return b.commentNumber}).filter($k).reduce(function(b,c){return Math.max(b,
c)},1)},Lta=function(a,b){if(a===b)return!0;if(null==a||null==b||a.length!==b.length)return!1;for(var c=a.length-1;0<=c;c--){var d=a[c],e=b[c];if(d!==e&&(null==d||null==e||Jta(d)!==Jta(e)))return!1}return!0},An=function(a){if(null==a?0:a.isArchived)return!1;var b,c;a=null==a?void 0:null==(b=a.snapshot)?void 0:null==(c=b[0])?void 0:c.status;if(null==a)return!1;var d,e;return null!=(e=null==(d=zn[a])?void 0:d.open)?e:!1},Bn=function(a){return null==a.isArchived?!1:!a.isArchived},Nta=function(a){return wn(function(b){var c,
d;return null!=(d=Mta[Wl[null==(c=a(b))?void 0:c.snapshot[0].status]])?d:0},Ata)},Ota=function(a){return wn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].assigneeUser)?void 0:d.emailAddress},Bta)},Pta=function(a){return wn(function(b){var c;return null==(c=a(b))?void 0:c.snapshot[0].type},Bta)},Qta=function(a){return wn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].reporterUser)?void 0:d.emailAddress},Bta)},Rta=function(a){return wn(function(b){var c,
d,e;return null!=(e=null==(c=a(b))?void 0:null==(d=c.aggregatedData)?void 0:d.createdTimeMicros)?e:0},Ata)},Sta=function(a){var b=a.map(function(c){return X(c,2,0)});return b.includes(4)?3:b.includes(3)?0:b.includes(2)?4:a.map(function(c){return X(c,1,0)}).includes(3)?1:b.includes(1)?5:2},Tta=function(a,b){switch(a){case 3:return"public user";case 0:return"external partner";case 4:return"restricted user (TVC)";case 5:return"user";default:return b?"user":"unknown user"}},Uta=function(a){var b=a.newEditors,
c=a.newImplicitUsers,d=a.isExternalSession,e=a.issueId,f=a.actionIssueId;a=Sta(a.userPrincipals);return{title:"Allow "+(1===a?"members of the group to ":Tta(a,d)+" to ")+(0===b.length?"comment?":"edit?"),content:"Adding "+c.join(", ")+" will allow "+(1===a?"all members of the group":"them")+" to "+(0===b.length?"comment on ":"edit ")+(e===f?"issue "+f:"canonical issue "+f)+"."}},Vta=function(a){return{noAccessEmails:jb(a,1),unknownEmails:jb(a,2)}},Wta=function(a){if(null!=a){var b={},c;if(c=a.getUser())b.user=
Ol(c);if(c=a.getGroup())b.group=Ol(c);if(c=a.getAlias())b.alias=c;return b}},En=function(a){var b=new Cn;if(Ik(a))return b.setUser(Sl(a.user)),b;if(Jk(a))return b.setGroup(Sl(a.group)),b;void 0!==a.alias&&b.setAlias(a.alias);return b},Gn=function(a){var b=Xta[a.getInheritance()],c=Yta[a.getImplicitAccess()],d,e,f,h,k,q,w,y,E,I;return{inheritance:b,admins:Fn(null!=(d=a.getAdminsList())?d:[]),appenders:Fn(null!=(e=a.getAppendersList())?e:[]),editors:Fn(null!=(f=a.getEditorsList())?f:[]),readers:Fn(null!=
(h=a.getReadersList())?h:[]),restrictedReaders:Fn(null!=(k=a.getRestrictedReadersList())?k:[]),restrictedPlusReaders:Fn(null!=(q=a.getRestrictedPlusReadersList())?q:[]),inheritedAdmins:Fn(null!=(w=a.getInheritedAdminsList())?w:[]),implicitAppenders:Fn(null!=(y=a.getImplicitAppendersList())?y:[]),implicitEditors:Fn(null!=(E=a.getImplicitEditorsList())?E:[]),implicitReaders:Fn(null!=(I=a.getImplicitReadersList())?I:[]),implicitAccess:c}},aua=function(a){var b=new Hn,c=a.inheritance;b.setInheritance(Zta[null!=
c?c:"INHERITANCE_UNSPECIFIED"]);var d;b.setAdminsList((null!=(d=a.admins)?d:[]).map(En));var e;b.setAppendersList((null!=(e=a.appenders)?e:[]).map(En));var f;b.setEditorsList((null!=(f=a.editors)?f:[]).map(En));var h;b.setReadersList((null!=(h=a.readers)?h:[]).map(En));var k;b.setRestrictedReadersList((null!=(k=a.restrictedReaders)?k:[]).map(En));var q;b.setRestrictedPlusReadersList((null!=(q=a.restrictedPlusReaders)?q:[]).map(En));a.implicitAccess&&b.setImplicitAccess($ta[a.implicitAccess]);return b},
Fn=function(a){return a.map(Wta).filter($k)},In=function(a){if(null==a)return"";var b=a.user,c=a.group,d=a.alias;if(null!=b){var e=2;var f=b.emailAddress||b.obfuscatedEmailAddress||void 0}else null!=c?(e=3,f=c.emailAddress||c.obfuscatedEmailAddress||void 0):null!=d&&(e=4,f=d);return null==e||null==f?(Xpa("Invalid principal: ",a),""):e+":"+f},bua=function(a){return(null!=a?a:[]).map(In)},dua=function(a){return(null!=a?a:[]).map(cua)},cua=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;
if(!a||!b)throw Error("dd`"+b);switch(Number(a)){case 2:return{user:{emailAddress:b}};case 3:return{group:{emailAddress:b}};case 4:return{alias:b};default:throw Error("ed`"+b);}},eua=function(a){var b=1E3;b=void 0===b?150:b;var c,d=[];return function(e){d.push(e);c&&clearTimeout(c);c=setTimeout(function(){a(d);d=[];c=void 0},b)}},fua=function(a){function b(){var e,f,h,k;return me(function(q){if(1==q.nextAddress){if(d||0===c.length)return q.return();d=!0;e=[].concat(u(c));c=[];f=r(e);h=f.next()}if(3!=
q.nextAddress){if(h.done)return d=!1,ne(q,b(),0);k=h.value;return ne(q,a.apply(null,u(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}h=f.next();return q.jumpTo(2)})}var c=[],d=!1;return function(){var e=oc.apply(0,arguments),f=new aoa;c.push({args:e,returnValue:f});b();return f.promise}},gua=function(a){var b=!1;return function(){var c=oc.apply(0,arguments);if(!b)return b=!0,a.apply(null,u(c))}},hua=function(a){return!(null==a||!a.relatedChildren.length)},jua=function(a,b){var c=
[].concat(u(a));a=new Set(a.map(function(h){return h.targetIssueId}));var d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$newItem$1640:d.$jscomp$loop$prop$newItem$1640},e=b.next())if(d.$jscomp$loop$prop$newItem$1640=e.value,!a.has(d.$jscomp$loop$prop$newItem$1640.targetIssueId)){e=c.findIndex(function(h){return function(k){return k.targetIssueId===h.$jscomp$loop$prop$newItem$1640.afterIssueId}}(d));var f=void 0;f=d.$jscomp$loop$prop$newItem$1640.afterIssueId?-1===e?c.length:e+1:0;c.splice(f,
0,d.$jscomp$loop$prop$newItem$1640);a.add(d.$jscomp$loop$prop$newItem$1640.targetIssueId)}return iua(c)},kua=function(a,b){return iua(a.filter(function(c){return c.targetIssueId!==b}))},iua=function(a){for(var b=[],c=r(a.entries()),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;var f=e.next().value;e=void 0;d=Object.assign({},f,{afterIssueId:null==(e=a[d-1])?void 0:e.targetIssueId});null==d.afterIssueId&&delete d.afterIssueId;b.push(d)}return b},lua=function(a){var b=new Map,c={};
a=r(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$previousOperation$1642:c.$jscomp$loop$prop$previousOperation$1642},d=a.next()){var e=d.value;d=e.issues.map(function(f){return f.issueId}).join(",");c.$jscomp$loop$prop$previousOperation$1642=b.get(d);c.$jscomp$loop$prop$previousOperation$1642?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:c.$jscomp$loop$prop$previousOperation$1642.issues,eventTimestamps:[].concat(u(c.$jscomp$loop$prop$previousOperation$1642.eventTimestamps),
u(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(c.$jscomp$loop$prop$previousOperation$1642.done.resolve).catch(function(f){return function(h){f.$jscomp$loop$prop$previousOperation$1642.done.reject(h);throw h;}}(c)),b.set(d,e)):b.set(d,e)}b=[].concat(u(b.values()));c={};a=r(b);for(d=a.next();!d.done;c={$jscomp$loop$prop$operation$1408$1644:c.$jscomp$loop$prop$operation$1408$1644},d=a.next())c.$jscomp$loop$prop$operation$1408$1644=d.value,
c.$jscomp$loop$prop$operation$1408$1644.newRelations=c.$jscomp$loop$prop$operation$1408$1644.newRelations.map(function(f){return function(h){return f.$jscomp$loop$prop$operation$1408$1644.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===h.targetIssueId})}}(c));return b.sort(function(f,h){var k=f.newParentChildrenSnapshot,q=h.newParentChildrenSnapshot;f=Math.min.apply(Math,u(f.issues.map(function(w){return k.findIndex(function(y){return y.targetIssueId===w.issueId})})));h=Math.min.apply(Math,
u(h.issues.map(function(w){return q.findIndex(function(y){return y.targetIssueId===w.issueId})})));return f===h?0:f<h?-1:1})},Kn=function(a){var b=a.getTrackerId(),c=a.getName(),d=a.getComponentId(),e=jb(a,4);a=m(a,Jn,5);a=null!=a?{logoUrl:a.getLogoUrl(),theme:mua[a.getTheme()]}:void 0;return{trackerId:b,name:c,componentId:d,associatedTrackerIds:e,branding:null!=a?a:null}},nua=function(a){var b;return(null!=(b=a.getTrackersList())?b:[]).map(Kn)},oua=function(a){return{trackers:a.getTrackersList().map(Kn),
nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},pua=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},qua=function(a){var b;return null!=(b=Vk(a))?b:null},Ln=function(a){return!!a&&rua.test(a)&&!sua.test(a)},Mn=function(a){a=void 0===a?"":a;return a.endsWith("@prod.google.com")||a.endsWith("-robots@google.com")||tua(a)},tua=function(a){return uua.some(function(b){return a.endsWith(b)})},vua=function(a){switch(a){case "ALL":case "ALL_UPDATES":return"All Updates";case "IMPORTANT":case "MAJOR_UPDATES":return"Major Updates";
case "CLOSURE_ONLY":return"Closure Only";case "MINIMAL":return"Minimal";case "NONE":return"None";default:return a}},wua=function(a){return a?Kk(a.replace(/_/g," ").toLowerCase()):""},xua=function(a){return a?a.join(", "):""},yua=function(a,b){if(!a)return Nn("");if(!b)return Nn(a);b=b.split(" ").map(fna);b=b.filter(function(h){return!!h});b=b.map(On);if(0===b.length)return Nn(a);b=new RegExp("(\\W|^)("+b.join("|")+")(\\w*)","i");for(var c=[];a;){var d=b.exec(a);if(!d){c.push(a);break}var e=d.index+
d[1].length,f=d[2];d=d[3];c.push(a.substring(0,e));c.push(Pn("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Qn(c)},zua=function(a){return a?"Yes":"No"},Aua=function(a){var b;a?b=Array.isArray(a)&&a.every(ana)?a.join(" > "):a.componentPathInfo&&a.componentPathInfo.componentPathName?a.componentPathInfo.componentPathName.join(" > "):"":b="";return b},Bua=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},Cua=function(a){var b;return(null==(b=zn[a])?void 0:b.displayValue)||
""},Dua=function(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.resolved||!c.status||void 0===c.archived)return;var d=void 0;(null==(d=zn[c.status])?0:d.open)&&!c.archived&&b++}return b},Eua=function(a){return null!=a?a:"-"},Fua=function(a){if(1073741824<=a){a/=1073741824;var b="GB"}else 1048576<=a?(a/=1048576,b="MB"):1024<=a?(a/=1024,b="KB"):b="B";a=10>a?Math.round(10*a)/10:Math.round(a);return a+" "+b},Gua=function(a){switch(a){case "EXTERNAL_PARTNER":return"Visible to Partners";
case "EXTERNAL_PUBLIC":return"Visible to Public";default:return""}},Hua=function(a){if(a&&Ln(a))return a},Rn=function(a){return null==a?"":String(a)},Iua=function(a){var b;return null!=(b=null==a?void 0:a.filter(function(c){return!!c.trim()}).join(", "))?b:""},Jua=function(a){var b=a.name;if(null!=b&&(a=Math.round(a.duration),!isNaN(a))){var c=r(b.split(" -> ")),d=c.next().value;c=c.next().value;if(null==d||null==c)console.warn("can't parse 'from' and 'to' in PerformanceEntry: "+b);else return{from:d,
to:c,duration:a}}},Lua=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(Kua);if(null!=b){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},Pua=function(){var a=window.performance.getEntries(),b=Lua(a);if(null==b)return[];var c=b.startTime;return a.filter(Mua).filter(Nua).filter(Oua).filter(function(d){return d.startTime<=c})},Kua=function(a){var b=a.name;return"measure"===a.entryType&&0===b.indexOf("browserStart")},Mua=function(a){return 0!==
a.name.indexOf("Zone")},Oua=function(a){return"resource"===a.entryType},Qua=function(a){return"xmlhttprequest"===a.initiatorType},Nua=function(a){return null==a.name.match(/\.html$/)},Rua=function(a,b){var c=b.transferSize||0,d=a.count+1,e=a.cacheHits+(0===c?1:0);return{count:d,duration:a.duration+b.duration,transferSize:a.transferSize+c,cacheHits:e,cacheHitRate:e/d}},Sua=function(a){if(null!=a&&!(3E4<=a.duration))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},
Vua=function(){if(!Tua){var a=Pua(),b=a.filter(function(c){return!Qua(c)}).reduce(Rua,Uua());Sn("r-until-cf","asset","count",b.count);Sn("r-until-cf","asset","transferSize",b.transferSize);Sn("r-until-cf","asset","duration",b.duration);Sn("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(Qua).reduce(Rua,Uua());Sn("r-until-cf","xhr","count",a.count);Sn("r-until-cf","xhr","transferSize",a.transferSize);Sn("r-until-cf","xhr","duration",a.duration);Tua=!0}},Tn=function(a,b){Wua({hitType:"event",
eventCategory:a,eventAction:b})},Sn=function(a,b,c,d){Wua({hitType:"event",eventCategory:a,eventAction:b,eventLabel:c,eventValue:d})},Wua=function(a){null!=a&&("function"===typeof Un.ga?Un.ga("send",a):Xua&&Vpa("[stub ga.ts] ga('send')",a))},Vn=function(a,b){"function"===typeof Un.ga?Un.ga("set",a,b):Xua&&Vpa("[stub ga.ts] ga('set', '"+a+"', "+b+")")},Yua=function(a,b){if(a&1){var c=x();G(0,"a",8);K("click",function(){var d=z(c).$implicit,e=M(2);return A(e.clickSegment.emit(d.name||d.path))});P(1);
H()}a&2&&(a=b.$implicit,D("href",a.path,Kd),B(1),If(" ",a.name||a.path," "))},Zua=function(a){a&1&&(xf(0),G(1,"button",4),J(2,"mat-icon",5),H(),G(3,"mat-menu",null,6),O(5,Yua,2,2,"a",7),H(),yf());if(a&2){var b=Hf(4);a=M();B(1);D("matMenuTriggerFor",b);B(4);D("ngForOf",a.segments)}},$ua=function(a,b){if(a&1){var c=x();xf(0);G(1,"b-fab-segmented",1);K("clickMain",function(f){z(c);var h=M(3);return A(h.trackClick(f))})("clickSegment",function(f){z(c);var h=M(3);return A(h.trackClick(f))});H();yf()}if(a&
2){a=b.ngIf;b=M().ngIf;var d=M().ngIf,e=M();B(1);D("label",b)("icon",a)("href",e.createIssuePath)("segments",d)}},ava=function(a){a&1&&(xf(0),O(1,$ua,2,4,"ng-container",0),Q(2,"async"),yf());a&2&&(a=M(2),B(1),D("ngIf",R(2,1,a.buttonIcon$)))},bva=function(a){a&1&&(xf(0),O(1,ava,3,3,"ng-container",0),Q(2,"async"),yf());a&2&&(a=M(),B(1),D("ngIf",R(2,1,a.buttonLabel$)))},gva=function(){var a=void 0===a?Tn:a;var b=Date.now(),c=Wn(b);Wn(cva())!==c?a("retention","first-visit"):(c=Wn(b),Wn(cva())===c&&1===
dva()&&a("retention","second-visit"));a=Wn(b);Wn(cva())!==a?eva(1):(a=dva()||0,eva(a+1));fva(b)},Wn=function(a){if(null!=a)return(new Date(a)).toLocaleDateString()},hva=function(a,b){var c=b.filter(function(e){return!a.includes(e)}).map(function(e){return"+"+e}).join(),d=a.filter(function(e){return!b.includes(e)}).map(function(e){return"-"+e}).join();return c+d},iva=function(a){if(!a)return null;var b=new Il;a.startTime&&b.setStartTime(zm(a.startTime));a.targetTime&&b.setTargetTime(zm(a.targetTime));
a.endTime&&b.setEndTime(zm(a.endTime));return b},jva=function(a){if(!a)return null;var b=new im;a.assignmentBounds&&b.setAssignmentBounds(iva(a.assignmentBounds));a.responseBounds&&b.setResponseBounds(iva(a.responseBounds));a.closureBounds&&b.setClosureBounds(iva(a.closureBounds));return b},Xn=function(a){for(var b=r(a.item||[]),c=b.next();!c.done;c=b.next())c=c.value,"hotlistId"in c?c.resourceType="HOTLIST":"savedSearchId"in c&&(c.resourceType="SAVED_SEARCH");return a},kva=function(a){return a.map(Xn)},
lva=function(a){var b={name:a.getName(),description:a.getDescription()};1===pb(a,Yn)?b.hotlistId=Number(a.getHotlistId()):4===pb(a,Yn)&&(b.savedSearchId=Number(kj(a,qb(a,Yn,4))));return b},Zn=function(a){var b,c;return{bookmarkGroupId:Number(a.getBookmarkGroupId()),name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Ol(a.getOwnerUser()))?b:null,archived:a.getArchived(),item:(null!=(c=a.getItemList())?c:[]).map(lva),adminUsers:Ql(a.getAdminUsersList())}},mva=function(a){var b=new $n;
b.setName(a.name);void 0!==a.description&&b.setDescription(a.description);void 0!==a.hotlistId?b.setHotlistId(String(a.hotlistId)):void 0!==a.savedSearchId&&ao(b,4,Yn,String(a.savedSearchId));return b},nva=function(a){var b;return(null!=(b=a.getBookmarkGroupsList())?b:[]).map(Zn)},ova=function(a){if(a&1){var b=x();G(0,"button",5);K("click",function(){z(b);var c=M();return A(c.dialogRef.close(!1))});P(1);H()}a&2&&(a=M(),B(1),If(" ",a.cancelButtonText," "))},pva=function(a){a&1&&zf(0)},qva=function(a){a&
1&&zf(0)},rva=function(a){a&1&&(xf(0),O(1,qva,1,0,"ng-container",1),yf());a&2&&(a=M(),B(1),D("ngTemplateOutlet",a.content))},sva=function(a){a&1&&P(0," Archived ")},tva=function(a){a&1&&(G(0,"button",15),K("click",function(c){return c.stopPropagation()}),J(1,"mat-icon",16),H());if(a&2){M();var b=Hf(5);D("matMenuTriggerFor",b)}},uva=function(a){if(a&1){var b=x();G(0,"button",17);K("click",function(){z(b);var c=M(3).$implicit;return A(c.unstar())});P(1," Unstar ");H()}},vva=function(a){if(a&1){var b=
x();G(0,"button",17);K("click",function(){z(b);var c=M(3).$implicit;return A(c.unarchive())});P(1," Unarchive ");H()}},wva=function(a){if(a&1){var b=x();G(0,"button",17);K("click",function(){z(b);var c=M(2).$implicit,d=M(3);return A(d.handleBookmarkGroupOpen(c.id))});P(1," Open ");H();G(2,"button",17);K("click",function(){z(b);var c=M(2).$implicit,d=M(3);return A(d.handleBookmarkGroupDashboard(c.id))});P(3," Dashboard ");H();G(4,"button",17);K("click",function(){z(b);var c=M(2).$implicit,d=M(3);return A(d.openEditBookmarkGroup(c.id))});
P(5," Settings ");H();O(6,uva,2,0,"button",18);O(7,vva,2,0,"button",18)}a&2&&(a=M(2).$implicit,B(6),D("ngIf",a.isUnstarable()),B(1),D("ngIf",a.isEditable()))},xva=function(a){a&1&&(G(0,"div",10)(1,"span",11),P(2),H(),O(3,tva,2,1,"button",12),G(4,"mat-menu",null,13),O(6,wva,8,2,"ng-template",14),H()());a&2&&(a=M().$implicit,pf("id","bv2-user-archived-bookmarkgroup-item-",a.id,""),B(2),Jf(a.name),B(1),D("ngIf",a))},yva=function(a,b){if(a&1){var c=x();G(0,"li",21)(1,"a",22);K("click",function(d){var e=
z(c).$implicit,f=M(5);return A(f.onAnchorClick(e.href,d))});G(2,"span",11);P(3);H()()()}a&2&&(a=b.$implicit,b=M(2).$implicit,sf("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),iha("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),D("title",a.name),B(1),D("href",a.href,Kd),B(2),If(" ",a.name," "))},zva=function(a){a&1&&(G(0,"ul",19),O(1,yva,4,12,"li",20),H());a&2&&(a=M().$implicit,B(1),D("ngForOf",
a.items))},Ava=function(a,b){a&1&&(G(0,"li",7)(1,"sidebar-zippy",1),O(2,xva,7,3,"ng-template",null,8,gg),O(4,zva,2,1,"ng-template",null,9,gg),H()());if(a&2){a=b.$implicit;var c=Hf(3),d=Hf(5);D("title",a.name);B(1);D("header",c)("content",d)}},Bva=function(a){a&1&&(G(0,"button",27),J(1,"mat-icon",16),H());if(a&2){M();var b=Hf(6);D("matMenuTriggerFor",b)}},Cva=function(a){if(a&1){var b=x();G(0,"button",17);K("click",function(){z(b);var c=M(2).$implicit;return A(c.unstar())});P(1," Unstar ");H()}},Dva=
function(a){if(a&1){var b=x();G(0,"button",17);K("click",function(){z(b);var c=M(2).$implicit;return A(c.unarchive())});P(1," Unarchive ");H()}},Eva=function(a){if(a&1){var b=x();G(0,"button",17);K("click",function(){z(b);var c=M().$implicit,d=M(3);return A(d.openEditHotlist(c.id))});P(1," Settings ");H();O(2,Cva,2,0,"button",18);O(3,Dva,2,0,"button",18)}a&2&&(a=M().$implicit,B(2),D("ngIf",a.isUnstarable()),B(1),D("ngIf",a.isEditable()))},Fva=function(a,b){if(a&1){var c=x();G(0,"li",23)(1,"a",24);
K("click",function(d){var e=z(c).$implicit,f=M(3);return A(f.onAnchorClick(e.href,d))});G(2,"span",11);P(3);H()();O(4,Bva,2,1,"button",25);G(5,"mat-menu",null,26);O(7,Eva,4,2,"ng-template",14);H()()}a&2&&(a=b.$implicit,sf("selected",a.isSelected()),Ef("id","bv2-user-hotlists-archived-hotlist-item-",a.id,""),D("title",a.name),B(1),D("href",a.href,Kd),B(2),Jf(a.name),B(1),D("ngIf",a))},Gva=function(a){a&1&&(G(0,"ul",4),O(1,Ava,6,3,"li",5),O(2,Fva,8,7,"li",6),H());a&2&&(a=M(2),B(1),D("ngForOf",a.bookmarkGroups),
B(1),D("ngForOf",a.hotlists))},Hva=function(a){a&1&&(G(0,"div"),J(1,"hr"),G(2,"sidebar-zippy",1),O(3,sva,1,0,"ng-template",null,2,gg),O(5,Gva,3,2,"ng-template",null,3,gg),H()());if(a&2){var b=Hf(4),c=Hf(6);B(2);D("header",b)("content",c)}},Iva=function(a){a&1&&(Lc(),J(0,"circle",4));if(a&2){a=M();var b=Hf(1);rf("animation-name","mat-progress-spinner-stroke-rotate-"+a._spinnerAnimationLabel)("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",
a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));nf("r",a._getCircleRadius())}},Jva=function(a){a&1&&(Lc(),J(0,"circle",4));if(a&2){a=M();var b=Hf(1);rf("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));nf("r",a._getCircleRadius())}},Kva=function(){return{diameter:100}},Lva=function(a){a&1&&(xf(0),J(1,"img",1),yf());
a&2&&(a=M(),B(1),sf("large",a.large)("small",!a.large))},Mva=function(a){a&1&&J(0,"mat-spinner",4);a&2&&D("diameter",36)},Nva=function(a){a&1&&J(0,"mat-spinner",5);a&2&&D("diameter",16)("strokeWidth",2)},Ova=function(a){a&1&&(xf(0),O(1,Mva,1,1,"mat-spinner",2),O(2,Nva,1,2,"mat-spinner",3),yf());a&2&&(a=M(),B(1),D("ngIf",a.large),B(1),D("ngIf",!a.large))},Qva=function(a){if(null==Pva){var b="undefined"!==typeof document?document.head:null;Pva=!(!b||!b.createShadowRoot&&!b.attachShadow)}return Pva&&
(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Rva=function(a){if(a&1){var b=x();G(0,"div",0);K("clickOutside",function(){z(b);var c=M();return A(c.closeHovercard$.next())})("mouseenter",function(){z(b);M().isOnHover$.next(!0);return A()})("mouseleave",function(){z(b);M().isOnHover$.next(!1);return A()});Df(1);H()}a&2&&(a=M(),tf(a.className),D("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},Sva=function(a,b){a&1&&(G(0,"div",
0,1),Df(2),H());a&2&&(a=b.id,b=M(),D("id",b.id)("ngClass",b._classList),nf("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},Tva=function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}},Uva=function(a){a&1&&J(0,"b-spinner")},Vva=function(a){if(a&1){var b=x();G(0,"b-star-toggle",15);K("starClicked",function(){z(b);var c=M().$implicit,d=M();return A(d.toggleStar(c))});H()}a&2&&(a=M().$implicit,D("starMessage","Star this item")("unStarMessage","Un-star this item")("starred",
a.isStarred))},Wva=function(a){a&1&&J(0,"b-hotlist-card",16);a&2&&(a=M().$implicit,D("hotlist",a))},Xva=function(a){a&1&&J(0,"b-bookmark-group-card",17);a&2&&(a=M().$implicit,D("bookmarkGroup",a))},Yva=function(a,b){a&1&&(G(0,"mat-option",8)(1,"div",9),O(2,Vva,1,3,"b-star-toggle",10),G(3,"onedev-hovercard",null,11),O(5,Wva,1,1,"b-hotlist-card",12),O(6,Xva,1,1,"b-bookmark-group-card",13),H(),G(7,"span",14),P(8),H()()());if(a&2){a=b.$implicit;var c=Hf(4);b=M();D("value",a);B(1);sf("bv2-bookmark-group",
b.showHotlists&&a.isGroup);B(1);D("ngIf",b.shouldShowStar(a));B(3);D("ngIf",!a.isGroup);B(1);D("ngIf",!!a.isGroup);B(1);D("onedevHovercardTrigger",c);B(1);Jf(a.name)}},Zva=function(){return ega(function(){return(0,T.from)(Promise.resolve(void 0))})},$va=function(a){a&1&&J(0,"a",1)},awa=function(a){if(a&1){var b=x();G(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);K("itemSelect",function(c){z(b);var d=M();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;
return A()});H()()()}a&2&&(a=M(),B(2),D("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",!0))},bwa=function(a){if(a&1){var b=x();G(0,"span");P(1,"Bookmark groups");H();G(2,"b-hotlist-search-popup",4);K("itemSelect",function(c){z(b);var d=M();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return A()});H()}a&2&&(B(2),D("showHotlists",!1))},cwa=function(a){a&1&&(G(0,"button",17),K("click",function(c){return c.stopPropagation()}),J(1,"mat-icon",
18),H());if(a&2){M();var b=Hf(5);D("matMenuTriggerFor",b)}},dwa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var c=M(3).$implicit;return A(c.unstar())});P(1," Unstar ");H()}},ewa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var c=M(3).$implicit;return A(c.archive())});P(1," Archive ");H()}},fwa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var c=M(3).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");
H()}},gwa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var c=M(2).$implicit,d=M(3);return A(d.handleBookmarkGroupOpen(c.id))});P(1," Open ");H();G(2,"button",19);K("click",function(){z(b);var c=M(2).$implicit,d=M(3);return A(d.handleBookmarkGroupDashboard(c.id))});P(3," Dashboard ");H();G(4,"button",19);K("click",function(){z(b);var c=M(2).$implicit,d=M(3);return A(d.editBookmarkGroup(c.id))});P(5," Settings ");H();O(6,dwa,2,0,"button",20);O(7,ewa,2,0,"button",20);O(8,
fwa,2,0,"button",20)}a&2&&(a=M(2).$implicit,B(6),D("ngIf",a.isUnstarable()),B(1),D("ngIf",a.isEditable()),B(1),D("ngIf",!a.isPreferredHomepage()))},hwa=function(a){a&1&&(G(0,"div",12)(1,"span",13),P(2),H(),O(3,cwa,2,1,"button",14),G(4,"mat-menu",null,15),O(6,gwa,9,3,"ng-template",16),H()());a&2&&(a=M().$implicit,pf("id","bv2-user-bookmarkgroup-item-",a.id,""),B(2),Jf(a.name),B(1),D("ngIf",a))},iwa=function(a){a&1&&(G(0,"button",27),J(1,"mat-icon",18),H());if(a&2){M();var b=Hf(6);D("matMenuTriggerFor",
b)}},jwa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var c=M(2).$implicit;return A(c.unstar())});P(1," Unstar ");H()}},kwa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var c=M(2).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");H()}},lwa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var c=M().$implicit,d=M(5);"HOTLIST"===c.type?d.location.url(d.paths.editHotlist(c.id)):d.location.url(d.paths.editSavedSearch(c.id));
return A()});P(1," Settings ");H();O(2,jwa,2,0,"button",20);O(3,kwa,2,0,"button",20)}a&2&&(a=M().$implicit,B(2),D("ngIf",a.isUnstarable()),B(1),D("ngIf",!a.isPreferredHomepage()))},mwa=function(a,b){if(a&1){var c=x();G(0,"li",23)(1,"a",24);K("click",function(d){var e=z(c).$implicit,f=M(5);return A(f.onAnchorClick(e.href,d))});G(2,"span",13);P(3);H()();O(4,iwa,2,1,"button",25);G(5,"mat-menu",null,26);O(7,lwa,4,2,"ng-template",16);H()()}a&2&&(a=b.$implicit,b=M(2).$implicit,sf("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",
"HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),iha("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),D("title",a.name),B(1),D("href",a.href,Kd),B(2),If(" ",a.name," "),B(1),D("ngIf",b))},nwa=function(a){a&1&&(G(0,"ul",21),O(1,mwa,8,13,"li",22),H());a&2&&(a=M().$implicit,B(1),D("ngForOf",a.items))},owa=function(a,b){a&1&&(G(0,"li",8)(1,"sidebar-zippy",9),O(2,hwa,7,3,"ng-template",null,10,gg),O(4,nwa,2,1,"ng-template",null,11,gg),H()());if(a&2){a=b.$implicit;
var c=Hf(3),d=Hf(5);D("title",a.name);B(1);D("header",c)("content",d)}},pwa=function(a){a&1&&(G(0,"ul",6),O(1,owa,6,3,"li",7),H());a&2&&(a=M(2),B(1),D("ngForOf",a.bookmarkGroups))},qwa=function(a){a&1&&O(0,pwa,2,1,"ul",5);a&2&&(a=M(),D("ngIf",a.bookmarkGroups))},rwa=function(a){if(a&1){var b=x();G(0,"span");P(1,"Hotlists");H();G(2,"b-hotlist-search-popup",4);K("itemSelect",function(c){z(b);var d=M();bo(d.analytics,"hotlistSearch","goToHotlist");d.location.url(c.href);return A()});H()}a&2&&(B(2),D("showGroups",
!1))},swa=function(a){a&1&&(G(0,"button",14),J(1,"mat-icon",15),H());if(a&2){M();var b=Hf(6);D("matMenuTriggerFor",b)}},twa=function(a){if(a&1){var b=x();G(0,"button",16);K("click",function(){z(b);var c=M(2).$implicit;return A(c.unstar())});P(1," Unstar ");H()}},uwa=function(a){if(a&1){var b=x();G(0,"button",16);K("click",function(){z(b);var c=M(2).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");H()}},vwa=function(a){if(a&1){var b=x();G(0,"button",16);K("click",function(){z(b);
var c=M().$implicit,d=M(3);return A(d.openEditHotlist(c.id))});P(1," Settings ");H();O(2,twa,2,0,"button",17);O(3,uwa,2,0,"button",17)}a&2&&(a=M().$implicit,B(2),D("ngIf",a.isUnstarable()),B(1),D("ngIf",!a.isPreferredHomepage()))},wwa=function(a,b){if(a&1){var c=x();G(0,"li",8)(1,"a",9);K("click",function(d){var e=z(c).$implicit,f=M(3);return A(f.onAnchorClick(e.href,d))});G(2,"span",10);P(3);H()();O(4,swa,2,1,"button",11);G(5,"mat-menu",null,12);O(7,vwa,4,2,"ng-template",13);H()()}a&2&&(a=b.$implicit,
sf("selected",a.isSelected()),Ef("id","bv2-user-hotlists-hotlist-item-",a.id,""),D("title",a.name),B(1),D("href",a.href,Kd),B(2),Jf(a.name),B(1),D("ngIf",a))},xwa=function(a){a&1&&(G(0,"ul",6),O(1,wwa,8,7,"li",7),H());a&2&&(a=M(2),B(1),D("ngForOf",a.hotlists))},ywa=function(a){a&1&&O(0,xwa,2,1,"ul",5);a&2&&(a=M(),D("ngIf",a.hotlists))},zwa=function(a){return csa(a.getSearch())},Awa=function(a){a&1&&(G(0,"span"),P(1,"Saved searches"),H())},Bwa=function(a){if(a&1){var b=x();G(0,"button",14);K("click",
function(){z(b);var c=M(2).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");H()}},Dwa=function(a){if(a&1){var b=x();G(0,"button",14);K("click",function(){z(b);var c=M().$implicit,d=M(3);return A(d.openEditSavedSearch(c.id))});P(1," Settings ");H();O(2,Bwa,2,0,"button",15);G(3,"button",14);K("click",function(){z(b);var c=M().$implicit,d=M(3);return A(Cwa(d,c))});P(4," Delete ");H()}a&2&&(a=M().$implicit,B(2),D("ngIf",!a.isPreferredHomepage()))},Ewa=function(a,b){if(a&1){var c=
x();G(0,"li",7)(1,"a",8);K("click",function(e){var f=z(c).$implicit,h=M(3);return A(h.onAnchorClick(f.href,e))});G(2,"span",9);P(3);H()();G(4,"button",10);J(5,"mat-icon",11);H();G(6,"mat-menu",null,12);O(8,Dwa,5,1,"ng-template",13);H()()}if(a&2){a=b.$implicit;var d=Hf(7);sf("selected",a.isSelected());pf("id","bv2-saved-searches-search-item-",a.id,"");D("title",a.name);B(1);D("href",a.href,Kd);B(2);Jf(a.name);B(1);D("matMenuTriggerFor",d)}},Fwa=function(a){a&1&&(G(0,"ul",5),O(1,Ewa,9,7,"li",6),H());
a&2&&(a=M(2),B(1),D("ngForOf",a.searches))},Gwa=function(a){a&1&&O(0,Fwa,2,1,"ul",4);a&2&&(a=M(),D("ngIf",a.searches))},Hwa=function(a,b){for(a.has(b)&&a.delete(b);25<=a.size;)a.delete(a.keys().next().value);a.set(b,void 0)},Iwa=function(a,b){var c;b=null!=(c=null==b?void 0:b.split(","))?c:[];a.clear();c=r(b);for(b=c.next();!b.done;b=c.next())a.set(b.value,void 0)},Jwa=function(a){a&1&&(xf(0),G(1,"button",21),J(2,"mat-icon",22),H(),yf());if(a&2){M();var b=Hf(12);B(1);D("matMenuTriggerFor",b)}},Lwa=
function(a){if(a&1){var b=x();G(0,"button",23);K("click",function(){z(b);var c=M();return A(Kwa(c))});P(1," Set as homepage ");H()}},Nwa=function(a){if(a&1){var b=x();G(0,"li")(1,"a",5);K("click",function(c){z(b);var d=M();return A(d.onAnchorClick(d.votedPath,c))});J(2,"mat-icon",24);P(3," Upvoted by me ");H()()}a&2&&(a=M(),sf("selected",Mwa(a.currentSearch)),B(1),D("href",a.votedPath,Kd))},Owa=function(a,b){if(a&1){var c=x();G(0,"li")(1,"a",5);K("click",function(d){var e=z(c).$implicit,f=M();return A(f.onAnchorClick(e,
d))});J(2,"mat-icon",25);P(3," Recently Viewed ");H()()}a&2&&(a=b.$implicit,b=M(),sf("selected",!!b.location.path().match(/^\/recent\b/)),B(1),D("href",a,Kd))},eo=function(a,b){switch(a){case "HOTLIST":return co(b);case "BOOKMARK_GROUP":return"bookmarkGroups/"+b;case "SAVED_SEARCH":return"savedSearches/"+b;case "COMPONENT":return"components/"+b;case "ISSUE":return"issues/"+b;case "ISSUE_DEFAULTS":return"components/"+b+"/issueDefaults";case "SLO":return"slos/"+b;case "TEAM":return"teams/"+b;default:throw Error("id`"+
a);}},Pwa=function(a){var b=new lm;a.teamId&&b.setTeamId(a.teamId);a.score&&nb(b,2,a.score,0);return b},fo=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Qwa=function(a){var b;return null==a?void 0:null==(b=a.snapshot)?void 0:b[0]},Rwa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.starred)||!1},Swa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.lastViewedTimeMicros)||
0},Twa=function(a){var b;return null==(b=fo(a))?void 0:b.title},Uwa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.status)?c:void 0},Vwa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.priority)?c:void 0},Wwa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.assigneeUser)?c:void 0},Xwa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.reporterUser)?c:void 0},Ywa=function(a){var b,c;a=null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?
void 0:c.teamId;return Wk(a)},Zwa=function(a){var b;a=null==(b=fo(a))?void 0:b.componentId;return Wk(a)},$wa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.ccUsers)?c:[]},axa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.type)?c:void 0},bxa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.foundInVersion)?c:[]},cxa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.targetedToVersion)?c:[]},dxa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:
b.changelist)?c:[]},exa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.postmortems)?c:[]},fxa=function(a){var b;return(null==(b=fo(a))?void 0:b.inProd)||!1},gxa=function(a){var b;return null==(b=fo(a))?void 0:b.effort},hxa=function(a){var b;return null!=(b=null==a?void 0:a.customFields)?b:[]},ixa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.customField)?c:[]},jxa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.issue)?void 0:b.visibleFields)?c:[]},kxa=function(a){var b,
c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.voteCount},lxa=function(a){var b;return null!=(b=null==a?void 0:a.attachmentMap)?b:{}},mxa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.voted)||!1},oxa=function(a){return nxa(null==a?void 0:a.issue)},nxa=function(a){var b,c;return null!=(c=null==(b=Qwa(a))?void 0:b.isDeleted)?c:!1},qxa=function(a){return pxa(null==a?void 0:a.issue)},pxa=function(a){var b;return null==
a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel},rxa=function(a){var b;return(a=null==a?void 0:null==(b=a.issue)?void 0:b.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},txa=function(a){return sxa(null==a?void 0:a.issue)},sxa=function(a){var b,c;return null!=(c=null==(b=Qwa(a))?void 0:b.retention)?c:void 0},uxa=function(a){var b,c;return null!=(c=null==(b=fo(a))?void 0:b.duplicateOfIssueId)?c:void 0},wxa=function(a){return vxa(null==a?void 0:a.issue)},vxa=function(a){var b,c;return null!=
(c=null==a?void 0:null==(b=a.aggregatedData)?void 0:b.retentionState)?c:void 0},xxa=function(a){var b,c;return null!=(c=jva(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloStatus))?c:void 0},yxa=function(a){var b;return Wk(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloId)},zxa=function(a){var b;return null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.createdTimeMicros},Axa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.teamSuggestions)?void 0:b.map(Pwa))?
c:[]},Bxa=function(a){return(null==a?void 0:a.effortSpec)&&rl(a.effortSpec)},Cxa=function(a){a=Bxa(a);return!(!a||!a.getName()&&!a.getInherit())},Dxa=function(a){return null==a?void 0:a.componentPathInfo},Exa=function(a){a=a.filter(function(b){return null!=b.customFieldId}).map(function(b){return String(b.customFieldId)});return new Set(a)},Fxa=function(a){if(!a)return{};var b,c=r(null!=(b=a.match(RegExp("comment([0-9]+)")))?b:[]);c.next();b=c.next().value;var d;a=r(null!=(d=a.match(RegExp("comment[0-9]+version([0-9]+)")))?
d:[]);a.next();d=a.next().value;return{commentNumber:Vk(b),commentVersion:Vk(d)}},Gxa=function(a){a&1&&J(0,"bug-screensaver")},Hxa=function(a){a&1&&Df(0)},Ixa=function(a){a&1&&zf(0)},Jxa=function(a){if(a&1){var b=x();G(0,"button",7,8);K("click",function(e){z(b);var f=M();return A(f.onClick(e))})("keydown.enter",function(e){z(b);M().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);M().onClick(e);return A(e.stopPropagation())});O(2,Ixa,1,0,"ng-container",9);H()}if(a&2){a=
M();var c=Hf(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},Kxa=function(a){a&1&&zf(0)},Lxa=function(a){if(a&1){var b=x();G(0,"button",10,8);K("click",function(e){z(b);var f=M();return A(f.onClick(e))})("keydown.enter",function(e){z(b);M().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);M().onClick(e);return A(e.stopPropagation())});
O(2,Kxa,1,0,"ng-container",9);H()}if(a&2){a=M();var c=Hf(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},Mxa=function(a){a&1&&zf(0)},Nxa=function(a){if(a&1){var b=x();G(0,"button",11,8);K("click",function(e){z(b);var f=M();return A(f.onClick(e))})("keydown.enter",function(e){z(b);M().onClick(e);return A(e.stopPropagation())})("keydown.space",
function(e){z(b);M().onClick(e);return A(e.stopPropagation())});O(2,Mxa,1,0,"ng-container",9);H()}if(a&2){a=M();var c=Hf(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},Oxa=function(a){a&1&&zf(0)},Pxa=function(a){if(a&1){var b=x();G(0,"button",12,8);K("click",function(e){z(b);var f=M();return A(f.onClick(e))})("keydown.enter",function(e){z(b);
M().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);M().onClick(e);return A(e.stopPropagation())});O(2,Oxa,1,0,"ng-container",9);H()}if(a&2){a=M();var c=Hf(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},Qxa=function(a){a&1&&zf(0)},Rxa=function(a){if(a&1){var b=x();G(0,"button",7,8);K("click",function(e){z(b);
var f=M();return A(f.onClick(e))})("keydown.enter",function(e){z(b);M().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);M().onClick(e);return A(e.stopPropagation())});O(2,Qxa,1,0,"ng-container",9);H()}if(a&2){a=M();var c=Hf(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},Sxa=function(a){if(a&1){var b=x();G(0,
"b-callout",1)(1,"b-callout-body");P(2," You can now enable real time notifications in ");G(3,"a",2);K("click",function(){z(b);var c=M();bo(c.analytics,go.G3N,"linkout","announcement");return A()});P(4,"G3N");H();P(5," settings. ");H();G(6,"b-callout-actions")(7,"button",3);K("click",function(){z(b);var c=M();return A(c.dismiss())});P(8,"Dismiss");H()()()}},Txa=function(){return{color:"accent",clickAction:"check-indeterminate"}},Uxa=function(a,b){if(a&1){var c=x();xf(0);G(1,"iframe",6);K("load",function(){z(c);
var d=M();return A(d.contentLoaded=!0)});H();yf()}a&2&&(a=b.$implicit,b=M(),B(1),sf("loading",!b.contentLoaded),D("src",a,jea))},Vxa=function(a){a&1&&J(0,"mat-spinner",7)},Wxa=function(a){var b;return null==(b=a.formContent)?void 0:b.locale},Zxa=function(a){var b=Wxa(a);b=(b&&Xxa.includes(b)?Wxa(a):"en").replaceAll("-","_").toLowerCase();var c;a=(null==(c=a.initializationData)?0:c.useNightlyRelease)?"nightly":"live";return yh(Yxa,a,b)},aya=function(a,b,c){if($xa)return $xa;var d=Zxa(a);return $xa=
b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(e,f){var h=c.createElement("script");vh(h,d);h.onload=function(){b.feedbackV2GlobalObject?e(b.feedbackV2GlobalObject):f("feedbackV2GlobalObject not found on window.")};h.onerror=function(){f("Feedback binary script tag failed to load: "+d.toString())};c.body.appendChild(h)})},bya=function(a,b,c,d,e){e=void 0===e?!0:e;var f,h,k,q,w;return me(function(y){switch(y.nextAddress){case 1:return f=Date.now(),ne(y,aya(a,
c,d),2);case 2:h=y.yieldResult;if(!(e||(null==(q=a.initializationData)?0:q.useNightlyRelease)||(null==(w=a.initializationData)?0:w.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);y.jumpTo(3);break}return ne(y,h.initializeFeedbackClientAsync(a,f,b),4);case 4:k=y.yieldResult;case 3:return k.initiateAloha(),y.return(k)}})},cya=function(a,b,c){var d=!0;d=void 0===d?!0:d;var e,f,h,k;me(function(q){f=e=c||ba;if(f.isFormOpened)throw h=Error("jd"),h.name="DuplicateFormError",h;f.isFormOpened=!0;a.callbacks=
a.callbacks||{};k=a.callbacks.onClose||function(){};a.callbacks.onClose=function(w){f.isFormOpened=!1;k(w)};try{return q.return(bya(a,b,f,e.document,d))}catch(w){throw f.isFormOpened=!1,w;}})},eya=function(a,b){return me(function(c){return c.return(new Promise(function(d){var e=dya(null!=b?b:"")+"/aloha_form_properties?productId="+a;vi(e,function(f){f=f.target;var h=null;try{h=ho(io,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new io,h=new jo,h=ko(h,5,!1),h=ko(h,2,!1),h=ko(h,4,!1),h=ko(h,
7,!1),h=Ab(f,1,h)}d(h)},"GET","",{},2E3,!0)}))})},dya=function(a){return fya.includes(a)?a:"https://www.google.com/tools/feedback"},hya=function(){var a=Object.values(lo),b=a.map(function(c){return c-1}).reduce(gya,0);a=a.reduce(gya,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},iya=function(a){a=void 0===a?!1:a;var b=hya(),c=b.total,d=b.redundancyRatio;Sn("after-60s","xhr","redundant",b.redundant);Sn("after-60s","xhr","total",c);Sn("after-60s","xhr","redundancyRatio",d);
if(a){a=console;c=a.table;d={};for(var e=r(Object.entries(lo)),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;1<h&&(d[f]=h)}c.call(a,d);console.log(b)}},jya=function(a){if(a&1){var b=x();G(0,"button",4);K("click",function(){z(b);var c=M();return A(c.toggle())});J(1,"mat-icon",5);H()}a&2&&(a=M(),sf("isClosed",a.isClosed),D("ngClass",a.direction)("matTooltip",a.toggleButtonLabel),nf("aria-label",a.toggleButtonLabel),B(1),D("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},
kya=function(a){a=a.getBoundingClientRect();return 0<=a.top&&a.bottom<=window.innerHeight},lya=function(a){a=a.getBoundingClientRect();return 0<a.bottom&&a.top<window.innerHeight},mya=function(a,b,c,d){var e=(d=void 0===d?!1:d)?function(f){return c.partially(f)}:function(f){return c.fully(f)};return(new T.Observable(function(f){f.next(e(a));var h=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});h.observe(a);return function(){h.unobserve(a)}})).pipe(Le())},nya=function(a,b,
c){var d=(void 0===c?0:c)?function(e){return b.partially(e)}:function(e){return b.fully(e)};return(0,T.merge)((0,T.of)(void 0),(0,T.fromEvent)(window,"scroll").pipe(Je(500))).pipe(C(function(){return d(a)}),Le())},oya=function(a){a=void 0===a?"":a;var b=void 0===b?48:b;var c=[].concat(u(a));if(c.length<=b)return a;a=c.slice(0,b-3).join("");null!=String.prototype.trimEnd&&(a=a.trimEnd());return a+"..."},pya=function(a){a=void 0===a?"":a;var b=new Set([].concat(u('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));
a=[].concat(u(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return 0===a.length?[]:a.split(/[\s]+/g)},qya=function(a){return a.split("").every(function(b){return 1===b.length&&0<=b.charCodeAt(0)&&255>=b.charCodeAt(0)})},rya=function(a){a&1&&(xf(0),J(1,"img",3),Q(2,"async"),yf());if(a&2){a=M(2);var b;B(1);D("src",R(2,2,a.srcRedirected$),Kd);nf("alt",null!==(b=a.alt)&&void 0!==b?b:"user provided image")}},sya=function(a){a&1&&(xf(0),O(1,rya,3,4,"ng-container",0),Q(2,"async"),yf());if(a&
2){a=M();var b=Hf(3);B(1);D("ngIf",R(2,2,a.showImage$))("ngIfElse",b)}},tya=function(a){if(a&1){var b=x();G(0,"a",4);K("click",function(c){z(b);var d=M();return A(d.trigger(c))})("keydown.enter",function(c){z(b);var d=M();return A(d.trigger(c))});Q(1,"async");Q(2,"async");G(3,"b-glue");J(4,"mat-icon",5);H();xf(5);P(6);Q(7,"async");yf();H()}a&2&&(a=M(),D("href",R(1,3,a.src$),Kd)("title",R(2,5,a.src$)),B(6),Jf(R(7,7,a.srcTruncated$)))},uya=function(a){a&1&&(J(0,"mat-icon",6),Q(1,"async"));a&2&&(a=M(),
Ef("matTooltip","Unable to load image ",R(1,1,a.srcTruncated$),""))},wya=function(a){if(a&1){var b=x();G(0,"a",9);K("keydown.enter",function(){z(b);var c=M(2);return A(vya(c))})("keydown.space",function(){z(b);var c=M(2);return A(vya(c))})("click",function(){z(b);var c=M(2);return A(vya(c))});P(1," Dismiss");H()}},xya=function(a){a&1&&(G(0,"div",5)(1,"div",6),J(2,"span",7),O(3,wya,2,0,"a",8),H()());a&2&&(a=M(),B(2),D("innerHtml",a.announcement.message,Jd),B(1),D("ngIf",a.announcement.dismissible))},
yya=function(a){if(a&1){var b=x();G(0,"b-callout",10)(1,"b-callout-body");P(2," This version of the Issue Details page will be turned down in May 2022 (");G(3,"a",11);P(4,"info");H();P(5,"). Please ");G(6,"a",12);K("click",function(){z(b);var c=M();return A(c.toggleNewIssueDetailsPage(!0))});P(7,"switch to the new version");H();P(8,".");J(9,"br");P(10," If there are issues preventing you from switching, please let us know by filing feedback. ");H();G(11,"b-callout-actions")(12,"button",13);K("click",
function(){z(b);var c=M();return A(c.startFeedback())});P(13,"Send Feedback");H();G(14,"button",14);K("click",function(){z(b);var c=M();window.sessionStorage.setItem("idpDeprecationDismissTime",String(new Date));c.showIdpDeprecationBanner=!1;return A()});J(15,"mat-icon",15);H()()()}},Aya=function(a){if(a&1){var b=x();G(0,"b-resizable-sidebar",16);K("widthChanged",function(c){z(b);var d=M();c!==d.matSidebarWidth&&(d.matSidebarWidth=c,zya(d,c));return A()});J(1,"b-sidebar");H()}a&2&&(a=M(),D("size",
a.matSidebarWidth)("disableToggleBtn",!0))},Bya=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},Cya=function(a){a&1&&(G(0,"div",2),P(1," You are about to access a file marked as restricted. Access will be logged and audited. You must delete any downloaded files from local storage when finished. "),G(2,"a",13),P(3," Learn more "),H()());a&2&&(a=M(2),B(2),D("href",a.getRestrictedAccessHelpLink(),Kd))},
Eya=function(a){a&1&&(xf(0),O(1,Cya,4,1,"div",8),yf());a&2&&(a=M(),B(1),D("ngIf",Dya(a)))},Fya=function(a){a&1&&(G(0,"div",2)(1,"span",14),P(2," You do not have access to view this attachment. "),H()())},Gya=function(a){a&1&&J(0,"mat-spinner",15)},Hya=function(a){return mo({id:a.getId(),std_offset:p(a,3),names:jb(a,2),transitions:jb(a,4)||[]})},Iya=function(a,b){b=void 0===b?!1:b;var c=new Ji,d=new Ji;d.setTime(a);if(d.getTime()<c.getTime())return"Expired";a=12*(d.getFullYear()-c.getFullYear())+(d.getMonth()-
c.getMonth());var e=d.getDate()-c.getDate();0>e&&(a--,c=c.clone(),c.add(new no("m",a)),e=Math.floor((d.getTime()-c.getTime())/864E5));d=new no(Math.floor(a/12),a%12,e);if(1<=d.years)return c=1<d.years?"s":"",0===d.months&&0===d.days?b?d.years+" year"+c:d.years+"Y":b?d.years+" year"+c+" +":d.years+"Y+";if(1<=d.months)return c=1<d.months?"s":"",0===d.days?b?d.months+" month"+c:d.months+"M":b?d.months+" month"+c+" +":d.months+"M+";c=1<d.days?"s":"";return b?d.days+" day"+c:d.days+"D"},Jya=function(a,
b){a&1&&(xf(0),G(1,"span",1),P(2),H(),yf());a&2&&(a=b.ngIf,B(1),D("title",a.title),B(1),Jf(a.formatted))},oo=function(a){if(!a)return 0;if(a instanceof rj){var b=a.getSeconds();a=a.getNanos()||0}else b=a.seconds,a=a.nanos;return 1E3*b+a/1E6},po=function(a){var b=a+" day"+(1<a?"s":"");if(365>a)return b;a=Math.round(a/365*10)/10;return b+" (~"+(a+" year"+(1<a?"s":""))+")"},Lya=function(a){if(a&1){var b=x();G(0,"button",10);K("click",function(){z(b);var c=M(2),d=new Ji;c.date=d;c.dateSelectionChange.emit(d);
Kya(c);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});P(1,"Today");H()}},Mya=function(a){if(a&1){var b=x();G(0,"button",11);K("click",function(){z(b);var c=M(2);c.date=void 0;c.dateSelectionChange.emit(void 0);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});P(1,"None");H()}},Nya=function(a){a&1&&(G(0,"div",7),O(1,Lya,2,0,"button",8),O(2,Mya,2,0,"button",9),J(3,"mat-divider"),H());a&2&&(a=M(),B(1),D("ngIf",a.todayButtonEnabled),B(1),D("ngIf",a.noneButtonEnabled&&!a.required))},
Oya=function(a){a&1&&J(0,"b-formatted-date-time",4);a&2&&(a=M(),D("date",a.value))},Pya=function(a){a&1&&(xf(0),P(1,"---"),yf())},Qya=function(a){a&1&&J(0,"mat-pseudo-checkbox",5);a&2&&(a=M(),D("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},Rya=function(a,b){if(a&1){var c=x();G(0,"div",8)(1,"mat-checkbox",9);K("change",function(){var d=z(c).$implicit,e=M();e.focusFilterBox();var f=e.valueMap.get(d);f?e.valueMap.set(d,!1):!1===f?(f=null===e.originalValueMap.get(d),e.valueMap.set(d,
f?null:!0)):e.valueMap.set(d,!0);e.onSave.emit({valueMap:e.valueMap,valueChanged:e.valueChanged()});return A()})("click",function(d){return d.stopPropagation()});P(2);H()()}a&2&&(a=b.$implicit,b=M(),D("title",b.getDisplayString(a)),B(1),D("checked",!!b.valueMap.get(a))("indeterminate",null===b.valueMap.get(a)),B(1),If(" ",b.getDisplayString(a)," "))},Tya=function(a){if(a&1){var b=x();G(0,"input",10,11);K("keydown",function(c){z(b);var d=M();"Enter"===c.key&&(Sya(d)&&d.addValue(),c.preventDefault());
return A()})("click",function(c){return c.stopPropagation()})("ngModelChange",function(c){z(b);var d=M();return A(d.filterValue=c)});H()}a&2&&(a=M(),D("type","REPEATED_NUMERIC"===a.type?"number":"text")("ngModel",a.filterValue)("placeholder","REPEATED_ENUM"===a.type?"Filter values":"Add or filter values"))},Uya=function(a){a&1&&J(0,"mat-divider")},Vya=function(a){if(a&1){var b=x();G(0,"div",12);K("click",function(c){z(b);var d=M();c.stopPropagation();return A(d.addValue())});P(1," Add ");H()}},Wya=
function(a){if(a&1){var b=x();G(0,"div")(1,"b-date-time-input",13);K("valueChange",function(c){z(b);var d=M();return A(d.currentSelectedDate=c)});H();G(2,"div",14);K("click",function(c){z(b);var d=M();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;return A()});P(3," Add ");H()()}a&2&&(a=M(),B(1),D("value",a.currentSelectedDate))},Xya=function(a){if(a&1){var b=x();G(0,"div",0);K("keydown",
function(c){z(b);var d=M();return A(d.processKeydown(c))});Df(1);H()}a&2&&(a=M(),nf("id",a.id))},Yya=function(a){a&1&&zf(0)},$ya=function(a){if(a&1){var b=x();G(0,"div",3);K("click",function(){z(b);var d=M();return A(d.select(void 0))});O(1,Yya,1,0,"ng-container",4);H()}if(a&2){a=M();var c=Hf(3);D("option",void 0);nf("aria-selected",a.isSelected(void 0));B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Mf(4,Zya))}},aza=function(a){a&1&&zf(0)},cza=function(a){if(a&1){var b=x();G(0,"div",3);K("click",
function(){z(b);var e=M().$implicit,f=M();return A(f.select(e))});O(1,aza,1,0,"ng-container",4);H()}if(a&2){a=M().$implicit;var c=M(),d=Hf(3);D("option",a);nf("aria-selected",c.isSelected(a));B(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Nf(4,bza,a))}},dza=function(a,b){a&1&&(xf(0),O(1,cza,2,6,"div",0),yf());a&2&&(a=b.$implicit,B(1),D("ngIf",a))},eza=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M(2).$implicit,B(1),If(" ",a," "))},fza=function(a){a&1&&(G(0,"span",8),P(1,"--"),H())},gza=function(a){a&
1&&(xf(0),O(1,eza,2,1,"ng-container",5),O(2,fza,2,0,"ng-template",null,7,gg),yf());if(a&2){var b=Hf(3);a=M().$implicit;B(1);D("ngIf",null!=a)("ngIfElse",b)}},hza=function(a){a&1&&zf(0)},iza=function(a){a&1&&O(0,hza,1,0,"ng-container",4);if(a&2){a=M().$implicit;var b=M();D("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Nf(2,bza,a))}},jza=function(a){a&1&&(O(0,gza,4,2,"ng-container",5),O(1,iza,1,4,"ng-template",null,6,gg));if(a&2){var b=Hf(2);a=M();D("ngIf",!a.optionTemplate)("ngIfElse",
b)}},kza=function(a){a&1&&zf(0)},mza=function(a){a&1&&(xf(0),O(1,kza,1,0,"ng-container",10),yf());a&2&&(a=M(),B(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Nf(2,lza,a.value)))},nza=function(a){a&1&&zf(0)},oza=function(a){a&1&&(xf(0),O(1,nza,1,0,"ng-container",10),yf());a&2&&(a=M(2),B(1),D("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Nf(2,lza,a.value)))},pza=function(a){a&1&&O(0,oza,2,4,"ng-container",3);if(a&2){a=M();var b=Hf(8);D("ngIf",a.optionTemplate)("ngIfElse",
b)}},qza=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M(2),B(1),If(" ",a.value," "))},rza=function(a){a&1&&(G(0,"span",12),P(1,"--"),H())},sza=function(a){a&1&&(O(0,qza,2,1,"ng-container",3),O(1,rza,2,0,"ng-template",null,11,gg));if(a&2){var b=Hf(2);a=M();D("ngIf",null!=a.value)("ngIfElse",b)}},tza=function(a){a&1&&(Lc(),G(0,"svg",13),J(1,"path",14),H())},uza=function(a){a&1&&(G(0,"div"),P(1," The selected issues have no custom fields in common. "),H())},vza=function(a){a&1&&(G(0,"span"),P(1,"*"),H())},
wza=function(a){if(a&1){var b=x();G(0,"input",16);K("ngModelChange",function(c){z(b);var d=M(2).$implicit;return A(d.textValue=c)});H()}a&2&&(a=M(2).$implicit,M(),D("ngModel",a.textValue),nf("aria-labelledby",qo(a)))},xza=function(a){if(a&1){var b=x();G(0,"input",17);K("ngModelChange",function(c){z(b);var d=M(2).$implicit;return A(d.numericValue=c)});H()}a&2&&(a=M(2).$implicit,M(),D("ngModel",a.numericValue),nf("aria-labelledby",qo(a)))},zza=function(a){if(a&1){var b=x();G(0,"div")(1,"b-date-time-input",
18);K("valueChange",function(e){z(b);var f=M(2).$implicit;M();return A(f.dateValue=e?Mk(e):void 0)});H()()}if(a&2){a=M(2).$implicit;var c=M(),d;B(1);D("value",null!==(d=yza(a.dateValue))&&void 0!==d?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",qo(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},Bza=function(a){if(a&1){var b=x();G(0,"onedev-single-select",19);K("valueChange",function(d){z(b);var e=M(2).$implicit;return A(e.enumValue=d)});H()}if(a&2){a=M(2).$implicit;
M();var c;D("value",a.enumValue)("options",null!==(c=a.allowedValue)&&void 0!==c?c:Mf(3,Aza));nf("aria-labelledby",qo(a))}},Dza=function(a){if(a&1){var b=x();G(0,"b-bulk-repeated-field-picker",20);K("onSave",function(e){z(b);var f=M(2).$implicit,h=M();return A(Cza(h,f.customFieldId,e))});H()}if(a&2){a=M(2).$implicit;var c=M(),d;D("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",null!==(d=a.allowedValue)&&void 0!==d?d:Mf(3,Aza))}},Eza=
function(a){a&1&&(xf(0,10),O(1,wza,1,2,"input",11),O(2,xza,1,2,"input",12),O(3,zza,2,4,"div",13),O(4,Bza,1,4,"onedev-single-select",14),O(5,Dza,1,4,"b-bulk-repeated-field-picker",15),yf());if(a&2){a=M().$implicit;var b=M();D("ngSwitch",b.getCustomFieldType(a));B(1);D("ngSwitchCase","TEXT");B(1);D("ngSwitchCase","NUMERIC");B(1);D("ngSwitchCase","DATE");B(1);D("ngSwitchCase","ENUM")}},Fza=function(a){if(a&1){var b=x();G(0,"span");P(1," Multiple values ");H();G(2,"a",21);K("click",function(){z(b);var c=
M().$implicit,d=M();return A(d.clearCustomFieldValue(c))});P(3,"X");H()}},Gza=function(a,b){a&1&&(G(0,"div",5)(1,"div",6)(2,"label",7),P(3),O(4,vza,2,0,"span",1),H()(),O(5,Eza,6,5,"ng-template",8),O(6,Fza,4,0,"ng-template",null,9,gg),H());if(a&2){a=b.$implicit;var c=Hf(7);M();B(2);D("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]");nf("id",qo(a));B(1);If(" ",a.name," ");B(1);D("ngIf",a.required);B(1);D("ngIf",!a.hasMultipleValues)("ngIfElse",c)}},Hza=function(a){a&1&&J(0,"img",9);a&2&&
(a=M(),D("src",a.person.imageUrl,Kd)("alt",a.person.name+"'s profile picture"))},Iza=function(a){a&1&&(G(0,"div",10),P(1),H());a&2&&(a=M(),B(1),If(" ",a.person.email," "))},Jza=function(a){a&1&&(G(0,"div",11)(1,"onedev-chip",12),J(2,"mat-icon",13),P(3),H()());a&2&&(a=M(),B(3),If("",a.outOfOfficeDescription," "))},Lza=function(a){a&1&&(G(0,"li"),P(1),H());a&2&&(a=M(2),B(1),Jf(a.person.title))},Mza=function(a){a&1&&J(0,"li",18)},Nza=function(a){a&1&&(G(0,"li"),P(1),H());a&2&&(a=M(2),B(1),Jf(a.person.department))},
Oza=function(a){a&1&&(xf(0),J(1,"mat-icon",14),G(2,"div",15)(3,"ul",16),O(4,Lza,2,1,"li",8),O(5,Mza,1,0,"li",17),O(6,Nza,2,1,"li",8),H()(),yf());a&2&&(a=M(),B(4),D("ngIf",a.person.title),B(1),D("ngIf",a.person.title&&a.person.department),B(1),D("ngIf",a.person.department))},Pza=function(a){a&1&&(xf(0),J(1,"mat-icon",19),G(2,"div",15),P(3),H(),yf());a&2&&(a=M(),B(3),Jf(a.person.location))},Qza=function(a){a&1&&(xf(0),J(1,"mat-icon",20),G(2,"div",15)(3,"ul",16)(4,"li")(5,"a",21),P(6,"Teams"),H()(),
J(7,"li",18),G(8,"li")(9,"a",21),P(10,"Calendar"),H()(),J(11,"li",18),G(12,"li")(13,"a",21),P(14,"CLs"),H()(),J(15,"li",18),G(16,"li")(17,"a",21),P(18,"Readability"),H()()()(),yf());a&2&&(a=M(),B(5),D("href","https://teams.googleplex.com/"+a.person.ldap,Kd),B(4),D("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",Kd),B(4),D("href","https://critique.corp.google.com/"+a.person.ldap,Kd),B(4),D("href","https://icanread.corp.google.com/s/"+a.person.ldap,Kd))},
Rza=function(a,b){if(null==a)return null;a=a.getRequestHook(b);return null==a?null:a},Sza=function(a){if(null!=a.queryParams){var b={},c;for(c in a.queryParams)void 0!==a.queryParams[c]&&(b[c]=a.queryParams[c]);a.queryParams=b}},Tza=function(a,b,c){c=void 0===c?{}:c;b=r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=r(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},Uza=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},
enums:{},emptyArrayIsUnset:!1},a)},Vza=function(a,b){return ro(b,a)},Wza=function(a,b,c){b[a]=c},Xza=function(){return{}},aAa=function(a,b){var c=new a;return null==b?c:so(b,Yza,Zza,$za,a)},Yza=function(a,b){return b[a]},Zza=function(a,b,c){b.Serializable$values[a]=c},$za=function(a){if(null==a)throw Error("Ed");return new a},so=function(a,b,c,d,e){e=d(e);for(var f=bAa(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},w={},y=r(f.keys||[]),E=y.next();!E.done;w={$jscomp$loop$prop$mapMetadata$1649:w.$jscomp$loop$prop$mapMetadata$1649},
E=y.next()){E=E.value;var I=b(E,a);if(null!=I){var N=void 0;if(h.hasOwnProperty(E)){if(f.emptyArrayIsUnset&&0===I.length)continue;N=to(I,b,c,d,!0,!0,h[E])}else if(k.hasOwnProperty(E))N=to(I,b,c,d,!1,!0,k[E]);else if(q.hasOwnProperty(E))w.$jscomp$loop$prop$mapMetadata$1649=q[E],N=w.$jscomp$loop$prop$mapMetadata$1649.isPropertyArray?I.map(function(L){return function(S){return cAa(S,L.$jscomp$loop$prop$mapMetadata$1649,b,c,d)}}(w)):cAa(I,w.$jscomp$loop$prop$mapMetadata$1649,b,c,d);else if(Array.isArray(I)){if(f.emptyArrayIsUnset&&
0===I.length)continue;N=to(I,b,c,d,!0,!1)}else N=I;c(E,e,N)}}return e},cAa=function(a,b,c,d,e){for(var f={},h=r(Object.keys(a)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a[k];null!=q&&(f[k]=to(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},to=function(a,b,c,d,e,f,h){if(f&&null==h)throw Error("Fd");if(null==a)return a;var k;e&&f?k=a.map(function(q){return so(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):k=!e&&f?so(a,b,c,d,h):"object"===typeof a?JSON.parse(JSON.stringify(a)):a;
return k},bAa=function(a,b){if(b instanceof uo)a=Uza(b.getPartialClassMetadata());else if(a instanceof uo)a=Uza(a.getPartialClassMetadata());else throw Error("Gd");return a},eAa=function(a){return a&&dAa.test(a)?a.split("@")[0]:""},fAa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},gAa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},hAa=function(a,b){a&
1&&(G(0,"onedev-person-hovercard-body",1),Q(1,"async"),Df(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),Df(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),H());a&2&&(a=b.ngIf,b=M(),D("person",a)("outOfOfficeDescription",R(1,2,b.outOfOfficeDescription$)))},iAa=function(a){a&1&&(G(0,"onedev-person-hovercard",1,2),Df(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),H());if(a&2){var b=Hf(1);a=M();D("email",
a.email)("enableWaldo",!0)("onedevIsHovercardReady",b.init)}},jAa=function(a){a&1&&zf(0)},kAa=function(a){a&1&&(xf(0),G(1,"span",2),O(2,jAa,1,0,"ng-container",3),H(),G(3,"onedev-hovercard",null,4),J(5,"b-person-card",5),H(),yf());if(a&2){var b=Hf(4);a=M();var c=Hf(2);B(1);D("onedevHovercardTrigger",b)("onedevHovercardActive",!!a.email);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},lAa=function(a){a&1&&Df(0)},mAa=function(a,b){a&1&&(G(0,"div",1),Lc(),G(1,"svg",2)(2,"g"),J(3,"path",3),H()(),
Mc(),G(4,"span",4),P(5),H()());a&2&&(a=b.ngIf,nf("aria-label",a)("title",a),B(5),Jf(a))},nAa=function(a){a&1&&J(0,"waldo-availability-chip",1);a&2&&(a=M(),D("user",a.user),nf("coinonly",a.coinonly))},oAa=function(a){return a.retentionPeriod&&(a=Ora(a.retentionPeriod))?po(Math.floor(1E3*a.getSeconds()/864E5)):"indefinite"},vo=function(a){return"number"===typeof a?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},pAa=function(a,b){a&1&&(G(0,"li"),P(1),H());a&2&&(a=b.$implicit,B(1),Jf(a))},
qAa=function(a,b,c,d){c&&c.hasTargetTime()&&(c.hasEndTime()?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},rAa=function(a,b){a=a.sloBounds.getTargetTime().getSeconds();b=b.sloBounds.getTargetTime().getSeconds();return a-b},wo=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},sAa=function(){return{startTime:Date.now(),firstActionSeen:!1,editCount:0}},xo=function(a){return a?da(a,"@")?a:"[Deleted User]"===a?a:a+"@google.com":""},yo=
function(a){return a.customFieldValue?String(a.customFieldValue.customFieldId):a.fieldName},vAa=function(a){if(a&1){var b=x();xf(0,3);G(1,"onedev-hovercard-action",4);K("onAction",function(){z(b);var e=M();return A(tAa(e))});Q(2,"async");G(3,"span");P(4);H()();G(5,"onedev-hovercard-action",4);K("onAction",function(){z(b);var e=M();return A(uAa(e))});Q(6,"async");G(7,"span");P(8);H()();yf()}if(a&2){a=M();var c,d;B(1);D("disabled",null!==(c=R(2,4,a.actionService.assigneeUpdating$))&&void 0!==c?c:!1);
B(3);Jf(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B(1);D("disabled",null!==(d=R(6,6,a.actionService.ccUpdating$))&&void 0!==d?d:!1);B(3);Jf(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},wAa=function(a){a&1&&(xf(0),J(1,"b-availability-chip",3),yf());a&2&&(a=M(2).ngIf,B(1),D("user",a.email))},xAa=function(a){a&1&&(xf(0),P(1),yf(),O(2,wAa,2,1,"ng-container",0));if(a&2){a=M().ngIf;var b=M();B(1);Jf(a.content);B(1);D("ngIf",b.enableWaldoAvailability&&b.availabilityChipEnabled)}},
yAa=function(a){a&1&&zf(0)},zAa=function(a){a&1&&(xf(0),G(1,"span",4),O(2,yAa,1,0,"ng-container",5),H(),G(3,"onedev-hovercard",null,6),J(5,"b-issue-person-card",7),H(),yf());if(a&2){var b=Hf(4);a=M().ngIf;var c=Hf(2),d=M();B(1);D("onedevHovercardTrigger",b);nf("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},AAa=function(a,b){a&1&&(xf(0),O(1,xAa,3,2,"ng-template",null,1,gg),O(3,zAa,6,4,"ng-container",2),yf());if(a&2){a=b.ngIf;
var c=Hf(2);b=M();B(3);D("ngIf",b.hovercardEnabled&&b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},BAa=function(a){a&1&&J(0,"b-user-display-name",2);a&2&&(a=M(),D("email",a.getEmailAddress())("hovercardEnabled",!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},CAa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(),B(1),Jf(a.getDisplayString()))},DAa=function(a){a&1&&zf(0)},EAa=function(a){a&1&&(xf(0),G(1,"span",3),O(2,DAa,1,0,"ng-container",
4),H(),G(3,"onedev-hovercard",null,5),J(5,"b-issue-person-card",6),H(),yf());if(a&2){var b=Hf(4);a=M().ngIf;var c=Hf(3);B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},FAa=function(a){a&1&&J(0,"img",9);a&2&&(a=M(2).ngIf,D("src",a.src,Kd)("srcset",a.srcset,Kd))},GAa=function(a){a&1&&(G(0,"span",7),O(1,FAa,1,2,"img",8),H());a&2&&(a=M().ngIf,sf("anonymous",!a.showImage),B(1),D("ngIf",a.showImage))},HAa=function(a,b){a&1&&(xf(0),O(1,EAa,6,3,"ng-container",1),
O(2,GAa,2,3,"ng-template",null,2,gg),yf());if(a&2){a=b.ngIf;var c=Hf(3);b=M();B(1);D("ngIf",b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},IAa=function(a){a&1&&(G(0,"div",8),J(1,"b-spinner"),H())},JAa=function(a){a&1&&J(0,"code",22);a&2&&(a=M(2).$implicit,M(2),D("innerHtml",ph(a.formattingModeDiff),Jd))},KAa=function(a){a&1&&(G(0,"code",23),P(1),H());a&2&&(a=M(2).$implicit,B(1),If(" ",a.formattingMode," "))},LAa=function(a){a&1&&(G(0,"p",19),P(1," Formatting: "),O(2,JAa,1,1,"code",20),O(3,KAa,2,
1,"code",21),H());a&2&&(a=M(3),B(2),D("ngIf",a.diffView),B(1),D("ngIf",!a.diffView))},MAa=function(a){if(a&1){var b=x();G(0,"div")(1,"span",24)(2,"b-person-hovercard",25);Q(3,"omitObfuscatedEmail");P(4);Q(5,"appendDomain");H()();G(6,"a",26);K("click",function(c){z(b);var d=M().$implicit,e=M(2);d=d.version;c.stopPropagation();c=e.paths.editIssue(e.issueId)+("#comment"+e.commentNumber+"version"+d);e.location.replaceState(c);return A()});P(7);H()()}a&2&&(a=M().$implicit,M(2),B(2),D("email",R(3,5,Pl(a.lastEditorUser))),
B(2),If(" <",R(5,7,Pl(a.lastEditorUser)),"> "),B(2),pf("aria-label","Comment version ",a.version,""),Ef("id","bv2-edit-issue-comment-",a.version,""),B(1),If(" #",a.version,""))},NAa=function(a){a&1&&(G(0,"div",30),P(1),H());a&2&&(a=M(2).$implicit,B(1),Jf(a.preview))},OAa=function(a){a&1&&(G(0,"div",31),P(1,"Comment deleted."),H())},PAa=function(a){a&1&&(G(0,"div",32),P(1,"Comment history restricted."),H())},QAa=function(a){a&1&&(xf(0),O(1,NAa,2,1,"div",27),O(2,OAa,2,0,"div",28),O(3,PAa,2,0,"div",
29),yf());a&2&&(a=M().$implicit,B(1),D("ngIf",!a.restricted&&!a.deleted),B(1),D("ngIf",!a.restricted&&a.deleted),B(1),D("ngIf",a.restricted))},RAa=function(a){a&1&&(G(0,"div",35),P(1,"Comment deleted."),H())},SAa=function(a){a&1&&(G(0,"div",36),Q(1,"async"),H());if(a&2){a=M(2).$implicit;var b=M(2);sf("codefont",R(1,3,b.codefont.codefont$));D("innerHtml",a.comment,Jd)}},TAa=function(a){a&1&&(G(0,"div",36),Q(1,"async"),H());if(a&2){a=M(2).$implicit;var b=M(2);sf("codefont",R(1,3,b.codefont.codefont$));
D("innerHtml",ph(a.diff),Jd)}},UAa=function(a){a&1&&(G(0,"div",32),P(1," This comment is not available due to present or past restrictions on the comment. "),H())},VAa=function(a){a&1&&(xf(0),O(1,RAa,2,0,"div",33),O(2,SAa,2,5,"div",34),O(3,TAa,2,5,"div",34),O(4,UAa,2,0,"div",29),yf());if(a&2){a=M().$implicit;var b=M(2);B(1);D("ngIf",!a.restricted&&a.deleted);B(1);D("ngIf",!b.diffView&&!a.restricted&&!a.deleted);B(1);D("ngIf",b.diffView&&!a.restricted&&!a.deleted);B(1);D("ngIf",a.restricted)}},WAa=
function(a,b){if(a&1){var c=x();G(0,"li",11)(1,"div",12);J(2,"b-user-image",13);H();G(3,"div",14);K("click",function(){var d=z(c).$implicit;return A(d.open=!d.open)});J(4,"b-user-display",15)(5,"b-formatted-date-time",16);O(6,LAa,4,2,"p",17);O(7,MAa,8,9,"div",18);O(8,QAa,4,3,"ng-container",18);H();O(9,VAa,5,4,"ng-container",18);H()}a&2&&(a=b.$implicit,M(2),sf("comment-version-open",a.open),B(2),D("email",Pl(a.lastEditorUser)),B(2),D("model",a.lastEditorUser),B(1),D("timestamp",a.lastModified),B(1),
D("ngIf",!a.deleted),B(1),D("ngIf",a.open),B(1),D("ngIf",!a.open),B(1),D("ngIf",a.open))},XAa=function(a){a&1&&(G(0,"ul",9),O(1,WAa,10,9,"li",10),H());a&2&&(a=M(),B(1),D("ngForOf",a.history)("ngForTrackBy",a.trackByIndex))},$Aa=function(){var a={timeout:5E3};a=void 0===a?{}:a;return null!=YAa?YAa:YAa=ZAa(a)},aBa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},ZAa=function(a){a=void 0===a?{}:a;var b;return me(function(c){if(1==c.nextAddress)return(b=
window.gapi)&&b.client&&b.client.load?c.return(b):ne(c,bBa(zo(Ao("https://apis.google.com/js/api.js")),a),2);if(3!=c.nextAddress){b=window.gapi;if(!b)throw Error("Kd");return b.client&&b.client.load?c.jumpTo(3):ne(c,aBa(),3)}return c.return(b)})},cBa=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},dBa=function(a,b){b=void 0===b?0:b;var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(Bo.has(a))return Bo.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){Bo.delete(a)});
Bo.set(a,b);return b}return Promise.resolve()},eBa=function(a,b){var c;return a.client.init({apiKey:b.apiKey,clientId:b.clientId,scope:b.scope,discoveryDocs:b.discoveryDocs,hostedDomain:b.hostedDomain,fetchBasicProfile:null!=(c=b.fetchBasicProfile)?c:!0})},fBa=function(a){a&1&&J(0,"b-user-image",5);a&2&&(a=M(),D("email",a.email))},gBa=function(a){a&1&&zf(0)},hBa=function(a){a&1&&(xf(0),G(1,"span",6),O(2,gBa,1,0,"ng-container",7),H(),G(3,"onedev-hovercard",null,8),J(5,"b-issue-person-card",9),H(),
yf());if(a&2){var b=Hf(4);a=M();var c=Hf(4);B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},iBa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(),B(1),Jf(a.email))},jBa=function(a){a&1&&(G(0,"span",10),J(1,"b-availability-chip",11),H());a&2&&(a=M(),B(1),D("user",a.email))},kBa=function(a){a&1&&J(0,"b-user-image",6);a&2&&(a=M(),D("email",a.email))},lBa=function(a){a&1&&J(0,"b-user-display-name",7);a&2&&(a=M(),D("email",a.email)("hovercardFocusEnabled",!0)("availabilityChipEnabled",
!1))},mBa=function(a){a&1&&zf(0)},nBa=function(a){a&1&&(xf(0),G(1,"span",10),O(2,mBa,1,0,"ng-container",11),H(),G(3,"onedev-hovercard",null,12),J(5,"b-issue-person-card",13),H(),yf());if(a&2){var b=Hf(4);M();var c=Hf(2);a=M();B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},oBa=function(a){a&1&&(G(0,"span",14),P(1),H());a&2&&(a=M(2),B(1),Jf(a.email))},pBa=function(a){a&1&&(O(0,nBa,6,3,"ng-container",8),O(1,oBa,2,1,"ng-template",null,9,gg));if(a&2){var b=Hf(2);
a=M();D("ngIf",a.isNonObfuscatedEmail(a.email))("ngIfElse",b)}},qBa=function(a){a&1&&(J(0,"mat-icon",15),Q(1,"async"),Q(2,"async"));if(a&2){a=M();var b,c;D("svgIcon",null!==(b=R(1,2,a.iconName$))&&void 0!==b?b:"")("matTooltip",null!==(c=R(2,4,a.iconToolTip$))&&void 0!==c?c:"")}},rBa=function(a){a&1&&(xf(0),J(1,"b-availability-chip",16),yf());a&2&&(a=M(),B(1),D("user",a.email))},uBa=function(a,b){var c=new sBa;a=Co(c,a,b);tBa(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Pn("SPAN",
{"class":"diff-removed"},d);case 1:return Pn("SPAN",{"class":"diff-added"},d);case 0:return Pn("SPAN",{"class":null},d);default:throw Error("Md`"+e);}});return Qn(c)},vBa=function(a){var b;return"DELETED"===(null==(b=a.entityStatus)?void 0:b.status)},wBa=function(a){a&1&&zf(0)},xBa=function(a){if(a&1){var b=x();G(0,"div",3);K("mouseenter",function(){z(b);var c=M();return A(c.toggle(!0))})("mouseleave",function(){z(b);var c=M();return A(c.toggle(!1))})("mousemove",function(){z(b);M().activity.next();
return A()});O(1,wBa,1,0,"ng-container",4);H()}a&2&&(a=M(),D("ngClass",a.bubbleStyle)("@fade",void 0),B(1),D("ngTemplateOutlet",a.panelTemplate))},yBa=function(a){a&1&&(xf(0),G(1,"span",3),P(2),Q(3,"toAccessLevelLabel"),H(),yf());a&2&&(a=M(2),B(1),sf("compact-chip",a.compactMode),D("ngClass",a.chipClass),B(1),If(" ",Rf(3,4,a.accessLevel,a.compactMode)," "))},zBa=function(a){a&1&&(G(0,"div",6),P(1),G(2,"a",7),P(3," Learn more"),H()());a&2&&(a=M(3),B(1),If(" ",a.bubbleText," "),B(1),D("href",Do(a.documentationLinks),
Kd))},ABa=function(a){a&1&&(G(0,"xap-bubble",4)(1,"span",3),P(2),Q(3,"toAccessLevelLabel"),H(),O(4,zBa,4,2,"ng-template",null,5,gg),H());if(a&2){var b=Hf(5);a=M(2);D("panelTemplate",b);B(1);sf("compact-chip",a.compactMode);D("ngClass",a.chipClass);B(1);If(" ",Rf(3,5,a.accessLevel,a.compactMode)," ")}},BBa=function(a){a&1&&(xf(0),O(1,yBa,4,7,"ng-container",1),O(2,ABa,6,8,"ng-template",null,2,gg),yf());if(a&2){var b=Hf(3);a=M();B(1);D("ngIf",a.labelOnlyMode)("ngIfElse",b)}},CBa=function(a){a&1&&(G(0,
"li")(1,"a",4),P(2," Create an issue in this component"),H()());a&2&&(a=M(2),B(1),D("href",a.createIssueUrl,Kd))},DBa=function(a,b){a&1&&(xf(0),G(1,"h3"),P(2),H(),G(3,"p"),P(4),H(),J(5,"b-access-level-indicator",3),G(6,"p"),P(7),H(),G(8,"ul")(9,"li")(10,"a",4),P(11," View recent open issues"),H()(),O(12,CBa,3,1,"li",2),G(13,"li")(14,"a",4),P(15," View component"),H()()(),yf());a&2&&(a=b.ngIf,b=M(),B(2),Jf(a.name),B(2),If("ID: ",b.componentId,""),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel)("labelOnlyMode",
!0),B(2),Jf(a.description),B(3),D("href",b.recentIssuesUrl,Kd),B(2),D("ngIf",!b.isAnonymous),B(2),D("href",b.viewComponentUrl,Kd))},EBa=function(a){a&1&&(G(0,"span",8),P(1),H());a&2&&(a=M(),B(1),Jf(a.placeholder))},FBa=function(a){a&1&&(G(0,"span",12),P(1),H());a&2&&(a=M(2),B(1),Jf(a.triggerValue))},GBa=function(a){a&1&&Df(0,0,["*ngSwitchCase","true"])},HBa=function(a){a&1&&(G(0,"span",9),O(1,FBa,2,1,"span",10),O(2,GBa,1,0,"ng-content",11),H());a&2&&(a=M(),D("ngSwitch",!!a.customTrigger),B(2),D("ngSwitchCase",
!0))},IBa=function(a){if(a&1){var b=x();G(0,"div",13)(1,"div",14,15);K("@transformPanel.done",function(c){z(b);var d=M();return A(d._panelDoneAnimatingStream.next(c.toState))})("keydown",function(c){z(b);var d=M();return A(d._handleKeydown(c))});Df(3,1);H()()}a&2&&(a=M(),D("@transformPanelWrap",void 0),B(1),vf("mat-select-panel ",a._getPanelTheme(),""),rf("transform-origin",a._transformOrigin)("font-size",a._triggerFontSize,"px"),D("ngClass",a.panelClass)("@transformPanel",a.multiple?"showing-multiple":
"showing"),nf("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},JBa=function(a,b){a&1&&(G(0,"mat-option",19),P(1),H());a&2&&(a=b.$implicit,D("value",a),B(1),If(" ",a," "))},KBa=function(a){if(a&1){var b=x();G(0,"mat-form-field",16)(1,"mat-select",17);K("selectionChange",function(c){z(b);var d=M(2);return A(d._changePageSize(c.value))});O(2,JBa,2,2,"mat-option",18);H()()}a&2&&(a=M(2),D("appearance",a._formFieldAppearance)("color",
a.color),B(1),D("value",a.pageSize)("disabled",a.disabled)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering)("aria-label",a._intl.itemsPerPageLabel),B(1),D("ngForOf",a._displayedPageSizeOptions))},LBa=function(a){a&1&&(G(0,"div",20),P(1),H());a&2&&(a=M(2),B(1),Jf(a.pageSize))},MBa=function(a){a&1&&(G(0,"div",12)(1,"div",13),P(2),H(),O(3,KBa,3,8,"mat-form-field",14),O(4,LBa,2,1,"div",15),H());a&2&&(a=M(),B(2),If(" ",a._intl.itemsPerPageLabel,
" "),B(1),D("ngIf",1<a._displayedPageSizeOptions.length),B(1),D("ngIf",1>=a._displayedPageSizeOptions.length))},NBa=function(a){if(a&1){var b=x();G(0,"button",21);K("click",function(){z(b);var c=M();if(c.hasPreviousPage()){var d=c.pageIndex;c.pageIndex=0;c._emitPageEvent(d)}return A()});Lc();G(1,"svg",7);J(2,"path",22);H()()}a&2&&(a=M(),D("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),nf("aria-label",
a._intl.firstPageLabel))},OBa=function(a){if(a&1){var b=x();Lc();Mc();G(0,"button",23);K("click",function(){z(b);var c=M();if(c.hasNextPage()){var d=c.pageIndex;c.pageIndex=(c.pageSize?Math.ceil(c.length/c.pageSize):0)-1;c._emitPageEvent(d)}return A()});Lc();G(1,"svg",7);J(2,"path",24);H()()}a&2&&(a=M(),D("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),nf("aria-label",a._intl.lastPageLabel))},PBa=
function(a){if(a&1){var b=x();G(0,"mat-paginator",3);K("page",function(c){z(b);var d=M(),e=c.pageIndex*c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return A()});H()}a&2&&(a=M(),D("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},QBa=function(a,b){if(a&1){var c=x();G(0,"li")(1,"a",4);K("click",function(){var e=z(c).$implicit,f=M();return A(f.onVisit.emit(e))});P(2);H();G(3,"onedev-hovercard",null,5);J(5,"b-component-card",6);H()()}if(a&2){a=b.$implicit;
var d=Hf(4);b=M();B(1);D("onedevHovercardTrigger",d)("href",b.paths.manageComponent(a.componentId),Kd);B(1);If(" ",a.name," ");B(3);D("componentId",a.componentId.toString())}},RBa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(),sf("muted",a.isGreyedOut),B(1),If(" ",a.displayName,""))},SBa=function(a){if(a&1){var b=x();G(0,"a",2);K("click",function(c){z(b);var d=M();return A(d.handleClick(c))});P(1);H()}a&2&&(a=M(),D("href",a.linkUrl,Kd),B(1),If(" ",a.displayName,""))},TBa=function(a){if(a&1){var b=
x();G(0,"button",6);K("click",function(){z(b);var c=M();return A(c.onClickCopyIssueShortLinks.emit())});P(1);H()}a&2&&(a=M(),B(1),If(" Copy '",a.shortLinkPrefix,"'' links "))},UBa=function(a,b){a&1&&(G(0,"span",5)(1,"a",6),P(2),H(),G(3,"onedev-hovercard",null,7),J(5,"b-component-card",8),H()());if(a&2){a=b.$implicit;var c=Hf(4);B(1);D("onedevHovercardTrigger",c)("routerLinkObj",a.route);B(1);Jf(a.name);B(3);D("componentId",a.id.toString())}},VBa=function(a){a&1&&(G(0,"span",9),P(1,"[Archived]"),H())},
Eo=function(a,b){b=void 0===b?tn:b;var c,d=null!=(c=null==a?void 0:a.componentPathId)?c:[],e,f=null!=(e=null==a?void 0:a.componentPathName)?e:[];return d.map(function(h,k){var q;k=null!=(q=f[k])?q:String(h);q=b(h);return{id:h,name:k,route:q}})},WBa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),Jf(a.text))},XBa=function(a){a&1&&(G(0,"span"),J(1,"b-access-level-indicator",2),H());a&2&&(a=M().$implicit,B(1),D("accessLevel",a.accessLevel))},YBa=function(a,b){a&1&&(G(0,"span"),O(1,
WBa,2,1,"span",1),O(2,XBa,2,1,"span",1),H());a&2&&(a=b.$implicit,b=M(),B(1),D("ngIf",b.isText(a)),B(1),D("ngIf",!b.isText(a)))},ZBa=function(a){if(a&1){var b=x();G(0,"div");J(1,"br");G(2,"mat-checkbox",8);K("ngModelChange",function(c){z(b);var d=M();return A(d.acknowledged=c)});H();G(3,"span");P(4,"All information in this issue is suitable for external sharing.");H()()}a&2&&(a=M(),B(2),D("ngModel",a.acknowledged))},$Ba=function(a){if(a&1){var b=x();G(0,"button",9);K("click",function(){z(b);var c=
M();return A(c.allow())});P(1," Move Issue ");H()}a&2&&(a=M(),D("disabled",!a.acknowledged))},Fo=function(a){var b=Object.keys(a);return Promise.all(Object.values(a)).then(function(c){return Object.fromEntries(b.map(function(d,e){return[d,c[e]]}))})},Go=function(){var a=0;a=void 0===a?0:a;return new Promise(function(b){setTimeout(b,a)})},aCa=function(a){if(a&1){var b=x();G(0,"a",17);K("click",function(){z(b);var c=M().$implicit,d=M();return A(d.showChildren(c))});J(1,"mat-icon",18);H()}},bCa=function(a){if(a&
1){var b=x();G(0,"a",19);K("click",function(){z(b);var c=M().$implicit;return A(c.showChildren=!1)});J(1,"mat-icon",20);H()}},dCa=function(a){a&1&&(G(0,"a",21),P(1," (Recent Issues) "),H());if(a&2){a=M().$implicit;var b=M();D("href",b.paths.listIssues(Nf(1,cCa,"status:open componentid:"+a.componentId)),Kd)}},eCa=function(a){a&1&&(G(0,"span"),P(1,"[Archived]"),H())},fCa=function(a){a&1&&(G(0,"a",22),P(1," Create issue "),H());if(a&2){a=M().$implicit;var b=M();D("href",b.paths.createIssue()+"?component="+
a.componentId,Kd)}},gCa=function(a){a&1&&(G(0,"div",27),P(1," No child components found. "),H())},hCa=function(a){a&1&&(G(0,"div",28),J(1,"b-spinner"),H())},iCa=function(a){if(a&1){var b=x();G(0,"component-subtree-list",29);K("childClosed",function(d){z(b);var e=M(3);return A(e.onSubtreeChildClosed(d))});H()}if(a&2){a=M(2).$implicit;var c=M();D("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},jCa=function(a){a&1&&(G(0,"div",23),
O(1,gCa,2,0,"div",24),O(2,hCa,2,0,"div",25),O(3,iCa,1,4,"component-subtree-list",26),H());a&2&&(a=M().$implicit,B(1),D("ngIf",a.noChildren),B(1),D("ngIf",!(a.noChildren||a.children)),B(1),D("ngIf",a.children))},kCa=function(a,b){if(a&1){var c=x();G(0,"li",2);K("click",function(d){var e=z(c).$implicit,f=M();return A(f.setSelected(e.componentId,d))});G(1,"div",3);J(2,"div",4);G(3,"div",5);O(4,aCa,2,0,"a",6);O(5,bCa,2,0,"a",7);H();G(6,"div",8)(7,"div")(8,"a",9);P(9);H();O(10,dCa,2,3,"a",10);O(11,eCa,
2,0,"span",11);J(12,"b-access-level-indicator",12);H();G(13,"div",13);P(14);H()();G(15,"div",14);O(16,fCa,2,1,"a",15);H()();O(17,jCa,4,3,"div",16);H()}a&2&&(a=b.$implicit,b=M(),Ef("id","component-",a.componentId,""),B(4),D("ngIf",!a.showChildren),B(1),D("ngIf",a.showChildren),B(3),D("href",b.paths.viewComponent(a.componentId),Kd),B(1),If(" ",a.name," "),B(1),D("ngIf",!a.archived),B(1),D("ngIf",a.archived),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),Jf(a.description),
B(2),D("ngIf",!a.archived),B(1),D("ngIf",a.showChildren))},lCa=function(a){if(a&1){var b=x();G(0,"a",17);K("click",function(){z(b);var c=M().$implicit,d=M();return A(d.showChildren(c))});J(1,"mat-icon",18);H()}},mCa=function(a){if(a&1){var b=x();G(0,"a",19);K("click",function(){z(b);var c=M().$implicit;return A(c.showChildren=!1)});J(1,"mat-icon",20);H()}},oCa=function(a){a&1&&(G(0,"a",21),P(1," (Recent Issues) "),H());if(a&2){a=M().$implicit;var b=M();D("href",b.paths.listIssues(Nf(1,nCa,"status:open componentid:"+
a.componentId)),Kd)}},pCa=function(a){a&1&&(G(0,"span"),P(1,"[Archived]"),H())},qCa=function(a){a&1&&(G(0,"a",22),P(1," Create issue "),H());if(a&2){a=M().$implicit;var b=M();D("href",b.paths.createIssue()+"?component="+a.componentId,Kd)}},rCa=function(a){a&1&&(G(0,"div",27),P(1," No child components found. "),H())},sCa=function(a){a&1&&(G(0,"div",28),J(1,"b-spinner"),H())},tCa=function(a){if(a&1){var b=x();G(0,"component-subtree-list",29);K("childClosed",function(d){z(b);var e=M(3);return A(e.onSubtreeChildClosed(d))});
H()}if(a&2){a=M(2).$implicit;var c=M();D("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},uCa=function(a){a&1&&(G(0,"div",23),O(1,rCa,2,0,"div",24),O(2,sCa,2,0,"div",25),O(3,tCa,1,4,"component-subtree-list",26),H());a&2&&(a=M().$implicit,B(1),D("ngIf",a.noChildren),B(1),D("ngIf",!(a.noChildren||a.children)),B(1),D("ngIf",a.children))},vCa=function(a,b){if(a&1){var c=x();G(0,"li",2);K("click",function(d){var e=z(c).$implicit,f=
M();return A(f.setSelected(e.componentId,d))});G(1,"div",3);J(2,"div",4);G(3,"div",5);O(4,lCa,2,0,"a",6);O(5,mCa,2,0,"a",7);H();G(6,"div",8)(7,"div")(8,"a",9);P(9);H();O(10,oCa,2,3,"a",10);O(11,pCa,2,0,"span",11);J(12,"b-access-level-indicator",12);H();G(13,"div",13);P(14);H()();G(15,"div",14);O(16,qCa,2,1,"a",15);H()();O(17,uCa,4,3,"div",16);H()}a&2&&(a=b.$implicit,b=M(),D("id","component-"+a.componentId),B(4),D("ngIf",!a.showChildren),B(1),D("ngIf",a.showChildren),B(3),D("href",b.paths.viewComponent(a.componentId),
Kd),B(1),If(" ",a.name," "),B(1),D("ngIf",!a.archived),B(1),D("ngIf",a.archived),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),Jf(a.description),B(2),D("ngIf",!a.archived),B(1),D("ngIf",a.showChildren))},Ho=function(a){return(null!=a?a:[]).map(In)},wCa=function(a){return cua(a)},Io=function(a){return(null!=a?a:[]).map(wCa)},Jo=function(a){return null==a?"":"number"===typeof a?isFinite(a)?String(a):"":a&&(a=String(a),254>=a.length)?a:""},Lo=function(){var a=Ko("gapi.config.get");
if((a=Jo(a&&a("googleapis.config/sessionIndex")))||(a=Jo(ba.__X_GOOG_AUTHUSER))||(a=Jo(Ko("google.authuser"))))return a;var b=ba.location.href||"",c=xCa.exec(b);try{a=Jo(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=yCa.exec(b);try{a=Jo(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=zCa.exec(b);return(a=Jo(a&&a[1]))?a:""},ACa=function(){var a=Ko("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Ko("gapi.auth2.getAuthInstance"))?a():null;if(!a||!a.isSignedIn.get())return null;
a=(b=a.currentUser.get().getAuthResponse(!0))&&b.access_token;if(!a)return null;b=b.token_type}return{Authorization:(b||"Bearer")+" "+a}},BCa=function(a){a=void 0===a?"":a;var b;if(!(b=ACa())){b=a;var c=void 0===c?Lo():c;a={};var d=Mo([]);d&&(a.Authorization=d);b||(b=(b=Ko("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},CCa=function(a,b){b=void 0===b?0:b;var c;if(c=0===b)c=(c=Ko("gapi.config.get"))?(c=c("oauth-flow/authUrl"))&&
(0<c.indexOf("staging")||0<c.indexOf("test"))?2:1:0,c=2===c;c&&(b=7);switch(b){case 7:b="dev-";c="-googleapis.corp";break;case 1:b="autopush-";c="-googleapis.sandbox";break;case 2:b="staging-";c="-googleapis.sandbox";break;default:b="",c=".clients6"}a="https://"+b+a+c+".google.com";(b=(b=Ko("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},ECa=function(a,b){return 1>a||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return ba.setTimeout(c,b)})).then(function(){return DCa(a-
1,2*b)})},DCa=function(a,b){a=void 0===a?0:a;b=void 0===b?5E3:b;var c=ba;try{do var d=c.gapi;while(!d&&c!==c.top&&(c=c.parent))}catch(e){}if(!d)return ECa(a,b);ba.gapi||(ba.gapi=d);return d.client?Promise.resolve(d):new Promise(function(e,f){d.load("client",function(){d.client?e(d):f("gapi.client missing")})})},FCa=function(){var a=void 0===a?"":a;var b=void 0===b?Lo():b;var c=Ko("gapi.config.update");c("googleapis.config/auth/useFirstPartyAuth",!0);c("googleapis.config/auth/useFirstPartyAuthV2",
!0);b&&c("googleapis.config/sessionIndex",b);a&&c("client/apiKey",a)},GCa=function(a){return(new No).setEventType(2).setRpcType(2).setLookupType(a)},HCa=function(a){a=Math.round(1E3*a);return isFinite(a)?a:null},Qo=function(a,b,c,d){Oo.call(this);this.initialized_=!1;this.title_=null;this.cache_=b;this.id_=c;this.transport_=a;ICa(this.transport_,this.id_);d&&Po(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},JCa=function(a){var b={};if(a){a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=
c.value;c=d.containerType;d=d.id||"";c&&d&&(b[c]=b[c]||d)}}return b},LCa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return KCa(b.name,b.email)}).join(", "):""},OCa=function(a,b,c){var d=[];a&&(MCa("name",a.name,b,d,c),MCa("phone",a.phone,b,d,c),MCa("photo",a.photo,b,d,c));return d.map(function(e){return new NCa(e)})},MCa=function(a,b,c,d,e){if(b){b=r(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,"CONTACT"!==Ko("metadata.containerType",
f)){var h=c,k=d,q=e,w=Ko("metadata.encodedContainerId",f),y=Ko("metadata.containerType",f);if(h.contains(w,y))var E=h.get(w,y)||0;else E=k.length,h.set(w,y,E),k.push({}),q.push(w);E=k[E];E[a]=E[a]||[];E[a].push(f)}}},QCa=function(a,b){if(a){a=PCa(a);for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasValue()&&(!b||b(d.getMetaData())))return d.getValue()}}return null},RCa=function(a,b){if(a){a=a.getPhoto();for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasUrl()&&(!b||
b(d.getMetaData())))return d.getUrl()}}return null},SCa=function(a){this.query_=a;this.error_=0},ZCa=function(a){var b=a.getClientInfo(),c=Ro(b,10)||W(a.getExperiments(),5,!0),d=c?new So(void 0,TCa(a)):new To(void 0,TCa(a)),e=Uo(new UCa(a,1)),f=a.getUserInfo().getEnvType()||1;var h=VCa.get(f)||4;h=CCa("people-pa",void 0===h?0:h);f=4===f?p(a.getClientInfo(),2)||"":p(a.getClientInfo(),1)||"";var k=p(a.getClientInfo(),4),q=p(a.getClientInfo(),5),w=p(a.getClientInfo(),6)||"",y=a.getClientInfo().getAffinityType()||
"",E=a.getUserInfo().getDelegatorId(),I=a.getAuthErrorHandler(),N=dj(a.getClientInfo(),8,3E4),L=W(a.getClientInfo(),17,!1);e=new WCa(e,h,f,k,q,w,y,E,N,I,dj(a.getClientInfo(),13,15),dj(a.getClientInfo(),14,500),V(a.getClientInfo(),15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),V(a.getClientInfo(),16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),a.getExperiments(),L);a=new Vo(e,XCa(a));e=new YCa(a);e.configure(null,"Personal Contacts");
d.addAddressBook(e,!0);c&&(b=new Wo(a,null,!!Ro(b,11)),b.configure(null,"Domain Contacts"),d.addAddressBook(b,!0));return d},Zo=function(a,b){b=a(b||$Ca,void 0);a=Xo().createElement("DIV");b=aDa(b);Yo(a,b);1==a.childNodes.length&&(b=a.firstChild,1==b.nodeType&&(a=b));return a},aDa=function(a){if(Da(a))if(a instanceof $o){if(a.contentKind!==ap)throw Error("Rd");a=Hj(a.toString(),null)}else a=Nn("zSoyz");else a=Nn(String(a));return a},cp=function(a,b,c,d,e,f,h){this.serverBase_="string"===typeof a?
new bp(a):a;this.useApiary_=!!c;this.apiaryClientDeferred_=d;this.onAuthError_=e;this.testGaia_=!!f;this.contactStoreConfig_=h;this.commonAcParams_={};this.acWrappers_={};this.onAcCompleteListeners_={};this.inputToAcWrapper_={};this.focusedElement_=null},bDa=function(a){a=a.getEmail();if(!a)return!1;for(var b=r(["-pager","+pager","-oncall","+oncall","lifeguard-ng"]),c=b.next();!c.done;c=b.next())if(0<=a.indexOf(c.value))return!0;return!1},fDa=function(a,b,c,d){a=a.filter(cDa());if(!d)return a;d=d.map(function(e){return{contact:e,
toString:function(){return e.text}}});b=dDa(new eDa(d),b,d.length);return a.concat(b.map(function(e){return e.contact}))},gDa=function(a){a&1&&(J(0,"div"),Q(1,"lowercase"));a&2&&(a=M(3),vf("bv2-edit-icon ",R(1,3,a.type),""))},hDa=function(a){a&1&&(G(0,"div")(1,"label"),P(2),H(),O(3,gDa,2,5,"div",10),H());a&2&&(a=M(2),vf("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),B(2),If(" ",a.title," "),B(1),D("ngIf",!a.readonly&&!a.disabled))},iDa=function(a){a&1&&zf(0)},jDa=function(a){if(a&
1){var b=x();G(0,"div",14);K("menuClosed",function(){z(b);var e=M(2);return A(dp(e,null,!1,!0))});O(1,iDa,1,0,"ng-container",15);H()}if(a&2){M();var c=Hf(6);M();var d=Hf(7);D("matMenuTriggerFor",d);B(1);D("ngTemplateOutlet",c)}},kDa=function(a){a&1&&zf(0)},lDa=function(a){a&1&&(G(0,"div",16),O(1,kDa,1,0,"ng-container",15),H());if(a&2){M();var b=Hf(6);B(1);D("ngTemplateOutlet",b)}},mDa=function(a){a&1&&J(0,"b-user-membership-chip",26);a&2&&(a=M(4),D("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",
!0))},nDa=function(a){a&1&&J(0,"b-user-image",27);a&2&&(a=M(4),D("email",a.value))},oDa=function(a){a&1&&(G(0,"span",28)(1,"b-person-hovercard",29),P(2),H()());a&2&&(a=M(4),B(1),D("email",a.value),B(1),If(" ",a.getDisplayValue("--")," "))},pDa=function(a){a&1&&(G(0,"div")(1,"div",22),O(2,mDa,1,4,"b-user-membership-chip",23),O(3,nDa,1,1,"b-user-image",24),O(4,oDa,3,2,"span",25),H()());a&2&&(a=M(3),B(2),D("ngIf",a.enableTeamAnnotations&&!!a.value),B(1),D("ngIf",!a.enableTeamAnnotations&&!!a.value),
B(1),D("ngIf",!a.enableTeamAnnotations))},qDa=function(a){a&1&&J(0,"b-truncated-span",33);a&2&&(a=M(4),D("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},rDa=function(a){a&1&&J(0,"b-truncated-span",34);a&2&&(a=M(4),D("ngClass",a.getPriority(a.value))("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},sDa=function(a){a&1&&J(0,"div",35)},tDa=function(a){a&1&&(G(0,"div"),O(1,qDa,1,3,"b-truncated-span",30),O(2,rDa,1,4,"b-truncated-span",31),
O(3,sDa,1,0,"div",32),H());a&2&&(a=M(3),B(1),D("ngIf","Priority"!==a.title),B(1),D("ngIf","Priority"===a.title),B(1),D("ngIf",!a.title&&!a.readonly&&!a.disabled))},uDa=function(a){a&1&&(G(0,"div",36),J(1,"mat-icon",37),H())},vDa=function(a){a&1&&(G(0,"div",38),J(1,"mat-icon",39),H())},xDa=function(a){if(a&1){var b=x();G(0,"div",17,18);K("keydown",function(c){z(b);var d=M(2);return A(wDa(d,c))})("click",function(c){z(b);var d=M(2);return A(dp(d,c,!0,!1))});O(2,pDa,5,3,"div",19);O(3,tDa,4,3,"div",19);
O(4,uDa,2,0,"div",20);O(5,vDa,2,0,"div",21);H()}a&2&&(a=M(2),sf("edit-field-user-container",a.isUser)("edit-field-activated",a.isActive),B(2),D("ngIf",a.isUser),B(1),D("ngIf",!a.isUser),B(1),D("ngIf","ENUM"!=a.type),B(1),D("ngIf","ENUM"==a.type))},yDa=function(a){if(a&1){var b=x();G(0,"div",8,9);K("click",function(c){z(b);var d=M();return A(dp(d,c,!0,!1))})("keydown",function(c){z(b);var d=M();return A(wDa(d,c))});O(2,hDa,4,5,"div",10);O(3,jDa,2,2,"div",11);O(4,lDa,2,1,"div",12);O(5,xDa,6,8,"ng-template",
null,13,gg);H()}a&2&&(a=M(),vf("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,""),sf("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),qf("aria-label","",a.title," value is ",a.getDisplayValue("empty"),""),D("matTooltip",a.getTooltip()),nf("aria-disabled",!1),B(2),D("ngIf",a.title),B(1),D("ngIf","ENUM"===a.type),B(1),D("ngIf","ENUM"!==a.type))},zDa=function(a){if(a&1){var b=x();G(0,"div",43);K("click",function(){z(b);var c=M(2);return A(c.setFieldValue(!c.value))});G(1,"label");
P(2);H()()}a&2&&(a=M(2),vf("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),B(2),Jf(a.title))},BDa=function(a){if(a&1){var b=x();G(0,"div",40);O(1,zDa,3,4,"div",41);G(2,"b-slide-toggle",42);K("modelChange",function(){z(b);var d=M();return A(d.setFieldValue(!d.value))});H()()}if(a&2){a=M();var c;vf("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,"");D("ngClass",Of(10,ADa,a.disabled,a.readonly))("matTooltip",a.getTooltip());nf("aria-disabled",!1);B(1);D("ngIf",a.title);
B(1);D("disabled",a.disabled||a.readonly)("aria-label",a.name)("model",null!==(c=a.value)&&void 0!==c?c:void 0)}},CDa=function(a){a&1&&J(0,"b-availability-chip",44);a&2&&(a=M(),D("user",a.value))},DDa=function(a){if(a&1){var b=x();G(0,"button",47);K("click",function(){z(b);var c=M(2);return A(c.clearFieldValue())});G(1,"span",48);J(2,"mat-icon",49);H();P(3," \u00a0 ");H()}a&2&&(a=M(2),sf("b-menu-item-checked",null==a.value),D("disabled",null==a.value))},EDa=function(a,b){if(a&1){var c=x();G(0,"button",
50);K("click",function(){var d=z(c).$implicit,e=M(2);return A(e.setFieldValue(d.value))});G(1,"span",48);J(2,"mat-icon",49);H();P(3);H()}a&2&&(a=b.$implicit,b=M(2),sf("b-menu-item-checked",b.value==a.value),D("disabled",b.value==a.value)("matTooltip",a.altText||""),nf("aria-label",a.displayText)("title",!b.showEnumTitle||a.altText?"":a.displayText),B(3),If(" ",a.displayText," "))},FDa=function(a){a&1&&(O(0,DDa,4,3,"button",45),O(1,EDa,4,7,"button",46));a&2&&(a=M(),D("ngIf",a.clearable),B(1),D("ngForOf",
a.choices))},GDa=function(a){a&1&&zf(0)},HDa=function(a){a&1&&zf(0)},IDa=function(a){if(a&1){var b=x();G(0,"div",43);K("click",function(d){return d.stopPropagation()});G(1,"b-date-time-picker-content",56);K("dateSelectionChange",function(d){z(b);var e=M(2);return A(e.googDateValue=null!==d&&void 0!==d?d:null)})("saveClicked",function(){z(b);var d=M(2);return A(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){z(b);var d=M(2);return A(dp(d,null,!1,!1))});H()()}if(a&2){a=M(2);var c;B(1);
D("required",!(a.clearable&&"DATE"===a.type))("date",null!==(c=a.googDateValue)&&void 0!==c?c:void 0)}},KDa=function(a){if(a&1){var b=x();G(0,"textarea",65);K("ngModelChange",function(c){z(b);var d=M(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=M(4);return A(JDa(d,c))});H()}a&2&&(a=M(4),D("ngModel",a.textBuffer),nf("aria-label",a.title))},MDa=function(a){if(a&1){var b=x();G(0,"input",66);K("ngModelChange",function(c){z(b);var d=M(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);
var d=M(4);return A(LDa(d,c))});H()}a&2&&(a=M(4),D("ngModel",a.textBuffer),nf("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},NDa=function(a){a&1&&(G(0,"div"),O(1,KDa,1,2,"textarea",63),O(2,MDa,1,3,"input",64),H());a&2&&(a=M(3),B(1),D("ngIf",a.multiline),B(1),D("ngIf",!a.multiline))},ODa=function(a){if(a&1){var b=x();G(0,"textarea",69);K("ngModelChange",function(c){z(b);var d=M(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=M(4);return A(JDa(d,c))})("autocompleteActive",
function(c){z(b);var d=M(4);return A(d.autocompleteActive=c)});H()}a&2&&(a=M(4),D("ngModel",a.textBuffer)("bContactAutocomplete","MULTI"),nf("aria-label",a.title))},PDa=function(a){if(a&1){var b=x();G(0,"input",70);K("ngModelChange",function(c){z(b);var d=M(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=M(4);return A(LDa(d,c))})("autocompleteActive",function(c){z(b);var d=M(4);return A(d.autocompleteActive=c)});H()}a&2&&(a=M(4),D("ngModel",a.textBuffer)("bContactAutocomplete","SINGLE"),
nf("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},QDa=function(a){a&1&&(G(0,"div"),O(1,ODa,1,3,"textarea",67),O(2,PDa,1,4,"input",68),H());a&2&&(a=M(3),B(1),D("ngIf",a.multiline),B(1),D("ngIf",!a.multiline))},SDa=function(a){if(a&1){var b=x();G(0,"div",57);K("click",function(c){return c.stopPropagation()});O(1,NDa,3,2,"div",19);O(2,QDa,3,2,"div",19);G(3,"div",58)(4,"button",59);K("click",function(){z(b);var c=M(2);return A(RDa(c))});J(5,"mat-icon",60);H();G(6,"button",61);K("click",
function(c){z(b);var d=M(2);return A(dp(d,c,!1,!0))});J(7,"mat-icon",62);H()();G(8,"div",36);J(9,"mat-icon",37);H()()}a&2&&(a=M(2),B(1),D("ngIf",!a.isUser),B(1),D("ngIf",a.isUser),B(2),pf("aria-label","Apply change to ",a.title,""),Ef("matTooltip","Apply change to ",a.title,""),D("disabled",a.value==a.textBuffer),B(2),pf("aria-label","Discard change to ",a.title,""),Ef("matTooltip","Discard change to ",a.title,""))},TDa=function(a){a&1&&(G(0,"div",51,52),O(2,GDa,1,0,"ng-container",53),O(3,HDa,1,0,
"ng-container",53),O(4,IDa,2,2,"div",54),O(5,SDa,10,7,"div",55),H());a&2&&(a=M(),vf("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"),D("ngSwitch",a.type),B(2),D("ngSwitchCase","ENUM"),B(1),D("ngSwitchCase","BOOL"),B(1),D("ngSwitchCase","DATE"))},UDa=function(a){var b;return{changelistNumbers:null!=(b=jb(a,1))?b:[]}},VDa=function(a){var b;return{author:a.getAuthor(),description:a.getDescription(),pending:W(a,3),timestamp:a.getTimestamp(),affectedFiles:null!=(b=jb(a,5))?b:[]}},
WDa=function(a,b){a&1&&(G(0,"span",9),P(1," by "),J(2,"b-user-display-name",10),H());a&2&&(a=b.ngIf,B(2),D("email",a)("hovercardEnabled",!1))},XDa=function(a,b){a&1&&(G(0,"div")(1,"span"),P(2),H(),J(3,"b-formatted-date-time",11),H());a&2&&(a=b.ngIf,b=M().ngIf,B(2),Jf(b.pending?"Created on: ":"Submitted on: "),B(1),D("timestamp",a))},YDa=function(a,b){a&1&&(xf(0),J(1,"br"),P(2),yf());a&2&&(a=b.$implicit,B(2),If("",a," "))},ZDa=function(a,b){a&1&&(xf(0),G(1,"div",3)(2,"a",4),P(3," CL "),G(4,"span"),
P(5),H()(),O(6,WDa,3,2,"span",5),J(7,"br")(8,"br"),O(9,XDa,4,2,"div",2),G(10,"div",6),J(11,"div",7)(12,"br"),G(13,"div"),P(14," Affected files: "),O(15,YDa,3,1,"ng-container",8),H()()(),yf());a&2&&(a=b.ngIf,b=M(),B(2),D("href","http://critique.corp.google.com/"+b.changelistId,Kd),B(3),Jf(b.changelistId),B(1),D("ngIf",a.author),B(3),D("ngIf",a.timestamp),B(2),D("innerHTML",a.description,Jd),B(4),D("ngForOf",a.affectedFiles))},$Da=function(a){a&1&&J(0,"b-changelist-card",3,4);if(a&2){var b=Hf(1);a=
M();D("onedevIsHovercardReady",b.init)("changelistId",a.changelistId)}},aEa=function(a){if(a&1){var b=x();G(0,"a",15);K("click",function(){z(b);var c=M();return A(c.trackClick("viewTeamAssociationOnComponent"))});G(1,"button",11);P(2,"View team association on component");H()()}a&2&&(a=M(),D("href",a.manageComponentLink(),Kd))},bEa=function(a){if(a&1){var b=x();G(0,"a",6);K("click",function(){z(b);var d=M(2);return A(d.trackClick("viewTeamInMoma"))});G(1,"span");P(2);J(3,"mat-icon",7);H()()}if(a&2){a=
M(2);var c=Hf(3);Ef("href","https://moma.corp.google.com/team/",a.teamId,"",Kd);D("onedevHovercardTrigger",c);nf("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");B(1);nf("id",a.teamLinkId);B(1);If("",a.teamName?a.teamName:a.teamId," ")}},cEa=function(a){a&1&&(G(0,"span",8),P(1),H());if(a&2){a=M(2);var b=Hf(3);D("onedevHovercardTrigger",b);B(1);Jf(a.teamName?a.teamName:a.teamId)}},dEa=function(a){a&1&&(xf(0),O(1,bEa,4,6,"a",4),O(2,
cEa,2,2,"span",5),yf());a&2&&(a=M(),B(1),D("ngIf",a.anchorLinkEnabled),B(1),D("ngIf",!a.anchorLinkEnabled))},eEa=function(a){a&1&&J(0,"span",11)},fEa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(2),B(1),Jf(a.teamNotAssignedMessage))},gEa=function(a){a&1&&(O(0,eEa,1,0,"span",9),O(1,fEa,2,1,"span",10));a&2&&(a=M(),D("ngIf","0"!=a.teamId),B(1),D("ngIf","0"==a.teamId))},hEa=function(a){a=a.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}},iEa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},ep=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},jEa=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,h=.05*a.width,k=.05*a.height;return c>a.top-k&&c<e+k&&b>f-h&&b<d+h},nEa=function(a){var b=a.cloneNode(!0),c=b.querySelectorAll("[id]"),d=a.nodeName.toLowerCase();b.removeAttribute("id");for(var e=0;e<c.length;e++)c[e].removeAttribute("id");"canvas"===d?kEa(a,
b):("input"===d||"select"===d||"textarea"===d)&&lEa(a,b);mEa("canvas",a,b,kEa);mEa("input, textarea, select",a,b,lEa);return b},mEa=function(a,b,c,d){b=b.querySelectorAll(a);if(b.length)for(a=c.querySelectorAll(a),c=0;c<b.length;c++)d(b[c],a[c])},lEa=function(a,b){"file"!==b.type&&(b.value=a.value);"radio"===b.type&&b.name&&(b.name="mat-clone-"+b.name+"-"+oEa++)},kEa=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},pEa=function(a,b,c){for(var d in b)if(b.hasOwnProperty(d)){var e=
b[d];if(e){var f=void 0;a.setProperty(d,e,(null==(f=c)?0:f.has(d))?"important":"")}else a.removeProperty(d)}},fp=function(a,b){var c=b?"":"none";pEa(a.style,{"touch-action":b?"":"none","-webkit-user-drag":b?"":"none","-webkit-tap-highlight-color":b?"":"transparent","user-select":c,"-ms-user-select":c,"-webkit-user-select":c,"-moz-user-select":c})},rEa=function(a,b){pEa(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},qEa)},gp=function(a,b){return b&&"none"!=b?a+" "+
b:a},sEa=function(a){var b=-1<a.toLowerCase().indexOf("ms")?1:1E3;return parseFloat(a)*b},uEa=function(a){a=getComputedStyle(a);var b=tEa(a,"transition-property"),c=b.find(function(d){return"transform"===d||"all"===d});if(!c)return 0;b=b.indexOf(c);c=tEa(a,"transition-duration");a=tEa(a,"transition-delay");return sEa(c[b])+sEa(a[b])},tEa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},hp=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+
"px, 0)"},ip=function(a){return"t"===a.type[0]},vEa=function(a,b){a=a.rootNodes;if(1===a.length&&a[0].nodeType===b.ELEMENT_NODE)return a[0];var c=b.createElement("div");a.forEach(function(d){return c.appendChild(d)});return c},wEa=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=hp(b.left,b.top)},jp=function(a,b,c){b=Math.max(0,Math.min(a.length-1,b));c=Math.max(0,Math.min(a.length-1,c));if(b!==c){for(var d=a[b],e=c<b?-1:1;b!==c;b+=e)a[b]=a[b+e];a[c]=d}},xEa=
function(a,b){var c=a.top,d=a.bottom;a=.05*a.height;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},yEa=function(a,b){var c=a.left,d=a.right;a=.05*a.width;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},zEa=function(a){a&1&&(G(0,"label",15),P(1),H());a&2&&(a=M(),nf("aria-label",a.title),B(1),If(" ",a.title," "))},AEa=function(a){a&1&&(G(0,"div"),J(1,"b-changelist-link",27),H());if(a&2){a=M(2).$implicit;var b=M();B(1);D("changelistId",b.asNumber(a))}},BEa=function(a){a&1&&(G(0,"div")(1,"a",28),P(2),H()());
if(a&2){a=M(3).$implicit;var b=M();B(1);switch(b.environmentType){case "NIGHTLY":case "PROD":b="https://taskflow.corp.google.com/workspaces";break;default:b="https://taskflow-autopush.corp.google.com/workspaces"}D("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId,Kd);nf("aria-label","Workspace"+a.workspaceId);B(1);If(" ",a.workspaceName," ")}},CEa=function(a){a&1&&O(0,BEa,3,3,"div",20);if(a&2){M();var b=Hf(6);M();a=M();D("ngIf","WORKSPACES"===a.type)("ngIfElse",b)}},DEa=function(a){a&1&&(G(0,"div"),
J(1,"b-team-display",29),H());a&2&&(a=M(3).$implicit,B(1),D("teamId",a.teamId)("componentId",a.componentId))},EEa=function(a){a&1&&O(0,DEa,2,2,"div",20);if(a&2){M();var b=Hf(8);M();a=M();D("ngIf","TEAM"===a.type)("ngIfElse",b)}},FEa=function(a){if(a&1){var b=x();G(0,"div")(1,"a",30);K("click",function(){z(b);var c=M(4);return A(c.trackClick("postmortem"))});P(2);H()()}a&2&&(a=M(3).$implicit,B(1),Ef("href","https://pm.corp.google.com/",a,"",Kd),pf("aria-label","Postmortem ",a,""),B(1),If(" ",a," "))},
GEa=function(a){a&1&&O(0,FEa,3,3,"div",20);if(a&2){M();var b=Hf(10);M();a=M();D("ngIf","POSTMORTEMS"===a.type)("ngIfElse",b)}},HEa=function(a){a&1&&(G(0,"div"),J(1,"b-truncated-span",32),H());if(a&2){a=M(3).$implicit;var b=M();B(1);D("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},IEa=function(a){a&1&&J(0,"b-user-membership-chip",36);if(a&2){a=M(4).$implicit;var b=M();D("user",b.getUser(a))("email",a)("teamId",b.teamId)("enableSmallChip",!0)}},JEa=function(a){a&1&&(G(0,"b-person-hovercard",
37),P(1),H());a&2&&(a=M(4).$implicit,D("email",a),B(1),If(" ",a," "))},KEa=function(a){a&1&&(G(0,"div",33),O(1,IEa,1,4,"b-user-membership-chip",34),O(2,JEa,2,2,"b-person-hovercard",35),H());a&2&&(a=M(4),B(1),D("ngIf",a.enableTeamAnnotations),B(1),D("ngIf",!a.enableTeamAnnotations))},LEa=function(a){a&1&&(O(0,HEa,2,3,"div",7),O(1,KEa,3,2,"div",31));if(a&2){a=M(2).$implicit;var b=M();D("ngIf",!b.isUser&&b.isString(a));B(1);D("ngIf",b.isUser&&b.isString(a))}},MEa=function(a){if(a&1){var b=x();G(0,"button",
38,39);K("click",function(){z(b);var d=M(2).index,e=M();return A(e.removeItem(d))});H()}if(a&2){a=M(2).$implicit;var c=M();qf("aria-label","Remove ",a," from ",c.title,"");D("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},NEa=function(a){a&1&&(G(0,"div",18)(1,"div",19),O(2,AEa,2,1,"div",20),O(3,CEa,1,2,"ng-template",null,21,gg),O(5,EEa,1,2,"ng-template",null,22,gg),O(7,GEa,1,2,"ng-template",null,23,gg),O(9,LEa,2,2,"ng-template",null,24,gg),H(),O(11,MEa,2,4,"button",25),J(12,"div",26),
H());if(a&2){var b=Hf(4);M();a=M();B(2);D("ngIf","CHANGELISTS"===a.type)("ngIfElse",b);B(9);D("ngIf",!a.readonly&&"REPEATED_ENUM"!==a.type)}},OEa=function(a,b){a&1&&(G(0,"div",16),O(1,NEa,13,3,"div",17),H());a&2&&(a=b.index,b=M(),B(1),D("ngIf",b.showingAll||a<b.defaultLineCount||!!b.values&&b.values.length===b.defaultLineCount+1))},PEa=function(a){if(a&1){var b=x();G(0,"div",40,41);K("click",function(c){z(b);var d=M();return A(kp(d,!1,c))})("keydown.enter",function(c){z(b);var d=M();return A(kp(d,
!1,c))})("keydown.space",function(c){z(b);var d=M();return A(kp(d,!1,c))});P(2," (show fewer) ");H()}a&2&&(a=M(),qf("aria-label","Show at most ",a.defaultLineCount," ",a.title," items"),Ef("matTooltip","Show a truncated list of at most ",a.defaultLineCount," items"))},QEa=function(a){if(a&1){var b=x();G(0,"div")(1,"div",42);P(2);G(3,"span",43,44);K("click",function(c){z(b);var d=M();return A(kp(d,!0,c))})("keydown.enter",function(c){z(b);var d=M();return A(kp(d,!0,c))})("keydown.space",function(c){z(b);
var d=M();return A(kp(d,!0,c))});P(5," (show all) ");H()()()}a&2&&(a=M(),B(2),If(" ... and ",a.values.length-a.defaultLineCount," more "),B(1),qf("aria-label","Show all ",null==a.values?null:a.values.length," ",a.title," items"),Ef("matTooltip","Show all ",null==a.values?null:a.values.length," items in the list"))},REa=function(a){a&1&&(G(0,"div"),P(1,"--"),H())},UEa=function(a){if(a&1){var b=x();G(0,"button",49);K("menuOpened",function(){z(b);var d=M(2);SEa(d);d.enumPendingValues=new Set(d.values||
[]);return A()})("menuClosed",function(){z(b);var d=M(2);return A(TEa(d))});P(1,"Edit ");H()}if(a&2){a=M(2);var c=Hf(15);pf("aria-label","Add item to ",a.title,"");D("matMenuTriggerFor",c)}},VEa=function(a){a&1&&(G(0,"button",50),P(1,"Add "),H());if(a&2){a=M(2);var b=Hf(20);pf("aria-label","Add item to ",a.title,"");D("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},WEa=function(a){a&1&&(G(0,"button",51),P(1,"Add "),H());if(a&2){a=M(2);var b=Hf(18);pf("aria-label","Add item to ",
a.title,"");D("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},XEa=function(a){a&1&&(xf(0,45),O(1,UEa,2,2,"button",46),O(2,VEa,2,3,"button",47),O(3,WEa,2,3,"button",48),yf());a&2&&(a=M(),D("ngSwitch",a.type),B(1),D("ngSwitchCase","REPEATED_ENUM"),B(1),D("ngSwitchCase","REPEATED_DATE"))},YEa=function(a){a&1&&Df(0,1,["*ngIf","!readonly"])},ZEa=function(a,b){if(a&1){var c=x();G(0,"button",53);K("click",function(d){var e=z(c).$implicit,f=M(2);e=e.value;f.enumPendingValues.has(e)?
f.enumPendingValues.delete(e):f.enumPendingValues.add(e);null==d||d.stopPropagation();return A()});G(1,"span",54);J(2,"mat-icon",55);H();P(3);H()}a&2&&(a=b.$implicit,b=M(2),sf("b-menu-item-checked",b.enumPendingValues.has(a.value)),D("disabled",b.listFieldDisabled),nf("aria-label",a.displayText),B(3),If(" ",a.displayText," "))},$Ea=function(a){a&1&&O(0,ZEa,4,5,"button",52);a&2&&(a=M(),D("ngForOf",a.sortedEnumChoices)("ngForTrackBy",a.trackByIndex))},aFa=function(a){a&1&&J(0,"input",65);a&2&&(a=M(2),
pf("aria-label","Addition to ",a.title,""),D("bContactAutocomplete","MULTI"))},bFa=function(a){a&1&&J(0,"input",66);a&2&&(a=M(2),pf("aria-label","Addition to ",a.title,""),D("type","REPEATED_NUMERIC"===a.type?"number":"text"))},dFa=function(a){if(a&1){var b=x();G(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",56,57);K("ngSubmit",function(){z(b);var d=Hf(3),e=Hf(4),f=M();if(d.valid){var h=d.value.input;null==d||d.reset();var k;null==(k=e.querySelector("input"))||k.focus();f.addItems(h)}return A()});
O(5,aFa,1,2,"input",58);O(6,bFa,1,2,"input",59);G(7,"div",60)(8,"button",61);J(9,"mat-icon",62);H();G(10,"button",63);K("click",function(){z(b);var d=M();return A(cFa(d,!0))});J(11,"mat-icon",64);H()()()()()}if(a&2){var c=Hf(3);a=M();B(5);D("ngIf",a.isUser);B(1);D("ngIf",!a.isUser);B(2);pf("aria-label","Apply addition to ",a.title,"");D("disabled",!c.valid||a.listFieldDisabled);B(2);pf("aria-label","Discard addition to ",a.title,"")}},eFa=function(a){if(a&1){var b=x();G(0,"b-date-time-picker-content",
67);K("dateChange",function(c){z(b);var d=M();return A(c&&d.addItems(c))})("cancelClicked",function(){z(b);var c=M();return A(cFa(c,!1))});H()}a&2&&D("required",!0)("renderPanel",!1)},lp=function(a,b){return{originX:a,originY:b}},mp=function(a,b){return{overlayX:a,overlayY:b}},hFa=function(a){if(a&1){var b=x();G(0,"b-edit-field",3);K("valueChange",function(e){z(b);var f=M(2);return A(f.save.emit(e))});H()}if(a&2){a=M().ngIf;var c=M(),d;D("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",
c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",!c.field.required)("value",fFa(c))("displayValueOverride",c.getDisplayValue())("choices",null!==(d=a.choices)&&void 0!==d?d:Mf(11,gFa))("showEnumTitle",!0)("disabled",c.disabled)}},jFa=function(a){if(a&1){var b=x();G(0,"b-list-field",4);K("valuesChange",function(d){z(b);var e=M(2);return A(e.save.emit(d.values))});H()}if(a&2){a=M().ngIf;var c=M();D("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("tooltip",
c.getTooltip())("values",iFa(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},kFa=function(a,b){a&1&&(xf(0),O(1,hFa,1,12,"b-edit-field",1),O(2,jFa,1,9,"b-list-field",2),yf());a&2&&(a=b.ngIf,B(1),D("ngIf",!a.isRepeated()),B(1),D("ngIf",a.isRepeated()))},lFa=function(a){a&1&&(xf(0),J(1,"mat-icon",9),yf())},mFa=function(a){if(a&1){var b=x();xf(0);G(1,"button",10);K("mousedown",function(c){z(b);var d=M();return A(d.back(c))});J(2,"mat-icon",11);H();
yf()}},nFa=function(a){if(a&1){var b=x();xf(0);G(1,"button",12);K("mousedown",function(c){z(b);var d=M();return A(d.expand(d.componentOption,c))});J(2,"mat-icon",13);H();yf()}a&2&&(a=M(),B(1),D("matTooltip","View child components of "+a.componentOption.name),nf("aria-label","View child components of "+a.componentOption.name))},oFa=function(a){if(a&1){var b=x();xf(0);G(1,"a",17);K("mousedown",function(d){z(b);var e=M().$implicit;M(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();
return A()});Q(2,"boldPrefixMatches");Q(3,"toString");H();yf()}if(a&2){a=M().$implicit;var c=M(2);B(1);D("innerHtml",Rf(2,1,R(3,4,a.name),c.query),Jd)}},pFa=function(a){a&1&&P(0);a&2&&(a=M().$implicit,If(" ",a.name," "))},qFa=function(a){a&1&&(xf(0),P(1,"\u00a0>\u00a0"),yf())},rFa=function(a,b){a&1&&(xf(0),O(1,oFa,4,6,"ng-container",5),O(2,pFa,1,1,"ng-template",null,15,gg),O(4,qFa,2,0,"ng-container",16),yf());if(a&2){a=b.$implicit;b=b.last;var c=Hf(3);B(1);D("ngIf",a.name!=a.id)("ngIfElse",c);B(3);
D("ngIf",!b)}},sFa=function(a){a&1&&(xf(0),O(1,rFa,5,3,"ng-container",14),yf());a&2&&(a=M(),B(1),D("ngForOf",a.componentOption.componentPath))},tFa=function(a,b){if(a&1){var c=x();xf(0);G(1,"a",18);K("mousedown",function(d){var e=z(c).ngIf;M(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return A()});P(2);H();yf()}a&2&&(a=b.ngIf,B(2),If(" ",a.name," "))},uFa=function(a){a&1&&O(0,tFa,3,1,"ng-container",16);a&2&&(a=M(),D("ngIf",a.componentOption.componentPath[a.componentOption.componentPath.length-
1]))},vFa=function(a){a&1&&(G(0,"span",19),P(1," [Archived] "),H())},wFa=function(a){a&1&&J(0,"img",5);a&2&&(a=M(),nf("src",a.getLogoUrl(),Kd))},xFa=function(a){a&1&&(G(0,"span",9),P(1,"no components"),H())},yFa=function(a){a&1&&(G(0,"div",6),J(1,"div",7),Q(2,"boldPrefixMatches"),O(3,xFa,2,0,"span",8),H());a&2&&(a=M(),B(1),D("innerHtml",Rf(2,2,a.teamOption.name,a.query),Jd),B(2),D("ngIf",a.hasNoComponent))},zFa=function(a){if(a&1){var b=x();xf(0);G(1,"a",15);K("mousedown",function(c){z(b);var d=M(2).index,
e=M(2);d=null==e.teamOption.pathIds?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);return A()});P(2);H();yf()}a&2&&(a=M(2).$implicit,B(2),Jf(a))},AFa=function(a){a&1&&P(0);a&2&&(a=M(2).$implicit,Jf(a))},BFa=function(a){a&1&&(xf(0),O(1,zFa,3,1,"ng-container",12),O(2,AFa,1,1,"ng-template",null,14,gg),xf(4),P(5," \u00b7 "),yf()());if(a&2){var b=Hf(3);a=M(3);B(1);D("ngIf",a.allowSegmentSelection)("ngIfElse",b)}},CFa=function(a){a&1&&(xf(0),G(1,"strong",17),
P(2),H(),yf());a&2&&(a=M(2).$implicit,B(2),Jf(a))},DFa=function(a){a&1&&P(0);a&2&&(a=M(2).$implicit,Jf(a))},EFa=function(a){a&1&&(O(0,CFa,3,1,"ng-container",12),O(1,DFa,1,1,"ng-template",null,16,gg));if(a&2){var b=Hf(2);a=M(3);D("ngIf",a.compact)("ngIfElse",b)}},FFa=function(a,b){a&1&&(xf(0),O(1,BFa,6,2,"ng-container",12),O(2,EFa,3,2,"ng-template",null,13,gg),yf());if(a&2){a=b.last;var c=Hf(3);B(1);D("ngIf",!a)("ngIfElse",c)}},GFa=function(a){a&1&&(G(0,"div",10),O(1,FFa,4,2,"ng-container",11),H());
a&2&&(a=M(),B(1),D("ngForOf",a.teamOption.pathNames))},HFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(),pathIds:a.getPathIdsList(),expanded:!1}},IFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),expanded:!1}},np=function(a){var b,c,d=null!=(c=null==(b=a.componentPathInfo)?void 0:b.componentPathId)?c:[],e,f,h=null!=(f=null==(e=a.componentPathInfo)?void 0:e.componentPathName)?
f:[];b=d.map(function(k,q){return{id:k,name:h[q],pathText:h.slice(0,q+1).join(" > ")}});return{type:"component",id:a.componentId,name:a.name,description:a.description,accessLimit:a.accessLimit,archived:a.archived,componentPath:b}},JFa=function(a){return new Map([].concat(u(a.entries())).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return[b,c.map(IFa)]}))},KFa=function(){var a=t(ii),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},LFa=function(a){if(a&
1){var b=x();G(0,"button",9);K("mousedown",function(c){z(b);M().clearQuery();return A(op(c))});J(1,"mat-icon",10);H()}},MFa=function(a){a&1&&(G(0,"div",13),P(1," Checking for admin access... "),H())},NFa=function(a){a&1&&(G(0,"div",15),P(1," You do not have admin access to this component. "),G(2,"a",16),P(3,"View component admins"),H()());a&2&&(a=M(3),B(2),D("href",a.paths.manageComponent(a.selectedComponent.componentId,"access"),Kd))},OFa=function(a){a&1&&O(0,NFa,4,1,"div",14);a&2&&(a=M(2),D("ngIf",
!a.hasAccess&&a.selectedComponent))},PFa=function(a){a&1&&(G(0,"div"),O(1,MFa,2,0,"div",11),O(2,OFa,1,1,"ng-template",null,12,gg),H());if(a&2){var b=Hf(3);a=M();B(1);D("ngIf",a.checkingAccess)("ngIfElse",b)}},QFa=function(a){a&1&&J(0,"mat-progress-bar",24)},RFa=function(a){a&1&&(xf(0),P(1,"s"),yf())},TFa=function(a,b){if(a&1){var c=x();xf(0);G(1,"div",30);K("mousedown",function(e){var f=z(c).$implicit,h=M(5);SFa(h.searchState,f);return A(op(e))});G(2,"team-row",31);K("selectTeamId",function(e){z(c);
var f=M(5);return A(pp(f.searchState,e))});H()();yf()}if(a&2){a=b.$implicit;b=M(5);var d=Hf(3);B(1);D("data",a);B(1);D("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},UFa=function(a){a&1&&(G(0,"div",27)(1,"div",28),P(2," Filter components by my teams "),G(3,"span"),P(4),O(5,RFa,2,0,"ng-container",5),H()(),O(6,TFa,3,4,"ng-container",29),J(7,"mat-divider"),H());a&2&&(a=M().ngIf,B(4),If("",a.length," team"),B(1),D("ngIf",1<a.length),B(1),D("ngForOf",a))},VFa=function(a,
b){a&1&&(xf(0),O(1,UFa,8,3,"div",26),yf());a&2&&(a=b.ngIf,B(1),D("ngIf",a.length))},WFa=function(a){a&1&&zf(0)},YFa=function(a){a&1&&(xf(0),O(1,VFa,2,1,"ng-container",5),Q(2,"async"),O(3,WFa,1,0,"ng-container",25),yf());if(a&2){a=M(2);var b=Hf(12);B(1);D("ngIf",R(2,3,a.searchState.myTeams$));B(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Nf(5,XFa,a.searchState.recentComponents))}},ZFa=function(a){a&1&&(xf(0),P(1,"s"),yf())},$Fa=function(a){a&1&&zf(0)},cGa=function(a,b){a&1&&(xf(0),O(1,$Fa,
1,0,"ng-container",25),yf());if(a&2){a=b.$implicit;b=b.index;M(5);var c=Hf(10);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Of(4,aGa,a,Nf(2,bGa,b)))}},dGa=function(a){if(a&1){var b=x();G(0,"button",33);K("mousedown",function(){z(b);var c=M(5);return A(c.searchState.showAllTeams$.next(!0))});J(1,"mat-icon",34);P(2," Show all teams ");H()}},eGa=function(a,b){a&1&&(G(0,"div",27)(1,"div",28),P(2," Filter components by teams "),G(3,"span"),P(4),O(5,ZFa,2,0,"ng-container",5),H()(),O(6,cGa,2,7,
"ng-container",29),Q(7,"async"),O(8,dGa,3,0,"button",32),Q(9,"async"),J(10,"mat-divider"),H());a&2&&(a=b.ngIf,b=M(4),B(4),If("",a," team"),B(1),D("ngIf",1<a),B(1),D("ngForOf",R(7,4,b.searchState.filteredTeamOptions$)),B(2),D("ngIf",R(9,6,b.searchState.hasHiddenTeams$)))},fGa=function(a,b){a&1&&(xf(0),O(1,eGa,11,8,"div",26),yf());a&2&&(a=b.ngIf,B(1),D("ngIf",a.length))},gGa=function(a){a&1&&zf(0)},iGa=function(a){a&1&&(xf(0),O(1,fGa,2,1,"ng-container",5),Q(2,"async"),O(3,gGa,1,0,"ng-container",25),
yf());if(a&2){a=M(2);var b=Hf(12);B(1);D("ngIf",R(2,3,a.searchState.teamOptions$));B(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Nf(5,hGa,a.searchState.componentOptions))}},jGa=function(a){a&1&&zf(0)},lGa=function(a,b){a&1&&(xf(0),O(1,jGa,1,0,"ng-container",25),yf());if(a&2){a=b.$implicit;b=b.index;M(7);var c=Hf(10);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Of(4,aGa,a,Nf(2,kGa,b)))}},mGa=function(a){a&1&&(G(0,"div",42),O(1,lGa,2,7,"ng-container",29),H());a&2&&(a=M(2).ngIf,B(1),
D("ngForOf",a))},pGa=function(a){if(a&1){var b=x();xf(0);O(1,mGa,2,1,"div",41);G(2,"button",33);K("mousedown",function(c){z(b);var d=M(5),e=d.searchState.teamScope$.value;e.expanded?nGa(d.searchState,e):oGa(d.searchState,e);return A(op(c))});J(3,"mat-icon",34);P(4);H();yf()}a&2&&(a=M(5),B(1),D("ngIf",a.searchState.teamScope$.value.expanded),B(2),sf("expanded",a.searchState.teamScope$.value.expanded),B(1),If(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},qGa=function(a,
b){a&1&&(xf(0),O(1,pGa,5,4,"ng-container",5),yf());a&2&&(a=b.ngIf,B(1),D("ngIf",a.length))},sGa=function(a){if(a&1){var b=x();G(0,"div",36)(1,"div",28);P(2," Filtering by team: ");H();G(3,"div",37)(4,"team-row",38);K("selectTeamId",function(d){z(b);var e=M(3);return A(pp(e.searchState,d))});H();G(5,"button",39);K("mousedown",function(d){z(b);var e=M(3);qp(e.searchState);return A(op(d))});J(6,"mat-icon",40);H()();O(7,qGa,2,1,"ng-container",5);H()}if(a&2){a=M(3);var c=Hf(3);B(3);D("data",a.searchState.teamScope$.value)("listOrder",
Mf(7,rGa));B(1);D("teamOption",a.searchState.teamScope$.value)("query",c.value)("compact",!0)("allowSegmentSelection",!0);B(3);D("ngIf",a.searchState.getChildTeams(a.searchState.teamScope$.value.id))}},tGa=function(a){a&1&&zf(0)},vGa=function(a){a&1&&(xf(0),O(1,sGa,8,8,"div",35),O(2,tGa,1,0,"ng-container",25),yf());if(a&2){a=M(2);var b=Hf(12);B(1);D("ngIf",a.searchState.teamScope$.value);B(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Of(3,uGa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},
yGa=function(a){if(a&1){var b=x();G(0,"div",44)(1,"div",45);P(2,"Component Tree Browser");H();G(3,"component-row",46);K("goBack",function(){z(b);var c=M(3);return A(wGa(c.searchState))})("selectComponentId",function(c){z(b);var d=M(3);return A(xGa(d.searchState,c))});H()()}a&2&&(a=M(3),B(3),D("componentOption",a.searchState.componentScope))},zGa=function(a){a&1&&zf(0)},BGa=function(a){a&1&&(xf(0),O(1,yGa,4,1,"div",43),O(2,zGa,1,0,"ng-container",25),yf());if(a&2){a=M(2);var b=Hf(12);B(1);D("ngIf",
a.searchState.componentScope);B(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Nf(3,AGa,a.searchState.componentOptions))}},CGa=function(a){if(a&1){var b=x();G(0,"div",17,18);K("mousedown",function(c){z(b);M();return A(op(c))});G(2,"div",19);O(3,QFa,1,0,"mat-progress-bar",20);H();G(4,"div",21);xf(5,22);Q(6,"async");O(7,YFa,4,7,"ng-container",23);O(8,iGa,4,7,"ng-container",23);O(9,vGa,3,6,"ng-container",23);O(10,BGa,3,5,"ng-container",23);yf();H()()}a&2&&(a=M(),B(3),D("ngIf",a.isLoading()),B(2),
D("ngSwitch",R(6,6,a.searchState.state$)),B(2),D("ngSwitchCase","default"),B(1),D("ngSwitchCase","global"),B(1),D("ngSwitchCase","team_scope"),B(1),D("ngSwitchCase","component_scope"))},DGa=function(a){if(a&1){var b=x();G(0,"button",50);K("mousedown",function(c){z(b);var d=M().team,e=M();d.expanded?nGa(e.searchState,d):oGa(e.searchState,d);return A(op(c))});J(1,"mat-icon",51);H()}a&2&&(a=M().team,B(1),sf("expanded",a.expanded))},EGa=function(a){a&1&&zf(0)},GGa=function(a,b){a&1&&(xf(0),O(1,EGa,1,
0,"ng-container",25),yf());if(a&2){a=b.$implicit;b=b.index;var c=M(2),d=c.level;c=c.order;M();var e=Hf(10);B(1);D("ngTemplateOutlet",e)("ngTemplateOutletContext",Pf(FGa,a,d+1,c.concat(b)))}},HGa=function(a){a&1&&(xf(0),O(1,GGa,2,6,"ng-container",29),yf());if(a&2){a=M().team;var b=M();B(1);D("ngForOf",b.searchState.getChildTeams(a.id))}},IGa=function(a,b){if(a&1){var c=x();G(0,"div",47);K("mousedown",function(h){var k=z(c).team,q=M();SFa(q.searchState,k);return A(op(h))});G(1,"div",48);O(2,DGa,2,2,
"button",49);G(3,"team-row",31);K("selectTeamId",function(h){z(c);var k=M();return A(pp(k.searchState,h))});H()()();O(4,HGa,2,1,"ng-container",5)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=M(),f=Hf(3);D("listOrder",b)("data",a);B(1);rf("margin-left",28*d,"px");B(1);D("ngIf",e.searchState.getChildTeams(a.id).length);B(1);sf("indent",!e.searchState.getChildTeams(a.id).length);D("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B(1);D("ngIf",a.expanded)}},JGa=
function(a){a&1&&(xf(0),P(1,"s"),yf())},LGa=function(a,b){if(a&1){var c=x();G(0,"div",56);K("mousedown",function(e){var f=z(c).$implicit,h=M(3);KGa(h.searchState,f.id);return A(op(e))});G(1,"component-row",57);K("selectComponentId",function(e){z(c);var f=M(3);return A(KGa(f.searchState,e))})("expandComponent",function(e){z(c);var f=M(3);return A(f.searchState.expandComponent(e))});H()()}if(a&2){a=b.$implicit;b=M(2).mode;M();var d=Hf(3);D("data",a);B(1);D("componentOption",a)("query",d.value)("mode",
b)}},MGa=function(a,b){a&1&&(G(0,"div",54)(1,"div",28),P(2),G(3,"span"),P(4),O(5,JGa,2,0,"ng-container",5),H()(),O(6,LGa,2,4,"div",55),H());if(a&2){a=b.ngIf;var c=M();b=c.mode;c=c.$implicit;B(2);If(" ","recent"===b?"Select recent component":"Select component"," ");B(2);If("",a," component");B(1);D("ngIf",1<a);B(1);D("ngForOf",c)}},NGa=function(a){a&1&&(xf(0),P(1," No recent components "),yf())},OGa=function(a){a&1&&(xf(0),P(1," No child components "),yf())},PGa=function(a){a&1&&(xf(0),P(1),J(2,"mat-icon",
61),P(3," above ("),G(4,"a",62),P(5,"learn more "),J(6,"mat-icon",63),H(),P(7," about team associations)"),yf());a&2&&(a=M(4).teamScope,B(1),If(" for ",a.name,". Remove the team filter by clicking on the "))},QGa=function(a){a&1&&(xf(0),P(1," No components found "),O(2,PGa,8,1,"ng-container",5),yf());a&2&&(a=M(3).teamScope,B(2),D("ngIf",a))},RGa=function(a){a&1&&(G(0,"div",59),xf(1,22),O(2,NGa,2,0,"ng-container",23),O(3,OGa,2,0,"ng-container",23),O(4,QGa,3,1,"ng-container",60),yf(),H());a&2&&(a=M(2).mode,
B(1),D("ngSwitch",a),B(1),D("ngSwitchCase","recent"),B(1),D("ngSwitchCase","leaf"))},SGa=function(a){a&1&&O(0,RGa,5,3,"div",58);a&2&&(a=M(2),D("ngIf",!(a.componentLoading||a.searchState.componentsLoading)))},TGa=function(a,b){a&1&&(O(0,MGa,7,4,"div",52),O(1,SGa,1,1,"ng-template",null,53,gg));if(a&2){a=b.$implicit;var c=Hf(2);D("ngIf",a.length)("ngIfElse",c)}},UGa=function(a,b){b=r([a.listOrder,b.listOrder]);a=b.next().value;b=b.next().value;for(var c=0;c<Math.min(a.length,b.length);c++)if(a[c]!==
b[c])return a[c]-b[c];return a.length-b.length},VGa=function(a){a&1&&(G(0,"div"),P(1," Loading custom fields... "),H())},WGa=function(a){a&1&&(G(0,"div"),P(1),H());a&2&&(a=M(2),B(1),If(" There are no custom fields in component ",a.selectedComponent.name,". "))},XGa=function(a,b){a&1&&(G(0,"mat-option",9),P(1),H());a&2&&(a=b.$implicit,D("value",a),B(1),If(" ",a.name," "))},YGa=function(a){if(a&1){var b=x();G(0,"div")(1,"mat-form-field",6)(2,"mat-label");P(3,"Custom field");H();G(4,"mat-select",7);
K("selectionChange",function(c){z(b);var d=M(2);return A(d.fieldSelected.emit(c.value))});O(5,XGa,2,2,"mat-option",8);H()()()}a&2&&(a=M(2),B(5),D("ngForOf",a.customFields))},ZGa=function(a){a&1&&(G(0,"div",4),O(1,VGa,2,0,"div",5),O(2,WGa,2,1,"div",5),O(3,YGa,6,1,"div",5),H());a&2&&(a=M(),B(1),D("ngIf",null==a.customFields),B(1),D("ngIf",a.customFields&&!a.customFields.length),B(1),D("ngIf",null==a.customFields?null:a.customFields.length))},$Ga=function(a){a&1&&zf(0)},aHa=function(){},bHa=function(a){a&
1&&(xf(0),P(1),yf());a&2&&(a=M().value,B(1),Jf(a.textValue))},cHa=function(a){a&1&&(xf(0),J(1,"b-formatted-date-time",5),yf());if(a&2){a=M().value;var b=M();B(1);D("date",b.toDate(a.dateValue))}},dHa=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M().value,B(1),Jf(a.enumValue))},eHa=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M().value,B(1),Jf(a.numericValue))},fHa=function(a,b){a&1&&(xf(0),P(1),yf());a&2&&(a=b.$implicit,b=b.last,B(1),Kf("",a,"",b?"":", ",""))},gHa=function(a){a&1&&(xf(0),O(1,fHa,2,2,
"ng-container",6),yf());a&2&&(a=M().value,B(1),D("ngForOf",a.repeatedTextValue.values))},hHa=function(a,b){a&1&&(xf(0),J(1,"b-formatted-date-time",5),P(2),yf());if(a&2){a=b.$implicit;b=b.last;var c=M(3);B(1);D("date",c.toDate(a));B(1);Jf(b?"":", ")}},iHa=function(a){a&1&&(xf(0),O(1,hHa,3,2,"ng-container",6),yf());a&2&&(a=M().value,B(1),D("ngForOf",a.repeatedDateValue.values))},jHa=function(a,b){a&1&&(xf(0),P(1),yf());a&2&&(a=b.$implicit,b=b.last,B(1),Kf("",a,"",b?"":", ",""))},kHa=function(a){a&1&&
(xf(0),O(1,jHa,2,2,"ng-container",6),yf());a&2&&(a=M().value,B(1),D("ngForOf",a.repeatedEnumValue.values))},lHa=function(a,b){a&1&&(xf(0),P(1),yf());a&2&&(a=b.$implicit,b=b.last,B(1),Kf("",a,"",b?"":", ",""))},mHa=function(a){a&1&&(xf(0),O(1,lHa,2,2,"ng-container",6),yf());a&2&&(a=M().value,B(1),D("ngForOf",a.repeatedNumericValue.values))},nHa=function(a,b){a&1&&(O(0,bHa,2,1,"ng-container",4),O(1,cHa,2,1,"ng-container",4),O(2,dHa,2,1,"ng-container",4),O(3,eHa,2,1,"ng-container",4),O(4,gHa,2,1,"ng-container",
4),O(5,iHa,2,1,"ng-container",4),O(6,kHa,2,1,"ng-container",4),O(7,mHa,2,1,"ng-container",4));a&2&&(a=b.value,b=M(),D("ngIf",null!=a.textValue),B(1),D("ngIf",b.isNonemptyJsonDateValue(a.dateValue)),B(1),D("ngIf",null!=a.enumValue),B(1),D("ngIf",null!=a.numericValue),B(1),D("ngIf",null!=a.repeatedTextValue),B(1),D("ngIf",null!=a.repeatedDateValue),B(1),D("ngIf",null!=a.repeatedEnumValue),B(1),D("ngIf",null!=a.repeatedNumericValue))},rp=function(a){var b=void 0===b?oHa:b;var c=Ea(a),d=function(f){f=
r(f);f.next();f=Ce(f);return b(c,f)},e=function(f){var h=r(f);f=h.next().value;h=Ce(h);return a.apply(f,h)};return function(){var f=oc.apply(0,arguments),h=this||ba,k=pHa.get(h);k||(k={},pHa.set(h,k));return qHa(k,[this].concat(u(f)),e,d)}},sp=function(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf(":");0>e||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b},tp=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},rHa=
function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},tHa=function(a){a=gh(a);for(var b=0;b<sHa.length;++b){var c=sHa[b],d=tp(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,rHa(a,c))}return a},uHa=function(a){a=gh(a);rHa(a,"X-Goog-Upload-Status");return a},vHa=function(a){a&1&&(G(0,"span"),P(1),Q(2,"humanFileSize"),Q(3,"humanFileSize"),H());if(a&2){a=M().$implicit;var b;B(1);Kf(" ",R(2,2,a.transferredBytes)," of ",R(3,4,null!==(b=a.size)&&void 0!==b?b:0)," ")}},wHa=function(a){a&
1&&(G(0,"span",11),P(1),H());a&2&&(a=M().$implicit,B(1),If(" ",a.errorMessage," "))},xHa=function(a){a&1&&(G(0,"span",11),P(1),Q(2,"humanFileSize"),H());if(a&2){a=M().$implicit;var b;B(1);If(" ",R(2,1,null!==(b=a.size)&&void 0!==b?b:0)," ")}},zHa=function(a,b){if(a&1){var c=x();G(0,"div",3)(1,"div",4);J(2,"mat-icon",5);G(3,"span",6);P(4);H();G(5,"span",7);O(6,vHa,4,6,"span",8);O(7,wHa,2,1,"span",9);O(8,xHa,3,3,"span",9);H()();G(9,"button",10);K("click",function(){var d=z(c).$implicit,e=M(2);return A(e.cancel(d))});
H()()}a&2&&(a=b.$implicit,b=M(2),D("ngClass",Nf(8,yHa,a.state===b.uploadStates.ERROR)),B(3),D("matTooltip",a.name),B(1),Jf(a.name),B(2),D("ngIf",a.state===b.uploadStates.UPLOADING),B(1),D("ngIf",a.state===b.uploadStates.ERROR),B(1),D("ngIf",a.state===b.uploadStates.COMPLETE),B(1),D("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),nf("aria-label","Remove attachment"+a.name))},AHa=function(a){a&1&&(G(0,"div",1),O(1,zHa,10,10,"div",2),H());a&2&&(a=M(),B(1),D("ngForOf",
a.uploads))},up=function(a){this.action=a;this.wfv=!1},CHa=function(){var a=new vp,b=new wp;b.setParentId("root");var c=BHa();Ab(b,3,c);ql(b,4,1);Ab(a,3,b);a.setSourceId(2);a.setName("My Drive");return a},DHa=function(){var a=new vp,b=new wp;ko(b,5,!0);var c=BHa();c.setType(7);c.setDirection(2);Ab(b,3,c);ql(b,4,1);Ab(a,3,b);a.setSourceId(2);a.setName("Shared with me");return a},EHa=function(){var a=new vp,b=new wp,c=new xp;c.setType(10);c.setDirection(2);Ab(b,3,c);ql(b,4,1);Ab(a,3,b);a.setSourceId(2);
a.setName("Recent");return a},FHa=function(){var a=new vp,b=new wp;b.setStarred(!0);var c=BHa();Ab(b,3,c);ql(b,4,1);Ab(a,3,b);a.setSourceId(2);a.setName("Starred");return a},GHa=function(){var a=new vp,b=new wp;ko(b,11,!0);Ab(a,3,b);a.setSourceId(2);a.setName("Shared drives");return a},BHa=function(){var a=new xp;a.setType(4);a.setDirection(1);return a},JHa=function(){var a=new yp;a.addSource(HHa());a.addSource(IHa());return a},HHa=function(){var a=new vp,b=new zp;b.setViewMode(1);ql(b,2,1);ko(b,
5,!0);ko(b,6,!1);Ab(a,6,b);a.setSourceId(3);a.setName("Photos");return a},IHa=function(){var a=new vp,b=new zp;b.setViewMode(2);ko(b,5,!0);ko(b,6,!1);Ab(a,6,b);a.setSourceId(3);a.setName("Albums");return a},KHa=function(){var a=new vp,b=new zp;b.setViewMode(1);ql(b,2,1);ko(b,5,!1);ko(b,6,!0);Ab(a,6,b);a.setSourceId(3);a.setName("Videos");return a},LHa=function(a,b){up.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},MHa=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},
NHa=function(a,b){var c=b&&b.getWindow()||window;if(MHa(b))a();else if(Ap)Ap.push(a);else var d=Ap=[a],e=c.setInterval(function(){if(MHa(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();Ap=null}},100)},PHa=function(a,b){var c;a:{for(c=b.target;c;){if(1==c.nodeType){var d=Bp(c,"overflowY");if("auto"==d||"scroll"==d)break a}c=c.parentNode}c=null}(!c||!OHa(a,c)||c.scrollHeight==c.clientHeight||0<b.deltaY&&1>=Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))||0>b.deltaY&&0==c.scrollTop)&&
b.stopPropagation()},Cp=function(a,b){if(b)if(b?(b=p(b,2),b=null===b||void 0===b?null:Zg(b)):b=null,b){if(void 0!==a.tagName){if("script"===a.tagName.toLowerCase())throw Error("$a");if("style"===a.tagName.toLowerCase())throw Error("ab");}a.innerHTML=qh(b)}else QHa(a);else QHa(a)},QHa=function(a){for(;a.lastChild;)a.lastChild.remove()},Dp=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},RHa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},SHa=
function(a){if(a&1){var b=x();G(0,"div",5);K("clickOutside",function(){z(b);var c=M();return A(c.hide())});P(1);G(2,"button",6);K("click",function(){z(b);var c=M();return A(c.copyToClipboard())});J(3,"mat-icon",7);H()()}a&2&&(a=M(),B(1),If(" Link may be malformed: ",a.originalHref," "))},THa=function(a){a&1&&(G(0,"b-glue"),J(1,"mat-icon",5),H())},XHa=function(a){if(a&1){var b=x();G(0,"div",6);K("clickOutside",function(){z(b);var c=M();return A(c.hide())});G(1,"span",7)(2,"a",8);K("click",function(c){z(b);
var d=M();return A(UHa(d,c))})("keydown",function(c){z(b);var d=M();return A(VHa(d,c))});P(3);H()();G(4,"button",9);K("keydown.Tab",function(c){z(b);var d=M();return A(WHa(d,c))})("click",function(){z(b);var c=M();return A(c.copyToClipboard())});J(5,"mat-icon",10);H()()}a&2&&(a=M(),B(2),D("href",a.originalHref,Kd),B(1),Jf(a.originalHref))},YHa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},ZHa=function(a,b){a&1&&(xf(0),J(1,"b-plain-format-section",2),yf());a&2&&(a=b.$implicit,B(1),D("section",
a))},$Ha=function(a){a&1&&J(0,"b-plain-format-quoted-section",1);a&2&&(a=M(),D("section",a.section))},aIa=function(a){a&1&&J(0,"b-plain-format-unquoted-section",1);a&2&&(a=M(),D("section",a.section))},cIa=function(a){if(a&1){var b=x();G(0,"a",4);K("click",function(){z(b);var c=M();c.showQuote=!0;bIa(c);return A()});P(1," - Show quoted text - ");H()}a&2&&(a=M(),nf("aria-controls",a.childId))},dIa=function(a){if(a&1){var b=x();G(0,"a",5);K("click",function(){z(b);var c=M();c.showQuote=!1;bIa(c);return A()});
P(1," - Hide quoted text - ");H()}a&2&&(a=M(),nf("aria-controls",a.childId))},eIa=function(a,b){a&1&&(xf(0),J(1,"b-literal-format-presenter",1),yf());a&2&&(a=b.ngIf,B(1),D("content",a))},fIa=function(a,b){a&1&&(xf(0),J(1,"b-markdown-format-presenter",1),yf());a&2&&(a=b.ngIf,B(1),D("content",a))},gIa=function(a,b){a&1&&(xf(0),J(1,"b-plain-format-presenter",1),yf());a&2&&(a=b.ngIf,B(1),D("content",a))},hIa=function(a){switch(a.formattingMode){case 3:return(0,T.of)(Rsa(a.comment));case 2:var b=new jn,
c=new Ep,d=Csa(ah(""));c.setContent(d);b.setMarkdownFormat(c);return(0,T.of)(b);case void 0:case 1:case 0:return b=new jn,c=new Gp,d=new Hp,a=Csa(ah(a.comment)),d.setContent(a),c.addPlainSection(d),b.setPlainFormat(c),(0,T.of)(b);default:return bh(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},iIa=function(a,b){a&1&&(xf(0),G(1,"div",1),J(2,"b-formatted-comment-presenter",2),H(),yf());a&2&&(a=b.$implicit,b=M(),B(1),sf("invisible",""===(b.comment||"").trim())("error",a.isFallback),
B(1),D("formattedComment",a.formattedComment))},jIa=function(a){a&1&&(G(0,"a",2),J(1,"mat-icon",3),H());a&2&&(a=M(),D("href",a.mdHelpLink,Kd)("disableRipple",!0))},kIa=function(a){a&1&&J(0,"b-formatted-comment-presenter",4);a&2&&(a=M(),D("formattedComment",a.note.formattedComment))},lIa=function(a){a&1&&J(0,"b-live-preview",5);a&2&&(a=M(),D("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode)("idPrefix",a.idPrefix))},mIa=
function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}},nIa=function(){},oIa=function(a){a&1&&Df(0)},pIa=function(){},qIa=function(a){a&1&&O(0,pIa,0,0,"ng-template",10);a&2&&(a=M().$implicit,D("cdkPortalOutlet",a.templateLabel))},rIa=function(a){a&1&&P(0);a&2&&(a=M().$implicit,Jf(a.textLabel))},sIa=function(a,b){if(a&1){var c=x();G(0,"div",6);K("click",function(){var f=z(c),h=f.$implicit;f=f.index;var k=M(),q=Hf(1);return A(k._handleClick(h,q,
f))})("cdkFocusChange",function(f){var h=z(c).index,k=M();return A(k._tabFocusChanged(f,h))});G(1,"div",7);O(2,qIa,1,1,"ng-template",8);O(3,rIa,1,1,"ng-template",null,9,gg);H()()}if(a&2){a=b.$implicit;b=b.index;var d=Hf(4),e=M();sf("mat-tab-label-active",e.selectedIndex===b);D("id",e._getTabLabelId(b))("ngClass",a.labelClass)("disabled",a.disabled)("matRippleDisabled",a.disabled||e.disableRipple);nf("tabIndex",e._getTabIndex(a,b))("aria-posinset",b+1)("aria-setsize",e._tabs.length)("aria-controls",
e._getTabContentId(b))("aria-selected",e.selectedIndex===b)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null);B(2);D("ngIf",a.templateLabel)("ngIfElse",d)}},tIa=function(a,b){if(a&1){var c=x();G(0,"mat-tab-body",11);K("_onCentered",function(){z(c);var e=M();return A(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){z(c);var f=M();return A(f._setTabBodyWrapperHeight(e))});H()}if(a&2){a=b.$implicit;b=b.index;var d=M();sf("mat-tab-body-active",
d.selectedIndex===b);D("id",d._getTabContentId(b))("ngClass",a.bodyClass)("content",a.content)("position",a.position)("origin",a.origin)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);nf("tabindex",null!=d.contentTabIndex&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(b))}},vIa=function(a){if(a&1){var b=x();G(0,"input",7,8);K("change",function(){z(b);var c=M();if(Ip(c)){var d=Jp(c);Kp(c);uIa(c,!0);Jp(c).focus();d.scrollTop=c.scrollPosition;
d.selectionEnd=c.textAreaLastCursorLocation;d.dispatchEvent(new KeyboardEvent("keydown"));c.contentChange.emit(c.getValue())}return A()})("keyup",function(c){z(b);var d=M();document.activeElement===Lp(d)&&("Enter"===c.key||"Tab"===c.key?(d.taggingInProgress=!1,uIa(d,!0),Jp(d).focus()):uIa(d));return A()});H()}a&2&&(a=M(),D("value",a.autocompleteUserName))},wIa=function(a){a&1&&J(0,"div",9,10)},xIa=function(a){a&1&&zf(0)},yIa=function(a){a&1&&zf(0)},zIa=function(a){if(a&1){var b=x();xf(0);G(1,"button",
13);K("click",function(){z(b);var c=M(2);return A(c.onRestrict.emit())});J(2,"mat-icon",14);H();yf()}a&2&&(a=M(2),B(1),D("disabled",a.attachmentsDisabled))},AIa=function(a){if(a&1){var b=x();G(0,"button",15);K("click",function(){z(b);var c=M(2);return A(c.onRestrict.emit())});J(1,"mat-icon",14);P(2);H()}a&2&&(a=M(2),B(2),If(" ",a.getRestrictedLabel()," "))},BIa=function(a){if(a&1){var b=x();G(0,"div",7);Df(1,0,["class","goog-inline-block"]);G(2,"b-attachment-selector",8);K("onSelect",function(d){z(b);
var e=M();d=e.attachmentUploader.upload(d);e.comment&&e.comment.uploads.push(d);return A()});H();G(3,"b-drive-attachment",9);K("onPickDoc",function(d){z(b);var e=M();e.comment&&(e.comment.value+="\n\n"+d.url+" ("+d.name+")");return A()})("onCloneBlob",function(d){z(b);var e=M();e.comment&&e.comment.uploads.push(d);return A()});H();G(4,"div",10);O(5,zIa,3,1,"ng-container",11);O(6,AIa,3,1,"ng-template",null,12,gg);H()()}if(a&2){var c=Hf(7);a=M();B(2);D("disabled",a.attachmentsDisabled);B(1);D("disabled",
a.attachmentsDisabled);B(2);D("ngIf",!a.isRestricted())("ngIfElse",c)}},CIa=function(a){a&1&&(G(0,"div"),J(1,"b-live-preview",16),H());a&2&&(a=M(),B(1),D("comment",a.comment.value)("issueId",a.issueId||0)("audience",a.audience)("formattingMode",a.comment.formattingMode))},EIa=function(a,b){if(a&1){var c=x();G(0,"button",12);K("click",function(){var d=z(c).$implicit,e=M(3);return A(DIa(e.issueEditBuilder,d))});P(1);H()}a&2&&(a=b.$implicit,b=M(3),D("disabled",b.issueEditBuilder.issueState==a),B(1),
If(" ",a.displayValue," "))},FIa=function(a){if(a&1){var b=x();G(0,"div",26)(1,"span");P(2,"Multiple");H();G(3,"a",27);K("click",function(){z(b);var c=M(4);return A(c.issueEditBuilder.clearAssignee())});P(4,"X");H()()}},GIa=function(a){if(a&1){var b=x();G(0,"div",26)(1,"span");P(2,"Possibly multiple");H();G(3,"a",27);K("click",function(){z(b);var c=M(4);return A(c.issueEditBuilder.clearAssignee())});P(4,"X");H()()}},IIa=function(a){if(a&1){var b=x();G(0,"div")(1,"input",28);K("ngModelChange",function(c){z(b);
var d=M(4);return A(d.issueEditBuilder.commonAssignee=c)})("ngModelChange",function(){z(b);var c=M(4);return A(HIa(c.issueEditBuilder))});H()()}a&2&&(a=M(4),B(1),D("ngModel",a.issueEditBuilder.commonAssignee)("bContactAutocomplete","SINGLE"),nf("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},JIa=function(a){if(a&1){var b=x();G(0,"div",26)(1,"span");P(2);H();G(3,"a",29);K("click",function(){z(b);var c=M(4);return A(c.issueEditBuilder.clearVerifier())});P(4,"X");H()()}a&2&&(a=M(4),sf("bv2-invalid-multiple-user-chip",
!Mp(a.issueEditBuilder)),B(2),If(" Multiple ",Mp(a.issueEditBuilder)?"":"(some unset)"," "))},KIa=function(a){if(a&1){var b=x();G(0,"div",26)(1,"span");P(2);H();G(3,"a",29);K("click",function(){z(b);var c=M(4);return A(c.issueEditBuilder.clearVerifier())});P(4,"X");H()()}a&2&&(a=M(4),sf("bv2-invalid-multiple-user-chip",!Mp(a.issueEditBuilder)),B(2),If(" Possibly multiple ",Mp(a.issueEditBuilder)?"":"(some unset)"," "))},LIa=function(a){if(a&1){var b=x();G(0,"div")(1,"input",30);K("ngModelChange",
function(c){z(b);var d=M(4);return A(d.issueEditBuilder.commonVerifier=c)});H()()}a&2&&(a=M(4),B(1),D("ngModel",a.issueEditBuilder.commonVerifier)("required","VERIFIED"==(null==a.issueEditBuilder.issueState?null:a.issueEditBuilder.issueState.status))("bContactAutocomplete","SINGLE"),nf("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},MIa=function(a){a&1&&(G(0,"div")(1,"div",20)(2,"label",21),P(3," Assignee "),H(),G(4,"div",14),O(5,FIa,5,0,"div",22),O(6,GIa,5,0,"div",22),O(7,IIa,2,3,
"div",23),H()(),G(8,"div",20)(9,"label",24),P(10," Verifier "),H(),G(11,"div",14),O(12,JIa,5,3,"div",25),O(13,KIa,5,3,"div",25),O(14,LIa,2,4,"div",23),H()()());a&2&&(a=M(3),B(4),D("ngSwitch",a.issueEditBuilder.selectedAssigneesStatus),B(1),D("ngSwitchCase","MULTIPLE"),B(1),D("ngSwitchCase","POSSIBLY_MULTIPLE"),B(5),D("ngSwitch",a.issueEditBuilder.selectedVerifiersStatus),B(1),D("ngSwitchCase","MULTIPLE"),B(1),D("ngSwitchCase","POSSIBLY_MULTIPLE"))},NIa=function(a){if(a&1){var b=x();G(0,"div",20)(1,
"label",31);P(2," Issue ID ");H();G(3,"input",32);K("ngModelChange",function(c){z(b);var d=M(3);return A(d.issueEditBuilder.commonDuplicateOf=c.trim())});H()()}a&2&&(a=M(3),B(3),D("ngModel",a.issueEditBuilder.commonDuplicateOf),nf("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},OIa=function(a,b){a&1&&(G(0,"li"),P(1),J(2,"b-access-level-indicator",35),H());a&2&&(a=b.$implicit,B(1),If(" ",a.path," "),B(1),D("accessLevel",a.accessLevel))},PIa=function(a){a&1&&(G(0,"div",33)(1,"div")(2,
"strong"),P(3,"You are editing issues in components that have external viewers:"),H()(),G(4,"ul"),O(5,OIa,3,2,"li",34),H()());a&2&&(a=M(3),B(5),D("ngForOf",a.externalWarnings))},QIa=function(a){if(a&1){var b=x();G(0,"div",8)(1,"button",9)(2,"span");P(3);H();J(4,"b-icon",10);H();G(5,"mat-menu",null,11)(7,"button",12);K("click",function(){z(b);var d=M(2);return A(d.issueEditBuilder.issueState=void 0)});P(8,"No change ");H();O(9,EIa,2,2,"button",13);H();G(10,"div",14);O(11,MIa,15,6,"div",15);O(12,NIa,
4,2,"div",16);H();G(13,"div")(14,"b-comment-box",17);K("onSubmit",function(){z(b);var d;null==(d=M(2).matDialogRef)||d.close(!0);return A()});H()();J(15,"div",18);O(16,PIa,6,1,"div",19);H()}if(a&2){var c=Hf(6);a=M(2);B(1);D("matMenuTriggerFor",c);B(2);Jf(a.issueEditBuilder.issueState?a.issueEditBuilder.issueState.displayValue:"No change");B(4);D("disabled",!a.issueEditBuilder.issueState);B(2);D("ngForOf",a.issueStates);B(1);D("ngSwitch",!a.issueEditBuilder.issueState||"DUPLICATE"!==a.issueEditBuilder.issueState.status);
B(1);D("ngSwitchCase",!0);B(3);D("comment",a.comment)("showToolbar",!1);B(2);D("ngIf",0<a.externalWarnings.length)}},SIa=function(a){a&1&&(G(0,"form",null,1)(2,"h1",2),P(3,"Change issue status"),H(),G(4,"div",3)(5,"span"),P(6,"Enter updated issue status information below"),H(),O(7,QIa,17,9,"div",4),H(),G(8,"div",5)(9,"button",6),P(10," Cancel "),H(),G(11,"button",7),P(12," Save "),H()()());if(a&2){var b=Hf(1);a=M();B(7);D("ngIf",a.issueEditBuilder);B(2);D("mat-dialog-close",!1);B(2);var c=D("mat-dialog-close",
!0),d;if(!(d=b.invalid))a:{if(null!=a.issueEditBuilder){d=RIa(a.issueEditBuilder);var e=d.get("status");if("DUPLICATE"===e){d=!d.get("duplicateOfIssueId");break a}if("VERIFIED"===e){d=!Mp(a.issueEditBuilder)&&!d.get("verifier");break a}}d=!1}c("disabled",d)}},TIa=function(a){a&1&&(G(0,"div")(1,"p"),P(2),H()());a&2&&(a=M(),B(2),Kf(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},UIa=function(a,b){a&1&&(G(0,"li"),P(1),
H());a&2&&(a=b.$implicit,B(1),Kf(" ",a.issueId," - ",a.title," "))},VIa=function(a){a&1&&(G(0,"div")(1,"p"),P(2),H(),G(3,"ul"),O(4,UIa,2,2,"li",8),H()());a&2&&(a=M(),B(2),If(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),B(2),D("ngForOf",a.protectedIssues))},ZIa=function(a,b){if(a&1){var c=x();G(0,"div",18,19);K("click",function(){var e=z(c).$implicit,f=M(2);Np(f,e)||Op(f,e);return A()});G(2,"mat-pseudo-checkbox",20);K("click",function(e){var f=
z(c).$implicit,h=M(2);e.stopPropagation();return A(WIa(h,f))});H();G(3,"span");P(4);H()()}if(a&2){a=b.$implicit;b=b.index;var d=M(2);rf("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");sf("focused",b===d.focusedRowIndex);Ff("title",a.name);nf("id","hotlist-item-"+a.hotlistId)("aria-checked",XIa(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",Np(d,a));B(2);D("state",YIa(d.selectedHotlistMap[a.hotlistId]))("disabled",Np(d,a));B(2);If(" ",a.name," ")}},$Ia=function(a){a&1&&(G(0,"span"),
P(1),H());a&2&&(a=M(2),B(1),If(" (",a.filterText,")"))},aJa=function(a){if(a&1){var b=x();G(0,"div",21,22);K("click",function(){z(b);var c=M(2);return A(c.loadHotlist())})("keydown.enter",function(){z(b);var c=M(2);return A(c.loadHotlist())});P(2,"Load hotlist from id ");G(3,"span");P(4);H()()}a&2&&(a=M(2),sf("focused",a.focusedRowIndex===a.choices.length+1),nf("aria-label","Load hotlist from"+a.filterText),B(4),If("(",a.filterText,")"))},bJa=function(a){if(a&1){var b=x();G(0,"div",23,24);K("click",
function(){z(b);var c=M(2);return A(Pp(c))})("keydown.enter",function(){z(b);var c=M(2);return A(Pp(c))});P(2,"Apply");H()}a&2&&(a=M(2),sf("focused",a.focusedRowIndex===a.choices.length+2))},cJa=function(a){if(a&1){var b=x();G(0,"div",5)(1,"div",10,11);O(3,ZIa,5,11,"div",12);H()();J(4,"mat-divider");G(5,"div",13,14);K("click",function(){z(b);var c=M();return A(c.createHotlist())})("keydown.enter",function(){z(b);var c=M();return A(c.createHotlist())});P(7,"Create new hotlist ");O(8,$Ia,2,1,"span",
15);H();O(9,aJa,5,4,"div",16);O(10,bJa,3,2,"div",17)}a&2&&(a=M(),B(3),D("ngForOf",a.choices),B(2),sf("focused",a.focusedRowIndex===a.choices.length),D("disabled",!a.canCreate),nf("aria-label","Create new hotlist"+a.filterText),B(3),D("ngIf",!!a.filterText),B(1),D("ngIf",a.canLoad),B(1),D("ngIf",a.pendingChanges))},dJa=function(a){a&1&&(xf(0),P(1,"Un-"),yf())},eJa=function(a){a&1&&(J(0,"span",4),Q(1,"async"));if(a&2){a=M();var b;D("ngClass",null!==(b=R(1,1,a.colorClass$))&&void 0!==b?b:"")}},fJa=function(a){a&
1&&(J(0,"mat-icon",5),Q(1,"async"));if(a&2){a=M();var b;D("svgIcon",null!==(b=R(1,1,a.iconName$))&&void 0!==b?b:"")}},gJa=function(a){a&1&&(G(0,"span",6),P(1),Q(2,"async"),H());a&2&&(a=M(),B(1),Jf(R(2,1,a.statusText$)))},hJa=function(a){if(a&1){var b=x();G(0,"button",2);K("click",function(){z(b);var c=M();return A(c.onClick())});P(1);H()}a&2&&(a=M(),sf("mat-flat-button",a.upvoted)("mat-stroked-button",!a.upvoted),D("matTooltip",a.tooltip)("disabled",a.disabled),nf("aria-pressed",a.upvoted)("aria-label",
a.getAriaLabel()),B(1),If(" +1 (",a.voteCount,")\n"))},iJa=function(a){if(a&1){var b=x();G(0,"button",3);K("click",function(){z(b);var c=M();return A(c.onClick())});G(1,"span");P(2,"+1");H();G(3,"span",4);P(4);H()()}a&2&&(a=M(),sf("mat-flat-button",a.upvoted)("mat-button",!a.upvoted),D("matTooltip",a.tooltip)("disabled",a.disabled),nf("aria-pressed",a.upvoted)("aria-label",a.getAriaLabel()),B(4),If("(",a.voteCount,")"))},jJa=function(a){a&1&&(G(0,"span"),P(1," Assigned to "),J(2,"b-user-display",
17),H());a&2&&(a=M(2).ngIf,B(2),D("model",a.assigneeUser)("hovercardEnabled",!1))},kJa=function(a){a&1&&(G(0,"span"),P(1," Accepted by "),J(2,"b-user-display",17),H());a&2&&(a=M(2).ngIf,B(2),D("model",a.assigneeUser)("hovercardEnabled",!1))},lJa=function(a){a&1&&(G(0,"span"),P(1," Duplicate of "),G(2,"a",4),P(3),H()());if(a&2){a=M(2).ngIf;var b=M(),c;B(2);pf("aria-label","Go to issue ",a.duplicateOfIssueId,"");D("href",b.editIssue(null!==(c=a.duplicateOfIssueId)&&void 0!==c?c:void 0),Kd);B(1);If(" ",
a.duplicateOfIssueId," ")}},mJa=function(a){a&1&&(G(0,"span"),J(1,"b-issue-status-display",18),H());a&2&&(a=M().ngIf,B(1),D("issueStatusJs",a))},nJa=function(a,b){a&1&&(xf(0,14),O(1,jJa,3,2,"span",15),O(2,kJa,3,2,"span",15),O(3,lJa,4,3,"span",15),O(4,mJa,2,1,"span",16),yf());a&2&&(D("ngSwitch",b.ngIf),B(1),D("ngSwitchCase","ASSIGNED"),B(1),D("ngSwitchCase","ACCEPTED"),B(1),D("ngSwitchCase","DUPLICATE"))},oJa=function(a,b){if(a&1){var c=x();xf(0);G(1,"b-app-vote-button",19);K("onVote",function(f){z(c);
var h=M(3);h.location&&f&&bo(h.analytics,h.location+"_"+go.ISSUE_CARD,"add","upvote",f);return A()});H();yf()}if(a&2){a=b.ngIf;b=M().ngIf;var d=M(2),e;B(1);D("issueId",d.issueId)("voteCount",b.voteCount)("upvoted",null!==(e=a.voted)&&void 0!==e?e:!1)}},pJa=function(a){a&1&&(xf(0),O(1,oJa,2,3,"ng-container",1),yf());a&2&&(a=M(2),B(1),D("ngIf",a.issue.userData))},rJa=function(a){if(a&1){var b=x();xf(0);G(1,"button",20);K("click",function(){z(b);var c=M(2);return A(qJa(c,c.childContextId))});P(2," Unlink parent ");
H();yf()}},sJa=function(a,b){a&1&&(G(0,"li"),P(1," Last updated by "),J(2,"b-user-display",17),P(3," on: "),J(4,"b-formatted-date-time",21),H());a&2&&(a=b.ngIf,b=M().ngIf,B(2),D("model",a)("hovercardEnabled",!1),B(2),D("timestamp",b.modifiedTimeMicros/1E3))},tJa=function(a,b){a&1&&(xf(0),O(1,sJa,5,3,"li",1),G(2,"li"),P(3," Reported by "),J(4,"b-user-display",17),P(5," on: "),J(6,"b-formatted-date-time",21),H(),yf());if(a&2){a=b.ngIf;b=M().ngIf;var c=M();B(1);D("ngIf",c.events[c.events.length-1].userPerformingActionUser);
B(3);D("model",b.reporterUser)("hovercardEnabled",!1);B(2);D("timestamp",a.createdTimeMicros/1E3)}},uJa=function(a){a&1&&(G(0,"li",22),J(1,"b-note-container",23),H());a&2&&(a=M(2),B(1),D("issueId",a.issueId)("issueAccessLevel",null==a.issue.accessLimit?null:a.issue.accessLimit.accessLevel)("formattingMode",a.normalizeFormattingModeToJspb(a.events[0].formattingMode))("note",a.getNote()))},xJa=function(a,b){if(a&1){var c=x();xf(0);G(1,"div",2)(2,"h3");J(3,"b-issue-status-display",3);G(4,"a",4);P(5);
H();P(6," \u00a0 ");G(7,"span",5);P(8);H()();G(9,"ul")(10,"li",6);J(11,"b-access-level-indicator",7);H();G(12,"li",8)(13,"span",9);P(14);H();P(15," \u00a0 ");O(16,nJa,5,4,"ng-container",10);H()();G(17,"div",11)(18,"b-cc-button",12);K("onCc",function(e){z(c);var f=M();f.location&&e&&bo(f.analytics,f.location+"_"+go.ISSUE_CARD,"add","CC");return A()});H();O(19,pJa,2,1,"ng-container",1);O(20,rJa,3,0,"ng-container",1);H();G(21,"ul");O(22,tJa,7,4,"ng-container",1);O(23,uJa,2,4,"li",13);H()();yf()}if(a&
2){a=b.ngIf;b=M();var d;B(3);D("issueStatusJs",a.status);B(1);pf("aria-label","Go to issue ",b.issueId,"");D("href",b.editIssue(b.issueId),Kd);B(1);Jf(b.issueId);B(3);Jf(a.title);B(3);D("labelOnlyMode",!0)("accessLevel",null==b.issue.accessLimit?null:b.issue.accessLimit.accessLevel);B(2);D("ngClass",b.priorityClass(a.priority));B(1);Jf(b.priority(a.priority));B(2);D("ngIf",a.status);B(2);D("issueId",b.issueId)("ccState",vJa(b,null!==(d=a.ccUsers)&&void 0!==d?d:Mf(16,wJa)));B(1);D("ngIf",b.issue.aggregatedData);
B(1);D("ngIf",b.childContextId);B(2);D("ngIf",b.issue.aggregatedData);B(1);D("ngIf",b.events[0].unlinkifiedComment)}},yJa=function(a){a&1&&(G(0,"div")(1,"div",9),P(2," An issue cannot reference itself. "),H()())},zJa=function(a){a&1&&(G(0,"mat-option",10)(1,"div",11),J(2,"b-spinner",12),H()());a&2&&(B(2),D("large",!0))},AJa=function(a){a&1&&(G(0,"mat-option",13),P(1," No issues found. "),H())},BJa=function(a){a&1&&J(0,"b-issue-status-display",25);a&2&&(a=M().$implicit,D("issueStatusJs",a.status))},
CJa=function(a){a&1&&J(0,"b-issue-card",26,27);if(a&2){var b=Hf(1);a=M().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a.resourceId)}},EJa=function(a,b){a&1&&(G(0,"mat-option",14)(1,"div",15)(2,"div",16),O(3,BJa,1,1,"b-issue-status-display",17),G(4,"strong",18),P(5),H()(),G(6,"onedev-hovercard",null,19),O(8,CJa,2,2,"b-issue-card",20),H(),G(9,"a",21),K("click",function(d){return d.stopPropagation()}),J(10,"mat-icon",22),H(),G(11,"span",23),P(12),H(),J(13,"div",24),Q(14,"boldPrefixMatches"),
H()());if(a&2){a=b.$implicit;var c=Hf(7);b=M();D("value",a);B(1);nf("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");B(2);D("ngIf",a.status);B(1);Ff("title",a.resourceId);B(1);If(" ",a.resourceId," ");B(4);D("onedevHovercardTrigger",c)("href",b.getIssueLink(a),Kd);B(3);Jf(DJa(a));B(1);Ff("title",a.displayText);D("innerHTML",Rf(14,10,a.displayText,b.query),Jd)}},FJa=function(a,b){a&1&&(G(0,"a",13),P(1),H());a&2&&(a=b.$implicit,b=b.last,Ef("href",
"issues/",a.resourceId,"",Kd),B(1),Kf(" ",a.resourceId,"",b?"":","," "))},GJa=function(a){a&1&&(G(0,"div",11),O(1,FJa,2,3,"a",12),H());a&2&&(a=M(),B(1),D("ngForOf",a.selectedIssues))},HJa=function(a){a&1&&(G(0,"div",11)(1,"a",14),P(2),H()());a&2&&(a=M(),B(1),Ef("href","issues/",a.selectedIssues[0].resourceId,"",Kd),B(1),If(" ",a.selectedIssues[0].displayText," "))},JJa=function(a){if(a&1){var b=x();G(0,"div",15)(1,"div",16);K("click",function(){z(b);var c=M();return A(IJa(c))})("keyup.space",function(){z(b);
var c=M();return A(IJa(c))});H()()}a&2&&(a=M(),B(1),D("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),nf("aria-checked",a.isQueryRestricted))},LJa=function(a){if(a&1){var b=x();G(0,"b-app-bar-bulk-edit-menus",6);K("onBulkEdit",function(c){z(b);var d=M();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=M();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",function(c){z(b);var d=M();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",
function(){z(b);var c=M();return A(c.bulkMarkIssueRead())});H()}a&2&&(a=M(),D("readStatePrompt",KJa(a)))},PJa=function(a){if(a&1){var b=x();G(0,"b-copy-issue-id-button",7);K("onClickCopyIssueIds",function(){z(b);var c=M();return A(MJa(c.copyIssueIdService,Qp(c)))})("onClickCopyIssueShortLinks",function(){z(b);var c=M();return A(NJa(c.copyIssueIdService,Qp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=M();return A(OJa(c.copyIssueIdService,Qp(c)))});H()}a&2&&(a=M(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",
a.activeSession.isInternalSession()))},QJa=function(a){if(a&1){var b=x();G(0,"div",8)(1,"b-hotlist-picker",9);K("onApply",function(c){z(b);var d=M();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=M();return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=M();return A(d.onLoadHotlist.emit(c))});H()()}a&2&&(a=M(),B(1),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},RJa=function(a,b){a&1&&(G(0,"li"),P(1),J(2,"b-access-level-indicator",
17),H());a&2&&(a=b.$implicit,B(1),If(" ",a.path," "),B(1),D("accessLevel",a.accessLevel))},SJa=function(a){a&1&&(G(0,"div",15)(1,"div")(2,"strong"),P(3,"You are commenting on issues in components that have external viewers:"),H()(),G(4,"ul"),O(5,RJa,3,2,"li",16),H()());a&2&&(a=M(2),B(5),D("ngForOf",a.externalWarnings))},UJa=function(a){if(a&1){var b=x();G(0,"h1",10);P(1,"Add comment");H();G(2,"mat-dialog-content")(3,"b-comment-box",11);K("commentChange",function(c){z(b);var d=M();return A(d.comment=
c)})("onSubmit",function(){z(b);var c=M();return A(TJa(c))});H();O(4,SJa,6,1,"div",12);H();G(5,"mat-dialog-actions")(6,"button",13);P(7," Cancel ");H();G(8,"button",14);P(9," Save ");H()()}a&2&&(a=M(),B(3),D("comment",a.comment)("showToolbar",!1),B(1),D("ngIf",0<a.externalWarnings.length),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},VJa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Sp=function(a,b){b=void 0===b?{}:b;return null==b.id?
"":Rp(a,b)},Rp=function(a,b){var c=b=void 0===b?{}:b;b=c.params;c=c.tab;b&&(a=lta(a,b));c&&(a=a+"#"+c);return a},WJa=function(a){if(a&1){var b=x();G(0,"button",7);K("click",function(){z(b);var c=M(2);return A(c.removeHotlist.emit())});J(1,"mat-icon",8);H()}a&2&&(a=M(2),sf("invisible",a.disabled),nf("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},XJa=function(a){a&1&&(xf(0),G(1,"span",1)(2,"span",2)(3,"a",3),P(4),H()(),O(5,WJa,2,4,"button",4),H(),G(6,"onedev-hovercard",
null,5),J(8,"b-hotlist-card",6),H(),yf());if(a&2){var b=Hf(7);a=M();B(1);rf("padding-right",a.removable?0:"10px");sf("muted",a.disabled);D("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);B(2);D("href",a.pathBuilder.viewHotlist(a.hotlist.hotlistId),Kd);nf("aria-label",a.getAriaLabel(a.hotlist));B(1);Jf(a.hotlist.name);B(1);D("ngIf",a.removable);B(3);D("hotlist",a.hotlist)}},YJa=function(){return{color:"accent"}},ZJa=function(a){a&1&&(G(0,"span"),P(1,"Edit"),H())},$Ja=function(a){a&
1&&(G(0,"span"),P(1,"Cancel"),H())},eKa=function(a){if(a&1){var b=x();xf(0);G(1,"td")(2,"div")(3,"div",11);P(4);H();G(5,"div",12)(6,"a",13);P(7);H()()()();G(8,"td",3)(9,"mat-radio-button",14);K("change",function(d){z(b);var e=M(2);return A(aKa(e,d.value))});H()();G(10,"td",3)(11,"b-button",15);K("onAction",function(){z(b);var d=M().$implicit,e=M();return A(bKa(e,d))});O(12,ZJa,2,0,"span",9);O(13,$Ja,2,0,"span",9);H()();G(14,"td",3)(15,"b-button",16);K("onAction",function(){z(b);var d=M().$implicit,
e=M();return A(cKa(e,d))});P(16," Delete ");H()();yf()}if(a&2){a=M().$implicit;var c=M();B(3);sf("selected",Tp(c,a));B(1);If(" ",a.name," ");B(2);D("href",dKa(c,a),Kd);nf("aria-label",a.name+"- Click to create a new issue");B(1);If(" ",dKa(c,a)," ");B(2);Ef("id","template-default-radio-",a.index,"");D("checked",c.defaultIndex===a.index)("aria-label","Make template "+a.name+" as default template")("value",a.index);B(2);D("bAriaLabel",Tp(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B(1);D("ngIf",!Tp(c,
a));B(1);D("ngIf",Tp(c,a));B(2);D("bAriaLabel","Delete "+a.name)("disabled",!(0<=a.index&&!c.templates[a.index].default))}},fKa=function(a){a&1&&(G(0,"h2",64),P(1," Create Template "),H())},gKa=function(a){a&1&&(G(0,"h2",64),P(1),H());a&2&&(a=M(2).$implicit,B(1),Kf(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},iKa=function(a,b){if(a&1){var c=x();G(0,"button",65);K("click",function(){var e=z(c).$implicit,f=M(2).$implicit,h=M();f.issueType=e.value;return A(hKa(h))});
P(1);H()}if(a&2){a=b.$implicit;b=M(2).$implicit;var d;D("disabled",b.issueType===a.value)("matTooltip",null!==(d=a.altText)&&void 0!==d?d:"");B(1);If(" ",a.displayText," ")}},jKa=function(a,b){if(a&1){var c=x();G(0,"button",66);K("click",function(){var d=z(c).$implicit,e=M(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=!0;return A()});P(1);H()}a&2&&(a=b.$implicit,b=M(2).$implicit,D("disabled",b.editableTemplate.priority===a.value),B(1),If(" ",a.displayText," "))},kKa=function(a,
b){if(a&1){var c=x();G(0,"button",66);K("click",function(){var d=z(c).$implicit,e=M(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return A()});P(1);H()}a&2&&(a=b.$implicit,b=M(2).$implicit,D("disabled",b.editableTemplate.severity===a.value),B(1),If(" ",a.displayText," "))},lKa=function(a,b){if(a&1){var c=x();G(0,"div",67)(1,"b-hotlist-chip",68);K("removeHotlist",function(){var d=z(c).$implicit,e=M(3);return A(e.removeHotlist(d.hotlistId))});H()()}a&2&&(a=b.$implicit,
B(1),D("hotlist",a))},mKa=function(a){a&1&&(G(0,"h3"),P(1,"Custom issue fields"),H())},nKa=function(a){if(a&1){var b=x();G(0,"input",76);K("ngModelChange",function(d){z(b);var e=M().$implicit,f=M(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].textValue=d)})("ngModelChange",function(){z(b);M(3).$implicit.editableTemplate.dirty=!0;return A()});H()}if(a&2){a=M().$implicit;var c=M(2).$implicit;pf("id","template-cf-",a.id,"");D("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},
oKa=function(a){if(a&1){var b=x();G(0,"input",77);K("ngModelChange",function(d){z(b);var e=M().$implicit,f=M(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].numericValue=d)})("ngModelChange",function(){z(b);M(3).$implicit.editableTemplate.dirty=!0;return A()});H()}if(a&2){a=M().$implicit;var c=M(2).$implicit;pf("id","template-cf-",a.id,"");D("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},qKa=function(a){if(a&1){var b=x();G(0,"b-edit-field",78);K("valueChange",
function(h){z(b);var k=M().$implicit,q=M(2).$implicit,w=M();return A(w.setCustomField(q,k.id,h))});H()}if(a&2){a=M().$implicit;var c=M(2).$implicit,d=M(),e,f;pf("id","template-cf-",a.id,"");D("type",d.FieldType.ENUM)("name",a.name)("clearable",!0)("value",null!==(e=null==c.editableTemplate.customFieldValues[a.id]?null:c.editableTemplate.customFieldValues[a.id].enumValue)&&void 0!==e?e:null)("choices",null!==(f=a.enumFields)&&void 0!==f?f:Mf(6,pKa))}},rKa=function(a){if(a&1){var b=x();G(0,"bv2-input-date-picker",
79);K("boundValueChange",function(e){z(b);var f=M().$implicit,h=M(2).$implicit,k=M();return A(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){z(b);M(3).$implicit.editableTemplate.dirty=!0;return A()});H()}if(a&2){a=M().$implicit;var c=M(2).$implicit,d;pf("id","template-cf-",a.id,"");D("boundValue",null!==(d=c.editableTemplate.customFieldValues[a.id].dateValue)&&void 0!==d?d:void 0)}},tKa=function(a){if(a&1){var b=x();G(0,"b-list-field",80);K("valuesChange",
function(e){z(b);var f=M().$implicit,h=M(2).$implicit,k=M();return A(k.setCustomField(h,f.id,e.values))});H()}if(a&2){a=M().$implicit;var c=M(2).$implicit,d=M();pf("id","template-cf-",a.id,"");D("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",sKa(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},uKa=function(a,b){a&1&&(G(0,"div")(1,"div",21)(2,"label",69),P(3),H()(),G(4,"div",70),O(5,nKa,1,2,"input",71),O(6,oKa,1,2,"input",72),O(7,qKa,1,7,
"b-edit-field",73),O(8,rKa,1,2,"bv2-input-date-picker",74),O(9,tKa,1,6,"b-list-field",75),H()());a&2&&(a=b.$implicit,vf("cell-",a.cellType,""),B(2),Ef("for","template-cf-",a.id,""),B(1),Kf("",a.name," (id=",a.id,")"),B(1),D("ngSwitch",a.type),B(1),D("ngSwitchCase","TEXT"),B(1),D("ngSwitchCase","NUMERIC"),B(1),D("ngSwitchCase","ENUM"),B(1),D("ngSwitchCase","DATE"))},xKa=function(a){if(a&1){var b=x();G(0,"td",17)(1,"div",18);O(2,fKa,2,0,"h2",19);O(3,gKa,2,2,"h2",19);G(4,"div",20)(5,"div",21)(6,"label",
22);P(7,"Template Name");H()();G(8,"input",23);K("ngModelChange",function(h){z(b);var k=M().$implicit;return A(k.editableTemplate.name=h)})("ngModelChange",function(){z(b);M().$implicit.editableTemplate.dirty=!0;return A()});H()();G(9,"div",20)(10,"div",21)(11,"label",24);P(12,"Description of Template");H()();G(13,"input",25);K("ngModelChange",function(h){z(b);var k=M().$implicit;return A(k.editableTemplate.description=h)})("ngModelChange",function(){z(b);M().$implicit.editableTemplate.dirty=!0;return A()});
H()();G(14,"div",26)(15,"h3");P(16," Standard issue fields ");H();G(17,"div",20)(18,"div",21)(19,"label",27);P(20,"Title");H()();G(21,"input",28);K("ngModelChange",function(h){z(b);var k=M().$implicit;return A(k.editableTemplate.title=h)})("ngModelChange",function(){z(b);M().$implicit.editableTemplate.dirty=!0;return A()});H()();G(22,"div",29)(23,"div",21)(24,"label",30);P(25,"Type");H()();G(26,"button",31)(27,"span");P(28);H();J(29,"b-icon",32);H();G(30,"mat-menu",33,34);O(32,iKa,2,3,"button",35);
H()();G(33,"div",29)(34,"div",21)(35,"label",36);P(36,"Priority");H()();G(37,"button",37)(38,"span");P(39);H();J(40,"b-icon",32);H();G(41,"mat-menu",33,38);O(43,jKa,2,2,"button",39);H()();G(44,"div",29)(45,"div",21)(46,"label",40);P(47,"Severity");H()();G(48,"button",41)(49,"span");P(50);H();J(51,"b-icon",32);H();G(52,"mat-menu",33,42);O(54,kKa,2,2,"button",39);H()();G(55,"div",43)(56,"div",21)(57,"label",44);P(58,"Default Hotlists");H()();G(59,"b-hotlist-picker",45);K("onApply",function(h){z(b);
var k=M(2);return A(k.handleHotlistPickerSave(h))})("onCreate",function(h){z(b);var k=M(2);return A(k.createHotlist(h))})("onLoad",function(h){z(b);var k=M(2);return A(k.loadHotlist(h))});H();O(60,lKa,2,1,"div",46);H();J(61,"div",47);G(62,"div",48)(63,"div",21)(64,"label",49);P(65,"Assignee");H()();G(66,"input",50);K("ngModelChange",function(h){z(b);var k=M().$implicit;return A(k.editableTemplate.assignee=h)})("ngModelChange",function(){z(b);M().$implicit.editableTemplate.dirty=!0;return A()});H()();
G(67,"div",48)(68,"div",21)(69,"label",51);P(70,"Verifier");H()();G(71,"input",52);K("ngModelChange",function(h){z(b);var k=M().$implicit;return A(k.editableTemplate.verifier=h)})("ngModelChange",function(){z(b);M().$implicit.editableTemplate.dirty=!0;return A()});H()();G(72,"div",20)(73,"div",21)(74,"label",53);P(75,"CC");H()();G(76,"input",54);K("ngModelChange",function(h){z(b);var k=M().$implicit;return A(vKa(k.editableTemplate,h))});H()();G(77,"div",20)(78,"div",21)(79,"label",55);P(80,"Initial Comment");
H()();G(81,"textarea",56);K("ngModelChange",function(h){z(b);var k=M().$implicit;return A(k.editableTemplate.comment=h)})("ngModelChange",function(){z(b);M().$implicit.editableTemplate.dirty=!0;return A()});P(82,"              ");H()();G(83,"div",20)(84,"div",21)(85,"label",57);P(86,"In Prod");H()();G(87,"b-slide-toggle",58);K("modelChange",function(){z(b);var h=M().$implicit.editableTemplate;h.inProd=!h.inProd;h.dirty=!0;return A()});H()()();G(88,"div",59);O(89,mKa,2,0,"h3",9);O(90,uKa,10,11,"div",
60);H();G(91,"div",61)(92,"b-button",62);K("onAction",function(){z(b);var h=M(2);return A(wKa(h))});P(93," Save ");H();G(94,"b-button",63);K("onAction",function(){z(b);var h=M(2);return A(Up(h))});P(95," Cancel ");H()()()()}if(a&2){var c=Hf(31),d=Hf(42),e=Hf(53);a=M().$implicit;var f=M();B(2);D("ngIf",a.editableTemplate.new_);B(1);D("ngIf",!a.editableTemplate.new_);B(5);D("ngModel",a.editableTemplate.name);B(5);D("ngModel",a.editableTemplate.description);B(8);D("ngModel",a.editableTemplate.title);
B(5);D("matMenuTriggerFor",c);B(2);Jf(a.issueType);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",f.issueTypeChoices);B(5);D("matMenuTriggerFor",d);B(2);Jf(a.editableTemplate.priority);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",f.priorityChoices);B(5);D("matMenuTriggerFor",e);B(2);Jf(a.editableTemplate.severity);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",f.severityChoices);B(5);D("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);B(1);D("ngForOf",f.selectedHotlists);B(6);D("bContactAutocomplete",
"SINGLE")("ngModel",a.editableTemplate.assignee);B(5);D("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.verifier);B(5);D("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", "));B(5);D("ngModel",a.editableTemplate.comment);B(6);D("model",a.editableTemplate.inProd);B(2);D("ngIf",0<f.customFieldRows.length);B(1);D("ngForOf",f.customFieldRows);B(2);D("disabled",!a.editableTemplate.isDirty())}},yKa=function(a,b){a&1&&(G(0,"tr"),O(1,eKa,17,15,"ng-container",9),O(2,xKa,
96,31,"td",10),H());a&2&&(a=b.$implicit,B(1),D("ngIf",!a.editableTemplate),B(1),D("ngIf",!!a.editableTemplate))},zKa=function(a,b){a&1&&(G(0,"div",81),P(1),H(),G(2,"div",82)(3,"button",83),P(4," Cancel "),H(),G(5,"button",84),P(6," Confirm "),H()());a&2&&(a=b.$implicit,B(1),If(' Are you sure you want to delete the template "',a.name,'"? '),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},AKa=function(a,b){a&1&&(G(0,"div",81),P(1),H(),G(2,"div",82)(3,"button",85),P(4," Cancel "),H(),G(5,
"button",85),P(6," Don't Save "),H(),G(7,"button",86),P(8," Save "),H()());a&2&&(a=b.$implicit,B(1),If(' Do you want to save changes to template "',a.name,'" before closing? '),B(2),D("mat-dialog-close",void 0),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},BKa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(),B(1),If(" (",a.objectiveDisplayText," total) "))},CKa=function(a){a&1&&(G(0,"div"),J(1,"b-slo-time-indicator",1),H());a&2&&(a=M(),B(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",
a.assignmentSlo)("includeObjective",!0))},DKa=function(a){a&1&&(G(0,"div"),J(1,"b-slo-time-indicator",2),H());a&2&&(a=M(),B(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.responseSlo)("includeObjective",!0))},EKa=function(a){a&1&&(G(0,"div"),J(1,"b-slo-time-indicator",3),H());a&2&&(a=M(),B(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.closureSlo)("includeObjective",!0))},FKa=function(a){a&1&&(G(0,"div",8),J(1,"b-slo-status-summary",9),H());a&2&&(a=M(),B(1),D("sloStatus",a.sloStatus)("sloSnoozeUntil",
a.sloSnoozeUntil)("onlyShowMetric",a.onlyShowMetric))},GKa=function(a){a&1&&(xf(0),P(1," No applicable SLO rules "),yf())},HKa=function(a){a&1&&(xf(0),P(1," No SLO set on issue component "),yf())},IKa=function(a){a&1&&(G(0,"div",10),O(1,GKa,2,0,"ng-container",7),O(2,HKa,2,0,"ng-container",7),H());a&2&&(a=M(),B(1),D("ngIf",a.editSloLink),B(1),D("ngIf",!a.editSloLink))},JKa=function(a){if(a&1){var b=x();G(0,"a",12);K("click",function(){z(b);var c=M(2);return A(c.trackOpenSlo())});P(1);H()}a&2&&(a=M(2),
D("href",a.editSloLink,Kd),B(1),If(" ",a.sloName," "))},KKa=function(a){a&1&&(G(0,"span"),P(1," (private) "),H())},LKa=function(a){a&1&&(G(0,"span"),P(1," SLO definition: "),O(2,JKa,2,2,"a",11),O(3,KKa,2,0,"span",7),H());a&2&&(a=M(),B(2),D("ngIf",a.sloName),B(1),D("ngIf",!a.sloName))},Vp=function(a,b){b=void 0===b?document.documentElement:b;return(0,T.concat)((0,T.defer)(function(){return(0,T.of)(b.querySelector(a))}),MKa(b,{childList:!0,subtree:!0}).pipe(De(function(c){return c.some(function(d){return 0<
d.addedNodes.length})}),C(function(){return b.querySelector(a)}))).pipe(De($k),Me(),C(function(c){return c}))},MKa=function(a,b){return new T.Observable(function(c){var d=new MutationObserver(function(e){c.next(e)});d.observe(a,b);return function(){d.disconnect()}})},Wp=function(a,b){return function(c){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}},NKa=function(a,b){a&1&&J(0,"col");a&2&&vf("",b.$implicit.name,"-col")},OKa=function(a){a&1&&zf(0)},QKa=function(a,b){a&1&&(xf(0),O(1,
OKa,1,0,"ng-container",8),yf());a&2&&(a=b.$implicit,b=M(),B(1),D("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Nf(2,PKa,a)))},RKa=function(a){a&1&&zf(0)},TKa=function(a,b){a&1&&(xf(0),O(1,RKa,1,0,"ng-container",8),yf());if(a&2){a=b.$implicit;b=b.index;var c=M(),d=c.$implicit;c=c.index;var e=M().ngIf;B(1);D("ngTemplateOutlet",e[b])("ngTemplateOutletContext",Pf(SKa,d,a,c))}},UKa=function(a,b){if(a&1){var c=x();G(0,"tr",10,11);K("click",function(){var e=
z(c).index,f=M(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()})("focus",function(){var e=z(c).index,f=M(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()});O(2,TKa,2,6,"ng-container",4);H()}if(a&2){a=b.$implicit;b=b.index;var d=M(2);sf("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",d.focusedRowIndex===b);nf("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",
d.renderRowLabel(a,b)+(a.selected?", row starred":""));B(2);D("ngForOf",d.columns)}},VKa=function(a){a&1&&(xf(0),O(1,UKa,3,12,"tr",9),yf());a&2&&(a=M(),B(1),D("ngForOf",a.list))},WKa=function(a,b){a&1&&(G(0,"th"),J(1,"pop-grid-default-th",12),H());a&2&&(a=b.column,B(1),D("column",a))},XKa=function(a,b){a&1&&(G(0,"td"),J(1,"pop-grid-default-cell",13),H());a&2&&(a=b.row,b=b.column,B(1),D("row",a)("column",b))},YKa=function(a){if(a&1){var b=x();G(0,"b-sortable-header",3);K("sortChanged",function(c){z(b);
var d=M();d.grid&&d.grid.sortChange.emit(c);return A()});H()}a&2&&(a=M(),D("columnLabel",a.column.label)("columnName",a.column.name)("defaultSortDirection",a.column.defaultSortDirection||"ASC")("sort",null==a.grid?null:a.grid.sort)("matTooltip",a.column.tooltip||""))},ZKa=function(a){a&1&&(G(0,"div",4),P(1),H());a&2&&(a=M(),nf("aria-label",a.column.label),B(1),If(" ",a.column.label," "))},$Ka=function(a){if(a&1){var b=x();G(0,"div",13,14);K("menuOpened",function(){z(b);var d=M();return A(d.menuOpen=
!0)})("menuClosed",function(){z(b);var d=M();return A(d.menuOpen=!1)})("keydown.enter",function(d){z(b);yi(Hf(1));d.preventDefault();return A(d.stopPropagation())})("keydown.space",function(){z(b);var d=Hf(1);return A(yi(d))});H()}if(a&2){a=M();var c=Hf(5);sf("columnpicker-button-active",a.menuOpen);pf("aria-label","",a.column.fullLabel," column configuration");D("matMenuTriggerFor",c)}},bLa=function(a,b){if(a&1){var c=x();G(0,"button",15);K("click",function(){var d=z(c).$implicit,e=M();return A(aLa(e,
d.name))});J(1,"b-icon",16);G(2,"span",17);P(3);H()()}a&2&&(a=b.$implicit,b=M(),sf("b-menu-item-checked",rna(a.name).get(b.listViewPrefs)),B(3),If(" ",a.menuItem," "))},cLa=function(a){a&1&&J(0,"mat-divider")},dLa=function(a){if(a&1){var b=x();G(0,"button",22);K("click",function(){z(b);var c=M().$implicit,d=M().before,e=M();return A(e.add(c,d))});P(1);H()}a&2&&(a=M().$implicit,D("matTooltip",a.tooltip),B(1),If(" ",a.fullLabel," "))},fLa=function(a){a&1&&(G(0,"button",9)(1,"span"),P(2),H()());if(a&
2){a=M().$implicit;var b=M().before;M();var c=Hf(18);D("matMenuTriggerFor",c)("matMenuTriggerData",Of(3,eLa,a.columns,b));B(2);Jf(a.label)}},gLa=function(a,b){a&1&&(xf(0),O(1,dLa,2,2,"button",20),O(2,fLa,3,6,"button",21),yf());a&2&&(a=b.$implicit,b=M(2),B(1),D("ngIf",b.isIssueGridColumn(a)),B(1),D("ngIf",!b.isIssueGridColumn(a)))},iLa=function(a){if(a&1){var b=x();G(0,"button",18);K("click",function(){var c=z(b).before,d=M();return A(hLa(d,c))});P(1," Custom Field ");H();J(2,"mat-divider");O(3,gLa,
3,2,"ng-container",19)}a&2&&(a=M(),B(3),D("ngForOf",a.currentAvailableItems))},jLa=function(a,b){if(a&1){var c=x();G(0,"button",18);K("click",function(){var d=z(c).$implicit,e=M().before,f=M();return A(f.add(d,e))});P(1);H()}a&2&&(a=b.$implicit,B(1),If(" ",a.fullLabel," "))},kLa=function(a,b){a&1&&O(0,jLa,2,1,"button",23);a&2&&D("ngForOf",b.columns)},lLa=function(a){a&1&&(xf(0),P(1," This issue has not been modified since "),J(2,"b-formatted-date-time",1),P(3," and is scheduled for deletion on "),
G(4,"strong"),J(5,"b-formatted-date-time",1),H(),P(6,". "),G(7,"a",2),P(8,"Learn more"),H(),yf());a&2&&(a=M(),B(2),D("mode","date")("timestamp",a.modifiedTime),B(3),D("mode","date")("timestamp",a.retentionExpireTime),B(2),D("href",a.documentationLink,Kd))},mLa=function(a){a&1&&(G(0,"b-base-chip",1)(1,"div",2),J(2,"retention-text",3),H(),G(3,"div",4),J(4,"retention-help-text",5),H()());a&2&&(a=M(),D("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),
B(2),D("retentionState",a.retentionState)("compactMode",a.compactMode),B(2),D("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},nLa=function(a){var b=void 0===b?new Date:b;var c=oo(zm(a.scheduledDeletionTime));b=b.getTime();a=(a=Ora(a.retentionPeriod))?1E3*a.getSeconds()+(a.getNanos()||0)/1E6:0;return b>=c-Math.max(12096E5,.2*a)},oLa=function(a,b){return a.size!==b.size?!1:[].concat(u(a)).every(function(c){return b.has(c)})},pLa=function(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=
a.next()){c=r(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},qLa=function(a,b){if(!oLa(a,b)){var c=[].concat(u(b)).filter(function(e){return!a.has(e)}),d=[].concat(u(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},rLa=function(a){a&1&&zf(0)},sLa=function(a,b){a&1&&(G(0,"th",22),O(1,rLa,1,0,"ng-container",23),H());a&2&&(a=b.column,b=M(),nf("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},tLa=function(a){a&1&&zf(0)},uLa=function(a,
b){a&1&&(G(0,"th",24),O(1,tLa,1,0,"ng-container",23),H());a&2&&(a=b.column,b=M(),nf("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},yLa=function(a){if(a&1){var b=x();xf(0);G(1,"mat-pseudo-checkbox",26);K("click",function(c){z(b);var d=M(2);c.stopPropagation();return A(vLa(d))})("keydown.enter",function(c){z(b);var d=M(2);c.stopPropagation();return A(vLa(d))})("keydown.space",function(c){z(b);var d=M(2);c.stopPropagation();return A(vLa(d))});H();yf()}a&2&&(a=M(2),B(1),D("state",
wLa(a)),nf("aria-checked",xLa(a)))},zLa=function(a,b){a&1&&(G(0,"th",25),O(1,yLa,2,2,"ng-container",23),H());a&2&&(a=b.column,b=M(),nf("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},ALa=function(a){a&1&&zf(0)},BLa=function(a,b){a&1&&(G(0,"th"),O(1,ALa,1,0,"ng-container",23),H());a&2&&(a=b.column,b=M(),nf("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},CLa=function(a){a&1&&(xf(0),J(1,"pop-grid-default-th",27),yf());a&2&&(a=M().column,B(1),D("column",
a))},DLa=function(a,b){a&1&&(G(0,"th"),O(1,CLa,2,1,"ng-container",23),H());a&2&&(a=b.column,b=M(),nf("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},ELa=function(a){if(a&1){var b=x();G(0,"b-column-picker",30);K("selectedColumnsChange",function(d){z(b);var e=M(3);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return A()});H()}if(a&2){a=M(2).column;var c=M();D("column",a)("availableColumns",c.availableColumns)("selectedColumns",c.columns)}},FLa=function(a){a&1&&
J(0,"pop-grid-default-th",27);a&2&&(a=M(2).column,D("column",a))},GLa=function(a){a&1&&(xf(0),O(1,ELa,1,3,"b-column-picker",28),O(2,FLa,1,1,"pop-grid-default-th",29),yf());a&2&&(a=M(2),B(1),D("ngIf",a.enableColumnSaving),B(1),D("ngIf",!a.enableColumnSaving))},HLa=function(a,b){a&1&&(G(0,"th"),O(1,GLa,3,2,"ng-container",23),H());a&2&&(a=b.column,b=M(),nf("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},ILa=function(a){a&1&&zf(0)},JLa=function(a){a&1&&(G(0,"td",22),O(1,ILa,
1,0,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},KLa=function(a){a&1&&zf(0)},LLa=function(a){a&1&&(G(0,"td",31),O(1,KLa,1,0,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},MLa=function(a){if(a&1){var b=x();xf(0);G(1,"mat-pseudo-checkbox",32);K("click",function(c){z(b);var d=M(),e=d.index;d=d.row;var f=M();c.stopPropagation();if(c.shiftKey&&(c=d.selected,null!==f.lastCheckedIndex&&f.searchResults)){if(e<f.lastCheckedIndex){var h=e+1;var k=f.lastCheckedIndex+1}else h=f.lastCheckedIndex,
k=e;h=r(f.searchResults.issues.slice(h,k));for(k=h.next();!k.done;k=h.next())k.value.selected=!c;Xp(f)}d.selected=!d.selected;f.lastCheckedIndex=e;Xp(f);return A()});H();yf()}a&2&&(a=M().row,B(1),D("state",a.selected?"checked":"unchecked"),nf("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},NLa=function(a){a&1&&(G(0,"td",25),O(1,MLa,2,3,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},OLa=function(a){if(a&1){var b=x();xf(0);G(1,"b-star-toggle",34);K("starClicked",function(){z(b);
var d=M().row,e=M();return A(e.toggleStar(d))});H();yf()}if(a&2){a=M().row;var c=M();B(1);D("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},PLa=function(a){a&1&&(G(0,"td",33),O(1,OLa,2,4,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},QLa=function(a){a&1&&(xf(0),G(1,"span"),P(2),H(),yf());a&2&&(a=M().row,B(1),nf("title",a.position),B(1),If(" ",a.position," "))},RLa=function(a){a&1&&(G(0,"td"),O(1,QLa,3,2,"ng-container",
23),H());a&2&&(M(),B(1),D("ngIf",!0))},SLa=function(a){a&1&&(xf(0),G(1,"a",36),P(2),H(),yf());if(a&2){a=M().row;var b=M();B(1);D("href",b.paths.editIssue(a.issueId),Kd);nf("title",a.title);B(1);If(" ",a.issueId," ")}},TLa=function(a){a&1&&(G(0,"td",35),O(1,SLa,3,3,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},ULa=function(a){a&1&&J(0,"archived-issue-indicator")},VLa=function(a,b){a&1&&J(0,"b-hotlist-chip-smart",46);a&2&&D("id",b.$implicit)("removable",!1)},WLa=function(a){a&1&&(G(0,"div",
44),O(1,VLa,1,2,"b-hotlist-chip-smart",45),H());a&2&&(a=M(2).row,B(1),D("ngForOf",a.hotlistId))},XLa=function(a){a&1&&(xf(0),G(1,"div",38),O(2,ULa,1,0,"archived-issue-indicator",23),J(3,"b-access-level-indicator",39)(4,"b-retention-chip",40),G(5,"div",41)(6,"a",42),P(7),H()(),O(8,WLa,2,1,"div",43),H(),yf());if(a&2){a=M().row;var b=M();B(1);sf("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);B(1);D("ngIf",a.archived);B(1);D("accessLevel",a.accessLevel)("compactMode",!0);B(1);
D("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);D("href",b.paths.editIssue(a.issueId),Kd);nf("title",a.title);B(1);If(" ",a.title," ");B(1);D("ngIf",b.listViewPrefs&&b.listViewPrefs.showHotlists)}},YLa=function(a){a&1&&(G(0,"td",37),O(1,XLa,9,13,"ng-container",23),H());a&2&&(a=M(),sf("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles),B(1),D("ngIf",!0))},$La=function(a){a&1&&(xf(0),G(1,"div",48),P(2),H(),
yf());a&2&&(a=M().row,M(),B(1),D("ngClass",Pf(ZLa,2<=Number(a.priority),2>Number(a.priority),0===Number(a.priority))),B(1),If(" P",a.priority," "))},aMa=function(a){a&1&&(G(0,"td",47),O(1,$La,3,6,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},bMa=function(a){a&1&&(xf(0),G(1,"div",48),P(2),H(),yf());a&2&&(a=M().row,M(),B(1),D("ngClass",Pf(ZLa,2<=Number(a.severity),2>Number(a.severity),0===Number(a.severity))),B(1),If(" S",a.severity," "))},cMa=function(a){a&1&&(G(0,"td",49),O(1,bMa,3,6,"ng-container",
23),H());a&2&&(M(),B(1),D("ngIf",!0))},dMa=function(a){a&1&&J(0,"b-issue-status-display",52);a&2&&(a=M(2).row,D("issueStatusJs",a.status)("displayMode","ICON"))},eMa=function(a){a&1&&(G(0,"span"),P(1),Q(2,"v2StatusToHuman"),H());a&2&&(a=M(2).row,B(1),If(" ",R(2,1,a.status)," "))},fMa=function(a){a&1&&(xf(0),O(1,dMa,1,2,"b-issue-status-display",51),O(2,eMa,3,3,"span",23),yf());if(a&2){a=M().row;var b=M();B(1);D("ngIf",b.listViewPrefs&&b.listViewPrefs.showStatusIcons&&a.status);B(1);D("ngIf",b.listViewPrefs&&
!b.listViewPrefs.showStatusIcons)}},gMa=function(a){a&1&&(G(0,"td",50),O(1,fMa,3,2,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},hMa=function(a){a&1&&(xf(0),P(1),Q(2,"enumToHuman"),yf());a&2&&(a=M().row,B(1),If(" ",R(2,1,a.type)," "))},iMa=function(a){a&1&&(G(0,"td",53),O(1,hMa,3,3,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},jMa=function(a){a&1&&(G(0,"b-person-hovercard",56),Q(1,"omitObfuscatedEmail"),P(2),H());a&2&&(a=M(2).row,D("email",R(1,2,a.reporter)),B(2),If(" ",a.reporter,
" "))},kMa=function(a){a&1&&(G(0,"span"),P(1,"--"),H())},lMa=function(a){a&1&&(xf(0),O(1,jMa,3,4,"b-person-hovercard",55),Q(2,"omitObfuscatedEmail"),O(3,kMa,2,0,"span",23),yf());a&2&&(a=M().row,B(1),D("ngIf",R(2,2,a.reporter)),B(2),D("ngIf",!a.reporter))},mMa=function(a){a&1&&(G(0,"td",54),O(1,lMa,4,4,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},nMa=function(a){a&1&&(G(0,"b-person-hovercard",56),Q(1,"omitObfuscatedEmail"),P(2),H());a&2&&(a=M(2).row,D("email",R(1,2,a.assignee)),B(2),If(" ",
a.assignee," "))},oMa=function(a){a&1&&(G(0,"span"),P(1,"--"),H())},pMa=function(a){a&1&&(xf(0),O(1,nMa,3,4,"b-person-hovercard",55),Q(2,"omitObfuscatedEmail"),O(3,oMa,2,0,"span",23),yf());a&2&&(a=M().row,B(1),D("ngIf",R(2,2,a.assignee)),B(2),D("ngIf",!a.assignee))},qMa=function(a){a&1&&(G(0,"td",54),O(1,pMa,4,4,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},rMa=function(a){a&1&&(G(0,"b-person-hovercard",56),Q(1,"omitObfuscatedEmail"),P(2),H());a&2&&(a=M(2).row,D("email",R(1,2,a.verifier)),
B(2),If(" ",a.verifier," "))},sMa=function(a){a&1&&(G(0,"span"),P(1,"--"),H())},tMa=function(a){a&1&&(xf(0),O(1,rMa,3,4,"b-person-hovercard",55),Q(2,"omitObfuscatedEmail"),O(3,sMa,2,0,"span",23),yf());a&2&&(a=M().row,B(1),D("ngIf",R(2,2,a.verifier)),B(2),D("ngIf",!a.verifier))},uMa=function(a){a&1&&(G(0,"td",54),O(1,tMa,4,4,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},vMa=function(a){a&1&&(xf(0),G(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),H(),yf());a&2&&(a=M().row,B(1),nf("title",
R(2,2,a.cc)),B(2),If(" ",R(4,4,a.cc)," "))},wMa=function(a){a&1&&(G(0,"td",54),O(1,vMa,5,6,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},xMa=function(a){a&1&&(xf(0),G(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),H(),yf());a&2&&(a=M().row,B(1),nf("title",R(2,2,a.changelist)),B(2),If(" ",R(4,4,a.changelist)," "))},yMa=function(a){a&1&&(G(0,"td",54),O(1,xMa,5,6,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},zMa=function(a){a&1&&(xf(0),G(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,
"arrayToHuman"),H(),yf());a&2&&(a=M().row,B(1),nf("title",R(2,2,a.postmortem)),B(2),If(" ",R(4,4,a.postmortem)," "))},AMa=function(a){a&1&&(G(0,"td",54),O(1,zMa,5,6,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},BMa=function(a){a&1&&zf(0)},CMa=function(a){a&1&&(G(0,"span"),P(1,", "),H())},EMa=function(a,b){a&1&&(xf(0),O(1,BMa,1,0,"ng-container",58),O(2,CMa,2,0,"span",23),yf());if(a&2){a=b.$implicit;b=b.last;M(3);var c=Hf(48);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Nf(3,DMa,a));
B(1);D("ngIf",!b)}},FMa=function(a){a&1&&(xf(0),O(1,EMa,3,5,"ng-container",57),yf());a&2&&(a=M().row,B(1),D("ngForOf",a.blockingIssueId))},GMa=function(a){a&1&&(G(0,"td",54),O(1,FMa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},HMa=function(a){a&1&&zf(0)},IMa=function(a){a&1&&(G(0,"span"),P(1,", "),H())},JMa=function(a,b){a&1&&(xf(0),O(1,HMa,1,0,"ng-container",58),O(2,IMa,2,0,"span",23),yf());if(a&2){a=b.$implicit;b=b.last;M(3);var c=Hf(48);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",
Nf(3,DMa,a));B(1);D("ngIf",!b)}},KMa=function(a){a&1&&(xf(0),O(1,JMa,3,5,"ng-container",57),yf());a&2&&(a=M().row,B(1),D("ngForOf",a.blockedByIssueId))},LMa=function(a){a&1&&(G(0,"td",54),O(1,KMa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},MMa=function(a){a&1&&zf(0)},NMa=function(a){a&1&&(xf(0),O(1,MMa,1,0,"ng-container",58),yf());if(a&2){a=M(2).row;M();var b=Hf(48);B(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Nf(2,DMa,a.duplicateOfIssueId))}},OMa=function(a){a&1&&(xf(0),O(1,
NMa,2,4,"ng-container",23),yf());a&2&&(a=M().row,B(1),D("ngIf",a.duplicateOfIssueId))},PMa=function(a){a&1&&(G(0,"td",54),O(1,OMa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},QMa=function(a){a&1&&(xf(0),J(1,"b-formatted-date-time",60),yf());a&2&&(a=M().row,B(1),D("timestamp",a.createdTime))},RMa=function(a){a&1&&(G(0,"td",59),O(1,QMa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},SMa=function(a){a&1&&(xf(0),J(1,"b-formatted-date-time",60),yf());a&2&&(a=M().row,B(1),D("timestamp",
a.modifiedTime))},TMa=function(a){a&1&&(G(0,"td",59),O(1,SMa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},UMa=function(a){a&1&&(xf(0),J(1,"b-formatted-date-time",60),yf());a&2&&(a=M().row,B(1),D("timestamp",a.resolvedTime))},VMa=function(a){a&1&&(G(0,"td",59),O(1,UMa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},WMa=function(a){a&1&&(xf(0),J(1,"b-formatted-date-time",60),yf());a&2&&(a=M().row,B(1),D("timestamp",a.verifiedTime))},XMa=function(a){a&1&&(G(0,"td",59),O(1,WMa,
2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},YMa=function(a){a&1&&(xf(0),G(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),H(),yf());a&2&&(a=M().row,B(1),nf("title",R(2,2,a.foundInVersion)),B(2),If(" ",R(4,4,a.foundInVersion)," "))},ZMa=function(a){a&1&&(G(0,"td",54),O(1,YMa,5,6,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},$Ma=function(a){a&1&&(xf(0),G(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),H(),yf());a&2&&(a=M().row,B(1),nf("title",R(2,2,a.targetedToVersion)),
B(2),If(" ",R(4,4,a.targetedToVersion)," "))},aNa=function(a){a&1&&(G(0,"td",54),O(1,$Ma,5,6,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},bNa=function(a){a&1&&(xf(0),G(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),H(),yf());a&2&&(a=M().row,B(1),nf("title",R(2,2,a.verifiedInVersion)),B(2),If(" ",R(4,4,a.verifiedInVersion)," "))},cNa=function(a){a&1&&(G(0,"td",54),O(1,bNa,5,6,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},dNa=function(a){a&1&&(xf(0),P(1),Q(2,"yesNo"),yf());
a&2&&(a=M().row,B(1),If(" ",R(2,1,a.inProd)," "))},eNa=function(a){a&1&&(G(0,"td",54),O(1,dNa,3,3,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},fNa=function(a){a&1&&(xf(0),P(1),Q(2,"yesNo"),yf());a&2&&(a=M().row,B(1),If(" ",R(2,1,a.archived)," "))},gNa=function(a){a&1&&(G(0,"td",54),O(1,fNa,3,3,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},hNa=function(a){a&1&&(xf(0),G(1,"div",38)(2,"div",41)(3,"span"),Q(4,"componentPath"),P(5),Q(6,"componentPath"),H()()(),yf());a&2&&(a=M().row,B(3),
nf("title",R(4,2,a.componentPath)),B(2),Jf(R(6,4,a.componentPath)))},jNa=function(a){a&1&&(G(0,"td",61),O(1,hNa,7,6,"ng-container",23),H());if(a&2){a=M();var b;var c=!(null==(b=a.listViewPrefs)||!b.rtlComponentPath);D("ngClass",Of(2,iNa,a.listViewPrefs&&a.listViewPrefs.wrapComponents,c));B(1);D("ngIf",!0)}},kNa=function(a){a&1&&(G(0,"slo-status-card",64),J(1,"b-aggregated-slo-status-indicator",65),H());a&2&&(a=M(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil),
B(1),D("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil))},lNa=function(a){a&1&&(xf(0),O(1,kNa,2,5,"slo-status-card",63),yf());a&2&&(a=M().row,B(1),D("ngIf",a.sloStatus))},mNa=function(a){a&1&&(G(0,"td",62),O(1,lNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},nNa=function(a){a&1&&(G(0,"slo-status-card",67),J(1,"b-slo-time-indicator",68),H());a&2&&(a=M(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","RESPONSE"),B(1),D("sloBounds",
a.sloStatus.getResponseBounds()))},oNa=function(a){a&1&&(xf(0),O(1,nNa,2,5,"slo-status-card",66),yf());a&2&&(a=M().row,B(1),D("ngIf",a.sloStatus))},pNa=function(a){a&1&&(G(0,"td",62),O(1,oNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},qNa=function(a){a&1&&(G(0,"slo-status-card",67),J(1,"b-slo-time-indicator",68),H());a&2&&(a=M(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","ASSIGNMENT"),B(1),D("sloBounds",a.sloStatus.getAssignmentBounds()))},
rNa=function(a){a&1&&(xf(0),O(1,qNa,2,5,"slo-status-card",66),yf());a&2&&(a=M().row,B(1),D("ngIf",a.sloStatus))},sNa=function(a){a&1&&(G(0,"td",62),O(1,rNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},tNa=function(a){a&1&&(G(0,"slo-status-card",67),J(1,"b-slo-time-indicator",68),H());a&2&&(a=M(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","CLOSURE"),B(1),D("sloBounds",a.sloStatus.getClosureBounds()))},uNa=function(a){a&1&&(xf(0),
O(1,tNa,2,5,"slo-status-card",66),yf());a&2&&(a=M().row,B(1),D("ngIf",a.sloStatus))},vNa=function(a){a&1&&(G(0,"td",62),O(1,uNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},wNa=function(a,b){a&1&&J(0,"b-formatted-date-time",70);a&2&&(a=b.$implicit,M(3),D("timestamp",1E3*a.seconds))},xNa=function(a){a&1&&(xf(0),O(1,wNa,1,1,"b-formatted-date-time",69),yf());a&2&&(a=M().row,B(1),D("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime))},yNa=function(a){a&1&&(G(0,"td",
54),O(1,xNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},zNa=function(a){a&1&&J(0,"div",72)},ANa=function(a){a&1&&(G(0,"div"),J(1,"b-team-display",73),H());a&2&&(a=M(2).row,B(1),D("teamId",a.teamId.toString())("componentId",a.componentId.toString())("anchorLinkEnabled",!1))},BNa=function(a){a&1&&(xf(0),O(1,zNa,1,0,"div",71),O(2,ANa,2,3,"div",23),yf());a&2&&(a=M(2),B(1),D("ngIf",a.isLoadingTeams),B(1),D("ngIf",!a.isLoadingTeams))},CNa=function(a){a&1&&(G(0,"td",54),O(1,BNa,3,2,"ng-container",
23),H());a&2&&(M(),B(1),D("ngIf",!0))},DNa=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M().row,B(1),If(" ",null==a.effort?null:V(a.effort,2)," "))},ENa=function(a){a&1&&(G(0,"td",54),O(1,DNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},FNa=function(a){a&1&&(xf(0),P(1),yf());if(a&2){a=M().row;var b=M();B(1);If(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:xl(a.effort,4))||"":""," ")}},GNa=function(a){a&1&&(G(0,"td",54),O(1,FNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},
HNa=function(a){a&1&&(xf(0),P(1),yf());if(a&2){a=M().row;var b=M();B(1);If(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:xl(a.effort,5))||"":""," ")}},INa=function(a){a&1&&(G(0,"td",54),O(1,HNa,2,1,"ng-container",23),H());a&2&&(M(),B(1),D("ngIf",!0))},JNa=function(a){a&1&&J(0,"b-issue-card",77,78);if(a&2){var b=Hf(1);a=M().id;D("onedevIsHovercardReady",b.init)("issueId",a)}},KNa=function(a,b){a&1&&(G(0,"onedev-hovercard",null,74),O(2,JNa,2,2,"b-issue-card",75),H(),G(3,"span",76),P(4),H());if(a&
2){a=b.id;var c=Hf(1);B(3);D("onedevHovercardTrigger",c);B(1);Jf(a)}},LNa=function(a){if(a&1){var b=x();G(0,"b-app-bar-bulk-edit-menus",10);K("onBulkEdit",function(c){z(b);var d=M();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=M();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",function(c){z(b);var d=M();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){z(b);var c=M();return A(c.bulkMarkIssueRead())});H()}a&2&&(a=M(),D("readStatePrompt",KJa(a)))},
MNa=function(a){if(a&1){var b=x();G(0,"b-copy-issue-id-button",11);K("onClickCopyIssueIds",function(){z(b);var c=M();return A(MJa(c.copyIssueIdService,Qp(c)))})("onClickCopyIssueShortLinks",function(){z(b);var c=M();return A(NJa(c.copyIssueIdService,Qp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=M();return A(OJa(c.copyIssueIdService,Qp(c)))});H()}a&2&&(a=M(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},
NNa=function(a){if(a&1){var b=x();G(0,"div",12)(1,"b-hotlist-picker",13);K("onApply",function(c){z(b);var d=M();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=M();return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=M();return A(d.onLoadHotlist.emit(c))});H()()}a&2&&(a=M(),B(1),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},ONa=function(a){a&1&&J(0,"hotlist-archive-btn",16);a&2&&(a=M(2),D("hotlistId",a.currentHotlistId))},PNa=function(a){if(a&
1){var b=x();xf(0);G(1,"hotlist-add-issue-btn",14);K("issueAddedToHotlist",function(){z(b);var c=M();return A(c.refresh())});H();O(2,ONa,1,1,"hotlist-archive-btn",15);yf()}a&2&&(a=M(),B(1),D("hotlistId",a.currentHotlistId),B(1),D("ngIf",a.isHotlistAdmin))},QNa=function(a){a&1&&(G(0,"span",20),P(1,"Reporting"),H())},RNa=function(a){if(a&1){var b=x();G(0,"b-button",17);K("onAction",function(){z(b);var c=M();return A(c.openInEstado())});J(1,"b-icon",18);O(2,QNa,2,0,"span",19);H()}a&2&&(a=M(),D("size",
a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),B(2),D("ngIf",!a.hasSelectedIssues()))},SNa=function(a,b){a&1&&(G(0,"li"),P(1),J(2,"b-access-level-indicator",28),H());a&2&&(a=b.$implicit,B(1),If(" ",a.path," "),B(1),D("accessLevel",a.accessLevel))},TNa=function(a){a&1&&(G(0,"div",26)(1,"div")(2,"strong"),P(3,"You are commenting on issues in components that have external viewers:"),H()(),G(4,"ul"),O(5,SNa,3,2,"li",27),H()());a&2&&(a=M(2),B(5),D("ngForOf",a.externalWarnings))},
UNa=function(a){if(a&1){var b=x();G(0,"h1",21);P(1,"Add comment");H();G(2,"mat-dialog-content")(3,"b-comment-box",22);K("commentChange",function(c){z(b);var d=M();return A(d.comment=c)})("onSubmit",function(){z(b);var c=M();return A(TJa(c))});H();O(4,TNa,6,1,"div",23);H();G(5,"mat-dialog-actions")(6,"button",24);P(7," Cancel ");H();G(8,"button",25);P(9," Save ");H()()}a&2&&(a=M(),B(3),D("comment",a.comment)("showToolbar",!1),B(1),D("ngIf",0<a.externalWarnings.length),B(2),D("mat-dialog-close",!1),
B(2),D("mat-dialog-close",!0))},WNa=function(a,b){if(a&1){var c=x();G(0,"div",6)(1,"b-contact-chip",7);K("chipSelection",function(){var d=z(c).index,e=M();e.selectedChipIndex!==d&&Yp(e,d)&&(VNa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return A()})("chipClear",function(){z(c);var d=M();return A(VNa(d))})("chipRemove",function(){var d=z(c).index,e=M();return A(e.removeItem(d))});H()()}a&2&&(a=b.$implicit,b=M(),B(1),D("isReadonly",a.isReadonly)("isSelected",a.isSelected)("isWidgetDisabled",
b.isWidgetDisabled())("principalType",a.principalType)("detailedUserType",a.detailedUserType)("nestedChips",a.nestedChips)("value",a.value)("displayText",a.displayText)("accessLevel",b.getAccessLevel()))},XNa=function(a){a&1&&(G(0,"span"),P(1," Groups cannot be granted Restricted+ reader permission. "),G(2,"a",8),P(3,"Learn more"),H()());a&2&&(a=M(),B(2),nf("href",Do(a.documentationLinks)+"#components",Kd))},YNa=function(a){a&1&&(G(0,"span"),P(1," Invalid user(s). "),H())},ZNa=function(a){a&1&&(G(0,
"span"),P(1,' "Public" or external users are not allowed for component designated as "internal access". '),H())},$Na=function(a){a&1&&(G(0,"span"),P(1,' "Public" is not allowed for components designated as "external partner access". '),H())},aOa=function(a){if(a&1){var b=x();G(0,"div",7)(1,"button",8);K("click",function(){z(b);var c=M();return A(c.onPressSave())});P(2," Save ");H();G(3,"button",9);K("click",function(){z(b);var c=M();return A(c.onPressRevert())});P(4," Revert changes ");H()()}a&2&&
(a=M(),B(1),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),B(2),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},bOa=function(a){if(a&1){var b=x();G(0,"div",7)(1,"button",8);K("click",function(){z(b);var d=M();return A(d.save())});P(2," Save ");H();G(3,"button",
9);K("click",function(){z(b);var d=M();return A(d.revert())});P(4," Revert changes ");H();J(5,"hotlist-archive-btn",10);Q(6,"async");H()}if(a&2){a=M();var c;B(1);D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");B(2);D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state");B(2);D("hotlistId",null!==(c=R(6,5,a.id$))&&void 0!==c?c:void 0)}},cOa=function(a,b){a&
1&&(xf(0),P(1),yf());a&2&&(a=b.$implicit,B(1),If(" ",a.name," "))},dOa=function(a){a&1&&(G(0,"strong",4),P(1,"(archived)"),H())},eOa=function(a){a&1&&J(0,"b-spinner")},fOa=function(a){if(!a)return{left:"0",width:"0"};if(a.classList.contains("mat-tab-link")){var b=window.getComputedStyle(a),c=b.paddingLeft?Number(b.paddingLeft.replace("px",""))||0:0;b=b.paddingRight?Number(b.paddingRight.replace("px",""))||0:0;return{left:a.offsetLeft+c+2+"px",width:a.offsetWidth-c-b-4+"px"}}b=a.querySelector(".mat-tab-label-content");
if(!b)return{left:a.offsetLeft+2+"px",width:a.offsetWidth-4+"px"};c=a.offsetWidth;b=Math.min(Math.max(b.offsetWidth-4,24),c-4);return{left:a.offsetLeft+c/2-b/2+"px",width:b+"px"}},gOa=function(a){a&1&&(G(0,"p",8),P(1," This hotlist cannot be edited because you are not an administrator of it. "),H())},hOa=function(a){a&1&&(xf(0),J(1,"b-edit-hotlist-toolbar",1),G(2,"div",2),J(3,"b-edit-hotlist-header",1),G(4,"mat-tab-group",3)(5,"mat-tab",4),J(6,"b-edit-hotlist-basic",5),Q(7,"async"),H(),G(8,"mat-tab",
6),J(9,"b-edit-hotlist-acl",5),Q(10,"async"),H()(),O(11,gOa,2,0,"p",7),Q(12,"async"),H(),yf());a&2&&(a=M(),B(1),D("hotlistId",a.id),B(2),D("hotlistId",a.id),B(1),D("selectedIndex",a.tabIndex),B(2),D("hotlistId",a.id)("isReadOnly",!1===R(7,8,a.isAdmin$)),B(3),D("hotlistId",a.id)("isReadOnly",!1===R(10,10,a.isAdmin$)),B(2),D("ngIf",!1===R(12,12,a.isAdmin$)))},iOa=function(a,b){a&1&&(xf(0),J(1,"empty-toolbar"),G(2,"div",9)(3,"h2"),P(4,"Error"),H(),G(5,"p"),P(6),H()(),yf());a&2&&(a=b.$implicit,B(6),Jf(a))},
jOa=function(a){a&1&&(G(0,"b-callout",1)(1,"b-callout-body"),P(2),H()());a&2&&(a=M(),B(2),Jf(a.error))},kOa=function(a){a&1&&zf(0)},lOa=function(a){a&1&&(G(0,"span"),P(1,"Details"),H())},mOa=function(a){a&1&&(G(0,"span"),P(1,"Members"),H())},oOa=function(a){a&1&&(G(0,"div",13)(1,"a",14),O(2,lOa,2,0,"span",15),O(3,mOa,2,0,"span",15),H()());if(a&2){a=M(2);B(1);if(void 0===a.email)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=nOa(a.email)?"https://ganpati2.corp.google.com/group/"+
b+".corp":tua(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}D("href",b,Kd);B(1);D("ngIf",nOa(a.email));B(1);D("ngIf",!nOa(a.email))}},pOa=function(a){a&1&&(xf(0),G(1,"span",2),O(2,kOa,1,0,"ng-container",3),H(),G(3,"onedev-hovercard",null,4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"h3"),P(11),H()(),G(12,"div",10),J(13,"mat-icon",11),G(14,"span"),P(15),H()()(),O(16,oOa,4,3,"div",12),H()()()(),yf());if(a&2){var b=Hf(4);
a=M();var c=Hf(2);B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(9);Jf(a.getName());B(4);Jf(a.email);B(1);D("ngIf",!a.sessionIsExternal&&!!Ln(a.email))}},qOa=function(a){a&1&&Df(0)},rOa=function(a,b){a&1&&J(0,"mat-icon",8);a&2&&D("svgIcon",b.ngIf)},sOa=function(a){a&1&&(G(0,"b-person-hovercard",9),P(1),H());a&2&&(a=M(),D("email",a.value),B(1),If(" ",a.displayText," "))},tOa=function(a){a&1&&(G(0,"b-group-email-card",9),P(1),H());a&2&&(a=M(),D("email",a.value),B(1),If(" ",a.displayText,
" "))},uOa=function(a){a&1&&(G(0,"div"),P(1),H());a&2&&(a=M(),B(1),If(" ",a.displayText," "))},vOa=function(a){if(a&1){var b=x();G(0,"div",10);K("click",function(){z(b);var c=M();return A(c.chipRemove.emit())});J(1,"mat-icon",11);H()}a&2&&(a=M(),Ef("matTooltip","'Remove ",a.displayText,"'"),nf("aria-label","Remove "+a.displayText))},wOa=function(a,b){a&1&&(G(0,"div",19),J(1,"b-contact-chip",20),H());a&2&&(a=b.$implicit,b=M(2),B(1),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",
a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},xOa=function(a){a&1&&(G(0,"div",12)(1,"div",13)(2,"div",14),O(3,wOa,2,5,"div",15),G(4,"div",16),J(5,"div",17)(6,"div",18),H()()()());a&2&&(a=M(),B(3),D("ngForOf",a.nestedChips))},yOa=function(a,b){if(a&1){var c=x();G(0,"tr",7);K("click",function(){var e=z(c).$implicit,f=M();return A(f.editHotlist(e))})("focus",function(){var e=z(c).index,f=M();return A(f.setFocusOnIndex(e))});J(1,"td",2);G(2,"td",8)(3,"a",9);K("click",function(e){return e.stopPropagation()});
P(4);H()();G(5,"td",10);P(6);H();G(7,"td",11);P(8);H();G(9,"td",12);P(10);H()()}if(a&2){a=b.$implicit;b=b.index;var d=M();sf("grid-focus",d.isFocused(b));nf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);D("href",d.paths.editHotlist(a.hotlistId),Kd);B(1);If(" ",a.name," ");B(2);If(" ",a.description," ");B(2);If(" ",d.convertUserToString(a.ownerUser)," ");B(2);If(" ",a.hotlistId," ")}},zOa=function(a){if(a&1){var b=x();G(0,"button",9);K("click",function(){z(b);var c=M(2);return A(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});
P(1," Move to top ");H()}},AOa=function(a){if(a&1){var b=x();G(0,"button",10);K("click",function(){z(b);var c=M(2);return A(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});P(1," Move up ");H()}},BOa=function(a){if(a&1){var b=x();G(0,"button",11);K("click",function(){z(b);var c=M(2);return A(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});P(1," Move down ");H()}},COa=function(a){if(a&1){var b=x();G(0,"button",12);K("click",function(){z(b);var c=M(2);return A(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});
P(1," Move to bottom ");H()}},DOa=function(a){if(a&1){var b=x();O(0,zOa,2,0,"button",4);O(1,AOa,2,0,"button",5);O(2,BOa,2,0,"button",6);O(3,COa,2,0,"button",7);G(4,"button",8);K("click",function(){z(b);var c=M();return A(c.removePanel())});P(5," Remove ");H()}a&2&&(a=M(),D("ngIf",!a.first),B(1),D("ngIf",!a.first),B(1),D("ngIf",!a.last),B(1),D("ngIf",!a.last))},EOa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(),nf("title",a.getValue()),B(1),If(" ",a.getValue(),"\n"))},FOa=function(a){a&1&&J(0,
"b-custom-field-value-display",2);a&2&&(a=M(),D("customFieldValue",a.getCustomFieldValue()))},GOa=function(a){a&1&&(G(0,"button",5,6),J(2,"mat-icon",7),H());if(a&2){a=M();var b=Hf(2);D("matMenuTriggerFor",b);nf("aria-label",a.buttonLabel);B(2);D("svgIcon",a.buttonIcon)}},HOa=function(a){a&1&&(G(0,"div",8),P(1),H());a&2&&(a=M(),B(1),Jf(a.header))},IOa=function(a){a&1&&J(0,"mat-icon",7);a&2&&(a=M(2).$implicit,D("svgIcon",a.icon))},JOa=function(a){a&1&&(G(0,"span",14),P(1),H());a&2&&(a=M(2).$implicit,
B(1),Jf(a.hintText))},KOa=function(a){a&1&&J(0,"mat-icon",7);a&2&&(a=M(2).$implicit,D("svgIcon",a.icon))},LOa=function(a){a&1&&(G(0,"span",14),P(1),H());a&2&&(a=M(2).$implicit,B(1),Jf(a.hintText))},MOa=function(a){if(a&1){var b=x();G(0,"button",17);K("click",function(c){z(b);var d=M().$implicit,e=M(3);return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=M().$implicit,e=M(3);return A(e.onAction(c,d))})("keydown",function(c){z(b);var d=M().$implicit,e=M(3);return A(e.onKeydown(c,d))});O(1,KOa,
1,1,"mat-icon",11);P(2);O(3,LOa,2,1,"span",12);H()}a&2&&(a=M().$implicit,D("disabled",a.disabled),nf("title",a.title),B(1),D("ngIf",a.icon),B(1),If(" ",a.label," "),B(1),D("ngIf",a.hintText))},NOa=function(a){if(a&1){var b=x();G(0,"button",18);K("click",function(c){z(b);var d=M().$implicit,e=M(3);return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=M().$implicit,e=M(3);return A(e.onAction(c,d))})("keydown",function(c){z(b);var d=M().$implicit,e=M(3);return A(e.onKeydown(c,d))});G(1,"span",
19);J(2,"mat-icon",20);H();P(3);H()}a&2&&(a=M().$implicit,sf("b-menu-item-checked",a.selected),D("disabled",a.disabled),nf("title",a.title),B(3),If(" ",a.label," "))},OOa=function(a,b){a&1&&(xf(0),O(1,MOa,4,5,"button",15),O(2,NOa,4,5,"button",16),yf());a&2&&(a=b.$implicit,B(1),D("ngIf","action"===a.type),B(1),D("ngIf","select"===a.type))},POa=function(a){a&1&&(xf(0),G(1,"button",10),O(2,IOa,1,1,"mat-icon",11),P(3),O(4,JOa,2,1,"span",12),H(),G(5,"mat-menu",null,13),O(7,OOa,3,2,"ng-container",4),H(),
yf());if(a&2){var b=Hf(6);a=M().$implicit;var c=M();B(1);D("matMenuTriggerFor",b);B(1);D("ngIf",a.icon);B(1);If(" ",a.label," ");B(1);D("ngIf",a.hintText);B(3);D("ngForOf",a.items)("ngForTrackBy",c.trackByIndex)}},QOa=function(a){a&1&&J(0,"mat-icon",7);a&2&&(a=M(3).$implicit,D("svgIcon",a.icon))},ROa=function(a){a&1&&(G(0,"span",14),P(1),H());a&2&&(a=M(3).$implicit,B(1),Jf(a.hintText))},SOa=function(a){if(a&1){var b=x();G(0,"button",17);K("click",function(c){z(b);var d=M(2).$implicit,e=M();return A(e.onAction(c,
d))})("mouseup",function(c){z(b);var d=M(2).$implicit,e=M();return A(e.onAction(c,d))})("keydown",function(c){z(b);var d=M(2).$implicit,e=M();return A(e.onKeydown(c,d))});O(1,QOa,1,1,"mat-icon",11);P(2);O(3,ROa,2,1,"span",12);H()}a&2&&(a=M(2).$implicit,D("disabled",a.disabled),nf("title",a.title),B(1),D("ngIf",a.icon),B(1),If(" ",a.label," "),B(1),D("ngIf",a.hintText))},TOa=function(a){if(a&1){var b=x();G(0,"button",18);K("click",function(c){z(b);var d=M(2).$implicit,e=M();return A(e.onAction(c,d))})("mouseup",
function(c){z(b);var d=M(2).$implicit,e=M();return A(e.onAction(c,d))})("keydown",function(c){z(b);var d=M(2).$implicit,e=M();return A(e.onKeydown(c,d))});G(1,"span",19);J(2,"mat-icon",20);H();P(3);H()}a&2&&(a=M(2).$implicit,sf("b-menu-item-checked",a.selected),D("disabled",a.disabled),nf("title",a.title),B(3),If(" ",a.label," "))},UOa=function(a){a&1&&(xf(0),O(1,SOa,4,5,"button",15),O(2,TOa,4,5,"button",16),yf());a&2&&(a=M().$implicit,B(1),D("ngIf","action"===a.type),B(1),D("ngIf","select"===a.type))},
VOa=function(a,b){a&1&&(xf(0),O(1,POa,8,6,"ng-container",9),O(2,UOa,3,2,"ng-container",9),yf());a&2&&(a=b.$implicit,B(1),D("ngIf","submenu"===a.type),B(1),D("ngIf","submenu"!==a.type))},WOa=function(a){a&1&&J(0,"b-actions-menu",7);a&2&&(a=M(),D("menuItems",a.menuItems))},XOa=function(a){a&1&&(G(0,"span",8)(1,"strong"),P(2),H(),P(3,"\u00a0of\u00a0"),G(4,"strong"),P(5),H()());a&2&&(a=M(),B(2),Kf("",null==a.searchResults?null:a.searchResults.startIndex,"\u00a0-\u00a0",null==a.searchResults?null:a.searchResults.endIndex,
""),B(3),Jf(null==a.searchResults?null:a.searchResults.totalText))},YOa=function(a){a&1&&(G(0,"div"),P(1," Hotlist not found. "),H())},ZOa=function(a){a&1&&(G(0,"div"),P(1," Loading details... "),H())},$Oa=function(a){a&1&&J(0,"b-panel-controls",11);a&2&&(a=M(2),D("panelId",a.panel.panelId))},aPa=function(a){a&1&&(G(0,"span",12),P(1," \u00a0(changed) "),H())},bPa=function(a){a&1&&(G(0,"div"),O(1,$Oa,1,1,"b-panel-controls",6),G(2,"span",7),P(3," Hotlist: "),G(4,"a",8)(5,"span",9),P(6),H()()(),O(7,
aPa,2,0,"span",10),H());a&2&&(a=M(),B(1),D("ngIf",a.isDashboardEditable),B(3),D("href",a.paths.viewHotlist(a.hotlistId),Kd),B(1),Ff("matTooltip",a.resource.description),B(1),Jf(a.resource.name),B(1),D("ngIf",a.hasParamChanges()))},cPa=function(a){if(a&1){var b=x();G(0,"div",13)(1,"button",14);K("click",function(){z(b);var c=M();return A(c.save())});P(2,"Save ");H();G(3,"button",15);K("click",function(){z(b);var c=M();return A(c.discardChanges())});P(4," Discard changes ");H()()}},dPa=function(a){a&
1&&(G(0,"span"),P(1),H());a&2&&(a=M(3),B(1),If(" Searching for ",a.searchParams.query," ..."))},ePa=function(a){a&1&&(G(0,"div",19),J(1,"b-spinner",20),O(2,dPa,2,1,"span",3),H());a&2&&(a=M(2),B(1),D("large",!1),B(1),D("ngIf",a.searchParams&&(null==a.searchParams?null:a.searchParams.query)))},fPa=function(a){a&1&&(G(0,"div",21),P(1," No issues in hotlist. "),H())},hPa=function(a){if(a&1){var b=x();G(0,"div",22)(1,"b-issues-grid",23);K("init",function(c){z(b);var d=M(2);return A(gPa(d,c))})("focusedRowIndexChange",
function(c){z(b);var d=M(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=M(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=M(2);return A(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){z(b);var d=M(2);return A(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){z(b);var d=M(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=M(2);return A(c.goToPage(c.page+1))})("onPrevPage",function(){z(b);
var c=M(2);return A(c.goToPage(c.page-1))});H()()}a&2&&(a=M(2),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},iPa=function(a){a&1&&(G(0,"div"),O(1,ePa,3,2,"div",16),O(2,fPa,2,0,"div",17),O(3,hPa,2,5,"div",18),H());a&2&&(a=M(),B(1),D("ngIf",a.isLoading),B(1),D("ngIf",!a.isLoading&&!(null==a.searchResults?0:null==a.searchResults.issues?0:a.searchResults.issues.length)),B(1),D("ngIf",
!a.isLoading&&(null==a.searchResults?null:null==a.searchResults.issues?null:a.searchResults.issues.length)))},jPa=function(a){a&1&&(Lc(),Mc(),zf(0))},lPa=function(a,b){a&1&&(xf(0),G(1,"div",11)(2,"span",12),Lc(),G(3,"svg",13),J(4,"path",14),H()(),O(5,jPa,1,0,"ng-container",15),H(),yf());if(a&2){a=b.$implicit;b=b.index;var c=M(3),d=Hf(6);B(2);sf("invisible",c.disabled);B(3);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Of(4,kPa,a,b))}},mPa=function(a){a&1&&(xf(0),O(1,lPa,6,7,"ng-container",10),
yf());a&2&&(a=M(2),B(1),D("ngForOf",a.items))},nPa=function(a){if(a&1){var b=x();xf(0);G(1,"div",8)(2,"div",9);K("cdkDropListDropped",function(d){z(b);var e=M();return A(e.onDrop(d))});O(3,mPa,2,1,"ng-container",2);H()();yf()}if(a&2){a=M();var c=Hf(12);B(3);D("ngIf",a.items.length)("ngIfElse",c)}},oPa=function(a){a&1&&zf(0)},pPa=function(a,b){a&1&&(xf(0),G(1,"div",17),O(2,oPa,1,0,"ng-container",15),H(),yf());if(a&2){a=b.$implicit;b=b.index;M(3);var c=Hf(6);B(2);D("ngTemplateOutlet",c)("ngTemplateOutletContext",
Of(2,kPa,a,b))}},qPa=function(a){a&1&&(xf(0),O(1,pPa,3,5,"ng-container",10),yf());a&2&&(a=M(2),B(1),D("ngForOf",a.items))},rPa=function(a){a&1&&(G(0,"div",16),O(1,qPa,2,1,"ng-container",2),H());if(a&2){a=M();var b=Hf(12);B(1);D("ngIf",a.items.length)("ngIfElse",b)}},sPa=function(a){a&1&&zf(0)},tPa=function(a){if(a&1){var b=x();G(0,"button",19);K("click",function(){z(b);var d=M().index,e=M();return A(e.removeAtIndex(d))});Lc();G(1,"svg",13);J(2,"path",20);H()()}if(a&2){a=M().$implicit;var c=M();D("matTooltip",
"Remove "+(c.valueToTextFunc?c.valueToTextFunc(a):String(a)));nf("aria-label","Remove "+(c.valueToTextFunc?c.valueToTextFunc(a):String(a)))}},uPa=function(a,b){a&1&&(O(0,sPa,1,0,"ng-container",15),O(1,tPa,3,2,"button",18));if(a&2){a=b.$implicit;b=b.index;var c=M(),d=Hf(10),e=Hf(8);D("ngTemplateOutlet",c.listItemTemplate?d:e)("ngTemplateOutletContext",Of(3,kPa,a,b));B(1);D("ngIf",!c.disabled&&c.removable)}},vPa=function(a,b){a&1&&(G(0,"span",21),P(1),H());a&2&&(a=b.$implicit,B(1),Jf(a))},wPa=function(a,
b){a&1&&zf(0,22);if(a&2){a=b.$implicit;var c=b.index,d=M();b=D("ngTemplateOutlet",d.listItemTemplate);var e=d.disabled;d=d.removable;var f=x(),h=Ic()+2,k=mf(f,h,a,c);a=mf(f,h+2,e,d)||k?kf(f,h+4,{$implicit:a,index:c,disabled:e,removable:d}):Qf(f,h+4);b("ngTemplateOutletContext",a)}},xPa=function(a){a&1&&(G(0,"div",23),Df(1),H())},yPa=function(a){a&1&&J(0,"b-issue-status-display",9);a&2&&(a=M().$implicit,D("issueStatusJs",a.status)("displayMode","ICON"))},zPa=function(a){a&1&&J(0,"b-issue-card",10,
11);if(a&2){var b=Hf(1);a=M().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},APa=function(a){a&1&&(G(0,"a",12),P(1),H());if(a&2){a=M().$implicit;var b=M();D("href",b.getLink(a),Kd);B(1);If(" ",a.title," ")}},BPa=function(a){a&1&&(G(0,"span"),P(1," Loading details... "),H())},CPa=function(a){a&1&&(G(0,"span"),P(1," [Details unavailable] "),H())},DPa=function(a,b){a&1&&(G(0,"span",2),O(1,yPa,1,2,"b-issue-status-display",3),G(2,"span")(3,"onedev-hovercard",null,4),O(5,zPa,2,2,"b-issue-card",
5),H(),G(6,"a",6),P(7),H()(),O(8,APa,2,2,"a",7),O(9,BPa,2,0,"span",8),O(10,CPa,2,0,"span",8),H());if(a&2){a=b.$implicit;var c=Hf(4);b=M();D("ngClass",b.getStatusTextStyle(a));B(1);D("ngIf",a.status);B(5);pf("aria-label","Open issue ID ",a.issueId,"");D("href",b.getLink(a),Kd)("onedevHovercardTrigger",c);B(1);If(" ",a.issueId," ");B(1);D("ngIf",a.resolved&&a.title);B(1);D("ngIf",!a.resolved);B(1);D("ngIf",a.resolved&&!a.title)}},EPa=function(a){if(a&1){var b=x();G(0,"b-rel-issues-list",6);K("itemsChange",
function(c){z(b);var d=M(2);return A(d.itemsChange.emit(c))})("itemChange",function(c){z(b);var d=M(2);return A(d.itemChange.emit(c))})("itemMove",function(c){z(b);var d=M(2);return A(d.itemMove.emit(c))});H()}a&2&&(a=M(2),D("items",a.items)("orderByFn",a.orderByFn)("disabled",a.disabled)("reorderable",a.reorderable))},FPa=function(a){a&1&&(G(0,"div"),O(1,EPa,1,4,"b-rel-issues-list",5),H());a&2&&(a=M(),B(1),D("ngIf",a.items.length))},GPa=function(a){a&1&&J(0,"b-issue-status-display",18);a&2&&(a=M().$implicit,
D("issueStatusJs",a.status))},HPa=function(a){a&1&&J(0,"b-issue-card",19,20);if(a&2){var b=Hf(1);a=M().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},IPa=function(a){a&1&&(G(0,"span",10),P(1," Loading details... "),H())},JPa=function(a){a&1&&(G(0,"span",21),P(1),H());a&2&&(a=M().$implicit,B(1),If(" ",a.title," "))},KPa=function(a){a&1&&(G(0,"span"),P(1," [Details unavailable.] "),H())},LPa=function(a){if(a&1){var b=x();G(0,"button",22);K("click",function(){z(b);var d=M().$implicit,
e=M(2);return A(e.removeItem(d.issueId))});H()}if(a&2){a=M().$implicit;var c=M(2);D("disabled",c.disabled)("matTooltip",c.removeButtonTitle||"Remove issue");nf("aria-label",c.removeButtonTitle?c.removeButtonTitle+" ID "+a.issueId:"Remove issue ID "+a.issueId)}},MPa=function(a,b){a&1&&(G(0,"div",8),O(1,GPa,1,1,"b-issue-status-display",9),G(2,"span",10)(3,"onedev-hovercard",null,11),O(5,HPa,2,2,"b-issue-card",12),H(),G(6,"a",13),P(7),H()(),G(8,"a",14),O(9,IPa,2,0,"span",15),O(10,JPa,2,1,"span",16),
O(11,KPa,2,0,"span",3),H(),O(12,LPa,1,3,"button",17),H());if(a&2){a=b.$implicit;var c=Hf(4);b=M(2);D("ngClass",!b.hideStatus&&b.getStatusTextStyle(a)||"");B(1);D("ngIf",!b.hideStatus&&a.resolved&&a.status);B(5);pf("aria-label","Open issue ID ",a.issueId,"");D("href",b.getLink(a),Kd)("onedevHovercardTrigger",c);B(1);If(" ",a.issueId," ");B(1);D("href",b.getLink(a),Kd);B(1);D("ngIf",!a.resolved);B(1);D("ngIf",a.resolved&&a.title);B(1);D("ngIf",a.resolved&&!a.title);B(1);D("ngIf",b.removeButtonTitle)}},
NPa=function(a){a&1&&(G(0,"div"),O(1,MPa,13,11,"div",7),H());a&2&&(a=M(),B(1),D("ngForOf",a.items))},OPa=function(a){a&1&&(G(0,"div"),P(1,"--"),H())},PPa=function(a){a&1&&(G(0,"div",26)(1,"a",14),P(2,"View in issue list"),H()());a&2&&(a=M(2),B(1),D("href",a.searchLink,Kd))},RPa=function(a){if(a&1){var b=x();G(0,"div",23)(1,"button",24);K("click",function(){z(b);var c=M();return A(QPa(c))});P(2);H();O(3,PPa,3,1,"div",25);Df(4);H()}a&2&&(a=M(),B(1),D("disabled",a.disabled),B(1),If(" ",a.addButtonTitle||
"Add issue"," "),B(1),D("ngIf",a.searchLink))},SPa=function(a){a&1&&(G(0,"div"),P(1," Saved search not found. "),H())},TPa=function(a){a&1&&(G(0,"div"),P(1," Loading details... "),H())},UPa=function(a){a&1&&J(0,"b-panel-controls",11);a&2&&(a=M(2),D("panelId",a.panel.panelId))},VPa=function(a){a&1&&(G(0,"span",12),P(1," \u00a0(changed) "),H())},WPa=function(a){a&1&&(G(0,"div",6),O(1,UPa,1,1,"b-panel-controls",7),G(2,"span",6),P(3," Saved search: "),G(4,"a",8)(5,"span",9),P(6),H()()(),O(7,VPa,2,0,"span",
10),H());a&2&&(a=M(),B(1),D("ngIf",a.isDashboardEditable),B(3),D("href",a.paths.viewSavedSearch(a.savedSearchId),Kd),B(1),Ff("matTooltip",a.resource.description),B(1),Jf(a.resource.name),B(1),D("ngIf",a.hasParamChanges()))},XPa=function(a,b){a&1&&(G(0,"span"),P(1),H());a&2&&(a=b.ngIf,B(1),If("Searching for ",a,"..."))},YPa=function(a){a&1&&(G(0,"div",16),J(1,"b-spinner",17),O(2,XPa,2,1,"span",3),H());a&2&&(a=M(2),B(1),D("large",!1),B(1),D("ngIf",null==a.searchParams?null:a.searchParams.query))},ZPa=
function(a){a&1&&(G(0,"div",18),P(1," No issues in saved search. "),H())},$Pa=function(a){if(a&1){var b=x();G(0,"div",19)(1,"b-issues-grid",20);K("init",function(c){z(b);var d=M(2);return A(gPa(d,c))})("focusedRowIndexChange",function(c){z(b);var d=M(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=M(2);return A(d.columnsChange(c))})("sortChange",function(c){z(b);var d=M(2);return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=M(2);return A(d.goToIssue(c.id,
c.isRead,c.event))})("onNextPage",function(){z(b);var c=M(2);return A(c.goToPage(c.page+1))})("onPrevPage",function(){z(b);var c=M(2);return A(c.goToPage(c.page-1))});H()()}a&2&&(a=M(2),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},aQa=function(a){a&1&&(G(0,"div"),O(1,YPa,3,2,"div",13),O(2,ZPa,2,0,"div",14),O(3,$Pa,2,5,"div",15),H());a&2&&(a=M(),B(1),D("ngIf",a.isLoading),B(1),
D("ngIf",!a.isLoading&&a.searchResults&&0===a.searchResults.issues.length),B(1),D("ngIf",!a.isLoading&&a.searchResults&&0!==a.searchResults.issues.length))},bQa=function(a,b){a&1&&(G(0,"span",3)(1,"a",4),P(2),H()());a&2&&(a=b.$implicit,B(1),Ef("routerLink","/teams/",a.id,"/edit"),D("preserveFragment",!0),B(1),Jf(a.name))},cQa=function(a){a&1&&(G(0,"p")(1,"span",6),P(2,"NOTE:"),H(),P(3),G(4,"a",7),P(5,"Learn more"),H()());a&2&&(a=M(),B(3),If(" ",a.data.noteText," "),B(1),D("href",a.getDisablingFieldsHelpLink(),
Kd))},dQa=function(a){a&1&&(G(0,"span",15)(1,"strong"),P(2),H(),P(3," of "),G(4,"strong"),P(5),H()());a&2&&(a=M(5),B(2),Kf("",a.startIndex,"\u2013",a.endIndex,""),B(3),Jf(a.totalText))},eQa=function(a){if(a&1){var b=x();G(0,"div",9);O(1,dQa,6,3,"span",10);G(2,"b-button",11);K("onAction",function(){z(b);var c=M(4);return A(c.fetchIssues(c.page-1))});J(3,"b-icon",12);H();G(4,"b-button",13);K("onAction",function(){z(b);var c=M(4);return A(c.fetchIssues(c.page+1))});J(5,"b-icon",14);H()()}a&2&&(a=M(4),
B(1),D("ngIf",!a.isLoadingAsyncResults()),B(1),D("disabled",1>=a.page),B(2),D("disabled",a.page>=a.numPages))},fQa=function(a){if(a&1){var b=x();G(0,"button",16);K("click",function(){z(b);var c=M(4),d={},e={};c.enableDupSearchControl&&(d.experimentIds=["44573608"]);c.enableDupSearchA&&(d.experimentIds=["44573610"]);c.enableDupSearchB&&(d.experimentIds=["44573612"]);c.enableDupSearchC&&(d.experimentIds=["44573614"]);e.groupName=c.getGroupName();d.customData=e;Zp(c.hatsService,"HFPx18aEL0g6pPHSLo10YtkWxxH9",
d).pipe(Ye(c.destroyed$)).subscribe();return A()});J(1,"mat-icon",17);H()}},hQa=function(a){a&1&&(G(0,"li")(1,"h3"),P(2),H(),O(3,eQa,6,3,"div",7),O(4,fQa,2,0,"button",8),H());a&2&&(a=M(3),B(2),Jf(gQa(a)),B(1),D("ngIf",!a.enableSimilarIssues),B(1),D("ngIf",a.showSuggestedDupes))},iQa=function(a){a&1&&(G(0,"div",18),P(1,"There may already be issues opened on this topic. Please consider +1 to the canonical issue if that is the case."),H())},jQa=function(a){if(a&1){var b=x();G(0,"b-issue-card",24,25);
K("init",function(){z(b);var e=M(5);bo(e.analytics,go.MAGIC_BOX,"titleHoverOver",e.getGroupName());return A()});H()}if(a&2){var c=Hf(1);a=M().$implicit;var d=M(4);D("onedevIsHovercardReady",c.init)("issueId",a.id)("location",d.CATEGORIES.MAGIC_BOX+d.getGroupName())}},kQa=function(a,b){if(a&1){var c=x();G(0,"li",20)(1,"onedev-hovercard",null,21);O(3,jQa,2,3,"b-issue-card",22);H();G(4,"a",23);K("click",function(){z(c);var e=M(4);bo(e.analytics,go.MAGIC_BOX,"titleClick",e.getGroupName());return A()});
P(5);H()()}if(a&2){a=b.$implicit;var d=Hf(2);b=M(4);D("ngClass",b.enableSimilarIssues?"magic-box-item-new":"magic-box-item");B(4);Ef("href","issues/",a.id,"",Kd);D("onedevHovercardTrigger",d);B(1);If(" ",a.title," ")}},lQa=function(a){a&1&&(xf(0),O(1,kQa,6,4,"li",19),yf());a&2&&(a=M(3),B(1),D("ngForOf",a.magicBoxIssues))},mQa=function(a){a&1&&(G(0,"li"),P(1),H());a&2&&(a=M(3),B(1),If(" No ",gQa(a).toLowerCase()," found. "))},nQa=function(a){a&1&&(G(0,"li",26)(1,"a",27),P(2," View All Issues \u2192 "),
H()());a&2&&(a=M(3),B(1),Ff("href",a.viewAllHref,Kd))},oQa=function(a){if(a&1){var b=x();G(0,"li",28)(1,"button",29);K("click",function(){z(b);var c=M(3);c.fetchIssues(c.page+1);bo(c.analytics,go.MAGIC_BOX,"loadMore");return A()});J(2,"mat-icon",30);P(3," Load more ");H()()}},pQa=function(a){if(a&1){var b=x();G(0,"li",31)(1,"a",27)(2,"button",32);K("click",function(){z(b);var c=M(3);bo(c.analytics,go.MAGIC_BOX,"viewAll");return A()});P(3,"View all ");J(4,"mat-icon",33);H()()()}a&2&&(a=M(3),B(1),Ff("href",
a.viewAllHref,Kd))},qQa=function(a){a&1&&(G(0,"li"),J(1,"b-spinner"),G(2,"span"),P(3,"Loading..."),H()())},rQa=function(a){a&1&&(G(0,"ul"),O(1,hQa,5,3,"li",2),O(2,iQa,2,0,"div",3),O(3,lQa,2,1,"ng-container",2),O(4,mQa,2,1,"li",2),O(5,nQa,3,1,"li",4),O(6,oQa,4,0,"li",5),O(7,pQa,5,1,"li",6),O(8,qQa,4,0,"li",2),H());a&2&&(a=M(2),B(1),D("ngIf",!a.hideHeader),B(1),D("ngIf",a.showSuggestedDupes),B(1),D("ngIf",!a.isLoadingAsyncResults()),B(1),D("ngIf",0==a.magicBoxIssues.length&&!a.isLoadingAsyncResults()),
B(1),D("ngIf",!a.isLoadingAsyncResults()&&1<a.numPages&&!a.enableSimilarIssues),B(1),D("ngIf",!a.isLoadingAsyncResults()&&a.endIndex<a.numTotalResults&&a.enableSimilarIssues),B(1),D("ngIf",!a.isLoadingAsyncResults()&&1<a.numPages&&a.enableSimilarIssues),B(1),D("ngIf",a.isLoadingAsyncResults()))},sQa=function(a){a&1&&(G(0,"div"),J(1,"b-spinner"),G(2,"span"),P(3,"Loading..."),H()())},tQa=function(a){a&1&&(G(0,"div",1),O(1,rQa,9,8,"ul",2),O(2,sQa,4,0,"div",2),H());a&2&&(a=M(),B(1),D("ngIf",!a.magicBoxLoading),
B(1),D("ngIf",a.magicBoxLoading))},uQa=function(a){a&1&&(xf(0),J(1,"span",26)(2,"b-icon",27),yf());a&2&&(a=M(),B(1),D("innerHTML",a.menuLabel,Jd))},vQa=function(a){a&1&&(G(0,"div",28),P(1," This includes emails about major updates and: "),G(2,"ul",29)(3,"li"),P(4,"All title, hotlist, and status changes."),H(),G(5,"li"),P(6,"Blocking, Blocked By, or Duplicate changes."),H(),G(7,"li"),P(8,"Changes to Reporter, Verifier, and CCs."),H(),G(9,"li"),P(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),
H(),G(11,"li"),P(12,"Changes to custom fields marked as minor."),H()()())},wQa=function(a){a&1&&(G(0,"div",30),P(1," This includes emails about: "),G(2,"ul",29)(3,"li"),P(4,"New comments."),H(),G(5,"li"),P(6,"Priority or Severity changes."),H(),G(7,"li"),P(8,"Assignee changes."),H(),G(9,"li"),P(10,"Component changes."),H(),G(11,"li"),P(12,"Issue closure or reopening."),H(),G(13,"li"),P(14,"Changes to custom fields marked as major."),H()()())},xQa=function(a,b){a&1&&(G(0,"mat-option",6),P(1),H());
a&2&&(a=b.$implicit,D("value",a),B(1),If(" ",a.getName()," "))},yQa=function(a){a&1&&(G(0,"span",11),P(1," (must be between 30 days and 10 years) "),H())},zQa=function(a){if(a&1){var b=x();G(0,"div",12)(1,"b-duration-picker",13);K("durationDaysChange",function(c){z(b);var d=M();d.model.retentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);$p(d);return A()});H();G(2,"div",14);P(3);H()()}a&2&&(a=M(),B(1),D("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),
B(2),If(" Issues will be marked for deletion when they have not been modified for ",aq(a.model.retentionPeriodDays),". "))},AQa=function(a){a&1&&(G(0,"div",15)(1,"p"),P(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),G(3,"b"),P(4,"one or more"),H(),P(5," of the following is true:"),H(),G(6,"ol")(7,"li"),P(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),H(),G(9,"li"),P(10,
"You have a process in place to manually delete this data within an approved period of time."),H(),G(11,"li"),P(12,"Legal and Privacy have approved this non-standard retention period."),H()()())},BQa=function(a){a&1&&(G(0,"span",11),P(1," (Issue Retention is shorter than default Restricted Retention) "),H())},DQa=function(a){a&1&&(G(0,"span",11),P(1),H());a&2&&(a=M(),B(1),If(" ",CQa(a)," "))},EQa=function(a){a&1&&(G(0,"div",21)(1,"p"),P(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),
H()())},GQa=function(a){if(a&1){var b=x();G(0,"div",12)(1,"div")(2,"span",16);P(3,"Restricted retention:");H();G(4,"b-duration-picker",17);K("durationDaysChange",function(c){z(b);var d=M();d.model.piiRetentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);$p(d);return A()});H()();G(5,"div",18)(6,"p");P(7);H()();G(8,"div")(9,"span",16);P(10,"Restricted+ retention:");H();G(11,"b-duration-picker",19);K("durationDaysChange",function(c){z(b);var d=M();d.model.spiiRetentionPeriodDays=
null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);$p(d);return A()});H()();G(12,"div",18)(13,"p");P(14);H()();O(15,EQa,3,0,"div",20);H()}a&2&&(a=M(),B(4),D("disabled",!bq(a))("durationDays",a.model.piiRetentionPeriodDays),B(3),If(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",aq(a.model.piiRetentionPeriodDays),". "),B(4),D("disabled",!bq(a))("durationDays",a.model.spiiRetentionPeriodDays),B(3),If(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
aq(a.model.spiiRetentionPeriodDays),". "),B(1),D("ngIf",a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&FQa(a)))},HQa=function(a){a&1&&(G(0,"div",22)(1,"p"),P(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),H()())},cq=function(a,b,c,
d){var e=IQa(a.slice(0,b),c);e=e&&e.index||0;var f=a.slice(b);c=(new RegExp(d||c,"gi")).exec(f);return{val:a.slice(e,(c?c.index:f.length)+b),idx:e}},IQa=function(a,b){b=new RegExp(b,"gi");for(var c,d=null;null!=(c=b.exec(a));)d=c,d.index=b.lastIndex;return d},dq=function(a,b){return(void 0===b?0:b)?-1<a.search(/^\d+\+?$/):-1<a.search(/^\d+$/)},JQa=function(a){return"-"===a.charAt(0)?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},eq=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=
b.val.toLowerCase();a=a.filter(function(q){q=q.name.toLowerCase();return q!==e||d?c?Mi(q,e):da(q,e):!1});b=b.idx;for(var f=b+e.length,h=r(a),k=h.next();!k.done;k=h.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},fq=function(a,b,c,d){return{trackId:b+":"+a,name:a,id:a,label:c,completionCfg:{enableShadowPlaceholder:!0,completionValue:a,type:d}}},MQa=function(a,b){if(a&1){var c=x();G(0,"div",9)(1,"div",10);K("click",function(d){var e=z(c).$implicit,f=M();e=e.key;if(d=
void 0===d?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;KQa(f);LQa(f);f.optionsChange.emit(f.options);return A()});G(2,"b-checkbox",11);K("change",function(d){var e=z(c).$implicit,f=M();e.value.value=d;KQa(f);LQa(f);f.optionsChange.emit(f.options);return A()})("click",function(d){return d.stopPropagation()});H()()()}a&2&&(a=b.$implicit,nf("aria-checked",a.value.value),B(2),D("checked",a.value.value)("label",a.value.displayString))},NQa=function(a){a&
1&&(G(0,"div",12),P(1),H());a&2&&(a=M(),B(1),If(" ",a.errorString," "))},PQa=function(a){if(a&1){var b=x();G(0,"span",4)(1,"input",5);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.businessDayString=c)})("ngModelChange",function(){z(b);var c=M(2);return A(OQa(c))});H();G(2,"span",8);P(3,"days,");H()()}a&2&&(a=M(2),B(1),sf("ng-invalid",!!a.errorString),D("ngModel",a.businessDayString))},RQa=function(a,b){a&1&&(G(0,"mat-option",9),P(1),H());a&2&&(a=b.$implicit,b=M(2),D("value",a),B(1),If(" ",
QQa(b,a)," "))},UQa=function(a){if(a&1){var b=x();G(0,"span",2);O(1,PQa,4,3,"span",3);G(2,"span",4)(3,"input",5);K("ngModelChange",function(c){z(b);var d=M();return A(d.intervalString=c)})("ngModelChange",function(){z(b);var c=M();return A(OQa(c))});H();G(4,"mat-select",6);K("ngModelChange",function(c){z(b);var d=M();return A(d.intervalUnit=c)})("selectionChange",function(){z(b);var c=M();SQa(c);TQa(c);return A()});O(5,RQa,2,2,"mat-option",7);H()()()}a&2&&(a=M(),B(1),D("ngIf",2==a.dayType),B(2),sf("invalid",
!!a.errorString),D("ngModel",a.intervalString),B(1),D("ngModel",a.intervalUnit),B(1),D("ngForOf",2==a.dayType?[gq,hq]:[gq,hq,iq]))},VQa=function(a){a&1&&(G(0,"span",13),P(1),H());a&2&&(a=M(2),B(1),Kf(" ",a.objectiveBusinessDays," day",1!=a.objectiveBusinessDays?"s":""," "))},WQa=function(a){a&1&&(G(0,"span"),P(1,", "),H())},XQa=function(a){a&1&&(G(0,"span"),O(1,WQa,2,0,"span",12),G(2,"span"),P(3),H()());a&2&&(a=M(2),B(1),D("ngIf",a.objectiveBusinessDays),B(2),Kf("",a.intervalString," ",QQa(a,a.intervalUnit),
""))},YQa=function(a){a&1&&(G(0,"span",10),O(1,VQa,2,2,"span",11),O(2,XQa,4,3,"span",12),H());a&2&&(a=M(),B(1),D("ngIf",a.objectiveBusinessDays),B(1),D("ngIf",a.intervalString&&"0"!=a.intervalString))},$Qa=function(a){if(a&1){var b=x();G(0,"b-icon",22);K("click",function(){z(b);var c=M(2);return A(ZQa(c,0))});H()}a&2&&D("name","add")("size","small")},bRa=function(a){if(a&1){var b=x();G(0,"span",17)(1,"span",18)(2,"span",19);O(3,$Qa,1,2,"b-icon",20);H();G(4,"span",19)(5,"b-icon",21);K("click",function(c){z(b);
var d=M();return A(aRa(d,c))});H()()()()}a&2&&(a=M(),B(3),D("ngIf",a.canPerformActions),B(2),D("name","delete")("size","small"))},cRa=function(a){a&1&&J(0,"td",42)},dRa=function(a){if(a&1){var b=x();G(0,"td",43)(1,"slo-element-property-picker",44);K("optionsChange",function(c){z(b);var d=M().$implicit;return A(d.typePickerValues=c)});H()()}a&2&&(a=M().$implicit,B(1),D("selectAllText","Any type")("validator",a.validateTypePicker)("options",a.typePickerValues))},eRa=function(a){if(a&1){var b=x();G(0,
"td",45)(1,"slo-element-property-picker",46);K("optionsChange",function(c){z(b);var d=M().$implicit;return A(d.priorityPickerValues=c)});H()()}a&2&&(a=M().$implicit,B(1),D("selectAllText","Any priority")("validator",a.validatePriorityPicker)("options",a.priorityPickerValues))},fRa=function(a){if(a&1){var b=x();G(0,"td",47)(1,"slo-element-property-picker",48);K("optionsChange",function(d){z(b);var e=M().$implicit;return A(e.postmortemPickerValues=d)});H()()}if(a&2){a=M().$implicit;var c=M(2);B(1);
D("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker)("options",a.postmortemPickerValues)}},hRa=function(a,b){a&1&&(G(0,"mat-option",53),P(1),H());a&2&&(a=b.$implicit,M(4),D("value",a),B(1),If(" ",0===a?" - ":gRa.get(a)," "))},iRa=function(a){if(a&1){var b=x();G(0,"td",49)(1,"mat-form-field",50)(2,"mat-select",51);K("ngModelChange",function(d){z(b);var e=M().$implicit;return A(e.selectedMetric=d)});O(3,hRa,2,2,"mat-option",52);H()()()}if(a&2){a=M().$implicit;var c=
M(2);B(2);D("ngModel",a.selectedMetric)("customValidators",a.metricValidators);B(1);D("ngForOf",c.metricChoices)}},jRa=function(a){if(a&1){var b=x();G(0,"td",54)(1,"slo-objective-selector",55);K("objectiveDurationChange",function(c){z(b);var d=M().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=M().$implicit;return A(d.selectedObjectiveBusinessDays=c)});H()()}a&2&&(a=M().$implicit,B(1),D("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",
a.selectedObjectiveBusinessDays)("validator",a.validateObjective))},lRa=function(a,b){a&1&&(G(0,"mat-option",53),P(1),H());a&2&&(a=b.$implicit,M(4),D("value",a),B(1),If(" ",kRa.get(a||1)," "))},mRa=function(a){if(a&1){var b=x();G(0,"td",56)(1,"mat-form-field",57)(2,"mat-select",58);K("ngModelChange",function(d){z(b);var e=M().$implicit;return A(e.selectedDayType=d)})("selectionChange",function(){z(b);var d=M().$implicit;2===d.selectedDayType?0===d.selectedObjectiveDuration.getSeconds()%86400&&(d.selectedObjectiveBusinessDays=
d.selectedObjectiveDuration.getSeconds()/86400,d.selectedObjectiveDuration.setSeconds(0)):(0===d.selectedObjectiveDuration.getSeconds()&&d.selectedObjectiveDuration.setSeconds(86400*d.selectedObjectiveBusinessDays),d.selectedObjectiveBusinessDays=0);return A()});O(3,lRa,2,2,"mat-option",52);H()()()}if(a&2){a=M().$implicit;var c=M(2);B(2);D("ngModel",a.selectedDayType);B(1);D("ngForOf",c.dayTypes)}},pRa=function(a){if(a&1){var b=x();G(0,"td",59)(1,"span",18)(2,"span",19)(3,"b-icon",60);K("click",function(){z(b);
var c=M(3);if(c.openRow)if(c.openRow.isValid())nRa(c.openRow.typePickerValues)&&nRa(c.openRow.priorityPickerValues)&&nRa(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Nn("An SLO rule that matches all issues is not allowed. These rules are considered too broad, and are typically created in error. Some filtering criteria is required to continue."),confirmButtonText:"Ok",showCancelButton:!1}):jq(c);else{var d=c.openRow;(2!=d.selectedDayType?
0<d.selectedObjectiveDuration.getSeconds():0<d.selectedObjectiveDuration.getSeconds()||0<d.selectedObjectiveBusinessDays)||c.confirmationDialogService.open({title:"SLO validation error",content:Nn('An SLO rule must specify a valid duration.\nFor "Calendar" day objectives, the duration must be a positive integer.\nFor "Business" day objectives, a day and/or hour/minute duration must be specified.'),confirmButtonText:"Ok",showCancelButton:!1})}return A()});H()();G(4,"span",19)(5,"b-icon",61);K("click",
function(){z(b);var c=M().$implicit,d=M(2);return A(oRa(d,c))});H()()()()}a&2&&(B(3),D("name","done")("size","small"),B(2),D("name","delete")("size","small"))},qRa=function(a){a&1&&J(0,"td",62)},rRa=function(a){a&1&&(G(0,"div"),P(1),H());a&2&&(a=M(2).$implicit,B(1),If("ERROR: ",a.parseResult.error,""))},sRa=function(a,b){a&1&&(G(0,"span",68)(1,"span",69),P(2),H()());a&2&&(a=b.$implicit,B(2),Jf(a))},uRa=function(a){a&1&&(G(0,"span",66),O(1,sRa,3,1,"span",67),H());if(a&2){a=M(2).$implicit;B(1);if(0===
a.parseResult.types.length)a=["Any"];else{for(var b=[],c=r(a.controllerReference.sloParseService.jspbTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(tRa(a.controllerReference,d));a=b}D("ngForOf",a)}},vRa=function(a){a&1&&(G(0,"td",63),O(1,rRa,2,1,"div",64),O(2,uRa,2,1,"span",65),H());a&2&&(a=M().$implicit,B(1),D("ngIf",a.parseResult.error),B(1),D("ngIf",!a.parseResult.error))},wRa=function(a){a&1&&(G(0,"div"),P(1),H());a&2&&(a=M(2).$implicit,B(1),
If("ERROR: ",a.parseResult.error,""))},xRa=function(a,b){a&1&&(G(0,"span",68)(1,"span",69),P(2),H()());a&2&&(a=b.$implicit,B(2),Jf(a))},zRa=function(a){a&1&&(G(0,"span",66),O(1,xRa,3,1,"span",67),H());if(a&2){a=M(2).$implicit;B(1);if(0===a.parseResult.priorities.length)a=["Any"];else{for(var b=[],c=r(a.controllerReference.sloParseService.jspbPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(yRa(a.controllerReference,d));a=b}D("ngForOf",a)}},
ARa=function(a){a&1&&(G(0,"td",70),O(1,wRa,2,1,"div",64),O(2,zRa,2,1,"span",65),H());a&2&&(a=M().$implicit,B(1),D("ngIf",a.parseResult.error),B(1),D("ngIf",!a.parseResult.error))},BRa=function(a){a&1&&(G(0,"div"),P(1),H());a&2&&(a=M(2).$implicit,B(1),If("ERROR: ",a.parseResult.error,""))},CRa=function(a,b){a&1&&(G(0,"span",68)(1,"span",69),P(2),H()());a&2&&(a=b.$implicit,B(2),Jf(a))},DRa=function(a){a&1&&(G(0,"span",66),O(1,CRa,3,1,"span",67),H());if(a&2){a=M(2).$implicit;B(1);var b=a.parseResult.postmortemValues.includes("ANY"),
c=a.parseResult.postmortemValues.includes("NONE");a=b===c?["Either"]:[a.controllerReference.anyNoneDisplayValues.get(a.parseResult.postmortemValues[0])];D("ngForOf",a)}},ERa=function(a){a&1&&(G(0,"td",71),O(1,BRa,2,1,"div",64),O(2,DRa,2,1,"span",65),H());a&2&&(a=M().$implicit,B(1),D("ngIf",a.parseResult.error),B(1),D("ngIf",!a.parseResult.error))},FRa=function(a){a&1&&(G(0,"td",72),P(1),H());a&2&&(a=M().$implicit,M(2),B(1),a=a.sloElement.getMetric(),a=0===a?" - ":gRa.get(a),If(" ",a," "))},GRa=function(a){if(a&
1){var b=x();G(0,"td",73)(1,"slo-objective-selector",74);K("objectiveDurationChange",function(c){z(b);var d=M().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=M().$implicit;return A(d.selectedObjectiveBusinessDays=c)});H()()}a&2&&(a=M().$implicit,B(1),D("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays)("isDisabled",!a.isEditing_))},HRa=function(a){a&1&&(G(0,
"td",75),P(1),H());a&2&&(a=M().$implicit,M(2),B(1),a=X(a.sloElement,4,0),a=kRa.get(a||1),If(" ",a," "))},JRa=function(a){if(a&1){var b=x();G(0,"b-icon",85);K("click",function(c){z(b);var d=M(2).$implicit,e=M(2);return A(IRa(e,d,c))});H()}a&2&&D("name","edit")("size","small")},KRa=function(a){a&1&&J(0,"b-icon",86);if(a&2){M();var b=Hf(8);D("name","more-settings-vertical")("size","small")("matMenuTriggerFor",b)}},MRa=function(a){if(a&1){var b=x();G(0,"button",87);K("click",function(){z(b);var c=M(2).$implicit,
d=M(2);return A(LRa(d,c,1))});P(1," Move row down ");H()}},NRa=function(a){if(a&1){var b=x();G(0,"button",88);K("click",function(){z(b);var c=M(2).$implicit,d=M(2);return A(LRa(d,c,-1))});P(1," Move row up ");H()}},PRa=function(a){if(a&1){var b=x();G(0,"td",76)(1,"span",18)(2,"span",19);O(3,JRa,1,2,"b-icon",77);H();G(4,"span",19)(5,"span");O(6,KRa,1,3,"b-icon",78);H();G(7,"mat-menu",null,79);O(9,MRa,2,0,"button",80);O(10,NRa,2,0,"button",81);G(11,"button",82);K("click",function(){z(b);var d=M().$implicit,
e=M(2);ZQa(e,e.collection.indexOf(d)+1);return A()});P(12," Add row below ");H();G(13,"button",83);K("click",function(){z(b);var d=M().$implicit,e=M(2);ZQa(e,e.collection.indexOf(d));return A()});P(14," Add row above ");H();G(15,"button",84);K("click",function(){z(b);var d=M().$implicit,e=M(2);return A(oRa(e,d))});P(16," Remove ");H()()()()()}if(a&2){a=M().$implicit;var c=M(2);B(3);D("ngIf",a.canEdit);B(3);D("ngIf",a.canEdit);B(3);D("ngIf",ORa(c,a,1).valid);B(1);D("ngIf",ORa(c,a,-1).valid)}},QRa=
function(a,b){a&1&&(G(0,"tr",25),O(1,cRa,1,0,"td",26),O(2,dRa,2,3,"td",27),O(3,eRa,2,3,"td",28),O(4,fRa,2,3,"td",29),O(5,iRa,4,3,"td",30),O(6,jRa,2,4,"td",31),O(7,mRa,4,2,"td",32),O(8,pRa,6,4,"td",33),O(9,qRa,1,0,"td",34),O(10,vRa,3,2,"td",35),O(11,ARa,3,2,"td",36),O(12,ERa,3,2,"td",37),O(13,FRa,2,1,"td",38),O(14,GRa,2,4,"td",39),O(15,HRa,2,1,"td",40),O(16,PRa,17,4,"td",41),H());a&2&&(a=b.$implicit,b=M(2),sf("draggable",!b.isDisabled&&null==b.openRow),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),
B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_))},RRa=function(a){if(a&1){var b=x();G(0,"tbody",23);K("cdkDropListDropped",function(c){z(b);var d=M();
return A(d.onDrop(c))});O(1,QRa,17,18,"tr",24);H()}a&2&&(a=M(),D("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||null!=a.openRow),B(1),D("ngForOf",a.collection))},SRa=function(a){a&1&&(G(0,"div",89),P(1," There are currently no rules for this SLO "),H())},TRa=function(a,b){if(a&1){var c=x();G(0,"tr",7);K("click",function(){var e=z(c).$implicit,f=M();return A(f.editSlo(e))})("focus",function(){var e=z(c).index,f=M();return A(f.setFocusOnIndex(e))});J(1,"td",2);G(2,"td",8)(3,"a",
9);K("click",function(e){return e.stopPropagation()});P(4);H()();G(5,"td",10);P(6);H()()}if(a&2){a=b.$implicit;b=b.index;var d=M();sf("grid-focus",d.isFocused(b));nf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);D("href",d.paths.editSlo(a.getSloId()),Kd);B(1);If(" ",a.getName()," ");B(2);If(" ",a.getDescription()," ")}},URa=function(a){if(a&1){var b=x();G(0,"div")(1,"div",1);K("clickOutside",function(){z(b);M().isPickerVisible=!1;return A()});G(2,"b-date-time-picker-content",
2);K("dateSelectionChange",function(c){z(b);var d=M();return A(d.setDate(c))})("saveClicked",function(){z(b);var c=M();c.isPickerVisible=!1;c.snoozeUntilCommit.emit();return A()})("cancelClicked",function(){z(b);M().isPickerVisible=!1;return A()});H()()()}a&2&&(a=M(),B(2),D("date",a.currentPickerDate))},VRa=function(a,b){"string"===typeof a&&(a=a.trim())&&b(Tl(a))},kq=function(a,b){return Zi("enableJspb")?a:b},lq=function(a,b){a.setAttribute("pkd-ac-state",String(ah(String(b))))},WRa=function(a,b){b=
[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(ah(b)))},XRa=function(a,b){b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(ah("2")))},function(){a.setAttribute("pkd-ps-state",String(ah("3")))})},YRa=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},mq=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},ZRa=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},oq=function(a,b,c,d,e){e=void 0===e?new nq:e;b=
Zo($Ra,{imageUrls:b.map(function(f){return f||"https://lh3.googleusercontent.com/a/default-user"}),backupUrl:"https://lh3.googleusercontent.com/a/default-user",size:c,preloadSize:d,pixelRatio:aSa()});e=new bSa(b,e);a.appendChild(b);return e},pq=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Be`"+a);}},qq=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";
default:throw Error("Be`"+a);}},dSa=function(a,b){var c="",d=0;b=r(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c=c+a.substring(d,e.getStart())+"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3"+a.substring(e.getStart(),e.getEnd())+"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3",d=e.getEnd();c+=a.substring(d,a.length);return cSa(cSa(Ij(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},eSa=function(a){var b=a.getDisplayName();return b?dSa(b,a.getMatchInfo().getDisplayNameMatches()):
""},fSa=function(a){var b=a.getDisplayValue();return b?dSa(b,a.getMatchInfo().getDisplayValueMatches()):""},gSa=function(a){var b=eSa(a),c=fSa(a);b=b||c;c=c||a.getDescription();var d=a.getPrimaryTarget();return{hovercardId:1===d.getTargetType()||6===d.getTargetType()?a.getDisplayValue():d.getProfileId(),label:b,sublabel:c,photos:[a.getPhotoUrl()]}},rq=function(){var a=void 0===a?10:a;var b="";if(1>a)return b;for(;b.length<a;)b+=Math.random().toString(36).substring(2);return b.length>a?b.substring(0,
a):b},hSa=function(a){var b=a.getCaller(),c=a.getClient();a=a.getRequestType();return b&&c&&a?JSON.stringify([b.serialize(),c.serialize(),a]):null},iSa=function(a){var b=new sq;if(a instanceof tq)switch(b.setErrorType(a.type),a.type){case 2:b.setErrorMessage("Failed to load flags from service");break;case 3:b.setErrorMessage("Failed to retrieve flags from cache");break;case 4:b.setErrorMessage("Operation failed to complete before timeout");break;case 6:b.setErrorMessage("Operation failed because of invalid keys.")}else b.setErrorType(5),
b.setErrorMessage(a.message);return b},wq=function(a){a=void 0===a?null:a;var b=(new uq).setExperimentFlags(new vq).setSource(3);a&&b.setError(iSa(a));return b},qSa=function(a){var b=void 0===b?new jSa:b;if(kSa)return kSa;var c=new lSa(a),d=new mSa(a);if(b.storage_)try{b.storage_.setItem("__sak","1");b.storage_.removeItem("__sak");var e=!0}catch(f){e=!1}else e=!1;b=e?new xq(a,b):new yq(a);b.clean();c=new nSa(new oSa(b,c),d);return kSa=new pSa(a,c)},sSa=function(a,b,c){var d=gSa(a);return rSa(a,d,
b,c)},rSa=function(a,b,c,d){var e=[];W(zq.getExperiments(),3,!1)&&c.getWarnForExternalSelections()&&2===a.getPrimaryTarget().getOrgState()&&e.push({iconUrl:"https://www.gstatic.com/people/peoplekit/icons/light_theme/domain_disabled_grey900.svg",altText:"External",style:1});var f=!1;c.getShouldHideSuggestionSublabels()&&(f=(a=a.getPrimaryTarget().getLoggingToken().getSessionState())?!a.getQuery().length:!1);return{id:Aq(tSa),hovercardId:b.hovercardId,label:b.label,sublabel:f?"":b.sublabel,photos:b.photos,
densityClass:d,tags:e}},wSa=function(a,b){var c="",d="",e=!1,f=a.getTotalMemberCount();if(1<f||a.getDisplayName())c=a.getMemberList().map(function(h){var k="";if(h.getPrimaryTarget().getName()){var q,w;(k=(k=null==(q=h.getPrimaryTarget())?void 0:null==(w=q.getName())?void 0:w.getGivenName())?dSa(k,h.getMatchInfo().getGivenNameMatches()):"")||(k=eSa(h))}k||(k=fSa(h));return k}),b&&(c=c.reverse()),c=eSa(a)||uSa({memberNames:c}),Bq.includes(a.getPrimaryTarget().getId().getType())?(d=a.getDescription(),
d||(d=vSa({memberCount:f}),e=!0)):0<f&&(d=vSa({memberCount:f}),e=!0);else if(1===f)return d=a.getMemberList()[0],e=gSa(d),Object.assign({},e,{type:a.getPrimaryTarget().getTargetType(),flatResult:d,allowSublabelTranslation:!1});b=a.getPhotoUrl();b=a.getDisplayName()&&b?[b]:a.getMemberList().map(function(h){return h.getPhotoUrl()});return{hovercardId:"",label:c,sublabel:d,type:a.getPrimaryTarget().getTargetType(),photos:b,allowSublabelTranslation:e}},ySa=function(a,b,c,d){c=wSa(a,c);if(c.flatResult)return Object.assign({},
rSa(c.flatResult,c,b,d),{type:c.type,allowSublabelTranslation:!1});var e=!1;b.getShouldHideSuggestionSublabels()&&(e=(a=a.getPrimaryTarget().getLoggingToken().getSessionState())?!a.getQuery().length:!1);return{id:Aq(xSa),hovercardId:c.hovercardId,label:c.label,sublabel:e?"":c.sublabel,type:c.type,photos:c.photos,densityClass:d,tags:[],allowSublabelTranslation:c.allowSublabelTranslation}},Cq=function(a,b,c,d,e,f){return new zSa(a,b,c,d,e,f)},Eq=function(a,b,c){b=void 0===b?[]:b;return new Dq(new ASa(void 0===
a?0:a,b,void 0===c?0:c))},CSa=function(a,b,c,d,e){var f=a.getPrimaryTarget().getId();e=Fq(f)||Bq.includes(f.getType())?ySa(a,c,e,qq(d.getDensity())):sSa(a,c,qq(d.getDensity()));f=Object;var h=f.assign;a:switch(b){case 1:b=Gq('<div class="'+Hq("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="'+Hq(". Already selected")+'">'+Gq('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(Hq("peoplekitComponentsResultlistitemDisabledSelectedIcon")+
'"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>'))+"</div>");break a;case 2:b=Gq("");break a;default:b='<div class="'+Hq("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',b=Gq(b+"DISABLED</div>")}b=Zo(BSa,h.call(f,{},e,{disableReason:b}));f=mq(b,"d6MZcd");h=pq(d.getDensity());d=oq(f,e.photos,h,h,d);return new Iq(b,a,c,e.tags,d)},DSa=function(a,b){b=b.ownerDocument.createEvent("CustomEvent");b.initEvent(a,!0,!0);return b},
FSa=function(a,b){return new ESa(a,void 0===b?"":b)},Jq=function(a){if(a=a.getAttribute("pk-log")){var b=r(a.split(";"));a=b.next().value;var c=b.next().value,d=b.next().value;b=b.next().value;return{id:a,veid:Number(c),action:d.split(","),pairs:b.split(",")}}return null},Kq=function(a,b,c,d){d=void 0===d?[]:d;d=void 0===d?[]:d;b=[Aq(GSa),b,c.join(","),d.join(",")].join(";");b=ah(b);a.setAttribute("pk-log",String(b))},HSa=function(a){var b=-1;(a=Lq(a))&&cj(a,2)&&(b=dj(a,2,0));return"index:"+b},NSa=
function(a,b,c,d,e,f){f=Zo(ISa,{header:f||""});a.appendChild(f);a=mq(f,"tjneg");f=Zo(JSa,{id:Aq(KSa)});a.appendChild(f);a=new LSa(f);return{resultList:new MSa(a,b,c,d,e),list:a}},OSa=function(a,b,c,d,e,f,h,k){a=NSa(a,b,c,d,h,k);b=a.resultList;b=new Mq(b,a.list,f);return new Nq(b,e)},TSa=function(a,b,c,d,e){var f=PSa(c),h=Oq(a),k=Pq(a);k&&h.intersection(QSa(k));RSa(h,Xo(a),Xo(c));a=Qq(a,b);b=h.left;a&4&&(b+=h.width);h=new Rq(b,h.top+(a&1?h.height:0));h=Sq(h,f);a=Qq(c,d);h=SSa(h,Tq(c),a).rect;c=Pq(c);
c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;f=h;f.left<c.left?f.left=c.left:f.left+f.width>c.right&&(f.left=c.right-f.width);h=f;e&&(e=h,d&1?e.top<c.top&&(d=c.top-e.top,e.top+=d,e.height-=d):(d=e.top+e.height,d>c.bottom&&(e.height-=d-c.bottom)),h=e);return h},WSa=function(a,b){Uq(a,new Rq(b.left,b.top));b=b.getSize();USa(Tq(a),b)||VSa(a,b)},XSa=function(a,b,c){return new Vq(a,b,c)},ZSa=function(a,b){return new YSa(a,b)},$Sa=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},
Wq=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},Xq=function(a,b,c,d){d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e(a,b,c)},aTa=function(a,b,c,d,e){e=r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},bTa=function(a){var b=document.createElement("div"),c=a.action,d=a.pairs;if(b){var e="";c&&c.length&&(e="; track:"+c.join(",").trim());c="";d&&d.length&&(c="; "+d.join("; ").trim());
b.setAttribute("jslog",a.veid+e+c);b.__ve=void 0}return b},cTa=function(a){return Array.from(a).filter(function(b){return b instanceof Element}).flatMap(function(b){var c=Array.from(b.querySelectorAll("[pk-log]"));b.hasAttribute("pk-log")&&c.push(b);return c})},eTa=function(a){if(dTa.has(a))return dTa.get(a);throw Error("Ke`"+a);},gTa=function(a){if(fTa.has(a))return fTa.get(a);throw Error("Le`"+a);},hTa=function(a){var b=new Map,c;for(c in a)b.set(a[c].string,a[c].googRequiredXid);return b},jTa=
function(a){return a?a.__owner?a.__owner:a.parentNode&&11===a.parentNode.nodeType?a.parentNode.host:iTa(a):null},kTa=function(a,b){for(a=jTa(a);a&&!b(a);)a=jTa(a)},mTa=function(a,b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new Yq);return lTa(a,b,c,h,d,e,f)},lTa=function(a,b,c,d,e,f,h){f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=f.internal,q=e.getEnvironmentConfig(),w=q.experimentsConfig_.getProfileId();if(w)if(k.getExperiments().getIsEnabled()){var y=
ho(Zq,'[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]');y=new $q(y,7)}else y=new ar;else y=new ar;k=k.getExperiments();q=y.loadExperiments(k.getApplication(),(new br).setPeopleApiEnv(q.apiEnv_),w);zq=new cr(k,q);q=e.getTheme();w=r(["peoplekitThemeLight","peoplekitThemeDark"]);for(k=w.next();!k.done;k=w.next())a.classList.remove(k.value);(q=nTa.get(q))&&a.classList.add(q);Kq(a,64611,["impression"]);q=new dr;w=e.getEntryPoint();w=new oTa(d,q,w);k=f.internal.getClearcut();
y=new pTa(k);y=Uo(y);k=k.getInterfaceType();k=new qTa(new rTa(y,k));var E=new sTa(h.intelligence);h=Zo(tTa);a.appendChild(h);y=Zo(uTa);Kq(y,85843,["impression"]);h.appendChild(y);var I=mq(y,"tjneg");a:{var N=e.getAutocompleteHeader();switch(e.getAutocompleteGroupingType()){case 1:E=OSa(I,e,e,q,w,new er(e.getAutocompleteGroupingLabel()),E,N);break a;case 2:E=OSa(I,e,e,q,w,new fr(e.getAutocompleteGroupingLabel()),E,N);break a;case 3:var L=e.getAutocompleteCustomGrouping();L?E=OSa(I,e,e,q,w,L,E,N):(E=
NSa(I,e,e,q,E,N),E=new Nq(E.resultList,w));break a;default:E=NSa(I,e,e,q,E,N),E=new Nq(E.resultList,w)}}I=mq(I,"rymPhb");b.setAttribute("aria-owns",I.id);b.setAttribute("aria-controls",I.id);I.setAttribute("aria-labelledby",b.id);if(N=e.getNoResultsMessage())I=Zo(vTa),N=Zo(wTa,N),I.append(N),y.append(I);d=new xTa(y,b,E,d,k,e);b=new yTa(h,b,d,q,e);XRa(b.getRoot(),c);c=f.internal.getClearcut();f=e.getEntryPoint();d=zq.getExperiments();W(d,2,!1)||W(c,6,!0)?(d=new gr,h=Lo(),f=(new zTa).setClientId(c.getClientId()).setApplication(c.getSocialApplication()).setEntryPoint(f).setVersionName("1.0").setBaselineCl(442955898),
f=new ATa(d,1394,h,void 0,void 0,void 0,new BTa(f)),f.setClientSideLogOnlyForDevelopment(!c.getEnableClearcut()||!1),c=new hr,d=zq.getExperimentIds(),c=hl(c,3,d),f.clearcut_&&f.clearcut_.setClearExperimentIds(c),a.hasAttribute("pk-log")?(c=new CTa(new ir(a),f),a=new DTa(a,c),a=new ETa(a)):a=new jr):a=new jr;a.start();return new FTa(b,q,w,a,e)},GTa=function(a){var b=[],c=a.indexOf("@");0>c?c=a.length-1:1<a.length-c&&(b.push(a.substring(c)),a=a.substring(0,c+1));if("@"===a)return b;b.push(a);kr.lastIndex=
0;for(var d=kr.exec(a);d&&d.index<c;d=kr.exec(a))b.push(a.substring(Number(kr.lastIndex)));return b},mr=function(a){return lr(HTa(a)).replace(ITa,"").toUpperCase().toLowerCase()},KTa=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(JTa)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=mr(c.value);c=r(GTa(c).filter(Boolean));for(var d=c.next();!d.done;d=c.next())b.add(d.value)}var e="";return Array.from(b).sort().reverse().filter(function(f){if(e.startsWith(f))return!1;
e=f;return!0})},MTa=function(a){var b;return LTa(function(c){1==c.nextAddress&&(b=0);if(3!=c.nextAddress)return b<a?ne(c,b,3):c.jumpTo(0);b++;return c.jumpTo(2)})},NTa=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Fq(a.id)&&9!==a.id.getType()?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},QTa=function(a,b,c){if(Fq(a.id)||Fq(b.id)){var d=OTa.has(a.id.getType()),e=OTa.has(b.id.getType());if(d!==e)return d?-1:1;if(Fq(a.id)&&Fq(b.id))return PTa(a,b,c,!1)}d=NTa(a,c);c=
NTa(b,c);(c=d!==c?d>c?-1:1:0)||(c=1===a.dataSource,c=c!==(1===b.dataSource)?c?-1:1:0);c||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},PTa=function(a,b,c,d){var e=isFinite(a.itemAffinity)?a.itemAffinity:-Infinity,f=isFinite(b.itemAffinity)?b.itemAffinity:-Infinity;return e!==f?e>f?-1:1:d?QTa(a,b,c):0},STa=function(a){return a?RTa.get(a)||0:0},TTa=function(a){switch(a.getValueCase()){case 2:return new nr(1,a.getEmail().getValue()||"");case 3:return a=a.getPhone(),new nr(2,p(a,2)||a.getDisplayValue()||
"");case 4:a=wl(a,or,4,pr);if(a.hasProfileId())return new nr(8,a.getProfileId()||"");switch(pb(a,qr)){case 2:return new nr(6,a.getEmail()||"");case 3:return new nr(7,a.getPhone()||"")}}return rr},UTa=function(a){return rb(a,sr,5).map(function(b){switch(b.getIdCase()){case 1:return new nr(3,b.getProfileId()||"");default:return null}}).filter(Boolean)},VTa=function(a,b){return cj(a,3)&&m(a,tr,3).getIsPlaceholder()?3:Ro(b,8)?1:0},ur=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue()):
-Infinity},WTa=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},XTa=function(a){return!!a&&!!a.getPrimary()},ZTa=function(a){if(!a.hasEmail()||!a.getEmail().getValue())return null;var b=void 0;m(a,vr,9)&&(b=wr(new xr,YTa,m(a,vr,9)));a={id:new nr(1,a.getEmail().getValue()),containerIds:UTa(a),contactMethod:a,provenance:8,isMe:!1,dataSource:1,isPrimary:XTa(a.getDisplayInfo()),itemAffinity:-Infinity,fieldAffinity:ur(a.getDisplayInfo())};b&&(a.targetExtendedData=b);return a},
aUa=function(a){var b=a.getDisplayInfo();if(!b)return"";a=[];var c=b.getName();c&&(c.hasValue()?a.push(c.getValue()):(c.hasGivenName()&&a.push(c.getGivenName()),c.hasFamilyName()&&a.push(c.getFamilyName())));(b=b.getPhoto())&&b.hasUrl()&&a.push(b.getUrl());return a.length?"NameAndPhotoOnly"+$Ta(a):""},dUa=function(a,b,c){c=void 0===c?!1:c;var d=[],e=void 0,f=void 0;m(a,tr,3)&&(e=e?e:new xr,wr(e,bUa,m(a,tr,3)));m(a,yr,5)&&(e=e?e:new xr,wr(e,cUa,m(a,yr,5)));for(var h=r(rb(a,zr,1)),k=h.next();!k.done;k=
h.next()){k=k.value;var q=TTa(k);if(q.equals(rr)){if(!c)continue;q=aUa(k);if(!q)continue;q=new nr(18,q)}m(k,vr,9)&&(f=f?f:new xr,wr(f,YTa,m(k,vr,9)));k={id:q,containerIds:UTa(k),isMe:!!Ro(k,6),dataSource:VTa(a,k),provenance:b,isPrimary:XTa(k.getDisplayInfo()),itemAffinity:WTa(a),fieldAffinity:ur(k.getDisplayInfo()),contactMethod:k,person:a};e&&(k.resultExtendedData=e);f&&(k.targetExtendedData=f);d.push(k)}d.length&&d.every(function(w){return!w.isPrimary})&&(d[0].isPrimary=!0);return d},fUa=function(a,
b){var c=eUa(STa(p(a,5)),a.getGroupId()||""),d=a.getMembersList().map(function(f){return dUa(f,8,!0)}),e=d.filter(function(f){return f&&f.length}).map(function(f){return String(f[0].id)});a=[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:p(a,3)||0,provenance:b,isPrimary:!0,itemAffinity:ur(a.getDisplayInfo()),fieldAffinity:-Infinity,group:a}];d=r(d);for(b=d.next();!b.done;b=d.next())a.push.apply(a,u(b.value));return a},gUa=function(a,b){var c=new nr(9,a.getLabelId()||""),d=a.getMembersList().map(ZTa).filter(Boolean),
e=d.map(function(f){return String(f.id)});return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:ur(a.getDisplayInfo()),fieldAffinity:-Infinity,isMe:!1,contactLabel:a}].concat(u(d))},hUa=function(a,b){switch(pb(a,Ar)){case 1:return dUa(wl(a,Br,1,Ar),b);case 2:return fUa(a.getGroup(),b);case 3:return gUa(wl(a,Cr,3,Ar),b);default:return[]}},iUa=function(a,b){return rb(a,Dr,1).flatMap(function(c){return hUa(c,b)})},kUa=function(a){var b=
new Er,c=a?2:1;jUa(b.setEventType(4),c).setToken(a);return b},lUa=function(a){var b=new Er;Fr(b.setEventType(6),9).setItemCount(a.length);return b},mUa=function(){var a=new Er;Fr(a.setEventType(6),11);return a},nUa=function(){var a=new Er;Fr(a.setEventType(6),10);return a},oUa=function(a){var b=new Er;Fr(b.setEventType(6),6).setQueryLength(a.length);return b},pUa=function(){var a=new Er;Fr(a.setEventType(6),5);return a},qUa=function(a,b){switch(a){case 8:case 3:case 17:return(new Gr).setProfileId(b);
case 1:case 6:return(new Gr).setEmail(b);case 7:case 2:return(new Gr).setPhone(b);default:return null}},sUa=function(a){return((a=rb(a,Hr,2).find(function(b){return 1===p(b,1)}))?rUa.get(a.getState()):0)||0},wUa=function(a,b){b.hasAffinity()&&a.setFieldLoggingId(tUa(nba(p(b.getAffinity(),1))||""));if(b.hasName()){var c=b.getName(),d=a.setName,e=(new uUa).setDisplayName(c.getValue()).setGivenName(c.getGivenName()).setFamilyName(c.getFamilyName()),f=e.setSourceType;a:switch(c.getSourceType()){case 1:c=
3;break a;case 2:c=4;break a;default:c=0}d.call(a,f.call(e,c))}b.hasPhoto()&&(b=b.getPhoto(),a.setPhoto((new Ir).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(vUa.get(b.getType())||0)))},xUa=function(a,b){if(b.hasProfileId())switch(pb(b,qr)){case 2:var c=b.getEmail()||"";return Jr(Kr(a.id).setValue(b.getProfileId()||""),(new Lr).setType(1).setValue(c));case 3:return c=b.getPhone()||"",Jr(Kr(a.id).setValue(b.getProfileId()||""),(new Lr).setType(2).setValue(c));default:return b=b.getProfileId()||
"",Kr(a.id).setValue(b)}switch(pb(b,qr)){case 2:return b=b.getEmail()||"",Jr(Kr(a.id).setValue(b),(new Lr).setType(1).setValue(b));case 3:return b=b.getPhone()||"",Jr(Kr(a.id).setValue(b),(new Lr).setType(2).setValue(b));default:return b=b.getProfileId()||"",Kr(a.id).setValue(b)}},zUa=function(a,b){var c=yUa(Kr(a.id),!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&wUa(c,b);a.group&&((b=rb(a.group,Mr,6).find(function(d){return ul(d,1,Nr)}))?c.setValue(Or(b,1,Nr)||""):a.group.hasGroupId()&&
c.setValue(a.group.getGroupId()||""));a.targetExtendedData&&(c.extendedData_=a.targetExtendedData);a.target=c},BUa=function(){return AUa},DUa=function(a){return new CUa(a)},GUa=function(a){if(8===a.getTargetType()){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=EUa.get(b)))return b}return(b=FUa.get(a.getTargetType()))?b:Fq(a.getId())?8:0},IUa=function(a,b,c){var d=new Pr,e=new Qr;Ab(d,2,e);e.setProvenance(b);b=new Rr;Ab(d,1,b);l(b,9,1===c);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||
null);c=8===GUa(a)?8:a.getIsPersonalResult()?4:3;l(b,8,c);c=null;8===a.getTargetType()&&(e=a.getOriginatingField())&&EUa.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Fq(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=GUa(a);l(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(3===a.getDataSource());8===b.getFieldType()&&b.setGroupId(a.getId().getValue());return new HUa(a,
d)},KUa=function(a){a=JUa.indexOf(a.provenance);return 0>a?JUa.length:a},LUa=function(a){return a.containerIds&&a.containerIds.some(function(b){return 3===b.getType()})},MUa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return new Dq(new Sr(a,d))},OUa=function(a,b){b.useOriginalDisplayValue_&&(a=new Map(Array.from(a,function(c){var d=r(c);c=d.next().value;d=d.next().value;if(c.equals(d.getPrimaryTarget().getId())&&c.originalValue_!==d.getDisplayValue()&&
d.getPrimaryTarget().getValue()===d.getDisplayValue()){var e=c.originalValue_,f=d.getPrimaryTarget();d=MUa(d,new NUa(f,e))}return[c,d]})));return a},PUa=function(a,b){for(var c=[],d=0;d<a.length;d+=b){var e=a.slice(d,d+b);e.length&&c.push(e)}return c},RUa=function(){return new QUa(oc.apply(0,arguments))},Tr=function(){var a=oc.apply(0,arguments);return 1===a.length?a[0]:new SUa(a)},UUa=function(a,b,c,d){b=TUa(a,b).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new Ur(e,f)});c=
TUa(a,c).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new Ur(e,f)});a=TUa(a,d).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new Ur(e,f)});return new Vr(b,c,a)},VUa=function(a){switch(a.getType()){case 1:case 6:return 1;case 2:case 7:return 2;case 17:case 3:case 8:return 3;default:return 0}},WUa=function(a){return a.reduce(function(b,c){var d=VUa(c);if(b.has(d)){var e;null==(e=b.get(d))||e.push(c)}else b.set(d,[c]);return b},new Map)},XUa=function(a,b){b=
void 0===b?new Wr:b;var c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=r(d.data.keys()),f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.data.get(f))}return{data:c,metadata:b}},YUa=function(a){return!a||a instanceof Xr?a:new Xr(a)},$Ua=function(a){return ZUa.get(a)||0},aVa=function(a,b){var c=Yr(Zr(new $r,"PeopleStore").setLogSource(X(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1002").setBaselineCl(442955898).setEnableClearcut(a.getEnableClearcut()),
[].concat(u(b.getExperiments().getExperimentIdsList()),u(as?as.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());(a=rb(a,bs,5).find(function(d){return 0===d.getEntryPoint()}))&&c.setEventSource(p(a,4));return c},bVa=function(a){return(cj(a,12)?m(m(a,cs,12),bs,2):a.getSources())||new bs},cVa=function(a){return(cj(a,12)?m(m(a,cs,12),bs,3):a.getSources())||new bs},ds=function(a,b){return a.reduce(function(c,d){var e=b(d);c.has(e)||c.set(e,[]);c.get(e).push(d);
return c},new Map)},dVa=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return dj(a,3,0)+":"+dj(a,4,0)+":"+dj(a,5,0)+":"+a.getInstanceId()},eVa=function(a){return cj(a,2)?Lq(a).getContext()||0:0},fVa=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getSessionState();d=d?dj(d,3,0)+"-"+dj(d,4,0)+"-"+dj(d,5,0)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},fs=function(a,b,c,d){d=void 0===d?!1:
d;a=a.filter(function(h){return!W(h,4,!1)});if(d){d=r(a);for(var e=d.next();!e.done;e=d.next())l(e.value,4,!0)}if(c)for(d=a.filter(function(h){return h&&!h.hasSessionState()}),d=r(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=fVa(a);c=[];a=r(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(h){return h&&h.hasSessionState()})){e=e.getSessionState();var f=new es;f.setSessionState(e);f.setEventType(b);zb(f,3,d);gVa(f,e.getSources());c.push(f)}return c},hVa=function(a){var b;
a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new gs},iVa=function(a){a&1&&J(0,"div",2)},jVa=function(a){a&1&&(xf(0),Df(1),yf())},kVa=function(a){a&1&&(G(0,"a",3),P(1),Q(2,"async"),H());if(a&2){a=M();var b;D("href",a.manageComponentLink,Kd);B(1);Jf(null==(b=R(2,2,a.component$))?null:b.name)}},lVa=function(a){a&1&&(G(0,"output"),P(1),H());a&2&&(a=M(),B(1),Jf(a.componentId))},mVa=function(a){a&1&&(G(0,"li")(1,"label"),P(2,"Component"),H(),J(3,
"b-async-component",6),H());a&2&&(a=M(2),B(3),D("componentId",a.issueComponentId))},nVa=function(a){a&1&&(G(0,"li")(1,"label"),P(2,"Team"),H(),J(3,"b-team-display",7),H());a&2&&(a=M(2),B(3),D("teamId",a.issueTeamId))},oVa=function(a){a&1&&(G(0,"ol",3)(1,"li")(2,"label"),P(3,"ID"),H(),G(4,"output"),P(5),H()(),G(6,"li")(7,"label"),P(8,"Type"),H(),G(9,"output"),P(10),H()(),G(11,"li")(12,"label"),P(13,"Priority"),H(),J(14,"b-issue-priority-display",4),H(),G(15,"li")(16,"label"),P(17,"Severity"),H(),G(18,
"output"),P(19),H()(),G(20,"li")(21,"label"),P(22,"Status"),H(),G(23,"output"),P(24),H()(),G(25,"li")(26,"label"),P(27,"Last modified"),H(),G(28,"output"),P(29),Q(30,"date"),H()(),O(31,mVa,4,1,"li",5),O(32,nVa,4,1,"li",5),H());a&2&&(a=M(),B(5),Jf(a.issueId),B(5),Jf(a.issueType),B(4),D("issuePriority",a.issuePriority),B(5),Jf(a.issueSeverity),B(5),Jf(a.issueStatus),B(5),Jf(Rf(30,8,a.issueLastModified,"medium")),B(2),D("ngIf",a.issueComponentId),B(1),D("ngIf",a.issueTeamId))},qVa=function(a){if(a.customField)var b=
"DATE"===a.customField.type?new hs(a):"ENUM"===a.customField.type?new is(a):"NUMERIC"===a.customField.type?new js(a):new ks(a);else b=a.label.field,b=pVa()[b],b=new (b&&b.ruleCtor||ls)(a);b[ms](a);return b},rVa=function(a,b){return qVa({label:{field:a,customFieldId:b&&b.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:b})},sVa=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},pVa=function(){if(!$i())return tVa;
tVa.MENTION={ruleCtor:ns};return tVa},uVa=function(a){a.label||(a=Fi(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},wVa=function(a){return{type:vVa[a.getType()],value:a.getValue()}},yVa=function(a){var b,c;return{type:xVa[a.getType()],values:(null!=(b=a.getValuesList())?b:[]).map(yVa),simpleValues:(null!=(c=rb(a,os,3))?c:[]).map(wVa)}},CVa=function(a){var b,c=zVa[a.getType()],d=(null!=(b=a.getValuesList())?b:[]).map(yVa);b=W(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:AVa[e.getField()],
customFieldId:Number(e.getCustomFieldId())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:BVa[X(a,5,0)]}},EVa=function(a){switch(a.getKindCase()){case 2:return{syntaxErrorResponse:{syntaxError:V(wl(a,ps,2,qs),1)},queryBuilderResponse:void 0};case 1:a=wl(a,rs,1,qs);var b;return{syntaxErrorResponse:void 0,queryBuilderResponse:{type:DVa[a.getType()],expressions:(null!=(b=rb(a,ss,2))?b:[]).map(CVa)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},FVa=function(a){a&
1&&(G(0,"span",11),P(1," > "),H())},GVa=function(a,b){if(a&1){var c=x();G(0,"span")(1,"a",9);K("click",function(d){var e=z(c).$implicit,f=M(2);e=new ts(e.pathIds,e.pathNames);f.onTeamSelect.emit(e);d.stopPropagation();d.preventDefault();us(f.autocompleteTrigger);return A()});P(2);H();O(3,FVa,2,0,"span",10);H()}a&2&&(a=b.$implicit,b=b.last,B(1),D("matTooltip",a.pathNameText),B(1),Jf(a.name),B(1),D("ngIf",!b))},HVa=function(a,b){a&1&&(G(0,"mat-option",6)(1,"div"),O(2,GVa,4,3,"span",7),H(),G(3,"span",
8),P(4),Q(5,"slice"),H()());if(a&2){a=b.$implicit;D("value",a);B(2);D("ngForOf",a.teamPath);B(1);D("matTooltip",a.description);B(1);a=a.description;b=x();var c=b[27];a=b[1].data[27].pure?Jha(b,Ic(),4,c.transform,a,0,100,c):c.transform(a,0,100);If("",a," ")}},IVa=function(a){return a.getTeamSuggestionsList().map(function(b){return new ts(b.getPathIdsList(),b.getPathNamesList(),b.getDescription())})},JVa=function(a,b){a&1&&(G(0,"mat-option",12),P(1),H());a&2&&(a=b.$implicit,D("value",a.key),B(1),If(" ",
a.value," "))},KVa=function(a){if(a&1){var b=x();G(0,"mat-form-field",9)(1,"mat-select",10);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.expressionType=c)});O(2,JVa,2,2,"mat-option",11);Q(3,"keyvalue");H()()}a&2&&(a=M(2),B(1),D("ngModel",a.expressionType),B(1),D("ngForOf",R(3,2,a.globalTypeLabels)))},LVa=function(a,b){a&1&&(G(0,"mat-option",12),P(1),H());a&2&&(a=b.$implicit,D("value",a[0]),B(1),If(" ",a[1]," "))},MVa=function(a,b){a&1&&(G(0,"mat-option",12),P(1),H());if(a&2){a=b.$implicit;
b=M(2).$implicit;var c=M(2);D("value",a);B(1);If(" ",c.getTypeLabel(b,a)," ")}},NVa=function(a){if(a&1){var b=x();G(0,"mat-form-field",9)(1,"mat-select",20);K("ngModelChange",function(c){z(b);var d=M().$implicit;return A(d.type=c)});O(2,MVa,2,2,"mat-option",11);H()()}a&2&&(a=M().$implicit,B(1),D("ngModel",a.type),B(1),D("ngForOf",a.getLegalTypes()))},OVa=function(a,b){if(a&1){var c=x();G(0,"div",27)(1,"b-checkbox",28);K("change",function(d){var e=z(c).$implicit,f=M(3).$implicit;return A(f.enumValues[e.id]=
d)});H()()}a&2&&(a=b.$implicit,b=M(3).$implicit,B(1),D("checked",b.enumValues[a.id])("label",a.label||a.id))},PVa=function(a){a&1&&(G(0,"div",25),O(1,OVa,2,2,"div",26),H());a&2&&(a=M(2).$implicit,B(1),D("ngForOf",a.getOptions()))},QVa=function(a){if(a&1){var b=x();G(0,"div")(1,"input",29);K("ngModelChange",function(c){z(b);var d=M(3).$implicit;return A(d.csv=c)});H()()}a&2&&(a=M(3).$implicit,B(1),D("ngModel",a.csv)("bContactAutocomplete","MULTI"))},RVa=function(a){if(a&1){var b=x();G(0,"div",21)(1,
"input",30);K("ngModelChange",function(c){z(b);var d=M(3).$implicit;return A(d.csv=c)});H()()}a&2&&(a=M(3).$implicit,B(1),D("ngModel",a.csv))},SVa=function(a){if(a&1){var b=x();G(0,"div",21)(1,"input",31);K("ngModelChange",function(c){z(b);var d=M(3).$implicit;return A(d.csv=c)});H()()}a&2&&(a=M(3).$implicit,B(1),D("ngModel",a.csv))},TVa=function(a){if(a&1){var b=x();G(0,"div",21)(1,"input",32);K("ngModelChange",function(c){z(b);var d=M(3).$implicit;return A(d.csv=c)});H()()}a&2&&(a=M(3).$implicit,
B(1),D("ngModel",a.csv))},UVa=function(a){a&1&&(G(0,"div"),O(1,QVa,2,2,"div",23),O(2,RVa,2,1,"div",17),O(3,SVa,2,1,"div",17),O(4,TVa,2,1,"div",17),H());a&2&&(a=M(2).$implicit,B(1),D("ngIf","user"==a.getWidgetType()),B(1),D("ngIf","csv"==a.getWidgetType()),B(1),D("ngIf","id"==a.getWidgetType()),B(1),D("ngIf","number"==a.getWidgetType()))},VVa=function(a,b){if(a&1){var c=x();G(0,"div",36)(1,"div",37)(2,"input",32);K("ngModelChange",function(d){var e=z(c).$implicit;return A(e.value=d)});H()();G(3,"button",
38);K("click",function(){var d=z(c).$implicit,e=M(3).$implicit,f=M(2);return A(vs(f,e,d))});H()()}a&2&&(a=b.$implicit,B(2),D("ngModel",a.value))},WVa=function(a){if(a&1){var b=x();G(0,"button",39);K("click",function(){z(b);var c=M(3).$implicit,d=M(2);return A(ws(d,c))});P(1);H()}a&2&&(a=M(3).$implicit,B(1),If(" + ","OR"==a.type||"NOR"==a.type?"OR":"AND",""))},XVa=function(a){a&1&&(G(0,"div",33),O(1,VVa,4,1,"div",34),O(2,WVa,2,1,"button",35),H());a&2&&(a=M(2).$implicit,B(1),D("ngForOf",a.values),B(1),
D("ngIf",a.type))},ZVa=function(a){if(a&1){var b=x();G(0,"div",48);K("click",function(){z(b);var d=M(2).$implicit,e=M(5);return A(YVa(e,d))});Q(1,"componentPath");G(2,"span",49);P(3);Q(4,"componentPath");H()()}if(a&2){a=M(2).$implicit;var c=M(5);D("title",R(1,2,c.components[a.value]));B(3);If(" ",R(4,4,c.components[a.value])," ")}},$Va=function(a){if(a&1){var b=x();G(0,"div",37)(1,"b-team-component-picker",50);K("selectedComponentChange",function(c){z(b);var d=M(7);d.componentUnderEdit=null!==c&&
void 0!==c?c:null;d.componentUnderEdit&&(d.chipUnderEdit.value=d.componentUnderEdit.componentId,d.components[d.componentUnderEdit.componentId]=d.componentUnderEdit);d.componentUnderEdit=null;xs(d);return A()});H()()}a&2&&(a=M(7),B(1),D("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},aWa=function(a){if(a&1){var b=x();G(0,"div",42);O(1,ZVa,5,6,"div",43);O(2,$Va,2,3,"div",44);G(3,"button",45);K("click",function(){z(b);var d=M().$implicit;M(5);d.includeSubs=
!d.includeSubs;return A()});J(4,"mat-icon",46);H();G(5,"button",47);K("click",function(){z(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return A(vs(f,e,d))});H()()}if(a&2){a=M().$implicit;var c=M(5);B(1);D("ngIf",c.chipUnderEdit!==a);B(1);D("ngIf",c.chipUnderEdit===a);B(1);D("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");nf("aria-checked",a.includeSubs);B(1);D("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},bWa=function(a,b){a&
1&&(xf(0),O(1,aWa,6,5,"div",41),yf());a&2&&(a=b.$implicit,b=M(5),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},cWa=function(a){if(a&1){var b=x();G(0,"button",39);K("click",function(){z(b);var c=M(3).$implicit,d=M(2);return A(ws(d,c))});P(1);H()}a&2&&(a=M(3).$implicit,B(1),If(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},dWa=function(a){a&1&&(G(0,"div",33),O(1,bWa,2,1,"ng-container",40),O(2,cWa,2,1,"button",35),H());a&2&&(a=M(2).$implicit,B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},fWa=
function(a){if(a&1){var b=x();G(0,"div",48);K("click",function(){z(b);var d=M(2).$implicit,e=M(6);return A(eWa(e,d))});Q(1,"teamPath");G(2,"span",49);P(3);Q(4,"teamPath");H()()}if(a&2){a=M(2).$implicit;var c=M(6);D("title",R(1,2,c.teams[a.value]));B(3);If(" ",R(4,4,c.teams[a.value])," ")}},hWa=function(a){if(a&1){var b=x();G(0,"div",37)(1,"b-team-picker",54);K("onTeamSelect",function(c){z(b);var d=M(8);return A(gWa(d,c))});H()()}a&2&&(a=M(8),B(1),D("teamSelected",a.teamUnderEdit))},iWa=function(a){if(a&
1){var b=x();G(0,"div",52);O(1,fWa,5,6,"div",43);O(2,hWa,2,1,"div",44);G(3,"button",53);K("click",function(){z(b);var d=M().$implicit;M(6);d.includeSubs=!d.includeSubs;return A()});J(4,"mat-icon",46);H();G(5,"button",47);K("click",function(){z(b);var d=M().$implicit,e=M(4).$implicit,f=M(2);return A(vs(f,e,d))});H()()}if(a&2){a=M().$implicit;var c=M(6);B(1);D("ngIf",c.chipUnderEdit!==a);B(1);D("ngIf",c.chipUnderEdit===a);B(1);D("title",a.includeSubs?"Subteams are included":"Subteams are not included");
nf("aria-checked",a.includeSubs);B(1);D("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},jWa=function(a,b){a&1&&(xf(0),O(1,iWa,6,5,"div",51),yf());a&2&&(a=b.$implicit,b=M(6),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},kWa=function(a){if(a&1){var b=x();G(0,"button",39);K("click",function(){z(b);var c=M(4).$implicit,d=M(2);return A(ws(d,c))});P(1);H()}a&2&&(a=M(4).$implicit,B(1),If(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},lWa=function(a){a&1&&(xf(0),O(1,jWa,2,1,"ng-container",
40),O(2,kWa,2,1,"button",35),yf());a&2&&(a=M(3).$implicit,B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},mWa=function(a){a&1&&(G(0,"div",33),O(1,lWa,3,2,"ng-container",23),H());a&2&&(a=M(4),B(1),D("ngIf",a.sessionIsInternal))},oWa=function(a){if(a&1){var b=x();G(0,"div")(1,"bv2-input-date-picker",55);K("boundValueChange",function(c){z(b);M(3).$implicit.dateFrom=nWa(c);return A()});H();P(2," and ");G(3,"bv2-input-date-picker",55);K("boundValueChange",function(c){z(b);M(3).$implicit.dateTo=nWa(c);
return A()});H()()}a&2&&(a=M(3).$implicit,B(1),D("boundValue",a.dateFrom)("isRequired",!0),B(2),D("boundValue",a.dateTo)("isRequired",!0))},pWa=function(a){if(a&1){var b=x();G(0,"div");P(1," the last ");G(2,"input",56);K("ngModelChange",function(c){z(b);var d=M(3).$implicit;return A(d.duration=c)});H();P(3," days. ");H()}a&2&&(a=M(3).$implicit,B(2),D("ngModel",a.duration))},qWa=function(a){if(a&1){var b=x();G(0,"div")(1,"bv2-input-date-picker",55);K("boundValueChange",function(c){z(b);M(3).$implicit.dateFrom=
nWa(c);return A()});H()()}a&2&&(a=M(3).$implicit,B(1),D("boundValue",a.dateFrom)("isRequired",!0))},rWa=function(a){a&1&&(G(0,"div"),O(1,oWa,4,4,"div",23),O(2,pWa,4,1,"div",23),O(3,qWa,2,2,"div",23),H());a&2&&(a=M(2).$implicit,B(1),D("ngIf","RANGE"==a.type||"NRANGE"==a.type),B(1),D("ngIf","DURATION"==a.type||"NDURATION"==a.type),B(1),D("ngIf","LE"==a.type||"LT"==a.type||"GE"==a.type||"GT"==a.type||"OR"==a.type))},sWa=function(a){if(a&1){var b=x();G(0,"div",48);K("click",function(){z(b);var d=M(2).$implicit,
e=M(5);return A(ys(e,d))});G(1,"span",49);P(2);H()()}if(a&2){a=M(2).$implicit;var c=M(5);D("title",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value);B(2);If(" ",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value," ")}},tWa=function(a,b){a&1&&(G(0,"mat-option",12),P(1),H());a&2&&(a=b.$implicit,D("value",a.hotlistId),B(1),If(" ",a.name," "))},uWa=function(a){if(a&1){var b=x();G(0,"mat-form-field",60)(1,"mat-select",61);K("ngModelChange",function(d){z(b);var e=M(2).$implicit;
return A(e.value=d)})("selectionChange",function(){z(b);var d=M(7);return A(xs(d))});O(2,tWa,2,2,"mat-option",11);H()()}if(a&2){a=M(2).$implicit;var c=M(5);B(1);D("ngModel",a.value);B(1);D("ngForOf",c.userHotlists)}},vWa=function(a){if(a&1){var b=x();G(0,"div",58);O(1,sWa,3,2,"div",43);O(2,uWa,3,2,"mat-form-field",59);G(3,"button",47);K("click",function(){z(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return A(vs(f,e,d))});H()()}if(a&2){a=M().$implicit;var c=M(5);B(1);D("ngIf",c.chipUnderEdit!==
a);B(1);D("ngIf",c.chipUnderEdit===a)}},wWa=function(a,b){a&1&&(xf(0),O(1,vWa,4,2,"div",57),yf());a&2&&(a=b.$implicit,b=M(5),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},xWa=function(a){if(a&1){var b=x();G(0,"button",39);K("click",function(){z(b);var c=M(3).$implicit,d=M(2);return A(ws(d,c))});P(1);H()}a&2&&(a=M(3).$implicit,B(1),If(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},yWa=function(a){a&1&&(G(0,"div",33),O(1,wWa,2,1,"ng-container",40),O(2,xWa,2,1,"button",35),H());a&2&&(a=M(2).$implicit,
B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},zWa=function(a){if(a&1){var b=x();G(0,"div",48);K("click",function(){z(b);var d=M(2).$implicit,e=M(5);return A(ys(e,d))});G(1,"span",49);P(2);H()()}if(a&2){a=M(2).$implicit;var c=M(5);D("title",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value);B(2);If(" ",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value," ")}},AWa=function(a,b){a&1&&(G(0,"mat-option",12),P(1),H());a&2&&(a=b.$implicit,D("value",
a.searchId),B(1),If(" ",a.name," "))},BWa=function(a){if(a&1){var b=x();G(0,"mat-form-field",60)(1,"mat-select",63);K("ngModelChange",function(d){z(b);var e=M(2).$implicit;return A(e.value=d)})("selectionChange",function(){z(b);var d=M(7);return A(xs(d))});O(2,AWa,2,2,"mat-option",11);H()()}if(a&2){a=M(2).$implicit;var c=M(5);B(1);D("ngModel",a.value);B(1);D("ngForOf",c.userSavedSearches)}},CWa=function(a){if(a&1){var b=x();G(0,"div",58);O(1,zWa,3,2,"div",62);O(2,BWa,3,2,"mat-form-field",59);G(3,
"button",47);K("click",function(){z(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return A(vs(f,e,d))});H()()}if(a&2){a=M().$implicit;var c=M(5);B(1);D("ngIf",c.chipUnderEdit!==a);B(1);D("ngIf",c.chipUnderEdit===a)}},DWa=function(a,b){a&1&&(xf(0),O(1,CWa,4,2,"div",57),yf());a&2&&(a=b.$implicit,b=M(5),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},EWa=function(a){if(a&1){var b=x();G(0,"button",39);K("click",function(){z(b);var c=M(3).$implicit,d=M(2);return A(ws(d,c))});P(1);H()}a&2&&(a=M(3).$implicit,
B(1),If(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},FWa=function(a){a&1&&(G(0,"div",33),O(1,DWa,2,1,"ng-container",40),O(2,EWa,2,1,"button",35),H());a&2&&(a=M(2).$implicit,B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},GWa=function(a){a&1&&(G(0,"div",21),O(1,PVa,2,1,"div",22),O(2,UVa,5,4,"div",23),O(3,XVa,3,2,"div",24),O(4,dWa,3,2,"div",24),O(5,mWa,2,1,"div",24),O(6,rWa,4,3,"div",23),O(7,yWa,3,2,"div",24),O(8,FWa,3,2,"div",24),H());a&2&&(a=M().$implicit,M(2),B(1),D("ngIf","enum"===a.getWidgetType()),
B(1),D("ngIf",a instanceof zs),B(1),D("ngIf","text"==a.getWidgetType()),B(1),D("ngIf","component"==a.getWidgetType()),B(1),D("ngIf","team"==a.getWidgetType()),B(1),D("ngIf","date"===a.getWidgetType()),B(1),D("ngIf","hotlist"==a.getWidgetType()),B(1),D("ngIf","savedsearch"==a.getWidgetType()))},HWa=function(a){a&1&&(G(0,"div",64),P(1),H());if(a&2){a=M().$implicit;var b=M(2);B(1);If(" ",b.getCustomFieldName(a)," ")}},JWa=function(a){if(a&1){var b=x();G(0,"div",65)(1,"b-custom-field-picker",66);K("fieldSelected",
function(c){z(b);var d=M().index,e=M(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=rVa("CUSTOM_FIELD",e.customFields[f]);IWa(e,e.expressions[d]);return A()});H()()}},LWa=function(a,b){if(a&1){var c=x();G(0,"div",13)(1,"div",14)(2,"mat-form-field",9)(3,"mat-select",15);K("ngModelChange",function(d){var e=z(c).$implicit;return A(e.label.field=d)})("selectionChange",function(){var d=z(c).index,e=M(2);return A(KWa(e,d))});O(4,LVa,2,2,"mat-option",11);H()();O(5,NVa,3,2,"mat-form-field",2);
H();G(6,"button",16);K("click",function(){var d=z(c).$implicit,e=M(2);return A(e.removeExpression(d))});H();O(7,GWa,9,8,"div",17);O(8,HWa,2,1,"div",18);O(9,JWa,2,0,"div",19);H()}a&2&&(a=b.$implicit,b=M(2),B(3),D("ngModel",a.label.field),B(1),D("ngForOf",b.availableLabels),B(1),D("ngIf",!a.isPendingCustomField),B(2),D("ngIf",!a.isPendingCustomField),B(1),D("ngIf",a.label.customFieldId),B(1),D("ngIf",a.isPendingCustomField))},MWa=function(a,b){if(a&1){var c=x();G(0,"button",67);K("click",function(){var d=
z(c).$implicit,e=M(2);e.expressions.push({label:{field:d[0]}});KWa(e,e.expressions.length-1);return A()});P(1);H()}a&2&&(a=b.$implicit,B(1),If(" ",a[1]," "))},NWa=function(a){a&1&&(G(0,"div",1),O(1,KVa,4,4,"mat-form-field",2),O(2,LWa,10,6,"div",3),G(3,"div",4)(4,"button",5),P(5),H(),G(6,"mat-menu",6,7),O(8,MWa,2,1,"button",8),H()()());if(a&2){var b=Hf(7);a=M();B(1);D("ngIf",a.expressions.length);B(1);D("ngForOf",a.expressions)("ngForTrackBy",a.trackByIndex);B(2);D("matMenuTriggerFor",b);B(1);If(" ",
a.expressionType," ... ");B(3);D("ngForOf",a.availableLabels)}},OWa=function(a){a&1&&J(0,"div",3)},PWa=function(a){a&1&&J(0,"div",4)},RWa=function(a){if(a&1){var b=x();G(0,"button",2);K("click",function(){z(b);var c=M();return A(QWa(c))});J(1,"mat-icon",3);P(2);H()}a&2&&(a=M(),D("matTooltip","Open release notes"),B(1),D("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),B(1),If(" ",a.buttonLabel," "))},SWa=function(a){if(a&1){var b=x();G(0,"button",4);K("click",function(){z(b);var c=
M();return A(QWa(c))});P(1);H()}a&2&&(a=M(),B(1),If(" ",a.buttonLabel," "))},TWa=function(a){if(a&1){var b=x();G(0,"button",9);K("click",function(c){z(b);var d=M();return A(d.manageSlos(c))});P(1,"Manage SLOs");H()}},UWa=function(a){a&1&&(G(0,"a",13),P(1,"Early Access "),J(2,"b-feature-stage-label",14),H())},VWa=function(a){a&1&&(xf(0),J(1,"mat-divider")(2,"b-whats-new-button",15),yf());a&2&&(B(2),D("menuMode",!0))},WWa=function(a){if(a&1){var b=x();G(0,"a",6);K("click",function(){z(b);var c=M(2);
return A(c.toggleNewIssueDetailsPage(!0))});P(1,"Try new version");H()}},XWa=function(a){if(a&1){var b=x();G(0,"a",6);K("click",function(){z(b);var c=M(2);return A(c.toggleNewIssueDetailsPage(!1))});P(1,"Back to legacy version");H()}},YWa=function(a){a&1&&(xf(0),O(1,WWa,2,0,"a",5),O(2,XWa,2,0,"a",5),yf());a&2&&(a=M(),B(1),D("ngIf",!a.isNewVersion),B(1),D("ngIf",a.isNewVersion))},ZWa=function(a){a&1&&J(0,"b-whats-new-button",7);a&2&&(a=M(),D("alertMode",a.majorReleaseNotesUpdated))},$Wa=function(a){if(a&
1){var b=x();G(0,"button",8);K("click",function(){z(b);M().userFeedback.startFeedback();return A()});J(1,"mat-icon",9);H()}},aXa=function(a,b){if(a&1){var c=x();G(0,"button",6);K("click",function(){var d=z(c).$implicit;M().currentTracker.setTrackerId(d.trackerId);return A()});J(1,"img",7);G(2,"span",8);P(3);H()()}a&2&&(a=b.$implicit,D("value",a.trackerId),nf("title",a.name),B(1),D("src",null==a.branding?null:a.branding.logoUrl,Kd),B(2),Jf(a.name))},bXa=function(a){if(a&1){var b=x();G(0,"button",5);
K("click",function(){z(b);var c=M();return A(c.clickMenu.emit())});J(1,"mat-icon",6);H()}},eXa=function(a,b){a&1&&(G(0,"output",7),P(1),H());a&2&&(a=b.$implicit,D("ngClass",a.color?Nf(2,cXa,a.color):Mf(4,dXa)),B(1),Jf(a.name))},fXa=function(a){a&1&&J(0,"tracker-switcher",2);a&2&&(a=M(),D("associatedTrackers",a.associatedTrackers))},gXa=function(a){a&1&&(G(0,"span"),P(1," Currently selected hotlist: "),G(2,"strong"),P(3),H()());a&2&&(a=M(3),B(3),Jf(a.header.hotlist.name))},hXa=function(a){a&1&&P(0,
" Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},iXa=function(a){a&1&&(xf(0),O(1,gXa,4,1,"span",5),O(2,hXa,1,0,"ng-template",null,6,gg),yf());if(a&2){var b=Hf(3);a=M(2);B(1);D("ngIf",a.header.hotlist)("ngIfElse",b)}},jXa=function(a){a&1&&(G(0,"span"),P(1,"Currently selected saved search: "),G(2,"strong"),P(3),H()());a&2&&(a=M(3),B(3),Jf(a.header.savedSearch.name))},kXa=function(a){a&1&&P(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},
lXa=function(a){a&1&&(xf(0),O(1,jXa,4,1,"span",5),O(2,kXa,1,0,"ng-template",null,7,gg),yf());if(a&2){var b=Hf(3);a=M(2);B(1);D("ngIf",a.header.savedSearch)("ngIfElse",b)}},mXa=function(a){a&1&&(G(0,"span"),P(1," and "),G(2,"strong"),P(3,"subcomponents"),H()())},nXa=function(a){a&1&&(G(0,"span"),P(1," Currently selected component: "),G(2,"strong"),P(3),H(),J(4,"b-access-level-indicator",9),O(5,mXa,4,0,"span",4),H());if(a&2){a=M(3);B(3);var b=a.header.component;Jf(b.componentPathInfo&&b.componentPathInfo.componentPathName?
b.componentPathInfo.componentPathName.join(" > "):b.name);B(1);D("accessLevel",null==a.header.component.accessLimit?null:a.header.component.accessLimit.accessLevel);B(1);D("ngIf",a.header.includeChildren)}},oXa=function(a){a&1&&P(0," Start typing a component name or ID to see auto-complete suggestions. ")},pXa=function(a){a&1&&(xf(0),O(1,nXa,6,3,"span",5),O(2,oXa,1,0,"ng-template",null,8,gg),yf());if(a&2){var b=Hf(3);a=M(2);B(1);D("ngIf",a.header.component)("ngIfElse",b)}},qXa=function(a){a&1&&(G(0,
"span"),P(1," and "),G(2,"strong"),P(3,"subteams"),H()())},rXa=function(a){a&1&&(G(0,"span"),P(1," Currently selected team: "),G(2,"strong"),P(3),H(),O(4,qXa,4,0,"span",4),H());a&2&&(a=M(3),B(3),Jf(a.header.team.name),B(1),D("ngIf",a.header.includeChildren))},sXa=function(a){a&1&&P(0," Start typing a team name or ID to see auto-complete suggestions. ")},tXa=function(a){a&1&&(xf(0),O(1,rXa,5,2,"span",5),O(2,sXa,1,0,"ng-template",null,10,gg),yf());if(a&2){var b=Hf(3);a=M(2);B(1);D("ngIf",a.header.team)("ngIfElse",
b)}},uXa=function(a,b){a&1&&(G(0,"span"),P(1," Currently selected custom field: "),G(2,"strong"),P(3),H(),P(4," of type "),G(5,"strong"),P(6),Q(7,"lowercase"),H(),P(8,". "),H());a&2&&(a=b.$implicit,B(3),Jf(a.name),B(3),Jf(R(7,2,a.type)))},vXa=function(a){a&1&&P(0," customfield[id]: [value] ")},wXa=function(a){a&1&&(xf(0),O(1,uXa,9,4,"span",5),O(2,vXa,1,0,"ng-template",null,11,gg),yf());if(a&2){var b=Hf(3);a=M(2);B(1);D("ngIf",a.header.customField)("ngIfElse",b)}},xXa=function(a){a&1&&(G(0,"div",3),
O(1,iXa,4,2,"ng-container",4),O(2,lXa,4,2,"ng-container",4),O(3,pXa,4,2,"ng-container",4),O(4,tXa,4,2,"ng-container",4),O(5,wXa,4,2,"ng-container",4),H());a&2&&(a=M(),B(1),D("ngIf","hotlist"===a.header.type),B(1),D("ngIf","savedsearch"===a.header.type),B(1),D("ngIf","component"===a.header.type),B(1),D("ngIf","team"===a.header.type),B(1),D("ngIf","customfield"===a.header.type))},yXa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),Kf(" ",a.id,": ",a.name," "))},zXa=function(a){a&
1&&(G(0,"span"),P(1),G(2,"span"),P(3),H()());a&2&&(a=M().$implicit,B(1),If(" Hotlist ",a.hotlistId,": "),B(2),Jf(a.name))},AXa=function(a){a&1&&(G(0,"span"),P(1),G(2,"span"),P(3),H(),J(4,"br"),G(5,"span",13),P(6),H()());a&2&&(a=M().$implicit,B(1),If(" Saved search ",a.searchId,": "),B(2),Jf(a.name),B(3),Jf(a.query))},BXa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),If(" ",a.name," "))},CXa=function(a){a&1&&(G(0,"span"),P(1," > "),H())},EXa=function(a,b){if(a&1){var c=x();xf(0);
G(1,"span",16);K("click",function(d){var e=z(c).$implicit;DXa(e);return A(d.stopPropagation())});P(2);H();O(3,CXa,2,0,"span",4);yf()}a&2&&(a=b.$implicit,b=b.last,B(1),Gf("title","",a.id,": ",a.name,""),B(1),Jf(a.name),B(1),D("ngIf",!b))},FXa=function(a){a&1&&(G(0,"span"),P(1," Component "),G(2,"strong"),P(3),H(),J(4,"b-access-level-indicator",9),G(5,"span",14),O(6,EXa,4,4,"ng-container",15),H()());a&2&&(a=M().$implicit,B(3),Jf(a.componentId),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),
B(2),D("ngForOf",a.componentPath))},GXa=function(a){a&1&&(G(0,"span"),P(1," > "),H())},HXa=function(a,b){if(a&1){var c=x();xf(0);G(1,"span",16);K("click",function(d){var e=z(c).$implicit;DXa(e);return A(d.stopPropagation())});P(2);H();O(3,GXa,2,0,"span",4);yf()}a&2&&(a=b.$implicit,b=b.last,B(1),Gf("title","",a.id,": ",a.name,""),B(1),Jf(a.name),B(1),D("ngIf",!b))},IXa=function(a){a&1&&(G(0,"span"),P(1," Team "),G(2,"strong"),P(3),H(),G(4,"span",14),O(5,HXa,4,4,"ng-container",15),H()());a&2&&(a=M().$implicit,
B(3),Jf(a.id),B(2),D("ngForOf",a.teamPath))},JXa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),Kf(" ",a.label,": ",a.name," "))},LXa=function(a,b){if(a&1){var c=x();G(0,"b-app-search-auto-complete-option",12);K("optionClicked",function(e){z(c);var f=M();0<=e&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&KXa(e),f.itemSelected.emit(e));return A()});O(1,yXa,2,2,"span",4);O(2,zXa,4,2,"span",4);O(3,AXa,7,3,"span",4);O(4,BXa,2,1,"span",4);O(5,FXa,7,3,"span",4);O(6,IXa,6,2,
"span",4);O(7,JXa,2,2,"span",4);H()}if(a&2){a=b.$implicit;b=b.index;var d=M();pf("id","b-app-search-option-",b,"");D("index",b)("isActive",0<=b&&b<d.items.length?b===d.activeItemIndex:!1);B(1);D("ngIf","issue"===a.completionCfg.type);B(1);D("ngIf","hotlist"===a.completionCfg.type);B(1);D("ngIf","savedsearch"===a.completionCfg.type);B(1);D("ngIf","atom"===a.completionCfg.type);B(1);D("ngIf","component"===a.completionCfg.type);B(1);D("ngIf","team"===a.completionCfg.type);B(1);D("ngIf",!d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type))}},
MXa=function(a){a&1&&(xf(0),G(1,"span",10),P(2),H(),yf());a&2&&(a=M(),B(1),sf("muted",a.disabled),B(1),Jf(a.cardTitle))},NXa=function(a){a&1&&J(0,"mat-icon",11)},OXa=function(a){a&1&&J(0,"mat-icon",12)},PXa=function(a){a&1&&(G(0,"mat-select-trigger"),J(1,"mat-icon",20),G(2,"span"),P(3),H()());a&2&&(a=M(3),B(1),D("svgIcon",a.selectedOption.icon),B(2),Jf(a.selectedOption.displayText))},QXa=function(a){a&1&&J(0,"mat-icon",20);a&2&&(a=M().$implicit,D("svgIcon",a.icon))},RXa=function(a,b){a&1&&(G(0,"mat-option",
21),O(1,QXa,1,1,"mat-icon",22),P(2),H());a&2&&(a=b.$implicit,D("value",a),B(1),D("ngIf",a.icon),B(1),If("",a.displayText," "))},SXa=function(a){if(a&1){var b=x();G(0,"mat-form-field",16)(1,"mat-label");P(2," Choose type... ");H();G(3,"mat-select",17);K("valueChange",function(c){z(b);var d=M(2);return A(d.selectedOption=c)})("selectionChange",function(c){z(b);M(2).dropdownSelectionChanged.emit(c.value);return A()});O(4,PXa,4,2,"mat-select-trigger",18);O(5,RXa,3,3,"mat-option",19);H()()}a&2&&(a=M(2),
B(3),D("disabled",a.disabled)("value",a.selectedOption),B(1),D("ngIf",a.selectedOption&&a.selectedOption.icon),B(1),D("ngForOf",a.dropdownOptions))},TXa=function(a){if(a&1){var b=x();G(0,"mat-form-field",13)(1,"input",14);K("ngModelChange",function(c){z(b);var d=M();return A(d.cardTitleChange.emit(c))});H()();O(2,SXa,6,4,"mat-form-field",15)}a&2&&(a=M(),B(1),sf("muted",a.disabled||!a.selected),D("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),nf("aria-label",
a.ariaLabelForCardTitle),B(1),D("ngIf",a.dropdownOptions.length))},UXa=function(a){a&1&&(G(0,"div",23),Df(1),H())},VXa=function(a){a&1&&(G(0,"button",31),J(1,"mat-icon",32),H());a&2&&(a=M(2),D("disabled",a.disabled))},WXa=function(a){a&1&&J(0,"mat-divider",33);a&2&&D("vertical",!0)},XXa=function(a){a&1&&(G(0,"mat-slide-toggle",34),P(1," Required "),H());a&2&&(a=M(2),D("disabled",a.disabled))},YXa=function(a){if(a&1){var b=x();G(0,"mat-slide-toggle",35);K("change",function(c){z(b);var d=M(2);return A(d.isInheritedChange.emit(c))});
P(1," Inherited ");H()}a&2&&(a=M(2),D("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},ZXa=function(a){if(a&1){var b=x();G(0,"div",24)(1,"button",25);K("click",function(){z(b);var c=M();return A(c.onSave())});P(2," Save ");H();G(3,"button",26);K("click",function(){z(b);var c=M();c.collapse();c.onCancelButtonClicked.emit();return A()});P(4," Cancel ");H();O(5,VXa,2,1,"button",27);O(6,WXa,1,1,"mat-divider",
28);O(7,XXa,2,1,"mat-slide-toggle",29);O(8,YXa,2,4,"mat-slide-toggle",30);H()}a&2&&(a=M(),B(1),D("disabled",a.isSaveButtonDisabled),B(2),D("disabled",a.disabled),B(2),D("ngIf",a.showDeleteButton),B(1),D("ngIf",a.showDeleteButton&&a.showRequiredToggle),B(1),D("ngIf",a.showRequiredToggle),B(1),D("ngIf",a.showInheritedToggle))},$Xa=function(a){a&1&&(G(0,"h3"),P(1),H());a&2&&(a=M(2),B(1),If(" Edit Custom Field ",a.editableField.customFieldId," "))},aYa=function(a){a&1&&(G(0,"h3"),P(1," Create Custom Field "),
H())},bYa=function(a){a&1&&(G(0,"div",40),P(1),H());a&2&&(a=M(2),B(1),If(" ",a.serverError," "))},dYa=function(a,b){a&1&&(G(0,"button",41),P(1),Q(2,"enumToHuman"),H());if(a&2){a=b.$implicit;M();var c=Hf(32);D("matMenuTriggerFor",c)("matMenuTriggerData",Nf(5,cYa,a));B(1);If(" ",R(2,3,a)," ")}},eYa=function(a,b){if(a&1){var c=x();G(0,"button",43);K("click",function(){var d=z(c).$implicit,e=M().type,f=M(2);return A(f.setType(e,"Multiple"===d))});P(1);H()}a&2&&(a=b.$implicit,B(1),If(" ",a," "))},fYa=
function(a){a&1&&O(0,eYa,2,1,"button",42);a&2&&(a=M(2),D("ngForOf",a.secondaryTypes))},hYa=function(a){if(a&1){var b=x();G(0,"td",7)(1,"label",44);P(2," Allowed Values: ");H();G(3,"b-list-field",45);K("valuesChange",function(c){z(b);var d=M(2);return A(gYa(d,c.values))});H()()}a&2&&(a=M(2),B(3),D("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},
iYa=function(a){a&1&&(G(0,"label",46),P(1," Default Value: "),H())},lYa=function(a,b){if(a&1){var c=x();G(0,"b-edit-field",47);K("valueChange",function(d){z(c);var e=M(2);jYa(e,d);return A()});H()}a&2&&(a=b.ngIf,b=M(2),D("name","Default")("type",a)("tooltip","Set default value")("value",kYa(b))("choices",b.allowedValues)("showEnumTitle",!0)("disabled",b.isSaving)("truncate",!0)("clearable",!0))},mYa=function(a){a&1&&(G(0,"label",48),P(1," Default Values: "),H())},nYa=function(a,b){if(a&1){var c=x();
G(0,"b-list-field",49);K("valuesChange",function(d){z(c);var e=M(2);jYa(e,d.values);return A()});H()}a&2&&(a=b.ngIf,b=M(2),D("defaultLineCount",3)("type",a)("tooltip","Set default values")("values",b.getListFieldValues())("enumChoices",b.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",b.isSaving)("truncate",!0))},oYa=function(a,b){if(a&1){var c=x();G(0,"button",50);K("click",function(){var d=z(c).$implicit,e=M(2);return A(e.setFieldSignificance(d))});P(1);Q(2,"enumToHuman");H()}a&
2&&(a=b.$implicit,B(1),If(" ",R(2,1,a)," "))},pYa=function(a){if(a&1){var b=x();G(0,"div",4);O(1,$Xa,2,1,"h3",3);O(2,aYa,2,0,"h3",3);O(3,bYa,2,1,"div",5);G(4,"form",6)(5,"div",7)(6,"label",8);P(7,"Name:");H();G(8,"input",9);K("ngModelChange",function(h){z(b);var k=M();return A(k.editableField.name=h)});H()();G(9,"div",7)(10,"label",10);P(11,"Description:");H();G(12,"textarea",11);K("ngModelChange",function(h){z(b);var k=M();return A(k.editableField.description=h)});H()();G(13,"table",12)(14,"tr")(15,
"td",7)(16,"div",13)(17,"label",14);P(18," Type: ");H();G(19,"onedev-hovercard",null,15)(21,"div",16)(22,"div",17);P(23," You can only choose type of field when creating a new custom field. You won't be able to edit it after the custom field is created. ");H()()()();G(24,"button",18);P(25);Q(26,"enumToHuman");J(27,"b-icon",19);H();G(28,"mat-menu",null,20);O(30,dYa,3,7,"button",21);H();G(31,"mat-menu",null,22);O(33,fYa,1,1,"ng-template",23);H()();O(34,hYa,4,7,"td",24);G(35,"td",7);O(36,iYa,2,0,"label",
25);O(37,lYa,1,9,"b-edit-field",26);O(38,mYa,2,0,"label",27);O(39,nYa,1,8,"b-list-field",28);H();G(40,"td",7)(41,"label",29);P(42," Required: ");H();G(43,"b-edit-field",30);K("valueChange",function(h){z(b);var k=M();return A(k.editableField.required=!!h)});H()();G(44,"td",7)(45,"div",13)(46,"label",31);P(47," Field Significance: ");H();G(48,"onedev-hovercard",null,32)(50,"div",33)(51,"div",17);P(52," This affects whether users will receive notifications when changes are made to this field. ");J(53,
"br");P(54," See\u00a0 ");G(55,"a",34);P(56,"Email Settings ");H()()()()();G(57,"button",35);P(58);Q(59,"enumToHuman");J(60,"b-icon",19);H();G(61,"mat-menu",null,36);O(63,oYa,3,3,"button",37);H()()()();G(64,"b-button",38);K("onAction",function(){z(b);var h=M();return A(h.save())});P(65," Save ");H();G(66,"b-button",39);K("onAction",function(){z(b);var h=M();return A(h.cancel())});P(67," Cancel ");H()()()}if(a&2){var c=Hf(20),d=Hf(29),e=Hf(49),f=Hf(62);a=M();B(1);D("ngIf",!!a.editableField.customFieldId);
B(1);D("ngIf",!a.editableField.customFieldId);B(1);D("ngIf",a.serverError);B(5);D("bFocus",a.editableField&&!a.isLoading)("ngModel",a.editableField.name)("disabled",a.isSaving);B(4);D("ngModel",a.editableField.description)("disabled",a.isSaving);B(5);D("onedevHovercardTrigger",c);B(7);D("matMenuTriggerFor",d)("disabled",!!a.editableField.customFieldId);B(1);If(" ",R(26,28,a.editableField.type)," ");B(5);D("ngForOf",a.typeChoices);B(4);D("ngIf",["REPEATED_ENUM","ENUM"].includes(a.editableField.type));
B(2);D("ngIf",!a.editableField.isRepeated());B(1);D("ngIf",a.getSingleEditFieldType(a.editableField));B(1);D("ngIf",a.editableField.isRepeated());B(1);D("ngIf",a.getListFieldType(a.editableField));B(4);D("name","Required")("type",a.FieldType.BOOL)("tooltip","Whether the field is required")("value",a.editableField.required);B(3);D("onedevHovercardTrigger",e);B(9);D("href",a.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Kd);B(2);D("matMenuTriggerFor",f);B(1);If(" ",R(59,30,a.editableField.fieldSignificance),
" ");B(5);D("ngForOf",a.significanceChoices);B(1);D("disabled",!a.hasUnsavedChanges()||!a.editableField.name)}},qYa=function(a){a&1&&(G(0,"div",51),J(1,"b-spinner",52),H());a&2&&(B(1),D("large",!0))},rYa=function(a){a&1&&(G(0,"th"),P(1,"Actions"),H())},tYa=function(a){if(a&1){var b=x();G(0,"td",59)(1,"b-button",60);K("click",function(){z(b);var c=M().index,d=M(2);return A(d.editField(c))});P(2,"Edit");H();G(3,"b-button",60);K("click",function(){z(b);var c=M().index,d=M(2);return A(sYa(d,c))});P(4,
"Delete");H()()}},uYa=function(a,b){a&1&&(G(0,"tr",56)(1,"td"),P(2),H(),G(3,"td"),P(4),H(),G(5,"td"),P(6),Q(7,"enumToHuman"),H(),G(8,"td"),P(9),H(),G(10,"td"),P(11),Q(12,"yesNo"),H(),G(13,"td"),J(14,"b-custom-field-value-display",57),H(),G(15,"td"),P(16),Q(17,"arrayToHuman"),H(),G(18,"td"),P(19),Q(20,"enumToHuman"),H(),O(21,tYa,5,0,"td",58),H());a&2&&(a=b.$implicit,b=M(2),D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field"),B(2),Jf(a.name),B(2),Jf(a.customFieldId),B(2),Jf(R(7,10,a.type)),
B(3),Jf(a.description),B(2),Jf(R(12,12,a.required)),B(3),D("customFieldValue",a.typedDefaultValue),B(2),Jf(R(17,14,a.allowedValue)),B(3),Jf(R(20,16,a.fieldSignificance)),B(2),D("ngIf",b.editMode))},vYa=function(a){a&1&&(G(0,"tr")(1,"td",61),P(2," There are no custom fields defined on this component. "),H()())},wYa=function(a){a&1&&(G(0,"tr")(1,"td",62)(2,"strong"),P(3,"Fields inherited from parent components"),H()()())},xYa=function(a){a&1&&(xf(0),J(1,"b-component-card",69,70),yf());if(a&2){var b=
Hf(2);a=M().$implicit;B(1);D("onedevIsHovercardReady",b.init)("componentId",a.componentId.toString())}},zYa=function(a){if(a&1){var b=x();G(0,"b-field-state-menu",71,72);K("fieldStateChange",function(d){z(b);var e=M(),f=e.$implicit;e=e.index;var h=M(3);return A(h.updateCustomFieldState(f,d,e))});H()}if(a&2){a=M().$implicit;var c=M(3);D("fieldName",a.name)("fieldState",a.stateOnIssues)("enabledOnParent",yYa(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);nf("aria-label",
c.msgFieldStateTip)}},AYa=function(a,b){if(a&1){var c=x();G(0,"tr",56)(1,"td");P(2);H();G(3,"td");P(4);H();G(5,"td");P(6);Q(7,"enumToHuman");H();G(8,"td");P(9);H();G(10,"td");P(11);Q(12,"yesNo");H();G(13,"td");J(14,"b-custom-field-value-display",57);H();G(15,"td");P(16);Q(17,"arrayToHuman");H();G(18,"td");P(19);Q(20,"enumToHuman");H();G(21,"td",59)(22,"div",63)(23,"div",64);P(24,"Inherited From");H();G(25,"a",65);K("click",function(){z(c);var e=M(3);return A(e.trackClick("parentCustomFields"))});
P(26);H();G(27,"onedev-hovercard",null,66);O(29,xYa,3,2,"ng-container",67);H()();O(30,zYa,2,6,"b-field-state-menu",68);H()()}if(a&2){a=b.$implicit;var d=Hf(28);b=M(3);D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field");B(2);Jf(a.name);B(2);Jf(a.customFieldId);B(2);Jf(R(7,13,a.type));B(3);Jf(a.description);B(2);Jf(R(12,15,a.required));B(3);D("customFieldValue",a.typedDefaultValue);B(2);Jf(R(17,17,a.allowedValue));B(3);Jf(R(20,19,a.fieldSignificance));B(6);D("onedevHovercardTrigger",d)("href",
b.paths.manageComponent(a.componentId,"customFields"),Kd);B(1);If(" ",b.componentIdsToNames[a.componentId]," ");B(4);D("ngIf",b.editMode)}},BYa=function(a){a&1&&(xf(0),O(1,AYa,31,21,"tr",54),yf());a&2&&(a=M(2),B(1),D("ngForOf",a.inheritedCustomFields))},CYa=function(a){a&1&&(G(0,"tfoot")(1,"tr")(2,"td",62),P(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),G(4,"a",73),P(5,"Field Ordering"),H(),P(6," tab."),J(7,"br"),P(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
H()()())},DYa=function(a){if(a&1){var b=x();G(0,"div",74)(1,"b-button",75);K("onAction",function(){z(b);var c=M(2);c.editableField=new As;c.originalEditableFieldValue_=Fi(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return A()});P(2," Add a Custom Field ");H()()}},EYa=function(a){a&1&&(G(0,"div")(1,"table",53)(2,"tr")(3,"th"),P(4,"Name"),H(),G(5,"th"),P(6,"ID"),H(),G(7,"th"),P(8,"Type"),H(),G(9,"th"),P(10,"Description"),H(),G(11,"th"),P(12,"Required?"),H(),G(13,"th"),P(14,
"Default Value"),H(),G(15,"th"),P(16,"Allowed Values"),H(),G(17,"th"),P(18,"Field Significance"),H(),O(19,rYa,2,0,"th",3),H(),O(20,uYa,22,18,"tr",54),O(21,vYa,3,0,"tr",3),O(22,wYa,4,0,"tr",3),O(23,BYa,2,1,"ng-container",3),O(24,CYa,9,0,"tfoot",3),H(),O(25,DYa,3,0,"div",55),H());a&2&&(a=M(),B(19),D("ngIf",a.editMode),B(1),D("ngForOf",a.customFields),B(1),D("ngIf",!a.customFields.length),B(1),D("ngIf",a.inheritedCustomFields.length),B(1),D("ngIf",a.inheritedCustomFields.length),B(1),D("ngIf",a.customFields.length),
B(1),D("ngIf",a.editMode))},FYa=function(a){if(a&1){var b=x();G(0,"button",18);K("click",function(){z(b);var c=M().index,d=M();return A(d.removeAtIndex.emit(c))});J(1,"mat-icon",19);H()}a&2&&(a=M().$implicit,nf("aria-label","Delete row "+a.label))},GYa=function(a,b){if(a&1){var c=x();G(0,"div",9)(1,"div",10);J(2,"mat-icon",11);G(3,"div",1)(4,"mat-form-field",12)(5,"input",13,14);K("change",function(f){var h=z(c).index,k=M();k.options[h].label=f.target.value;k.optionsChange.emit(k.options);return A()});
H()()();G(7,"div",1)(8,"mat-form-field",12)(9,"input",15,16);K("change",function(f){var h=z(c).index,k=M();return A(k.valueChange(f,h))});H()()();O(11,FYa,2,1,"button",17);H()()}if(a&2){a=b.$implicit;var d=Hf(6),e=Hf(10);b=M();B(4);D("appearance",d.focused||e.focused?"standard":"none");B(1);sf("muted",b.disabled);D("value",a.label)("placeholder",null==a.label?"Dropdown value":"")("disabled",b.disabled);B(3);D("appearance",d.focused||e.focused?"standard":"none");B(1);sf("muted",b.disabled);D("value",
a.value)("placeholder",null==a.value?"Average days":"")("disabled",b.disabled);B(2);D("ngIf",!b.disabled)}},HYa=function(a){if(a&1){var b=x();G(0,"button",20);K("click",function(){z(b);var c=M();return A(c.addRow.emit())});P(1," Add row\n");H()}},IYa=function(a){a&1&&zf(0)},JYa=function(a){a&1&&(xf(0),O(1,IYa,1,0,"ng-container",5),yf());if(a&2){M();var b=Hf(7);B(1);D("ngTemplateOutlet",b)}},KYa=function(a){if(a&1){var b=x();xf(0);G(1,"b-numeric-config",6);K("valueChange",function(c){z(b);var d=M();
return A(d.numericSpecMultiplier=c)});H();yf()}a&2&&(a=M(),B(1),D("disabled",a.disabled)("value",a.numericSpecMultiplier))},LYa=function(a){a&1&&zf(0)},MYa=function(a){if(a&1){var b=x();G(0,"div",7)(1,"label",8);P(2,"Aggregation Rule");H();G(3,"a",9);J(4,"mat-icon",10);H();J(5,"br");G(6,"mat-form-field",11)(7,"mat-select",12);K("valueChange",function(c){z(b);var d=M();return A(d.selectedAggregationRule=c)});G(8,"mat-select-trigger");P(9);Q(10,"aggregationRuleText");H();G(11,"mat-option",13)(12,"div",
14);P(13);Q(14,"aggregationRuleText");H();G(15,"div",15);P(16,"All parents and children are added to the total");H()();G(17,"mat-option",13)(18,"div",14);P(19);Q(20,"aggregationRuleText");H();G(21,"div",15);P(22,"Take the assigned estimate if larger than total of all immediate children");H()()()()()}a&2&&(a=M(),B(7),D("value",a.selectedAggregationRule),B(2),If(" ",R(10,6,a.selectedAggregationRule)," "),B(2),D("value",a.aggregationRules.SUM),B(2),Jf(R(14,8,a.aggregationRules.SUM)),B(4),D("value",a.aggregationRules.MAX),
B(2),Jf(R(20,10,a.aggregationRules.MAX)))},NYa=function(a){if(a&1){var b=x();G(0,"b-config-grid",16);K("optionsChange",function(c){z(b);var d=M();return A(d.enumSpecOptions=c)})("addRow",function(){z(b);var c=M();return A(c.addRow())})("removeAtIndex",function(c){z(b);M().enumSpecOptions.splice(c,1);return A()});H()}a&2&&(a=M(),D("options",a.enumSpecOptions)("disabled",a.disabled||a.inherit))},OYa=function(a){return a&&"0"!==a.getTeamId()?a.getDeleted()?"DELETED":"VALID":"MISSING"},PYa=function(a){if(a&
1){var b=x();G(0,"div",6);P(1," Select a team from the suggestions below, or edit in ");G(2,"a",7);K("click",function(){z(b);var c=M();return A(c.trackClick("viewTeamAssociationOnComponent"))});P(3,"component settings");H();P(4,".\n");H()}a&2&&(a=M(),B(2),D("href",a.componentSetting,Kd))},QYa=function(a){a&1&&(G(0,"div",6),P(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),G(2,"a",8),P(3,"component settings"),H(),P(4,".\n"),
H());a&2&&(a=M(),B(2),D("href",a.componentSetting,Kd))},RYa=function(a){if(a&1){var b=x();G(0,"mat-radio-group",9);K("ngModelChange",function(c){z(b);var d=M();return A(d.teamAction=c)});G(1,"p")(2,"mat-radio-button",10);P(3," Don't make any changes ");H()();G(4,"p")(5,"mat-radio-button",11);P(6," Map component to selected team ");H()()()}a&2&&(a=M(),D("ngModel",a.teamAction))},SYa=function(a){a&1&&(xf(0),G(1,"span",19),P(2),H(),yf());a&2&&(a=M().$implicit,B(2),Jf(a.teamPath))},TYa=function(a){a&
1&&P(0," -- ")},UYa=function(a,b){a&1&&(O(0,SYa,3,1,"ng-container",17),O(1,TYa,1,0,"ng-template",null,18,gg));if(a&2){a=b.$implicit;var c=Hf(2);D("ngIf",a)("ngIfElse",c)}},VYa=function(a){if(a&1){var b=x();G(0,"div",12)(1,"onedev-single-select",13);K("valueChange",function(d){z(b);var e=M();return A(e.selectedTeam=d)})("valueChange",function(d){z(b);var e=M();return A(e.selectOption(d))});H();O(2,UYa,3,2,"ng-template",null,14,gg);G(4,"a",15);K("click",function(){z(b);var d=M();return A(d.trackClick("viewTeamInMoma"))});
J(5,"mat-icon",16);H()()}if(a&2){var c=Hf(3);a=M();B(1);D("disabled","NONE"===a.teamAction)("value",a.selectedTeam)("options",a.teamOptions)("includeEmptyOption",!1)("optionTemplate",c);B(3);nf("href",a.getMomaTeamLink(),Kd)}},WYa=function(a){if(a&1){var b=x();G(0,"b-callout-actions")(1,"b-button",2);K("click",function(){z(b);var c=M();return A(c.openDialog())});P(2);H()()}a&2&&(a=M(),B(2),Jf(a.buttonName))},XYa=function(a){a&1&&(G(0,"div",8),J(1,"b-team-warning",9),H());a&2&&(a=M().ngIf,B(1),D("warningType",
a)("messageOnly",!0))},YYa=function(a,b){a&1&&(xf(0),O(1,XYa,2,2,"div",7),yf());a&2&&(a=b.ngIf,b=M(),B(1),D("ngIf",b.isAdmin&&("MISSING"===a||"DELETED"===a)))},ZYa=function(a){if(a&1){var b=x();G(0,"div",10)(1,"mat-checkbox",11);K("change",function(c){z(b);var d=M();d.inherit=c.checked;d.model.inherit=d.inherit;!d.isTopLevel&&d.inherit&&d.parentModel&&(d.model.id=d.parentModel.id);d.teamIdChanged$.next(d.model.id);d.modelChange.emit(d.model);return A()});P(2," Inherit team from parent component ");
H()()}a&2&&(a=M(),B(1),D("disabled",!a.isAdmin)("checked",a.inherit))},$Ya=function(a){if(a&1){var b=x();G(0,"a",13);K("click",function(){z(b);M(2);Sn(go.MANAGE_COMPONENT,"navigate","to-internal-team-page");return A()});J(1,"mat-icon",14);H()}a&2&&(a=M(2),D("routerLink",Bs(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},aZa=function(a){a&1&&(xf(0),O(1,$Ya,2,2,"a",12),yf());a&2&&(a=M(),B(1),D("ngIf",Bs(a)))},bZa=function(a){if(a&1){var b=x();G(0,"a",16);K("click",function(){z(b);var c=
M(2);Sn(go.MANAGE_COMPONENT,"linkout-moma","team",Number(c.model.id));return A()});J(1,"mat-icon",14);H()}a&2&&(a=M(2),nf("href",a.getMomaTeamLink(),Kd))},cZa=function(a){a&1&&O(0,bZa,2,1,"a",15);a&2&&(a=M(),D("ngIf",Bs(a)))},dZa=function(){var a;return(a=void 0===a?$i():a)?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},eZa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),If("(",a.disabledReason,")"))},
fZa=function(a,b){a&1&&(G(0,"mat-radio-button",8),P(1),O(2,eZa,2,1,"span",9),H());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),B(1),If(" ",a.displayText," "),B(1),D("ngIf",!a.enabled))},gZa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),If("(",a.disabledReason,")"))},hZa=function(a,b){a&1&&(G(0,"mat-radio-button",8),P(1),O(2,gZa,2,1,"span",9),H());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),B(1),If(" ",a.displayText," "),B(1),D("ngIf",!a.enabled))},kZa=function(a,
b){if(a&1){var c=x();G(0,"li",11);K("keydown",function(e){var f=z(c).index,h=M();return A(h.onKeyDown(e,f))})("focus",function(){var e=z(c).index,f=M();return A(f.onFocus(e))});J(1,"mat-icon",12);G(2,"span");P(3);H();G(4,"div",13)(5,"button",14);K("click",function(){var e=z(c).index,f=M();return A(iZa(f,e))});J(6,"mat-icon",15);H();G(7,"button",16);K("click",function(){var e=z(c).index,f=M();return A(jZa(f,e))});J(8,"mat-icon",17);H()()()}if(a&2){a=b.$implicit;b=b.index;var d=M();nf("aria-label",
a.name)("aria-grabbed",b===d.grabbedIndex);B(3);Jf(a.name);B(2);sf("invisible",0===b);B(2);sf("invisible",b===d.fields.length-1)}},lZa=function(a){var b=function(){var c=a.apply(this,[].concat(u(oc.apply(0,arguments))))||this;c._sticky=!1;c._hasStickyChanged=!1;return c};U(b,a);b.prototype.hasStickyChanged=function(){var c=this._hasStickyChanged;this._hasStickyChanged=!1;return c};b.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};ki.Object.defineProperties(b.prototype,{sticky:{configurable:!0,
enumerable:!0,get:function(){return this._sticky},set:function(c){var d=this._sticky;this._sticky=Rg(c);this._hasStickyChanged=d!==this._sticky}}});return b},Cs=function(a,b){return a.concat(Array.from(b))},mZa=function(a){a&1&&(G(0,"th",14),P(1," Order"),H())},nZa=function(a,b){a&1&&(G(0,"td",15),P(1),H());a&2&&(a=b.index,B(1),If(" ",a+1," "))},oZa=function(a){a&1&&(G(0,"th",14),P(1," Name"),H())},pZa=function(a,b){a&1&&(G(0,"td",15),P(1),H());a&2&&(a=b.$implicit,B(1),If(" ",a.name," "))},qZa=function(a){a&
1&&(G(0,"th",14),P(1," Type"),H())},rZa=function(a,b){a&1&&(G(0,"td",15),P(1),Q(2,"toCustomFieldTypeDisplayValue"),H());a&2&&(a=b.$implicit,B(1),If(" ",R(2,1,a.type)," "))},sZa=function(a){a&1&&(G(0,"th",14),P(1," Required"),H())},tZa=function(a,b){a&1&&(G(0,"td",15),P(1),H());a&2&&(a=b.$implicit,B(1),If(" ",a.required?"Yes":"No"," "))},uZa=function(a){a&1&&(G(0,"th",14),P(1," ID"),H())},vZa=function(a,b){a&1&&(G(0,"td",15),P(1),H());a&2&&(a=b.$implicit,B(1),If(" ",a.customFieldId," "))},wZa=function(a){a&
1&&J(0,"tr",16)},xZa=function(a){a&1&&J(0,"tr",17)},yZa=function(a){a&1&&(G(0,"div",18),P(1," There are no custom fields defined on this component. "),H())},BZa=function(a){if(a&1){var b=x();G(0,"div",19)(1,"div")(2,"button",20);K("click",function(){z(b);var c=M();return A(zZa(c))});P(3," Reorder fields ");H();G(4,"button",20);K("click",function(){z(b);var c=M();return A(AZa(c))});P(5," Reset ordering ");H()()()}a&2&&(a=M(),B(2),D("disabled",0===a.fields.length),B(2),D("disabled","CUSTOMIZED"!==a.fieldOrdering))},
CZa=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(),B(1),a=a.lineNumbers.length,If(" (",a+(1==a?" TODO":" TODOs"),") "))},EZa=function(a,b){if(a&1){var c=x();G(0,"li",5)(1,"a",6);K("click",function(){z(c);var d=M(2);return A(d.trackClick("lineNumber"))});P(2);H()()}a&2&&(a=b.$implicit,b=M(2),B(1),D("href",DZa(b,a),Kd),B(1),Jf(a))},FZa=function(a){a&1&&(G(0,"span"),P(1," ("),G(2,"ul",3),O(3,EZa,3,2,"li",4),H(),P(4,") "),H());a&2&&(a=M(),B(3),D("ngForOf",a.lineNumbers))},GZa=function(a){a&1&&J(0,
"div",2)},HZa=function(a){a&1&&(xf(0),Df(1),yf())},IZa=function(a){a&1&&(Lc(),G(0,"svg",1),J(1,"path",2),H());a&2&&(a=M(),D("matTooltip",a.warning))},JZa=function(a){a&1&&zf(0)},MZa=function(a){if(a&1){var b=x();G(0,"div",1);K("keydown",function(c){z(b);var d=M();return A(d.processKeydown(c))});G(1,"div",2);O(2,JZa,1,0,"ng-container",3);H();G(3,"div",4)(4,"button",5);K("click",function(){z(b);var c=M();return A(KZa(c))});P(5,"Save");H();G(6,"button",6);K("click",function(){z(b);var c=M();return A(LZa(c))});
P(7,"Cancel");H()()()}a&2&&(a=M(),D("cdkTrapFocusAutoCapture",!0),B(2),D("ngTemplateOutlet",a.editorTemplate))},NZa=function(a){a&1&&zf(0)},PZa=function(a){a&1&&(xf(0),O(1,NZa,1,0,"ng-container",8),yf());a&2&&(a=M(),B(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Nf(2,OZa,a.value)))},QZa=function(a){a&1&&P(0);a&2&&(a=M(),Jf(null!=a.value?a.value:"--"))},RZa=function(a){a&1&&(Lc(),G(0,"svg",9),J(1,"path",10),H())},SZa=function(a){if(a&1){var b=x();G(0,"input",11);K("ngModelChange",
function(c){z(b);var d=M();return A(d.editingValue=c)});H()}a&2&&(a=M(),D("ngModel",a.editingValue))},TZa=function(a){return null!=a?Number(a):void 0},UZa=function(a){if(a&1){var b=x();xf(0);G(1,"onedev-numeric-field",7);K("valueChange",function(d){z(b);var e=M(2);e.selectedNumericEstimate=d;if(null==d)e.effortChange.emit(void 0);else{e=e.effortChange;var f=e.emit,h=new sl;d=tl(h,2,String(d));f.call(e,d)}return A()});H();yf()}if(a&2){a=M(2);var c=Hf(2);B(1);D("value",a.selectedNumericEstimate)("valueTemplate",
c)}},VZa=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M().$implicit,B(1),If(" ",a.getLabel()," "))},WZa=function(a){a&1&&P(0," -- ")},XZa=function(a,b){a&1&&(O(0,VZa,2,1,"ng-container",10),O(1,WZa,1,0,"ng-template",null,11,gg));if(a&2){a=b.$implicit;var c=Hf(2);D("ngIf",a)("ngIfElse",c)}},ZZa=function(a){if(a&1){var b=x();xf(0);G(1,"onedev-single-select",8);K("valueChange",function(e){z(b);var f=M(2);return A(f.selectOption(e))});H();O(2,XZa,3,2,"ng-template",null,9,gg);yf()}if(a&2){var c=Hf(3);a=M(2);
var d;B(1);D("value",a.selectedOption)("options",null!==(d=null==(d=yl(a.effortSpec))?null:d.getOptionsList())&&void 0!==d?d:Mf(4,YZa))("includeEmptyOption",!0)("optionTemplate",c)}},$Za=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M(2),B(1),If(" ",null==a.effort?null:V(a.effort,2)," "))},a_a=function(a){a&1&&(G(0,"onedev-edit-field")(1,"onedev-field-label",2),P(2),H(),G(3,"onedev-field-value",3),xf(4,4),O(5,UZa,2,2,"ng-container",5),O(6,ZZa,4,5,"ng-container",5),O(7,$Za,2,1,"ng-container",6),yf(),
H()());a&2&&(a=M(),B(1),D("thinking",a.thinking)("warning",a.isCompatibleValue?"":"Update estimate to resolve this warning")("labelTooltip",a.fieldName),B(1),If(" ",a.fieldName," "),B(1),D("thinking",a.thinking),B(1),D("ngSwitch",a.fieldType),B(1),D("ngSwitchCase","NUMERIC"),B(1),D("ngSwitchCase","DROPDOWN"))},b_a=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M(2),B(1),If(" ",null==a.effort?null:V(a.effort,2)," "))},c_a=function(a){a&1&&P(0);a&2&&(a=M().$implicit,If(" ",null!=a?a:"--"," "))},d_a=function(a,
b){a&1&&(O(0,b_a,2,1,"ng-container",10),O(1,c_a,1,1,"ng-template",null,12,gg));if(a&2){a=b.$implicit;var c=Hf(2);b=M();D("ngIf",b.isNaN(a))("ngIfElse",c)}},e_a=function(a){if(a&1){var b=x();G(0,"div",7)(1,"label",8);P(2,"Issue email");H();G(3,"input",20,21);K("focus",function(){z(b);var d=Hf(4);return A(d.select())});H();G(5,"button",22);K("click",function(){z(b);var d=Hf(4),e=M();return A(Ds(e,d))});J(6,"mat-icon",12);H()()}if(a&2){var c=Hf(4);a=M();B(1);D("htmlFor",c.id);B(2);nf("value",a.getIssueEmail())}},
f_a=function(a){if(a&1){var b=x();G(0,"div",7)(1,"label",8);P(2,"TODO comment");H();G(3,"input",23,24);K("focus",function(){z(b);var d=Hf(4);return A(d.select())});H();G(5,"button",25);K("click",function(){z(b);var d=Hf(4),e=M();return A(Ds(e,d))});J(6,"mat-icon",12);H()()}if(a&2){var c=Hf(4);a=M();B(1);D("htmlFor",c.id);B(2);nf("value",a.getTodoComment())}},g_a=function(a){a&1&&(G(0,"span"),J(1,"b-formatted-date-time",18),H());a&2&&(a=M(2),B(1),D("timestamp",a.sloSnoozeUntil))},h_a=function(a){a&
1&&(G(0,"span"),J(1,"b-formatted-date-time",18),H());a&2&&(a=M(2),B(1),D("timestamp",a.issueCreationTimestamp/1E3))},j_a=function(a){if(a&1){var b=x();G(0,"div",12);P(1," SLO starts on: ");G(2,"div",14)(3,"a",15);K("click",function(){z(b);var c=M().snoozeDateTimePicker;i_a(c);c.isPickerVisible=!0;c.cdr.detectChanges();return A()});O(4,g_a,2,1,"span",16);O(5,h_a,2,1,"span",16);H();G(6,"a",17);J(7,"b-icon",3);H()()()}a&2&&(a=M(),B(4),D("ngIf",a.sloSnoozeUntil),B(1),D("ngIf",!a.sloSnoozeUntil),B(2),
D("name","help-outline")("size","small"))},k_a=function(a,b){if(a&1){var c=x();G(0,"a",20);K("click",function(){z(c);var d=M(2);return A(d.trackOpenSlo())});P(1);H()}a&2&&(a=b.ngIf,b=M(2),nf("href",b.editSloLink,Kd),B(1),If(" ",a.getName()," "))},l_a=function(a){a&1&&(G(0,"div",12),P(1," SLO definition: "),O(2,k_a,2,2,"a",19),Q(3,"async"),H());a&2&&(a=M(),B(2),D("ngIf",R(3,1,a.slo$)))},m_a=function(a){if(a&1){var b=x();G(0,"a",21);K("click",function(){z(b);M();Sn(go.MANAGE_COMPONENT,"open","fromIssueSloBox");
return A()});P(1,"Select an SLO");H()}a&2&&(a=M(),nf("href",a.componentSloLink,Kd))},n_a=function(a){a&1&&(G(0,"a",10),P(1," Create Component "),H());a&2&&(a=M(),D("href",a.createComponentPath,Kd))},o_a=function(a){if(a&1){var b=x();G(0,"xap-dialog-layout",11)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",12);K("selectedComponentChange",function(c){z(b);var d=M();return A(d.viewComponent(null!==c&&void 0!==c?c:null,"openFromSearch"))});H()()()}a&2&&(a=M(),B(2),D("includeArchived",a.includeArchived)("placeholder",
"Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1))},r_a=function(a){if(a&1){var b=x();G(0,"div",13)(1,"b-slide-toggle",14);K("modelChange",function(c){z(b);var d=M();d.includeArchived=c;c=p_a(d);var e=d.componentTree;e=e.focusedController?e.focusedController.selectedId?e.focusedController.selectedId:-1:e.rootController.selectedId?e.rootController.selectedId:-1;0<e&&q_a(d,e,c);return A()});H()()}a&2&&(a=M(),B(1),D("model",a.includeArchived)("tooltip",a.includeArchived?
"Show archived components.":"Hide archived components."))},s_a=function(a){a&1&&(G(0,"div",15),J(1,"b-spinner",16),H())},t_a=function(a){a&1&&(G(0,"p",3),P(1),H());a&2&&(a=M(),B(1),Jf(a.packageMentionSet.packageName))},u_a=function(a,b){a&1&&(G(0,"li"),J(1,"b-file-mention",4),H());a&2&&(a=b.$implicit,b=M(),B(1),D("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},x_a=function(a){a&1&&(G(0,"span")(1,
"b"),P(2,"Retention:"),H(),P(3),G(4,"b"),P(5),H(),P(6),G(7,"b"),P(8),H(),P(9," on "),G(10,"b"),P(11),Q(12,"date"),H(),P(13,". "),H());a&2&&(a=M(3),B(3),If(" This ",a.contentType," has a retention period of "),B(2),Jf(a.getRetentionPeriod()),B(1),If(" from the last modification of the issue. Currently, the ",a.contentType," is scheduled for deletion in "),B(2),Jf(v_a(w_a(a).getTime())),B(3),Jf(Rf(12,5,w_a(a),"longDate")))},y_a=function(a){a&1&&(P(0),G(1,"b"),P(2,"overridden"),H(),P(3," retention period set to match the issue retention period. "));
a&2&&(a=M(3),If(" The ",a.contentType," has an "))},z_a=function(a){a&1&&(G(0,"p",8),O(1,x_a,14,8,"span",9),O(2,y_a,4,1,"ng-template",10),H());if(a&2){a=M(2);var b=Hf(7);D("ngSwitch",a.retention);B(1);D("ngIf",!(a.retentionState&&!a.retentionState.scheduledDeletionTime))("ngIfElse",b);B(1);D("ngSwitchCase",a.retentionModel.INDEFINITE)}},A_a=function(a){a&1&&(G(0,"div",5)(1,"p")(2,"b"),P(3,"Restricted Access:"),H(),P(4),G(5,"a",6),P(6," Learn More "),H()(),O(7,z_a,3,4,"p",7),H());a&2&&(a=M(),B(4),
If(" This ",a.contentType," is only available to users with the appropriate permissions. "),B(1),nf("href",a.documentationLinks.getRestrictedAccessHelpLink(),Kd),B(2),D("ngIf",a.retentionState))},B_a=function(a){a&1&&(G(0,"b"),P(1,"Retention:"),H(),P(2));a&2&&(a=M(),B(2),If(" This ",a.contentType," has an indefinite retention period. "))},C_a=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(),B(1),If("Retain ",a.resource," as long as issue?"))},D_a=function(a){a&1&&(G(0,"span"),P(1,"Apply component retention settings?"),
H())},E_a=function(a){a&1&&(G(0,"span")(1,"p"),P(2),H(),G(3,"p")(4,"b"),P(5,"Please note long retention is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored."),H(),J(6,"br"),P(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),H()());a&2&&(a=M(),B(2),If("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},
F_a=function(a){a&1&&(G(0,"span")(1,"p"),P(2),H()());a&2&&(a=M(),B(2),Kf("This ",a.resource," is currently retained as long as the issue. If you select this option, this ",a.resource," will be scheduled for deletion based on the component retention settings."))},G_a=function(a){if(a&1){var b=x();G(0,"mat-checkbox",9);K("ngModelChange",function(c){z(b);var d=M();return A(d.acknowledgeToMatchIssueRetention=c)});P(1," I acknowledge ");H()}a&2&&(a=M(),D("ngModel",a.acknowledgeToMatchIssueRetention))},
H_a=function(a){a&1&&(G(0,"div",3),J(1,"b-spinner"),G(2,"span"),P(3,"Initializing query builder..."),H()())},I_a=function(a){a&1&&(G(0,"div",7),J(1,"mat-icon",8),G(2,"p"),P(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),H()())},J_a=function(a){a&1&&(G(0,"div"),P(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),H())},K_a=function(a){a&
1&&(G(0,"div",4),O(1,I_a,4,0,"div",5),O(2,J_a,2,0,"div",6),H());a&2&&(a=M(),B(1),D("ngIf","NOT_REPRESENTABLE"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())),B(1),D("ngIf","SYNTAX_ERROR"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())))},L_a=function(a){a&1&&(G(0,"div",4),P(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),H())},M_a=function(a){a&1&&(G(0,"span"),P(1),J(2,"span",17),H());
a&2&&(a=M(2).$implicit,B(1),If(" ",a.diff.oldValue," "))},N_a=function(a){a&1&&(G(0,"span")(1,"label"),P(2),H(),O(3,M_a,3,1,"span",16),P(4),H());a&2&&(a=M().$implicit,B(2),If("",a.fieldName,":"),B(1),D("ngIf",a.diff.oldValue),B(1),If(" ",a.diff.newValue," "))},O_a=function(a,b){a&1&&(G(0,"div")(1,"label"),P(2),H(),P(3),H());a&2&&(a=b.$implicit,b=M(3).$implicit,B(2),If("-",b.fieldName,":"),B(1),If(" ",a," "))},P_a=function(a){a&1&&(xf(0),O(1,O_a,4,2,"div",18),yf());a&2&&(a=M(2).$implicit,B(1),D("ngForOf",
a.diff.removed))},Q_a=function(a,b){a&1&&(G(0,"div")(1,"label"),P(2),H(),P(3),H());a&2&&(a=b.$implicit,b=M(3).$implicit,B(2),If("+",b.fieldName,":"),B(1),If(" ",a," "))},R_a=function(a){a&1&&(xf(0),O(1,Q_a,4,2,"div",18),yf());a&2&&(a=M(2).$implicit,B(1),D("ngForOf",a.diff.added))},S_a=function(a){a&1&&(G(0,"div"),O(1,P_a,2,1,"ng-container",16),O(2,R_a,2,1,"ng-container",16),H());a&2&&(a=M().$implicit,B(1),D("ngIf",a.diff.removed),B(1),D("ngIf",a.diff.added))},T_a=function(a,b){a&1&&(G(0,"div",15),
O(1,N_a,5,3,"span",16),O(2,S_a,3,2,"div",16),H());a&2&&(a=b.$implicit,B(1),D("ngIf","SINGLE_VALUE"==a.diffType),B(1),D("ngIf","COLLECTION"==a.diffType))},U_a=function(a,b){a&1&&(G(0,"li",5)(1,"div",6),J(2,"b-user-image",7),H(),G(3,"div",8)(4,"h4",9),J(5,"b-user-display-name",10),G(6,"span",11),J(7,"b-formatted-date-time",12),H()(),G(8,"div",13),O(9,T_a,3,2,"div",14),H()()());a&2&&(a=b.$implicit,b=M(),B(2),D("email",b.userToDisplay(a.author)),B(3),D("email",b.userToDisplay(a.author)),B(2),D("timestamp",
a.timestamp),B(2),D("ngForOf",a.diffs))},V_a=function(){var a=window.homepagePreferences;if(null==a||!a.resourceId)return"/issues";switch(a.resourceType){case "BOOKMARK_GROUP":return"/dashboard/"+a.resourceId;case "SAVED_SEARCH":return"/savedsearches/"+a.resourceId;case "HOTLIST":return"/hotlists/"+a.resourceId;default:return"/issues"}},X_a=function(a){a&1&&(G(0,"a",25),P(1," Learn more "),H());a&2&&(M(),D("href",W_a(),Kd))},Y_a=function(a){a&1&&zf(0)},$_a=function(a){a&1&&(xf(0),O(1,Y_a,1,0,"ng-container",
8),yf());a&2&&(a=M(),B(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Nf(2,Z_a,a.value)))},a0a=function(a){a&1&&P(0);a&2&&(a=M(),Jf(a.value||"--"))},b0a=function(a){a&1&&(Lc(),G(0,"svg",9),J(1,"path",10),H());a&2&&(a=M(),sf("centered",a.centerEditIcon))},c0a=function(a){if(a&1){var b=x();G(0,"textarea",14);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.editingValue=c)});H()}a&2&&(a=M(2),D("ngModel",a.editingValue)("cdkAutosizeMaxRows",a.multilineMaxLines))},d0a=function(a){if(a&
1){var b=x();G(0,"input",15);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.editingValue=c)});H()}a&2&&(a=M(2),D("ngModel",a.editingValue))},e0a=function(a){a&1&&(G(0,"div",11),O(1,c0a,1,2,"textarea",12),O(2,d0a,1,1,"ng-template",null,13,gg),H());if(a&2){var b=Hf(3);a=M();B(1);D("ngIf",a.allowMultipleLines)("ngIfElse",b)}},f0a=function(){},g0a=function(a){a&1&&J(0,"span",2);a&2&&(a=M(),D("@indicatorRotate",a._getExpandedState()))},h0a=function(a){if(a&1){var b=x();G(0,"b-hotlist-picker",
24);K("onApply",function(c){z(b);var d=M();return A(d.handleHotlistPickerSave(c))})("onLoad",function(c){z(b);var d=M();return A(d.loadHotlist(c))})("onCreate",function(c){z(b);var d=M();return A(d.createHotlist(c))});H()}a&2&&(a=M(),D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},k0a=function(a){a&1&&(G(0,"div",25),J(1,"b-icon",26),G(2,"span"),P(3),H(),G(4,"a",27),P(5,"View access settings"),H()());a&2&&(a=M(),D("ngClass",Of(5,i0a,Es(a),Fs(a))),B(1),D("name","alert")("size",
"small"),B(2),If("",j0a(a),"\u00a0"),B(1),D("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",Kd))},n0a=function(a){a&1&&(G(0,"div",30),P(1),H());a&2&&(a=M(2),B(1),If(" Error: The following required field(s) have not been filled: ",l0a(a).concat(m0a(a)).join(", ")," "))},o0a=function(a){a&1&&(G(0,"div",30),P(1),H());if(a&2){a=M(2);B(1);var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||
b.push('"Parents"');If(" Error: The following field(s) have invalid values: ",b?b.join(" & ")+" must be"+((1>=b.length?" a":"")+" comma separated list")+((1<b.length?"s":"")+" of issue IDs"):""," ")}},p0a=function(a){a&1&&(G(0,"div",30),P(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),H())},q0a=function(a){a&1&&(G(0,"div",28),O(1,n0a,2,1,"div",29),O(2,o0a,2,1,"div",29),O(3,p0a,2,0,"div",29),H());a&2&&(a=M(),B(1),D("ngIf",0!==l0a(a).length||0!==m0a(a).length),
B(1),D("ngIf",!a.isBlockedByIssueIdValid||!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid),B(1),D("ngIf",Gs(a.comment)))},r0a=function(a,b){if(a&1){var c=x();G(0,"div",33)(1,"b-hotlist-chip",34);K("removeHotlist",function(){var d=z(c).$implicit,e=M(2);return A(e.removeHotlist(d.hotlistId))});H()()}a&2&&(a=b.$implicit,B(1),D("hotlist",a))},s0a=function(a){a&1&&(G(0,"div",31),O(1,r0a,2,1,"div",32),H());a&2&&(a=M(),B(1),D("ngForOf",a.selectedHotlists))},t0a=function(a,b){if(a&1){var c=x();G(0,"button",
43);K("click",function(){var d=z(c).$implicit,e=M(2);e.selectedTemplate=d;e.getIssueTemplate();return A()});P(1);H()}a&2&&(a=b.$implicit,B(1),Jf(a.name))},u0a=function(a){if(a&1){var b=x();G(0,"button",43);K("click",function(){z(b);var c=M(2);c.selectedTemplate=c.availableExistingIssueTemplate;c.getIssueTemplate();return A()});P(1);H()}a&2&&(a=M(2),B(1),Jf(a.availableExistingIssueTemplate.name))},v0a=function(a){a&1&&(G(0,"div",35)(1,"div",14)(2,"label",36),P(3,"Template"),H()(),G(4,"button",37),
P(5),J(6,"b-icon",38),H(),G(7,"mat-menu",39,40),O(9,t0a,2,1,"button",41),O(10,u0a,2,1,"button",42),H()());if(a&2){var b=Hf(8);a=M();var c;B(4);D("matMenuTriggerFor",b);B(1);Jf(null!==(c=null==a.selectedTemplate?null:a.selectedTemplate.name)&&void 0!==c?c:"");B(2);D("overlapTrigger",!0);B(2);D("ngForOf",a.availablePredefinedTemplates);B(1);D("ngIf",a.availableExistingIssueTemplate)}},w0a=function(a){a&1&&(G(0,"div",44)(1,"div",30),P(2," You do not have permission to create issues in this component. "),
H()())},x0a=function(a){if(a&1){var b=x();G(0,"div",66)(1,"b-magic-box",67);K("headerChange",function(c){z(b);var d=M(3);return A(d.magicBoxHeader=c)});H()()}a&2&&(a=M(3),B(1),D("componentId",a.issue.componentId)("hideHeader",!0)("showInline",a.showRecentIssuesInline)("issueTitle",a.issue.title)("issue",a.issue)("customFieldMap",a.customFieldMap))},z0a=function(a){if(a&1){var b=x();G(0,"div",62)(1,"div",63)(2,"a",64);K("click",function(){z(b);var c=M(2);return A(y0a(c))})("keydown.enter",function(){z(b);
var c=M(2);return A(y0a(c))})("keydown.space",function(){z(b);var c=M(2);return A(y0a(c))});P(3);H()();O(4,x0a,2,6,"div",65);H()}a&2&&(a=M(2),B(3),Kf(" ",a.showRecentIssuesInline?"Hide":"View"," ",a.magicBoxHeader.toLowerCase()," "),B(1),D("ngIf",!a.showRecentIssuesInline&&a.issue.componentId))},A0a=function(a,b){if(a&1){var c=x();G(0,"button",71);K("click",function(){var d=z(c).$implicit,e=M(3);return A(e.setPriority(d.value))});P(1);H()}a&2&&(a=b.$implicit,B(1),Jf(a.displayText))},B0a=function(a){if(a&
1){var b=x();G(0,"div",35)(1,"div",14)(2,"label",68);P(3,"Priority");H()();G(4,"button",69);P(5);J(6,"b-icon",38);H();G(7,"mat-menu",39,70)(9,"button",71);K("click",function(){z(b);var d=M(2);return A(d.setPriority())});P(10,"--");H();O(11,A0a,2,1,"button",72);H()()}if(a&2){var c=Hf(8);a=M(2);B(4);D("matMenuTriggerFor",c);nf("aria-label","Priority, required"+(a.issue.priority?", "+a.issue.priority:""));B(1);If("",a.issue.priority?a.issue.priority:"--"," ");B(2);D("overlapTrigger",!0);B(4);D("ngForOf",
a.priorityChoices)}},D0a=function(a,b){if(a&1){var c=x();G(0,"button",76);K("click",function(){var d=z(c).$implicit,e=M(3);return A(C0a(e,d.value))});P(1);H()}a&2&&(a=b.$implicit,Ff("title",a.altText||""),B(1),Jf(a.displayText))},E0a=function(a){if(a&1){var b=x();G(0,"div",35)(1,"div",14)(2,"label",73);P(3,"Type");H()();G(4,"button",69);Q(5,"enumToHuman");P(6);Q(7,"enumToHuman");J(8,"b-icon",38);H();G(9,"mat-menu",39,74)(11,"button",71);K("click",function(){z(b);var d=M(2);return A(C0a(d))});P(12,
"--");H();O(13,D0a,2,2,"button",75);H()()}if(a&2){var c=Hf(10);a=M(2);B(4);D("matMenuTriggerFor",c);nf("aria-label","Type, required"+(a.issue.type?R(5,5,", "+a.issue.type):""));B(2);If("",R(7,7,a.issue.type||"--")," ");B(3);D("overlapTrigger",!0);B(4);D("ngForOf",a.issueTypeChoices)}},F0a=function(a){if(a&1){var b=x();G(0,"div",77)(1,"div",14)(2,"label",78);P(3,"Assignee");H()();G(4,"div",79)(5,"input",80);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.assigneeText=c)});H()()()}a&2&&(a=
M(2),B(5),D("ngModel",a.assigneeText)("bContactAutocomplete","SINGLE"))},H0a=function(a){if(a&1){var b=x();G(0,"div",81)(1,"div",14)(2,"label",82);P(3,"CC");H()();G(4,"div",79)(5,"input",83);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.ccsText=G0a(c))});H()()()}a&2&&(a=M(2),B(5),D("ngModel",Hs(a.ccsText))("bContactAutocomplete","MULTI"))},I0a=function(a,b){if(a&1){var c=x();G(0,"button",71);K("click",function(){var d=z(c).$implicit,e=M(3);return A(e.issue.severity=e.toIssueSeverity(d.value))});
P(1);H()}a&2&&(a=b.$implicit,B(1),Jf(a.displayText))},J0a=function(a){a&1&&(G(0,"span"),P(1,"*"),H())},K0a=function(a){a&1&&(G(0,"span"),P(1,"*"),H())},L0a=function(a){a&1&&(G(0,"span"),P(1,"*"),H())},M0a=function(a){if(a&1){var b=x();G(0,"div",91)(1,"div",14)(2,"label",109);P(3," Parents ");O(4,L0a,2,0,"span",20);H()();G(5,"input",110);K("ngModelChange",function(c){z(b);var d=M(3);d.parentIssueIds=Is(d,c).map(Rn);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Hs(d.parentIssueIds));return A()});
H()()}a&2&&(a=M(3),B(4),D("ngIf",!a.isParentIssueIdsValid),B(1),D("ngModel",Hs(a.parentIssueIds)))},N0a=function(a){a&1&&(G(0,"span"),P(1,"*"),H())},O0a=function(a){if(a&1){var b=x();G(0,"div",91)(1,"div",14)(2,"label",111);P(3," Children ");O(4,N0a,2,0,"span",20);H()();G(5,"input",112);K("ngModelChange",function(c){z(b);var d=M(3);d.childrenIssueIds=Is(d,c).map(Rn);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Hs(d.childrenIssueIds));return A()});H()()}a&2&&(a=M(3),B(4),D("ngIf",!a.isChildIssueIdsValid),
B(1),D("ngModel",Hs(a.childrenIssueIds)))},P0a=function(a){if(a&1){var b=x();G(0,"onedev-text-field",116);K("valueChange",function(d){z(b);var e=M(2).$implicit,f=M(3);return A(f.setCustomFieldValue(e,d))});H()}if(a&2){a=M(2).$implicit;var c=M(3);Ef("id","bv2-custom-field-",a.customFieldId,"");D("value",a.textValue);nf("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},Q0a=function(a){if(a&1){var b=x();G(0,"onedev-numeric-field",116);K("valueChange",
function(d){z(b);var e=M(2).$implicit,f=M(3);return A(f.setCustomFieldValue(e,d))});H()}if(a&2){a=M(2).$implicit;var c=M(3);Ef("id","bv2-custom-field-",a.customFieldId,"");D("value",a.numericValue);nf("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},R0a=function(a){if(a&1){var b=x();G(0,"div")(1,"bv2-input-date-picker",117);K("boundValueChange",function(d){z(b);var e=M(2).$implicit,f=M(3);return A(f.setCustomFieldValue(e,d))});H()()}if(a&2){a=
M(2).$implicit;var c=M(3);B(1);Ff("bv2AriaLabelledby","bv2-custom-field-"+a.customFieldId+"-label");D("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},S0a=function(a){if(a&1){var b=x();G(0,"onedev-single-select",118);K("valueChange",function(d){z(b);var e=M(2).$implicit,f=M(3);return A(f.setCustomFieldValue(e,d))});H()}if(a&2){a=M(2).$implicit;var c=M(3);D("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",
!0);nf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},T0a=function(a,b){a&1&&(G(0,"div"),O(1,P0a,1,4,"onedev-text-field",114),O(2,Q0a,1,4,"onedev-numeric-field",114),O(3,R0a,2,4,"div",20),O(4,S0a,1,4,"onedev-single-select",115),H());a&2&&(a=b.ngIf,b=M(4),B(1),D("ngIf",a===b.FieldType.TEXT),B(1),D("ngIf",a===b.FieldType.NUMERIC),B(1),D("ngIf",a===b.FieldType.DATE),B(1),D("ngIf",a===b.FieldType.ENUM))},U0a=function(a,b){if(a&1){var c=x();G(0,"div")(1,"b-list-field",119);K("valuesChange",
function(e){z(c);var f=M().$implicit,h=M(3);return A(h.setCustomFieldValue(f,e.values))});H()()}if(a&2){a=b.ngIf;b=M().$implicit;var d=M(3);B(1);D("defaultLineCount",2)("type",a)("values",d.getListFieldValues(b))("enumChoices",d.customFieldAllowedValuesMap[b.customFieldId]||null)("truncate",!0);nf("aria-labelledby","bv2-custom-field-"+b.customFieldId+"-label")}},W0a=function(a,b){a&1&&(G(0,"div",91)(1,"div",14)(2,"label",113),P(3),H()(),O(4,T0a,5,4,"div",20),O(5,U0a,2,6,"div",20),H());if(a&2){a=b.$implicit;
b=M(3);B(2);Ef("id","bv2-custom-field-",a.customFieldId,"-label");var c=b.customFieldMap[a.customFieldId];Ff("title",(c&&c.description?c.description:"Custom Field")+" [ID: "+a.customFieldId+"]");D("ngClass",Nf(7,V0a,b.isCustomFieldRequired(a)));var d=(c=b.customFieldMap[a.customFieldId])?c.name:"";c&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(d+=", required field");nf("aria-label",d);B(1);If(" ",b.getCustomFieldName(a)," ");B(1);D("ngIf",b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]));
B(1);D("ngIf",b.getListFieldType(b.customFieldMap[a.customFieldId]))}},X0a=function(a){if(a&1){var b=x();G(0,"mat-expansion-panel",84)(1,"mat-expansion-panel-header")(2,"mat-panel-title");P(3," Advanced fields (Required fields marked with");G(4,"span",85);P(5,"*");H();P(6,") ");H()();G(7,"div",86)(8,"div",87)(9,"div",14)(10,"label",88);P(11," Severity ");H()();G(12,"button",89);P(13);J(14,"b-icon",38);H();G(15,"mat-menu",39,90);O(17,I0a,2,1,"button",72);H()();G(18,"div",91)(19,"div",14)(20,"label",
92);P(21," Found in ");H()();G(22,"input",93);K("ngModelChange",function(d){z(b);var e=M(2);return A(e.issue.foundInVersion=G0a(d))});H()();G(23,"div",94)(24,"div",14)(25,"label",95);P(26," In prod ");H()();G(27,"mat-slide-toggle",96);K("ngModelChange",function(d){z(b);var e=M(2);return A(e.issue.inProd=d)});H()();J(28,"div",55);G(29,"div",91)(30,"div",14)(31,"label",97);P(32," Reporter ");H()();G(33,"input",98);K("ngModelChange",function(d){z(b);var e=M(2);return A(e.reporterText=d)});H()();G(34,
"div",91)(35,"div",14)(36,"label",99);P(37," Verifier ");H()();G(38,"input",100);K("ngModelChange",function(d){z(b);var e=M(2);return A(e.verifierText=d)});H()();G(39,"div",91)(40,"div",14)(41,"label",101);P(42," Targeted to ");H()();G(43,"input",102);K("ngModelChange",function(d){z(b);var e=M(2);return A(e.issue.targetedToVersion=G0a(d))});H()();J(44,"div",55);G(45,"div",91)(46,"div",14)(47,"label",103);P(48," Blocked by ");O(49,J0a,2,0,"span",20);H()();G(50,"input",104);K("ngModelChange",function(d){z(b);
var e=M(2);e.issue.blockedByIssueId=Is(e,d);e.isBlockedByIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Hs(e.issue.blockedByIssueId));return A()});H()();G(51,"div",91)(52,"div",14)(53,"label",105);P(54," Blocking ");O(55,K0a,2,0,"span",20);H()();G(56,"input",106);K("ngModelChange",function(d){z(b);var e=M(2);e.issue.blockingIssueId=Is(e,d);e.isBlockingIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Hs(e.issue.blockingIssueId));return A()});H()();O(57,M0a,6,2,"div",107);O(58,O0a,6,2,"div",107);J(59,"div",55);
O(60,W0a,6,9,"div",108);H()()}if(a&2){var c=Hf(16);a=M(2);B(12);D("matMenuTriggerFor",c);nf("aria-label","Severity"+(a.issue.severity?", "+a.issue.severity:""));B(1);Jf(a.issue.severity);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",a.severityChoices);B(5);D("ngModel",Hs(a.originalIssueCopy.foundInVersion));B(5);D("ngModel",a.issue.inProd);B(6);D("ngModel",a.reporterText)("bContactAutocomplete","SINGLE");B(5);D("ngModel",a.verifierText)("bContactAutocomplete","SINGLE");B(5);D("ngModel",Hs(a.originalIssueCopy.targetedToVersion));
B(6);D("ngIf",!a.isBlockedByIssueIdValid);B(1);D("ngModel",Hs(a.issue.blockedByIssueId));B(5);D("ngIf",!a.isBlockingIssueIdValid);B(1);D("ngModel",Hs(a.issue.blockingIssueId));B(1);D("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(1);D("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(2);D("ngForOf",a.issue.customField)}},Y0a=function(a){a&1&&(G(0,"div",25),J(1,"b-icon",26),G(2,"span"),P(3),H(),G(4,"a",27),P(5,"View access settings"),H()());a&2&&(a=M(2),D("ngClass",Of(5,i0a,Es(a),Fs(a))),B(1),D("name",
"alert")("size","small"),B(2),If("",j0a(a),"\u00a0"),B(1),D("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",Kd))},a1a=function(a){if(a&1){var b=x();G(0,"div");O(1,z0a,5,3,"div",45);G(2,"div",12)(3,"div",13)(4,"div",14)(5,"label",46);P(6,"Title");H()();G(7,"div",47)(8,"input",48);K("ngModelChange",function(c){z(b);var d=M();return A(d.setTitle(c))});H()()();O(9,B0a,12,5,"div",18);O(10,E0a,14,9,"div",18);H();G(11,"div",12);O(12,F0a,6,2,"div",49);O(13,
H0a,6,2,"div",50);H();G(14,"div",51)(15,"div",12)(16,"div",13)(17,"div",14)(18,"label",52);P(19,"Description");H()();G(20,"b-comment-box",53);K("commentChange",function(c){z(b);var d=M();return A(d.comment=c)})("onChange",function(){z(b);var c=M();return A(c.saveCommentDraft())})("onSubmit",function(c){z(b);var d=M();return A(Z0a(d,!c))})("onRestrict",function(){z(b);var c=M();return A(c.showNewContentJudgementDialog())});J(21,"b-markdown-toggle",54);H()()();J(22,"div",55);G(23,"div",56);O(24,X0a,
61,19,"mat-expansion-panel",57);H();O(25,Y0a,6,8,"div",9);G(26,"div",58)(27,"b-button",59);K("onAction",function(){z(b);var c=M();return A(Z0a(c,!0))});P(28," Create ");H();G(29,"b-button",60);K("onAction",function(){z(b);var c=M();return A(Z0a(c,!1))});P(30," Create & Start Another ");H();G(31,"b-button",61);K("onAction",function(){z(b);var c=M();c.draftStore.$window.sessionStorage.removeItem(vo(0));c.$route.reload();return A()});P(32," Discard ");H()()()()}a&2&&(a=M(),B(1),D("ngIf",a.selectedComponent),
B(7),D("ngModel",a.issue.title)("bFocus",a.newIssueStarted),B(1),D("ngIf",a.canEditIssuesInComponent),B(1),D("ngIf",a.canEditIssuesInComponent),B(2),D("ngIf",a.canEditIssuesInComponent),B(1),D("ngIf",a.canEditIssuesInComponent),B(7),D("supportsPreview",!0)("comment",a.comment)("loadFormatFromPrefs",!a.isFormatInRoute)("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("componentId",null==a.selectedComponent?null:a.selectedComponent.componentId)("placeholder",a.piiWarningMessage)("idForAriaLabel",
a.descriptionBoxId)("audience",a.audience)("ngClass",Nf(23,$0a,Gs(a.comment))),B(1),D("initialValue",a.comment.formattingMode),B(3),D("ngIf",a.canEditIssuesInComponent),B(1),D("ngIf",Es(a)||Fs(a)),B(2),D("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),D("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),D("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent))},b1a=function(a,b){a&1&&(G(0,"h2",120),P(1,"This component has a default description"),
H(),G(2,"mat-dialog-content"),P(3," You have already entered a description, but the component you chose has a default description: "),G(4,"div",121),P(5),H()(),G(6,"mat-dialog-actions")(7,"button",122),P(8,"Use component description"),H(),G(9,"button",123),P(10,"Keep my description"),H()());a&2&&(a=b.$implicit,B(5),Jf(a),B(2),D("mat-dialog-close",!0))},c1a=function(a,b){b.assigneeText=Ll(a.assigneeUser);b.reporterText=Ll(a.reporterUser);b.verifierText=Ll(a.verifierUser);b.ccsText=Ml(a.ccUsers)},d1a=
function(a,b){var c=a.assigneeText;null===c?c=null:(c=c.trim(),c=c.endsWith(",")?c.slice(0,c.length-1):c);a.assigneeText=c;null!=a.assigneeText&&(b.assigneeUser=Tl(a.assigneeText));null!=a.reporterText&&(b.reporterUser=Tl(a.reporterText));null!=a.verifierText&&(b.verifierUser=Tl(a.verifierText));if(a.ccsText){c=[];a=r(a.ccsText);for(var d=a.next();!d.done;d=a.next())(d=Tl(d.value))&&c.push(d);c&&(b.ccUsers=c)}},e1a=function(a){a=Object.assign({},a);return delete a.hotlistId,a},f1a=function(a){if(a&
1){var b=x();G(0,"b-star-toggle",12);K("starClicked",function(){z(b);var c=M(2);return A(c.toggleStar())});H()}a&2&&(a=M(2),D("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},g1a=function(a){a&1&&J(0,"b-star-toggle",13);a&2&&D("starMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},h1a=function(a){if(a&
1){var b=x();G(0,"div")(1,"div",7);O(2,f1a,1,3,"b-star-toggle",8);O(3,g1a,1,4,"b-star-toggle",9);G(4,"span",10);P(5);G(6,"span")(7,"button",11);K("click",function(){z(b);var c=M();return A(c.editBookmarkGroup())});H()()()()()}a&2&&(a=M(),B(2),D("ngIf",!a.isAdmin),B(1),D("ngIf",a.isAdmin),B(2),If("",a.bookmarkGroup.name," "))},k1a=function(a){if(a&1){var b=x();G(0,"b-saved-search-panel",17);K("focusedRowIndexChange",function(f){z(b);var h=M().$implicit,k=M();return A(i1a(k,h,f))})("selectionChange",
function(f){z(b);var h=M(2);return A(j1a(h,f))})("resultsLoaded",function(f){z(b);var h=M(2);return A(h.loadHotlists(f))});H()}if(a&2){var c=M();a=c.$implicit;var d=c.first;c=c.last;var e=M();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",a.resourceId)("first",d)("last",c)}},l1a=function(a){if(a&1){var b=x();G(0,"b-hotlist-panel",18);K("focusedRowIndexChange",function(f){z(b);var h=M().$implicit,k=M();return A(i1a(k,h,f))})("selectionChange",function(f){z(b);
var h=M(2);return A(j1a(h,f))})("resultsLoaded",function(f){z(b);var h=M(2);return A(h.loadHotlists(f))});H()}if(a&2){var c=M();a=c.$implicit;var d=c.first;c=c.last;var e=M();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",a.resourceId)("first",d)("last",c)}},m1a=function(a,b){a&1&&(G(0,"div",14),O(1,k1a,1,6,"b-saved-search-panel",15),O(2,l1a,1,6,"b-hotlist-panel",16),H());a&2&&(D("ngSwitch",b.$implicit.type),B(1),D("ngSwitchCase","SAVED_SEARCH"),B(1),
D("ngSwitchCase","HOTLIST"))},n1a=function(a){if(a&1){var b=x();G(0,"button",8);K("click",function(){z(b);var c=M();return A(c.archive())});P(1," Archive bookmark group ");H()}a&2&&(a=M(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},o1a=function(a){if(a&1){var b=x();G(0,"button",8);K("click",function(){z(b);var c=M();return A(c.unarchive())});P(1," Unarchive bookmark group ");H()}a&2&&(a=M(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},p1a=function(a){a&1&&(G(0,"span",32),P(1," (archived) "),
H())},r1a=function(a,b){if(a&1){var c=x();G(0,"div")(1,"b-hotlist-chip-smart",48);K("removeHotlist",function(){var d=z(c).ngIf,e=M(4);return A(q1a(e,d))});H()()}a&2&&(a=b.ngIf,B(1),D("id",a))},t1a=function(a,b){if(a&1){var c=x();G(0,"div",49)(1,"a",50);P(2);H();G(3,"span",51);K("click",function(){var e=z(c).ngIf,f=M(4);return A(s1a(f,e))})("keydown.enter",function(){var e=z(c).ngIf,f=M(4);return A(s1a(f,e))})("keydown.space",function(){var e=z(c).ngIf,f=M(4);return A(s1a(f,e))});P(4," \u00d7 ");H()()}if(a&
2){a=b.ngIf;b=M().$implicit;var d=M(3);B(1);D("href",d.paths.viewSavedSearch(a),Kd)("matTooltip","Go to saved search: "+d.getDisplayName(b));B(1);If(" S: ",d.getDisplayName(b)," ");B(1);D("matTooltip","Remove item: "+d.getDisplayName(b));nf("aria-label","Remove item: "+d.getDisplayName(b))}},u1a=function(a){a&1&&(G(0,"span",52),P(1,"<None>"),H())},v1a=function(a,b){a&1&&(G(0,"div",45),O(1,r1a,2,1,"div",7),O(2,t1a,5,5,"div",46),O(3,u1a,2,0,"span",47),H());if(a&2){a=b.$implicit;b=M(3);B(1);var c;var d=
"HOTLIST"===a.resourceType?null==(c=a.hotlistId)?void 0:c.toString():void 0;D("ngIf",d);B(1);D("ngIf","SAVED_SEARCH"===a.resourceType?a.savedSearchId:void 0);B(1);D("ngIf",!(null==b.bookmarkGroupUnderEdit.item?0:b.bookmarkGroupUnderEdit.item.length))}},x1a=function(a,b){if(a&1){var c=x();G(0,"button",61);K("click",function(){var d=z(c).$implicit,e=M(5);return A(w1a(e,d))});P(1);H()}a&2&&(a=b.$implicit,B(1),If("",a.name," "))},y1a=function(a){a&1&&O(0,x1a,2,1,"button",60);a&2&&(a=M(4),D("ngForOf",
a.savedSearchChoices))},z1a=function(a){a&1&&(G(0,"div",53)(1,"label",54),P(2,"Add from saved searches:"),H(),G(3,"button",55)(4,"span",56),P(5,"Select"),H(),J(6,"mat-icon",57),H(),G(7,"mat-menu",null,58),O(9,y1a,1,1,"ng-template",59),H()());if(a&2){var b=Hf(8);B(3);D("matMenuTriggerFor",b)}},E1a=function(a){if(a&1){var b=x();xf(0);G(1,"div",30)(2,"label",33)(3,"span",18);P(4,"Selected items");H()();G(5,"div",34,35);O(7,v1a,4,3,"div",36);H()();G(8,"div",37)(9,"div",38)(10,"label",39);P(11,"Add hotlist from favorites:");
H();G(12,"b-hotlist-picker",40);K("onApply",function(c){z(b);var d=M(2);return A(A1a(d,c))})("onCreate",function(c){z(b);var d=M(2);return A(B1a(d,c))})("onLoad",function(c){z(b);var d=M(2);return A(C1a(d,c))});H()();G(13,"div",41)(14,"label",42);P(15,"Add hotlist by query:");H();G(16,"b-hotlist-search",43);K("itemSelect",function(c){z(b);var d=M(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(D1a(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",
hotlistId:c.hotlistId}));return A()});H()();O(17,z1a,10,1,"div",44);H();yf()}a&2&&(a=M(2),B(7),D("ngForOf",a.bookmarkGroupUnderEdit.item),B(5),D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),B(4),D("showGroups",!1)("allowStarring",!1),B(1),D("ngIf",0<a.savedSearchChoices.length))},G1a=function(a){a&1&&(G(0,"span"),P(1),G(2,"a",65),P(3),H()());if(a&2){a=M().$implicit;var b=M(3);B(1);If(" Hotlist ",a.hotlistId,": ");B(1);D("href",F1a(b,a),Kd);B(1);If(" ",a.name||
"(name not available)"," ")}},H1a=function(a){a&1&&(G(0,"span"),P(1),G(2,"a",65),P(3),H()());if(a&2){a=M().$implicit;var b=M(3);B(1);If(" Saved search ",a.savedSearchId,": ");B(1);D("href",F1a(b,a),Kd);B(1);If(" ",a.name||"(name not available)"," ")}},I1a=function(a,b){a&1&&(G(0,"li"),O(1,G1a,4,3,"span",7),O(2,H1a,4,3,"span",7),H());a&2&&(a=b.$implicit,B(1),D("ngIf","HOTLIST"===a.resourceType),B(1),D("ngIf","SAVED_SEARCH"===a.resourceType))},J1a=function(a){a&1&&(G(0,"div",62)(1,"label")(2,"span",
18),P(3,"Items"),H()(),G(4,"div",63)(5,"ul"),O(6,I1a,3,2,"li",64),H()()());a&2&&(a=M(2),B(6),D("ngForOf",a.bookmarkGroup.item))},K1a=function(a){if(a&1){var b=x();G(0,"div",66)(1,"button",67);K("click",function(){z(b);var c=M(2);return A(c.saveMetadata())});P(2," Update ");H();G(3,"button",68);K("click",function(){z(b);var c=M(2);return A(c.revertMetadataChanges())});P(4," Revert changes ");H()()}a&2&&(a=M(2),B(1),D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},L1a=function(a){if(a&1){var b=
x();G(0,"div",66)(1,"button",67);K("click",function(){z(b);var c=M(2);return A(c.saveAccessPolicy())});P(2," Update ");H();G(3,"button",68);K("click",function(){z(b);var c=M(2);return A(c.revertAccessPolicyChanges())});P(4," Revert changes ");H()()}a&2&&(a=M(2),B(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},O1a=function(a){if(a&1){var b=x();xf(0);G(1,"div",9)(2,"h2");P(3);H();O(4,p1a,2,0,"span",10);G(5,"a",11);P(6," (View Dashboard)");
H()();G(7,"mat-tab-group",12);K("selectedIndexChange",function(d){z(b);var e=M();return A(e.selectedTabIndex=d)})("selectedIndexChange",function(d){z(b);var e=M();return A(e.tabChange(d))});G(8,"mat-tab",13)(9,"div",14);J(10,"b-error-banner",15);G(11,"div",16)(12,"label",17)(13,"span",18);P(14,"Name");H()();G(15,"input",19,20);K("ngModelChange",function(d){z(b);var e=M();return A(e.bookmarkGroupUnderEdit.name=d)});H()();G(17,"div",16)(18,"label",21)(19,"span",18);P(20,"Description");H()();G(21,"textarea",
22);K("ngModelChange",function(d){z(b);var e=M();return A(e.bookmarkGroupUnderEdit.description=d)});H()();O(22,E1a,18,7,"ng-container",23);O(23,J1a,7,1,"ng-template",null,24,gg);O(25,K1a,5,1,"div",25);H()();G(26,"mat-tab",26)(27,"div",14)(28,"div",16)(29,"label")(30,"span",18);P(31,"Admins");H();G(32,"p",27);P(33," Edit access controls, edit name and description, reorder items, add/remove items ");H()();G(34,"b-multi-user-input",28);K("usersChange",function(d){z(b);var e=M();return A(e.accessPolicyUnderEdit.admins=
d)})("isValid",function(d){z(b);var e=M();return A(e.isAdminsFieldValid=d)});H()();G(35,"div",16)(36,"label")(37,"span",18);P(38,"View only");H();G(39,"p",27);P(40," View the bookmark group ");H();G(41,"b-multi-user-input",29);K("usersChange",function(d){z(b);var e=M();return A(e.accessPolicyUnderEdit.readers=d)})("isValid",function(d){z(b);var e=M();return A(e.isReaderFieldValid=d)});H()()();G(42,"div",30);P(43," See ");G(44,"a",31);P(45,"access control documentation");H();P(46," for an explanation of the settings. ");
H();O(47,L1a,5,1,"div",25);H()()();yf()}if(a&2){var c=Hf(24);a=M();B(3);Kf(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," ");B(1);D("ngIf",a.isArchived());B(1);D("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Kd);B(2);D("selectedIndex",a.selectedTabIndex);B(3);D("error",a.error);B(1);D("ngClass",Nf(28,Js,a.isEditDisabled()));B(4);D("ngModel",a.bookmarkGroupUnderEdit.name)("disabled",a.isEditDisabled());B(2);D("ngClass",Nf(30,Js,a.isEditDisabled()));B(4);
D("ngModel",a.bookmarkGroupUnderEdit.description)("disabled",a.isEditDisabled());B(1);D("ngIf",a.isAdmin)("ngIfElse",c);B(3);D("ngIf",a.isAdmin);B(3);D("ngClass",Nf(32,Js,a.isEditDisabled()));B(6);sf("disabled",a.isEditDisabled());D("users",a.accessPolicyUnderEdit.admins);B(1);D("ngClass",Nf(34,Js,a.isEditDisabled()));B(6);sf("disabled",a.isEditDisabled());D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Nf(38,M1a,Nf(36,N1a,a.accessPolicyUnderEdit.admins)));
B(3);D("href",Do(a.documentationLinks)+"#bookmark-groups",Kd);B(3);D("ngIf",a.isAdmin)}},P1a=function(a,b){if(a&&a.length)return a.map(b)},Q1a=function(a){return{filename:a.getFilename(),lineNumber:jb(a,2),changeNumber:dj(a,3)}},R1a=function(a){return{packageName:V(a,1),fileMentionSet:P1a(rb(a,Ks,2),Q1a)}},S1a=function(a){return{totalMentions:dj(a,1),truncated:W(a,2),packageMentionSet:P1a(rb(a,Ls,3),R1a)}},T1a=function(a){a&1&&J(0,"b-live-preview",10);a&2&&(a=M(),D("comment",a.newComment.text)("issueId",
a.origComment.issueId)("audience",a.origComment.audience)("formattingMode",a.newComment.formattingMode))},U1a=function(a){var b=[],c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,""!==d.displayText)if(c.get(d.resourceId)){var e=c.get(d.resourceId);e.relations=[].concat(u(e.relations),u(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},V1a=function(a){if(a&1){var b=x();G(0,"b-insights-graph-menu",28);K("openSidebar",function(c){z(b);M(4).issueInsightsSidebarService.openSidebar(c.panel);
return A()});H()}a&2&&(a=M().ngIf,D("availablePanels",a))},W1a=function(a){a&1&&(G(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",29)(2,"p",30),P(3,"Incident Context"),H(),P(4," Check incident context to learn more about this alert. "),H()());a&2&&(a=M(4),B(1),D("customPositions",a.insightsFeatureTooltipPositions))},X1a=function(a,b){a&1&&(xf(0),O(1,V1a,1,1,"b-insights-graph-menu",27),Q(2,"async"),O(3,W1a,5,1,"onedev-feature-tooltip-controller",12),yf());a&2&&(a=b.ngIf,b=M(3),B(1),
D("ngIf",R(2,2,b.issueInsightsSidebarService.shouldShowInsightsGraphMenu$)),B(2),D("ngIf",a.has("incidents")))},Y1a=function(a){if(a&1){var b=x();G(0,"g3c-widget-entry",31);K("userActionPerformed",function(c){z(b);var d=M(3);bo(d.analytics,go.G3C_WIDGET,c);return A()});H()}a&2&&(a=M(3),D("customWidgetClass","gmat-button medium")("taskId","b/"+a.issueId)("featureHighlightingEnabled",a.enableG3cFeatureHighlighting))},$1a=function(a){if(a&1){var b=x();G(0,"div",17)(1,"button",18);K("onHotkey",function(){z(b);
M(2).refreshMonitor.refreshRequest.next();return A()})("click",function(){z(b);M(2).refreshMonitor.refreshRequest.next();return A()});J(2,"mat-icon",19);H();J(3,"span",20);G(4,"div",21)(5,"edit-issue-controls",22);K("onHotkey",function(){z(b);var f=M(2);f.savingState.get("status")||(f.issue.duplicateOfIssueId?f.clearCanonicalIssue():Z1a(f.issueMarkAsDuplicateDialogService,f.issueId));return A()})("onVote",function(){z(b);var f=M(2);return A(f.onVote())})("quickAction",function(f){z(b);var h=M(2);
return A(h.performQuickAction("appbar",f))})("markAsDuplicate",function(){z(b);var f=M(2);return A(Z1a(f.issueMarkAsDuplicateDialogService,f.issueId))})("clearCanonical",function(){z(b);var f=M(2);return A(f.clearCanonicalIssue())});Q(6,"async");Q(7,"async");Q(8,"async");Q(9,"async");H()();G(10,"b-hotlist-picker",23,24);K("onHotkey",function(){z(b);var f=Hf(11);return A(f.open())})("onApply",function(f){z(b);var h=M(2);return A(h.handleHotlistPickerSave(f))})("onCreate",function(f){z(b);var h=M(2);
return A(h.createHotlist(f))})("onLoad",function(f){z(b);var h=M(2);return A(h.loadHotlist(f))});H();G(12,"b-notification-menu",25);K("subscriptionChange",function(f){z(b);var h=M(2);return A(h.updateSubscription(f))})("showNotificationSettings",function(f){z(b);var h=M(2);return A(h.showNotificationSettings(f))});H();O(13,X1a,4,4,"ng-container",12);Q(14,"async");O(15,Y1a,1,3,"g3c-widget-entry",26);H()}if(a&2){a=M(2);var c,d,e;B(1);D("hotkey",a.HOTKEYS.REFRESH);B(4);D("issueId",a.issueId)("hasAclToEdit",
!!R(6,18,a.issuePermissionService.hasAclToEdit$))("hasAclToComment",!!R(7,20,a.issuePermissionService.hasAclToComment$))("issueStatusQuickAction",null!==(c=R(8,22,a.issueStatusQuickAction$))&&void 0!==c?c:void 0)("statusIsSaving",!!R(9,24,Ms(a.savingState,"status")))("isDuplicate",!!a.issue.duplicateOfIssueId)("upvoted",null!==(d=null==a.userData?null:a.userData.voted)&&void 0!==d?d:!1)("voteCount",a.voteCount)("hotkey",a.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(5);D("choices",a.hotlists)("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER)("selectedHotlistIds",
a.selectedHotlistIds);B(2);D("subscription",null!==(e=null==a.userData?null:a.userData.notificationSubscription)&&void 0!==e?e:a.UNKNOWN_SUBSCRIPTION)("issueId",a.issueId)("matTooltip","Notification menu");B(1);D("ngIf",R(14,26,a.issueInsightsSidebarService.availablePanels$));B(2);D("ngIf",a.enableG3cWidgetIntegration&&a.frontendIsInternal)}},a2a=function(a){a&1&&(G(0,"span",33)(1,"strong"),P(2),H(),P(3,"\u00a0of\u00a0"),G(4,"strong"),P(5),Q(6,"async"),H()());if(a&2){a=M().ngIf;var b=M(2);B(2);Jf(a);
B(3);Jf(R(6,2,b.currentSearchResults.totalText$))}},b2a=function(a,b){a&1&&(xf(0),O(1,a2a,7,4,"span",32),yf());a&2&&(a=b.ngIf,B(1),D("ngIf",-1!==a))},c2a=function(a){if(a&1){var b=x();G(0,"div",5)(1,"div",6)(2,"div",7)(3,"button",8);K("onHotkey",function(){z(b);var d=M();return A(Ns(d.currentSearchResults))})("click",function(){z(b);var d=M();return A(Ns(d.currentSearchResults))});Q(4,"async");Q(5,"async");J(6,"mat-icon",9);H();O(7,$1a,16,28,"div",10);H();G(8,"div",11);O(9,b2a,2,1,"ng-container",
12);Q(10,"async");G(11,"button",13);K("onHotkey",function(){z(b);var d=M();return A(Os(d.currentSearchResults))})("click",function(){z(b);var d=M();return A(Os(d.currentSearchResults))});Q(12,"async");J(13,"mat-icon",14);H();G(14,"button",15);K("onHotkey",function(){z(b);var d=M();return A(Ps(d.currentSearchResults))})("click",function(){z(b);var d=M();return A(Ps(d.currentSearchResults))});Q(15,"async");J(16,"mat-icon",16);H()()()()}if(a&2){a=M();var c;B(3);D("hotkey",a.HOTKEYS.GO_UP_TO_LIST)("matTooltip",
null!==(c=R(4,9,a.currentSearchResults.backNavigationLabel$))&&void 0!==c?c:"");nf("aria-label",R(5,11,a.currentSearchResults.backNavigationLabel$));B(4);D("ngIf",a.issue);B(2);D("ngIf",R(10,13,a.currentSearchResults.issueIndex$));B(2);D("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!R(12,15,a.currentSearchResults.hasPreviousIssue$));B(3);D("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!R(15,17,a.currentSearchResults.hasNextIssue$))}},d2a=function(a){a&1&&(G(0,"div",34),J(1,"b-access-denied-metadata",
35),H());a&2&&(a=M(),B(1),D("issueMetadata",a.issueMetadata))},e2a=function(a){a&1&&(G(0,"a",63),P(1,"Learn more"),H())},f2a=function(a){if(a&1){var b=x();G(0,"b-button",64);K("onAction",function(){z(b);var c=M(3);return A(c.editIssueService.unarchive(c.issueIdString))});P(1,"Unarchive");H()}},g2a=function(a){a&1&&(G(0,"b-callout",60)(1,"b-callout-body"),P(2," This issue has been archived. "),O(3,e2a,2,0,"a",61),H(),G(4,"b-callout-actions"),O(5,f2a,2,0,"b-button",62),Q(6,"async"),H()());a&2&&(a=M(2),
D("format","app")("iconOverride","archive_24px"),B(3),D("ngIf",a.frontendIsInternal),B(2),D("ngIf",R(6,4,a.issuePermissionService.hasAclToEdit$)))},h2a=function(a){a&1&&(G(0,"a",66),P(1,"Learn more"),H())},i2a=function(a){a&1&&(G(0,"b-callout",60)(1,"b-callout-body"),P(2," This issue is in an archived component. "),O(3,h2a,2,0,"a",65),H()());a&2&&(a=M(2),D("format","app")("iconOverride","archive_24px"),B(3),D("ngIf",a.frontendIsInternal))},j2a=function(a){a&1&&J(0,"b-issue-card",74,75);if(a&2){var b=
Hf(1);a=M().ngIf;D("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},k2a=function(a,b){a&1&&(G(0,"div",70),P(1," Duplicate of "),G(2,"a",71),P(3),Q(4,"v2StatusToHuman"),H(),G(5,"onedev-hovercard",null,72),O(7,j2a,2,2,"b-issue-card",73),H()());if(a&2){a=b.ngIf;var c=Hf(6);b=M(3);B(2);D("href",b.paths.editIssue(a.issueId),Kd)("onedevHovercardTrigger",c);B(1);Aha(" Issue ",a.issueId," [",R(4,5,null==a.snapshot[0]?null:a.snapshot[0].status),"] (",null==a.snapshot[0]?null:a.snapshot[0].title,") ")}},
l2a=function(a){a&1&&(G(0,"div",70),P(1," Duplicate of "),G(2,"a",76),P(3),H(),P(4,". "),H());if(a&2){a=M().ngIf;var b=M(2);B(2);D("href",b.paths.editIssue(a),Kd);B(1);If(" Issue ",a,"")}},m2a=function(a){a&1&&(G(0,"div",67),O(1,k2a,8,7,"div",68),Q(2,"async"),O(3,l2a,5,2,"ng-template",null,69,gg),H());if(a&2){var b=Hf(4);a=M(2);B(1);D("ngIf",R(2,2,a.canonicalIssue$))("ngIfElse",b)}},n2a=function(a){if(a&1){var b=x();G(0,"div",77);K("click",function(){z(b);var c=M(2);return A(Qs(c,"PARENTS"))})("keydown.enter",
function(){z(b);var c=M(2);return A(Qs(c,"PARENTS"))})("keydown.space",function(){z(b);var c=M(2);return A(Qs(c,"PARENTS"))});G(1,"span",47);P(2);H();J(3,"mat-icon",44);H()}a&2&&(a=M(2),sf("expanded","PARENTS"==a.relatedIssuesTrayOpen),D("matTooltip","Parent issues"),nf("aria-expanded","PARENTS"==a.relatedIssuesTrayOpen)("aria-selected","PARENTS"==a.relatedIssuesTrayOpen),B(2),If("Parents (",Rs(a.parentIssues),")"))},o2a=function(a){if(a&1){var b=x();G(0,"div",78);K("click",function(){z(b);var d=
M(2);return A(Qs(d,"CHILDREN"))})("keydown.enter",function(){z(b);var d=M(2);return A(Qs(d,"CHILDREN"))})("keydown.space",function(){z(b);var d=M(2);return A(Qs(d,"CHILDREN"))});G(1,"span",47);P(2);Q(3,"async");H();J(4,"mat-icon",44);H()}if(a&2){a=M(2);var c;sf("expanded","CHILDREN"==a.relatedIssuesTrayOpen);D("matTooltip","Child issues");nf("aria-expanded","CHILDREN"==a.relatedIssuesTrayOpen)("aria-selected","CHILDREN"==a.relatedIssuesTrayOpen);B(2);If("Children (",null!==(c=R(3,6,a.childIssuesCount$))&&
void 0!==c?c:0,")")}},p2a=function(a,b){if(a&1){var c=x();G(0,"div",80);K("click",function(){z(c);var d=M(3);return A(Qs(d,"MENTIONS"))})("keydown.enter",function(){z(c);var d=M(3);return A(Qs(d,"MENTIONS"))})("keydown.space",function(){z(c);var d=M(3);return A(Qs(d,"MENTIONS"))});G(1,"span",47);P(2);H();J(3,"mat-icon",44);H()}a&2&&(a=b.ngIf,b=M(3),sf("expanded","MENTIONS"==b.relatedIssuesTrayOpen),D("matTooltip",b.mentionsLoadingStateTooltipText(a)),nf("aria-expanded","MENTIONS"==b.relatedIssuesTrayOpen)("aria-selected",
"MENTIONS"==b.relatedIssuesTrayOpen),B(2),If("TODOs (","OK"===a.loadingState&&a.mentions?a.mentions.totalMentions:"?",")"))},q2a=function(a){a&1&&(xf(0),O(1,p2a,4,6,"div",79),Q(2,"async"),yf());a&2&&(a=M(2),B(1),D("ngIf",R(2,1,a.codeMentionsState$)))},u2a=function(a){if(a&1){var b=x();G(0,"div",36);Q(1,"async");O(2,g2a,7,6,"b-callout",37);O(3,i2a,4,3,"b-callout",37);O(4,m2a,5,4,"div",38);Q(5,"async");G(6,"div",39)(7,"div",40)(8,"div",41)(9,"div",42);K("click",function(){z(b);var c=M();return A(Qs(c,
"BLOCKED"))})("keydown.enter",function(){z(b);var c=M();return A(Qs(c,"BLOCKED"))})("keydown.space",function(){z(b);var c=M();return A(Qs(c,"BLOCKED"))});G(10,"span",43);Q(11,"formatNumberOrUndef");Q(12,"countOpenIssues");P(13);Q(14,"formatNumberOrUndef");Q(15,"countOpenIssues");H();J(16,"mat-icon",44);H();G(17,"div",45);K("click",function(){z(b);var c=M();return A(Qs(c,"BLOCKING"))})("keydown.enter",function(){z(b);var c=M();return A(Qs(c,"BLOCKING"))})("keydown.space",function(){z(b);var c=M();
return A(Qs(c,"BLOCKING"))});G(18,"span",43);Q(19,"formatNumberOrUndef");Q(20,"countOpenIssues");P(21);Q(22,"formatNumberOrUndef");Q(23,"countOpenIssues");H();J(24,"mat-icon",44);H();G(25,"div",46);K("click",function(){z(b);var c=M();return A(Qs(c,"DUPLICATES"))})("keydown.enter",function(){z(b);var c=M();return A(Qs(c,"DUPLICATES"))})("keydown.space",function(){z(b);var c=M();return A(Qs(c,"DUPLICATES"))});G(26,"span",47);P(27);H();J(28,"mat-icon",44);H();O(29,n2a,4,6,"div",48);O(30,o2a,5,8,"div",
49);O(31,q2a,3,3,"ng-container",12);H();G(32,"div",50)(33,"div",51)(34,"b-slide-toggle",52);K("modelChange",function(c){z(b);var d=M();return A(d.preferences.showFullHistory=c)})("modelChange",function(){z(b);var c=M();return A(r2a(c))});H()()()()();G(35,"div",53)(36,"div",54);J(37,"edit-issue-main-content",55);H();G(38,"h3",0);P(39,"Issue metadata");H();G(40,"b-resizable-sidebar",56);K("widthChanged",function(c){z(b);var d=M();return A(s2a(d,c))});G(41,"div",57)(42,"div",58);J(43,"edit-issue-metadata",
59);Q(44,"toString");H()()()()()}a&2&&(a=M(),D("ngClass",Of(59,t2a,R(1,37,a.canonicalIssueId$),a.issue.isArchived||a.inArchivedComponent)),B(2),D("ngIf",a.issue.isArchived),B(1),D("ngIf",!a.issue.isArchived&&a.inArchivedComponent),B(1),D("ngIf",R(5,39,a.canonicalIssueId$)),B(5),sf("expanded","BLOCKED"==a.relatedIssuesTrayOpen),nf("aria-expanded","BLOCKED"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKED"==a.relatedIssuesTrayOpen),B(1),Gf("matTooltip","This issue is blocked by ",R(11,41,R(12,43,
a.blockedByIssues))," open issue(s) (",a.blockedByIssues.length," total)"),B(3),Kf(" Blocked by ",R(14,45,R(15,47,a.blockedByIssues)),"/",Rs(a.blockedByIssues)," "),B(4),sf("expanded","BLOCKING"==a.relatedIssuesTrayOpen),nf("aria-expanded","BLOCKING"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKING"==a.relatedIssuesTrayOpen),B(1),Gf("matTooltip","This issue is blocking ",R(19,49,R(20,51,a.blockingIssues))," open issue(s) (",a.blockingIssues.length," total)"),B(3),Kf(" Blocking ",R(22,53,R(23,55,
a.blockingIssues)),"/",Rs(a.blockingIssues),""),B(4),sf("expanded","DUPLICATES"==a.relatedIssuesTrayOpen),Ef("matTooltip","This issue has ",a.duplicateIssues.length," duplicate(s)"),nf("aria-expanded","DUPLICATES"==a.relatedIssuesTrayOpen)("aria-selected","DUPLICATES"==a.relatedIssuesTrayOpen),B(2),If("Duplicates (",Rs(a.duplicateIssues),")"),B(2),D("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),B(1),D("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),B(1),D("ngIf",a.codeMentionsEnabled),B(3),D("model",
a.preferences.showFullHistory)("tooltip",a.preferences.showFullHistory?"Show abridged history (major events only)":"Show full history"),B(3),D("parent",a),B(3),D("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",a.rightSidebarMinWidth)("size",a.rightSidebarWidth),B(3),D("issueId",R(44,57,a.issueId)))},v2a=function(a){if(a&1){var b=x();G(0,"button",8);K("click",function(){z(b);var c=M();return A(c.delete())});P(1," Delete saved search ");H()}a&2&&(a=M(),D("disabled",a.hasUnsavedChanges()||
a.isSaving()))},w2a=function(a){a&1&&(xf(0),G(1,"div",9)(2,"h2"),P(3," Saved search not found "),H()(),yf())},x2a=function(a){if(a&1){var b=x();G(0,"div",34)(1,"button",35);K("click",function(){z(b);var c=M(2);return A(c.saveMetadata())});P(2," Update ");H();G(3,"button",36);K("click",function(){z(b);var c=M(2);return A(c.revertMetadataChanges())});P(4," Revert changes ");H()()}a&2&&(a=M(2),B(1),D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},y2a=function(a){if(a&1){var b=x();G(0,"div",
34)(1,"button",35);K("click",function(){z(b);var c=M(2);return A(c.saveAccessPolicy())});P(2," Update ");H();G(3,"button",36);K("click",function(){z(b);var c=M(2);return A(c.revertAccessPolicyChanges())});P(4," Revert changes ");H()()}a&2&&(a=M(2),B(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},B2a=function(a){if(a&1){var b=x();xf(0);G(1,"div",9)(2,"h2");P(3);H();G(4,"a",10);P(5," (View Issues)");H()();G(6,"mat-tab-group",11);K("selectedIndexChange",
function(c){z(b);var d=M();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=M();return A(d.tabChange(c))});G(7,"mat-tab",12)(8,"div",13);J(9,"b-error-banner",14);G(10,"div",15)(11,"label",16)(12,"span",17);P(13,"Name");H()();G(14,"input",18,19);K("ngModelChange",function(c){z(b);var d=M();return A(d.savedSearchUnderEdit.name=c)});H()();G(16,"div",15)(17,"label",20)(18,"span",17);P(19,"Description");H()();G(20,"textarea",21);K("ngModelChange",function(c){z(b);var d=M();
return A(d.savedSearchUnderEdit.description=c)});P(21,"            ");H()();G(22,"div",22)(23,"label",23)(24,"span",17);P(25,"Query");H();G(26,"p",24);P(27," To modify query and display preferences, run the saved search and modify its parameters ");H();G(28,"div",25);P(29);H()()();O(30,x2a,5,1,"div",26);H()();G(31,"mat-tab",27)(32,"div",13)(33,"div",15)(34,"label",28)(35,"span",17);P(36,"Admins");H();G(37,"p",24);P(38," Edit access controls, edit name and description, edit query ");H()();G(39,"b-multi-user-input",
29);K("usersChange",function(c){z(b);var d=M();return A(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){z(b);var d=M();return A(d.isAdminsFieldValid=c)});H()();G(40,"div",15)(41,"label",30)(42,"span",17);P(43,"View and execute search");H()();G(44,"b-multi-user-input",31);K("usersChange",function(c){z(b);var d=M();return A(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){z(b);var d=M();return A(d.isReaderFieldValid=c)});H()();G(45,"div",32);P(46," See ");G(47,"a",33);P(48,"access control documentation");
H();P(49," for an explanation of the settings. ");H();O(50,y2a,5,1,"div",26);H()()();yf()}a&2&&(a=M(),B(3),Kf(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(1),D("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Kd),B(2),D("selectedIndex",a.selectedTabIndex),B(3),D("error",a.error),B(1),D("ngClass",Nf(26,Ss,a.isEditDisabled())),B(4),D("ngModel",a.savedSearchUnderEdit.name)("disabled",a.isEditDisabled()),B(2),D("ngClass",Nf(28,Ss,a.isEditDisabled())),B(4),D("ngModel",a.savedSearchUnderEdit.description)("disabled",
a.isEditDisabled()),B(9),If(" ",a.savedSearch.query," "),B(1),D("ngIf",a.isAdmin),B(3),D("ngClass",Nf(30,Ss,a.isEditDisabled())),B(6),sf("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.admins),B(1),D("ngClass",Nf(32,Ss,a.isEditDisabled())),B(4),sf("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Nf(36,z2a,Nf(34,A2a,a.accessPolicyUnderEdit.admins))),B(3),D("href",Do(a.documentationLinks)+"#saved-searches",
Kd),B(3),D("ngIf",a.isAdmin))},C2a=function(a){a&1&&(G(0,"div",7),J(1,"b-spinner"),H())},D2a=function(a){if(a&1){var b=x();G(0,"div",39)(1,"span",40)(2,"b-checkbox",41);K("change",function(c){z(b);var d=M(2);return A(d.alertState.setValue(c))});H()();G(3,"div")(4,"strong",42);P(5,"SLO Notifications");H();G(6,"div",43);P(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");H()()()}a&2&&(a=M(2),sf("bv2-edit-resource-readonly",
a.isEditDisabled()),B(2),D("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},E2a=function(a){a&1&&(G(0,"div",44),P(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),G(2,"a",45),P(3," Learn more "),H()())},G2a=function(a){if(a&1){var b=x();G(0,"b-button",50);K("onAction",function(){z(b);var c=M(3);return A(F2a(c,!0))});P(1," Archive ");H()}a&2&&(a=M(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},H2a=function(a){if(a&1){var b=
x();G(0,"b-button",51);K("onAction",function(){z(b);var c=M(3);return A(F2a(c,!1))});P(1," Unarchive ");H()}a&2&&(a=M(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},I2a=function(a){if(a&1){var b=x();G(0,"div",26)(1,"b-button",46);K("onAction",function(){z(b);var d=M(2);return A(d.saveMetadata())});P(2," Update ");H();G(3,"b-button",47);K("onAction",function(){z(b);var d=M(2);return A(d.revertMetadataChanges())});P(4," Revert changes ");H();O(5,G2a,2,1,"b-button",48);O(6,H2a,2,1,"b-button",
49);H()}if(a&2){M();var c=Hf(9);a=M();B(1);D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!a.elementPickerIsValid||!!c.pending||!!c.invalid);B(2);D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!!c.pending||!!c.invalid);B(2);D("ngIf",a.slo&&!a.slo.getIsArchived());B(1);D("ngIf",a.slo&&a.slo.getIsArchived())}},J2a=function(a){if(a&1){var b=x();G(0,"div",25)(1,"b-button",52);K("onAction",function(){z(b);var c=M(2);return A(c.saveAccessPolicy())});P(2," Update ");H();G(3,"b-button",
53);K("onAction",function(){z(b);var c=M(2);return A(c.revertAccessPolicyChanges())});P(4," Revert changes ");H()()}a&2&&(a=M(2),B(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},K2a=function(a){if(a&1){var b=x();G(0,"div")(1,"div",8)(2,"h2")(3,"span",9);P(4);H()()();G(5,"mat-tab-group",10);K("selectedIndexChange",function(c){z(b);var d=M();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=M();return A(d.tabChange(c))});G(6,"mat-tab",
11)(7,"div",12)(8,"form",13,14)(10,"div",15)(11,"label",16)(12,"span",17);P(13,"Name");H()();G(14,"input",18);K("ngModelChange",function(c){z(b);var d=M();return A(d.editableCopy.setName(c))});H()();G(15,"div",15)(16,"label",19)(17,"span",17);P(18,"Description");H()();G(19,"textarea",20);K("ngModelChange",function(c){z(b);var d=M();return A(d.editableCopy.setDescription(c))});P(20,"              ");H()();O(21,D2a,8,4,"div",21);H();O(22,E2a,4,0,"div",22);G(23,"div",15)(24,"slo-elements-picker",23);
K("onCollectionUpdate",function(c){z(b);var d=M();return A(d.updateCollection(c))})("onValidation",function(c){z(b);var d=M();return A(d.elementPickerIsValid=c)});H()();G(25,"div",24)(26,"div",25)(27,"div",26)(28,"b-button",27);K("onAction",function(){z(b);var c=M();return A(c.showUpdateHistoryModal())});P(29," View history ");H()()();G(30,"div",25);O(31,I2a,7,4,"div",28);H()()()();G(32,"mat-tab",29)(33,"div",30)(34,"form",31)(35,"div",15)(36,"label",32)(37,"span",17);P(38,"Admins");H();G(39,"p",
33);P(40," Edit name, description and metrics ");H()();G(41,"b-multi-user-input",34);K("usersChange",function(c){z(b);var d=M();return A(d.editableAccessPolicy.admins=c)})("isValid",function(c){z(b);var d=M();return A(d.validity.admins=c)});H()();G(42,"div",15)(43,"label",35)(44,"span",17);P(45,"Readers");H();G(46,"p",33);P(47," View the SLO definition (this is not required to see an issue's SLO status) ");H()();G(48,"b-multi-user-input",36);K("usersChange",function(c){z(b);var d=M();return A(d.editableAccessPolicy.readers=
c)})("isValid",function(c){z(b);var d=M();return A(d.validity.readers=c)});H()()();G(49,"div",15);P(50," See ");G(51,"a",37);P(52,"access control documentation");H();P(53," for an explanation of the settings. ");H();O(54,J2a,5,1,"div",38);H()()()()}a&2&&(a=M(),B(4),Kf(" SLO ",a.slo.getSloId(),": ",a.slo.getName()," "),B(1),D("selectedIndex",a.selectedTabIndex),B(5),sf("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),D("required",!0)("ngModel",a.editableCopy.getName())("disabled",a.isEditDisabled()),
B(1),sf("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),D("ngModel",a.editableCopy.getDescription())("disabled",a.isEditDisabled()),B(2),D("ngIf",a.isImportedFromBugScope||a.alertState.getSavedValue()),B(1),D("ngIf",a.isUneditedFromBugScope&&a.isAdmin()),B(1),sf("bv2-edit-resource-readonly",a.isEditDisabled()),B(1),D("isDisabled",a.isEditDisabled())("collection",Ts(a.editableCopy)),B(7),D("ngIf",a.isAdmin()),B(4),sf("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),D("users",a.editableAccessPolicy.admins),
nf("disabled",a.isEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),D("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0),nf("disabled",a.isEditDisabled()?!0:null),B(3),Ef("href","",Do(a.documentationLinks),"#slos",Kd),B(3),D("ngIf",a.isAdmin()))},L2a=function(a){a&1&&(G(0,"b-person-hovercard",3),P(1),H());a&2&&(a=M(),D("email",a.assignee),B(1),If(" ",a.assignee," "))},M2a=function(a){a&1&&P(0,"--")},N2a=function(a){a&1&&J(0,"b-formatted-date-time",
3);a&2&&(a=M(),D("timestamp",a.createdTime))},O2a=function(a){a&1&&P(0,"--")},P2a=function(a){a&1&&(G(0,"b-person-hovercard",3),P(1),H());a&2&&(a=M(),D("email",a.reporter),B(1),If(" ",a.reporter," "))},Q2a=function(a){a&1&&P(0,"--")},R2a=function(a,b){a&1&&(G(0,"div",3),P(1),H());a&2&&(a=b.$implicit,b=M(),vf("b-chip xs squared status status",a,""),D("title",b.STATUS_FULL_TEXT[a]),B(1),If(" ",b.STATUS_TERSE[a]," "))},S2a=function(a){a&1&&P(0,"--")},T2a=function(a){a&1&&J(0,"b-team-display",3);a&2&&
(a=M(),D("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},U2a=function(a){a&1&&P(0,"--")},V2a=function(a){a&1&&(xf(0),P(1),Q(2,"enumToHuman"),yf());a&2&&(a=M(),B(1),Jf(R(2,1,a.type)))},W2a=function(a){a&1&&P(0,"--")},X2a=function(a){if(a&1){var b=x();G(0,"div",3);K("@arrowPosition.start",function(){z(b);var c=M();return A(c._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){z(b);var c=M();return A(c._disableViewStateAnimation=!1)});J(1,"div",4);G(2,"div",5);
J(3,"div",6)(4,"div",7)(5,"div",8);H()()}a&2&&(a=M(),D("@arrowOpacity",a._getArrowViewState())("@arrowPosition",a._getArrowViewState())("@allowChildren",a._getArrowDirectionState()),B(2),D("@indicator",a._getArrowDirectionState()),B(1),D("@leftPointer",a._getArrowDirectionState()),B(1),D("@rightPointer",a._getArrowDirectionState()))},Y2a=function(a){a&1&&J(0,"th",21)},Z2a=function(a){a&1&&J(0,"td",22)},$2a=function(a){a&1&&(G(0,"th",21),P(1," Id "),H())},a3a=function(a,b){a&1&&(G(0,"td",23),J(1,"b-issue-id-cell",
24),H());a&2&&(a=b.$implicit,B(1),D("id",a.id))},b3a=function(a){a&1&&(G(0,"th",21),P(1," Title "),H())},c3a=function(a,b){a&1&&(G(0,"td",23),J(1,"b-issue-title-cell",25),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},d3a=function(a){a&1&&(G(0,"th",26),P(1," Type "),H())},e3a=function(a,b){a&1&&(G(0,"td",23),J(1,"b-issue-type-cell",25),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},f3a=function(a){a&1&&(G(0,"th",27),P(1," Assignee "),H())},g3a=function(a,
b){a&1&&(G(0,"td",23),J(1,"b-issue-assignee-cell",25),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},h3a=function(a){a&1&&(G(0,"th",28),P(1," Reporter "),H())},i3a=function(a,b){a&1&&(G(0,"td",23),J(1,"b-issue-reporter-cell",25),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},j3a=function(a){a&1&&(G(0,"th",29),P(1," Status "),H())},k3a=function(a,b){a&1&&(G(0,"td",23),J(1,"b-issue-status-cell",25),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",
R(2,1,a.issue$)))},l3a=function(a){a&1&&(G(0,"th",21),P(1," Team "),H())},m3a=function(a,b){a&1&&(G(0,"td",23),J(1,"b-issue-team-cell",25),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},n3a=function(a){a&1&&(G(0,"th",30),P(1," Created "),H())},o3a=function(a,b){a&1&&(G(0,"td",23),J(1,"b-issue-created-time-cell",25),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},p3a=function(a){a&1&&J(0,"th",21)},q3a=function(a,b){a&1&&(G(0,"td",23)(1,"b-actions-menu",
31),K("click",function(c){return c.stopPropagation()}),H()());a&2&&(a=b.$implicit,b=M(),B(1),D("menuItems",b.getMenuItems(a.id)))},r3a=function(a){a&1&&J(0,"tr",32)},s3a=function(a,b){if(a&1){var c=x();G(0,"tr",33);K("click",function(d){var e=z(c).$implicit,f=M();return A(f.navigateToIssue(d,e.id))})("mouseup",function(d){var e=z(c).$implicit,f=M();return A(f.navigateToIssue(d,e.id))})("focusin",function(){var d=z(c).$implicit,e=M();return A(Us(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,
f=M();return A(f.onRowKeydown(e,d))});H()}a&2&&D("row",b.$implicit)},t3a=function(a,b){return(null==a?void 0:a.id)===(null==b?void 0:b.id)},v3a=function(a){if(a&1){var b=x();G(0,"div",5);J(1,"img",6)(2,"img",7);G(3,"p",8);P(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");H();G(5,"p",9);P(6,' If this issue blocked another, it would mean that it should be resolved first, and it would show up in the "Blockers" list for that issue. ');G(7,"a",10);P(8,"Learn more");H()();G(9,"button",11);
K("click",function(){z(b);var c=M(2);return A(u3a(c))});P(10," Add ");H()()}a&2&&(a=M(2),B(1),D("src",a.TEA_LIGHT,Kd),B(1),D("src",a.TEA_DARK,Kd))},w3a=function(a,b){a&1&&J(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=M(6),D("issueIds",a)("menuItemFactory",b.getMenuItems))},x3a=function(a){a&1&&(xf(0),O(1,w3a,1,2,"b-issues-table",17),Q(2,"async"),yf());a&2&&(a=M(5),B(1),D("ngIf",R(2,1,a.blockedAndOpenIds$)))},y3a=function(a){a&1&&(G(0,"p",19),P(1,"Not blocking any open issues \ud83e\udd73"),H())},z3a=
function(a,b){a&1&&(xf(0),G(1,"h4",15),P(2),H(),O(3,x3a,3,3,"ng-container",12),O(4,y3a,2,0,"ng-template",null,16,gg),yf());if(a&2){a=b.$implicit;var c=Hf(5);B(2);If("Open (",a.length,")");B(1);D("ngIf",0<a.length)("ngIfElse",c)}},A3a=function(a,b){a&1&&J(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=M(6),D("issueIds",a)("menuItemFactory",b.getMenuItems))},B3a=function(a){a&1&&(xf(0),G(1,"h4",15),P(2),H(),O(3,A3a,1,2,"b-issues-table",17),Q(4,"async"),yf());if(a&2){a=M().$implicit;var b=M(4);B(2);If("Closed (",
a.length,")");B(1);D("ngIf",R(4,2,b.blockedAndClosedIds$))}},C3a=function(a,b){a&1&&(xf(0),O(1,B3a,5,4,"ng-container",1),yf());a&2&&(a=b.$implicit,B(1),D("ngIf",0<a.length))},D3a=function(a){a&1&&(xf(0),O(1,z3a,6,3,"ng-container",1),Q(2,"async"),O(3,C3a,2,1,"ng-container",1),Q(4,"async"),yf());a&2&&(a=M(3),B(1),D("ngIf",R(2,2,a.blockedAndOpen$)),B(2),D("ngIf",R(4,4,a.blockedAndClosed$)))},E3a=function(a,b){a&1&&(G(0,"li")(1,"a",22)(2,"span",9),P(3),H(),G(4,"aside",23),J(5,"button",24),H()()());a&
2&&(a=b.$implicit,B(1),Ef("routerLink","/issues/",a,""),pf("aria-label","Issue ",a,""),B(2),If("b/",a,""))},F3a=function(a){a&1&&(G(0,"h4",15),P(1,"Loading..."),H(),G(2,"ol",20),O(3,E3a,6,3,"li",21),H());a&2&&(a=M(2).$implicit,B(3),D("ngForOf",a))},G3a=function(a,b){a&1&&(xf(0),G(1,"a",25),P(2," View as search results "),H(),yf());a&2&&(a=b.ngIf,B(1),D("routerLink",a.path)("queryParams",a.params))},H3a=function(a){if(a&1){var b=x();O(0,D3a,5,6,"ng-container",12);Q(1,"async");O(2,F3a,4,1,"ng-template",
null,13,gg);G(4,"aside",14)(5,"button",11);K("click",function(){z(b);var d=M(2);return A(u3a(d))});P(6," Add ");H();O(7,G3a,3,2,"ng-container",1);Q(8,"async");H()}if(a&2){var c=Hf(3);a=M(2);D("ngIf",R(1,3,a.issuesBeingBlocked$))("ngIfElse",c);B(7);D("ngIf",R(8,5,a.searchUrl$))}},I3a=function(a,b){a&1&&(xf(0),O(1,v3a,11,2,"div",3),O(2,H3a,9,7,"ng-template",null,4,gg),yf());if(a&2){a=b.$implicit;var c=Hf(3);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},J3a=function(a){a&1&&(G(0,"aside",26),J(1,"b-spinner"),
H())},K3a=function(a){if(a&1){var b=x();G(0,"button",4);K("click",function(c){z(b);M().expansionChange.emit();c.stopPropagation();return A()});J(1,"b-icon",5);H()}a&2&&(a=M(),sf("collapsed",!a.expanded),nf("aria-label",a.expanded?"Collapse children":"Expand children"))},L3a=function(a){a&1&&J(0,"div",6)},M3a=function(a){a&1&&(G(0,"p",7),P(1,"none"),H())},N3a=function(a){a&1&&J(0,"b-issue-card",11,12);if(a&2){var b=Hf(1);a=M().$implicit;var c=M(2);D("onedevIsHovercardReady",b.init)("issueId",a)("childContextId",
c.issueId)}},O3a=function(a,b){a&1&&(xf(0),G(1,"a",8),P(2),H(),P(3),G(4,"onedev-hovercard",null,9),O(6,N3a,2,3,"b-issue-card",10),H(),yf());if(a&2){a=b.$implicit;b=b.last;var c=Hf(5),d=M().$implicit,e=M();B(1);pf("aria-label","Open issue ",a,"");D("routerLink",e.issueDetailsRoute(a).path)("onedevHovercardTrigger",c);B(1);Jf(d[1][a]||a);B(1);If("",b?"":", "," ")}},P3a=function(a,b){a&1&&(G(0,"section",4),O(1,M3a,2,0,"p",5),O(2,O3a,7,5,"ng-container",6),H());a&2&&(a=b.$implicit,B(1),D("ngIf",0===a[0].length),
B(1),D("ngForOf",a[0]))},Q3a=function(a){a&1&&(G(0,"section",13),P(1,"loading..."),H())},R3a=function(a){var b=1<a.length,c={};a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value;if(null!=e){d=e.issueId;var f=void 0;e=null==(f=e.snapshot[0])?void 0:f.title;c[d]=b?oya(e):e}}return c},S3a=function(a,b){a&1&&(xf(0),J(1,"b-issues-table",1),yf());a&2&&(a=b.ngIf,b=M(),B(1),D("issueIds",a)("tableColumns",b.tableColumns)("menuItemFactory",b.getMenuItems)("initialSort",b.initialSort))},Vs=function(a,
b){return a===b?!0:(null==a?void 0:a.type)===(null==b?void 0:b.type)&&!(null==a||!a.ancestorChain.equals(null==b?void 0:b.ancestorChain))},T3a=function(a,b){var c=function(){return{position:d,rowElement:b}};if(b.classList.contains("dragging")||b.classList.contains("nodrop")||b.classList.contains("mat-header-row")){var d="none";return c()}var e=Ws(b),f=b.nextElementSibling&&Ws(b.nextElementSibling),h=b.previousElementSibling&&Ws(b.previousElementSibling);if("top"===a){var k;if((null==(k=b.previousElementSibling)?
0:k.classList.contains("dragging"))&&h===e)return d="none",c();d="before";return c()}if("bottom"===a){if(null!=f&&e<f){var q;if(null==(q=b.nextElementSibling)?0:q.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var w;if((null==(w=b.nextElementSibling)?0:w.classList.contains("dragging"))&&e===f)return d="none",c();d="after";return c()}d="current";return c()},Ws=function(a){return Number(a.dataset.level)},Ys=function(a){var b;return Xs(null!=(b=a.dataset.ancestorchain)?
b:"")},U3a=function(a){a&1&&J(0,"th",27)},V3a=function(a){if(a&1){var b=x();G(0,"td",28,29);K("click",function(c){z(b);Hf(1).focus();return A(c.stopPropagation())});H()}},W3a=function(a){a&1&&J(0,"th",27)},X3a=function(a){if(a&1){var b=x();G(0,"td",30,31);K("click",function(c){z(b);Hf(1).focus();return A(c.stopPropagation())})("dragstart",function(c){z(b);var d=M();return A(d.handleDragStart(c))});J(2,"mat-icon",32);H()}},Y3a=function(a){a&1&&(G(0,"th",27),P(1," Id "),H())},Z3a=function(a,b){a&1&&
(G(0,"td",33),J(1,"b-issue-id-cell",34),H());a&2&&(a=b.$implicit,B(1),D("id",a.id))},$3a=function(a){a&1&&(G(0,"th",27),P(1," Id "),H())},a4a=function(a){a&1&&(G(0,"td",33),P(1,"--"),H())},b4a=function(a){a&1&&(G(0,"th",27),P(1," Title "),H())},c4a=function(a,b){if(a&1){var c=x();G(0,"td",33)(1,"b-expandable-issue-title-cell",35);K("expansionChange",function(){var d=z(c).$implicit,e=M();return A(e.toggleExpansion(d))});Q(2,"async");Q(3,"async");H()()}a&2&&(a=b.$implicit,B(1),D("issue",R(2,4,a.issue$))("expandable",
R(3,6,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},d4a=function(a){a&1&&(G(0,"th",27),P(1," Type "),H())},e4a=function(a,b){a&1&&(G(0,"td",33),J(1,"b-issue-type-cell",36),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},f4a=function(a){a&1&&(G(0,"th",27),P(1," Assignee "),H())},g4a=function(a,b){a&1&&(G(0,"td",33),J(1,"b-issue-assignee-cell",36),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},h4a=function(a){a&1&&(G(0,"th",27),P(1,
" Status "),H())},i4a=function(a,b){a&1&&(G(0,"td",33),J(1,"b-issue-status-cell",36),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},j4a=function(a){a&1&&(G(0,"th",27),P(1," Team "),H())},k4a=function(a,b){a&1&&(G(0,"td",33),J(1,"b-issue-team-cell",36),Q(2,"async"),H());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},l4a=function(a){a&1&&J(0,"th",27)},m4a=function(a,b){a&1&&(G(0,"td",33)(1,"b-actions-menu",37),K("click",function(c){return c.stopPropagation()}),H()());
a&2&&(a=b.$implicit,b=M(),B(1),D("menuItems",b.getMenuItems(a)))},n4a=function(a){a&1&&J(0,"th",27)},o4a=function(a){if(a&1){var b=x();G(0,"button",41);K("click",function(){z(b);var c=M().$implicit,d=M();return A(d.saveDraft(c))});J(1,"mat-icon",42);H()}a&2&&D("matTooltip","Save issue (Enter)")},p4a=function(a){a&1&&J(0,"b-spinner")},q4a=function(a,b){a&1&&(G(0,"td",38),O(1,o4a,2,1,"button",39),O(2,p4a,1,0,"ng-template",null,40,gg),H());if(a&2){a=b.$implicit;var c=Hf(3);B(1);D("ngIf",!a.saving)("ngIfElse",
c)}},s4a=function(a,b){if(a&1){var c=x();G(0,"td",33)(1,"b-async-data-placeholder",43);Q(2,"async");G(3,"b-button",44);K("onAction",function(){var d=z(c).$implicit,e=M();return A(r4a(e,d))});G(4,"span",45);P(5);H()()()()}a&2&&(a=b.$implicit,b=M(),rf("padding-left",24*a.level+b.TITLE_FIXED_OFFSET_PX,"px"),nf("colspan",b.tableColumns.length),B(1),D("isReady",!!R(2,5,a.parentIssue$)),B(4),If("Display ",a.truncatedSiblingCount," more"))},t4a=function(a){a&1&&(G(0,"th",27),P(1," Title "),H())},u4a=function(a,
b){if(a&1){var c=x();G(0,"td",33)(1,"b-text-input-cell",46);K("valueChange",function(d){var e=z(c).$implicit;return A(e.title=d)})("commit",function(){var d=z(c).$implicit,e=M();return A(e.saveDraft(d))});H()()}a&2&&(a=b.$implicit,rf("padding-left",24*(a.level+1),"px"),B(1),D("value",a.title)("readonly",a.saving))},v4a=function(a){a&1&&J(0,"tr",47)},x4a=function(a,b){if(a&1){var c=x();G(0,"tr",48);K("click",function(d){var e=z(c).$implicit,f=M();return A(f.navigateToIssue(d,e))})("mouseup",function(d){var e=
z(c).$implicit,f=M();return A(f.navigateToIssue(d,e))})("focusin",function(){var d=z(c).$implicit,e=M();return A(Us(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=M();return A(f.onRowKeydown(e,d))});Q(1,"async");H()}a&2&&(a=b.$implicit,b=M(),sf("selected",R(1,6,w4a(b.selectionModel,a.ancestorChain))),D("row",a),nf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},y4a=function(a,b){if(a&1){var c=x();G(0,"tr",49);K("focusin",function(){var d=
z(c).$implicit,e=M();return A(Us(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=M();return A(f.onRowKeydown(e,d))});H()}a&2&&(a=b.$implicit,D("row",a),nf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},A4a=function(a,b){if(a&1){var c=x();G(0,"tr",50);K("keydown",function(d){var e=z(c).$implicit,f=M();return A(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=z(c).$implicit,e=M();return A(z4a(e,d))})("componentBlur",function(){var d=
z(c).$implicit,e=M();return A(z4a(e,d))})("focusin",function(){var d=z(c).$implicit,e=M();return A(Us(e.focusManager,d))});H()}a&2&&(a=b.$implicit,D("row",a),nf("data-type",a.type))},Zs=function(a){var b=B4a(a.open);a=B4a(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},B4a=function(a){var b=a.count;a=a.exact;return 0===b||a?""+b:b+"+"},$s=function(a){return"("+B4a(a)+")"},at=function(a){return{count:99<a?99:a,exact:99<a?!1:!0}},C4a=function(a,b){switch(b){case "BLOCKED_BY":return"blockingid:"+a+
" status:open";case "BLOCKING":return"blockedbyid:"+a+" status:open";case "DUPLICATE":return"canonicalid:"+a;case "CHILDREN":return"parentid:"+a+" status:open";default:bh(b)}},D4a=function(a){a&1&&J(0,"b-spinner")},E4a=function(a){a&1&&zf(0)},F4a=function(a){a&1&&(xf(0),O(1,E4a,1,0,"ng-container",20),yf());if(a&2){M();var b=Hf(43);B(1);D("ngTemplateOutlet",b)}},G4a=function(a){a&1&&(J(0,"b-blockers-table",22),Q(1,"async"));if(a&2){a=M().ngIf;var b=M();D("issueId",a)("blockerIds",R(1,2,b.blockerIds$))}},
H4a=function(a){a&1&&(xf(0),O(1,G4a,2,4,"b-blockers-table",21),Q(2,"async"),yf());if(a&2){a=M();var b=Hf(24);B(1);D("ngIf",R(2,2,a.blockersCount$))("ngIfElse",b)}},I4a=function(a){a&1&&zf(0)},J4a=function(a){a&1&&(G(0,"div")(1,"span",23),P(2,"This issue is not blocked "),G(3,"span",24),P(4,"\ud83c\udf89"),H()(),O(5,I4a,1,0,"ng-container",20),H());if(a&2){M();var b=Hf(43);B(5);D("ngTemplateOutlet",b)}},K4a=function(a){a&1&&zf(0)},L4a=function(a){a&1&&(xf(0),O(1,K4a,1,0,"ng-container",20),yf());if(a&
2){M();var b=Hf(45);B(1);D("ngTemplateOutlet",b)}},M4a=function(a){a&1&&(G(0,"div",25)(1,"section",26)(2,"div",27),P(3," Progress: "),H(),G(4,"div",27),P(5),Q(6,"number"),Q(7,"async"),Q(8,"number"),Q(9,"async"),H(),G(10,"div",28),Q(11,"async"),G(12,"div",29)(13,"div",30),Q(14,"async"),H(),G(15,"onedev-hovercard",null,31)(17,"div",32)(18,"div",33),P(19),Q(20,"async"),H()()()()(),J(21,"mat-icon",34),G(22,"onedev-hovercard",null,35)(24,"div",32)(25,"div",36)(26,"p"),P(27," The progress of child issues takes into consideration all child issues and descendant issues which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is not reflected in the progress bar. "),
H()()()()()());if(a&2){var b=Hf(16),c=Hf(23);a=M();B(5);Kf(" ",Rf(6,8,R(7,11,a.totalDaysComplete$),"1.0-2")," of ",Rf(8,13,R(9,16,a.totalDaysCount$),"1.0-2")," days complete ");B(5);pf("aria-label","",R(11,18,a.totalDaysDisplayPercent$)," Percentage of effort completed");B(2);D("onedevHovercardTrigger",b);B(1);rf("width",R(14,20,a.totalDaysDisplayPercent$),"%");B(6);If(" ",R(20,22,a.progressHovercardContent$)," ");B(2);D("onedevHovercardTrigger",c)}},N4a=function(a,b){a&1&&(J(0,"b-issue-relations-table",
37),Q(1,"async"));if(a&2){a=b.ngIf;b=M();var c;sf("hidden",0===((null==(c=R(1,3,null==b.table?null:b.table.rows$))?null:c.length)||0));D("rootIssueId",a)}},O4a=function(a){a&1&&zf(0)},P4a=function(a){a&1&&(xf(0),G(1,"span",23),P(2,"This issue has no children"),H(),O(3,O4a,1,0,"ng-container",20),yf());if(a&2){M(2);var b=Hf(45);B(3);D("ngTemplateOutlet",b)}},Q4a=function(a){a&1&&(xf(0),O(1,P4a,4,1,"ng-container",5),Q(2,"async"),Q(3,"async"),yf());if(a&2){a=M();var b;B(1);D("ngIf",0===R(2,1,a.unarchivedChildIssueCount$)&&
0===((null==(b=R(3,3,null==a.table?null:a.table.rows$))?null:b.length)||0))}},S4a=function(a){if(a&1){var b=x();G(0,"b-button",38);K("onAction",function(){z(b);var c=M();return A(R4a(c))});Q(1,"async");P(2," Add ");H()}a&2&&(a=M(),D("disabled",!R(1,1,a.canEdit$)))},T4a=function(a){if(a&1){var b=x();G(0,"b-button",39);K("onAction",function(){z(b);var c=M();return A(c.createChild())});Q(1,"async");P(2," Create ");H();G(3,"b-button",40);K("onAction",function(){z(b);var c=M();return A(c.addChild())});
Q(4,"async");P(5," Add ");H()}a&2&&(a=M(),D("disabled",!R(1,2,a.canEdit$)),B(3),D("disabled",!R(4,4,a.canEdit$)))},U4a=function(a,b){return(0,T.combineLatest)([a,b]).pipe(C(function(c){var d=r(c);c=d.next().value;d=d.next().value;return 0===d?0:Math.round(100*c/d*100)/100}))},V4a=function(a){return 1===a?a+" day":a+" days"},W4a=function(a){a&1&&(Lc(),Mc(),xf(0),P(1),yf());a&2&&(a=M(),B(1),If("Insights (",a.availablePanels.size,")"))},X4a=function(a,b){if(a&1){var c=x();G(0,"button",19);K("click",
function(){var d=z(c).$implicit;M().openSidebar.emit({panel:d.panel});return A()});P(1);H()}a&2&&(a=b.$implicit,b=M(),D("disabled",!b.availablePanels.has(a.panel)),B(1),If(" ",a.label," "))},Y4a=function(a){if(a&1){var b=x();G(0,"b-insights-graph-menu",2);K("openSidebar",function(d){z(b);var e=M(2);return A(e.openSidebar(d.panel))});H()}if(a&2){a=M().ngIf;var c=M();D("availablePanels",a)("iconOnly",c.iconOnly)("buttonClassname",c.buttonClassname)}},Z4a=function(a){a&1&&(xf(0),O(1,Y4a,1,3,"b-insights-graph-menu",
1),Q(2,"async"),yf());a&2&&(a=M(),B(1),D("ngIf",R(2,1,a.shouldShowInsightsGraphMenu$)))},a5a=function(a,b){if(a&1){var c=x();G(0,"button",1);K("click",function(){z(c);var d=M();return A($4a(d))});Q(1,"async");P(2);H()}a&2&&(a=b.ngIf,b=M(),D("disabled",b.disabled||b.fridge.isSaving(b.internalIssueId)||!1===R(1,3,b.canEdit$))("title",a.isDupe?b.TOOLTIP_UNMARK_DUPE:b.TOOLTIP_MARK_DUPE),B(2),If(" ",a.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},b5a=function(a){a&1&&zf(0)},c5a=function(a){a&1&&
(xf(0),O(1,b5a,1,0,"ng-container",5),yf());a&2&&(a=M(),B(1),D("ngTemplateOutlet",a.content))},d5a=function(a,b){if(a&1){var c=x();G(0,"button",12);K("click",function(e){var f=z(c).$implicit;return A(f.action(e))});J(1,"mat-icon",13);P(2);H()}if(a&2){a=b.$implicit;var d;D("disabled",a.disabled)("title",a.title);nf("aria-label",a.title);B(1);D("svgIcon",null!==(d=a.icon)&&void 0!==d?d:"");B(1);If(" ",a.label," ")}},e5a=function(a){if(a&1){var b=x();xf(0);G(1,"button",14);K("click",function(d){z(b);
var e=M(2);d.stopPropagation();d.preventDefault();var f;null==(f=e.helpHover)||f.toggle();return A()});J(2,"mat-icon",15);P(3," Retention: ");J(4,"retention-text",16);P(5," \u00a0 ");J(6,"help-hover",17);H();yf()}if(a&2){a=M().ngIf;var c=Hf(13);B(4);D("retentionState",a.retentionState);B(2);D("content",c)}},f5a=function(a){a&1&&(xf(0),J(1,"retention-help-text",18),yf());a&2&&(a=M(2).ngIf,B(1),D("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},g5a=function(a){a&1&&O(0,
f5a,2,2,"ng-container",0);a&2&&(a=M().ngIf,D("ngIf",a.retentionState&&a.modifiedTimeMilliseconds))},h5a=function(a,b){if(a&1){var c=x();xf(0);J(1,"b-app-vote-button",1);G(2,"smart-dupe-btn",2,3);K("onHotkey",function(){z(c);var e=Hf(3);return A($4a(e))});H();G(4,"b-notification-menu",4);K("subscriptionChange",function(e){z(c);var f=M();return A(f.updateSubscription(e))})("showNotificationSettings",function(e){z(c);var f=M();return A(f.showNotificationSettings(e))});H();J(5,"insights-graph-menu-smart",
5);G(6,"button",6);J(7,"mat-icon",7);H();G(8,"mat-menu",8,9);O(10,d5a,3,5,"button",10);O(11,e5a,7,2,"ng-container",0);H();O(12,g5a,1,1,"ng-template",null,11,gg);yf()}if(a&2){a=b.ngIf;var d=Hf(9);b=M();B(1);D("issueId",a.issueId)("voteCount",a.voteCount)("upvoted",a.voted)("isNewVoteButton",!0);B(1);D("issueId",a.issueId)("hotkey",b.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(2);D("subscription",a.notificationSubscription)("issueId",a.issueId)("iconOnly",!0);B(1);D("iconOnly",!0);B(1);D("matMenuTriggerFor",
d);B(4);D("ngForOf",a.menuItems);B(1);D("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime)}},i5a=function(a){a&1&&(G(0,"div",3),J(1,"mat-icon",4),G(2,"span",5),P(3),Q(4,"async"),H()());if(a&2){a=M();var b;B(3);If("",null==(b=R(4,1,a.issues$))?null:b.length," parent issues")}},j5a=function(a){a&1&&(G(0,"div",3),J(1,"mat-icon",6),G(2,"span",5),P(3),Q(4,"async"),H()());if(a&2){a=M();var b;B(3);If("Blocked by ",null==(b=R(4,1,a.issues$))?null:b.length," issues")}},k5a=function(a,
b){a&1&&(xf(0),G(1,"div"),P(2),H(),yf());a&2&&(a=b.$implicit,b=M(4),B(1),vf("b-chip xs squared status status",a,""),B(1),Jf(b.STATUS_TERSE[a]))},l5a=function(a){a&1&&(xf(0),G(1,"a",8)(2,"div",9)(3,"div",10)(4,"div",11),P(5),H(),G(6,"div",12),P(7),H()(),G(8,"div",10)(9,"div",13),P(10),H(),O(11,k5a,3,4,"ng-container",2),H()()(),yf());if(a&2){var b=M();a=b.$implicit;b=b.last;var c=M(2);B(1);Ef("routerLink","/issues/",a.issueId,"");B(1);sf("border-bottom",!b);B(3);Jf(a.issueId);B(2);Jf(a.snapshot[0].title);
B(2);D("ngClass",c.priorityClass(a.snapshot[0].priority));B(1);Jf(a.snapshot[0].priority);B(1);D("ngIf",c.IssueStatus_strToTag[a.snapshot[0].status])}},m5a=function(a,b){a&1&&(xf(0),O(1,l5a,12,8,"ng-container",2),yf());a&2&&(a=b.index,B(1),D("ngIf",5>a))},o5a=function(a){if(a&1){var b=x();xf(0);G(1,"div",14)(2,"button",15);K("click",function(){z(b);var c=M(2);return A(n5a(c))});P(3,"View all parent issues");H()();yf()}},p5a=function(a){if(a&1){var b=x();xf(0);G(1,"div",14)(2,"button",15);K("click",
function(){z(b);var c=M(2),d;null==(d=c.hovercardInstance)||d.closeHovercard$.next();bt(c.router,"/issues/"+c.currentIssueId+"/dependencies");return A()});P(3,"View all blockers");H()();yf()}},q5a=function(a,b){a&1&&(G(0,"div"),O(1,m5a,2,1,"ng-container",7),O(2,o5a,4,0,"ng-container",2),O(3,p5a,4,0,"ng-container",2),H());a&2&&(a=b.$implicit,b=M(),B(1),D("ngForOf",a),B(1),D("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),D("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES))},
r5a=function(a){a&1&&J(0,"mat-icon",7)},s5a=function(a){a&1&&(xf(0),J(1,"b-list-issues-card",8,9),yf());if(a&2){var b=Hf(2);M();var c=Hf(5);a=M();B(1);D("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",a.multiParentIds)("mode",a.ListIssuesHovercardMode.PARENT_ISSUES)}},t5a=function(a){a&1&&(xf(0),G(1,"a",3),P(2,"\u2026"),H(),O(3,r5a,1,0,"mat-icon",4),G(4,"onedev-hovercard",null,5),O(6,s5a,3,5,"ng-container",6),H(),yf());if(a&2){var b=Hf(5);a=M();B(1);
D("onedevHovercardTrigger",b);B(2);D("ngIf",1<a.multiParentIds.length)}},u5a=function(a){a&1&&J(0,"b-issue-card",13,9);if(a&2){var b=Hf(1);a=M().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a)}},v5a=function(a,b){a&1&&(xf(0),G(1,"onedev-hovercard",null,10),O(3,u5a,2,2,"b-issue-card",11),H(),G(4,"b-issue-reference-widget",12),P(5),H(),J(6,"mat-icon",7),yf());if(a&2){a=b.$implicit;b=b.last;var c=Hf(2),d=M();B(4);D("href",d.getIssueLink(a))("issueId",a)("onedevHovercardTrigger",c);B(1);d.issueIdToTitle.has(a)?
(a=d.issueIdToTitle.get(a),a=oya(a)):a=String(a);Jf(a);B(1);sf("last",b)}},w5a=function(a){a&1&&(xf(0),P(1," > "),yf())},x5a=function(a,b){a&1&&(xf(0),G(1,"a",7),P(2),H(),O(3,w5a,2,0,"ng-container",3),yf());a&2&&(a=b.$implicit,b=b.last,B(1),pf("aria-label","View recent issues in ",a.name,""),D("routerLinkObj",a.route),B(1),Jf(a.name),B(1),D("ngIf",!b))},y5a=function(a){a&1&&(G(0,"span"),P(1," [Archived]"),H())},z5a=function(a){a&1&&(G(0,"div",5),O(1,x5a,4,4,"ng-container",6),Q(2,"async"),O(3,y5a,
2,0,"span",3),Q(4,"async"),H());a&2&&(a=M(),B(1),D("ngForOf",R(2,2,a.componentPath$)),B(2),D("ngIf",R(4,4,a.isArchived$)))},A5a=function(a,b){a&1&&(xf(0),G(1,"div",8),J(2,"mat-icon",9),G(3,"div",10),P(4),H()(),G(5,"p",11),P(6),H(),G(7,"p",10),P(8),H(),yf());a&2&&(a=b.$implicit,B(4),Jf(a.name),B(2),If("Component ID: ",a.componentId,""),B(2),Jf(a.description))},B5a=function(a,b){a&1&&(G(0,"div",12)(1,"a",13),P(2,"View recent open issues"),H(),G(3,"a",14),P(4,"View component settings"),H(),G(5,"a",15),
P(6,"Create issue in this component"),H()());a&2&&(a=b.$implicit,B(1),D("routerLinkObj",a.recentIssues),B(2),D("routerLinkObj",a.componentSettings),B(2),D("routerLinkObj",a.createIssue))},C5a=function(a){a&1&&(xf(0),J(1,"b-component-path-card",16,17),yf());if(a&2){var b=Hf(2);a=M().$implicit;B(1);D("onedevIsHovercardReady",b.init)("componentId",a.id)}},D5a=function(a,b){if(a&1){var c=x();xf(0);G(1,"a",12);K("click",function(){z(c);var e=M(4);return A(e.showLeafOnly=!1)});P(2,"\u2026");H();P(3," > ");
G(4,"a",13);P(5);H();G(6,"onedev-hovercard",null,14);O(8,C5a,3,2,"ng-container",15);H();yf()}if(a&2){a=b.$implicit;var d=Hf(7);B(4);D("routerLinkObj",a.route)("onedevHovercardTrigger",d);B(1);Jf(a.name)}},E5a=function(a){a&1&&(xf(0),O(1,D5a,9,3,"ng-container",6),yf());a&2&&(a=M().$implicit,B(1),D("ngIf",a[a.length-1]))},F5a=function(a){a&1&&(xf(0),P(1," > "),yf())},G5a=function(a){a&1&&(xf(0),J(1,"b-component-path-card",19,17),yf());if(a&2){var b=Hf(2);a=M().$implicit;B(1);D("onedevIsHovercardReady",
b.init)("componentId",a.id)("hidePath",!0)}},H5a=function(a,b){a&1&&(xf(0),G(1,"a",13),P(2),H(),O(3,F5a,2,0,"ng-container",6),G(4,"onedev-hovercard",null,14),O(6,G5a,3,3,"ng-container",15),H(),yf());if(a&2){a=b.$implicit;b=b.last;var c=Hf(5);B(1);sf("muted",a.name==a.id);D("routerLinkObj",a.route)("onedevHovercardTrigger",c);B(1);Jf(a.name);B(1);D("ngIf",!b)}},I5a=function(a){a&1&&O(0,H5a,7,6,"ng-container",18);a&2&&(a=M().$implicit,D("ngForOf",a))},J5a=function(a,b){a&1&&(G(0,"span",9),O(1,E5a,2,
1,"ng-container",10),O(2,I5a,1,1,"ng-template",null,11,gg),H());if(a&2){a=b.$implicit;var c=Hf(3);b=M(2);B(1);D("ngIf",b.showLeafOnly&&1<a.length)("ngIfElse",c)}},K5a=function(a){a&1&&(G(0,"span"),P(1,"[Archived]"),H())},L5a=function(a){if(a&1){var b=x();G(0,"b-async-data-placeholder",2);Q(1,"async");G(2,"div",3);J(3,"mat-icon",4);O(4,J5a,4,2,"span",5);Q(5,"async");O(6,K5a,2,0,"span",6);Q(7,"async");G(8,"button",7);K("click",function(){z(b);M().editing=!0;return A()});J(9,"mat-icon",8);H()()()}a&
2&&(a=M(),D("isReady",R(1,3,a.isReady$)),B(4),D("ngIf",R(5,5,a.componentPath$)),B(2),D("ngIf",R(7,7,a.isArchived$)))},N5a=function(a){if(a&1){var b=x();G(0,"b-team-component-picker",20);K("selectedComponentChange",function(c){z(b);var d=M();d.editing=!1;c&&M5a(d.issueEditComponentService,d.issueId,c);return A()})("dropdownClosed",function(){z(b);M().editing=!1;return A()});Q(1,"async");H()}a&2&&(a=M(),D("selectedComponent",R(1,3,a.component$))("isRequired",!0)("shouldFocus",!0))},O5a=function(a){a&
1&&(G(0,"h3",3,4),P(2),H());a&2&&(a=M(),nf("title",(null==a.title?0:200<=a.title.length)?a.title:""),B(2),If(" ",a.title,"\n"))},R5a=function(a){if(a&1){var b=x();G(0,"mat-form-field",5)(1,"input",6,7);K("keyup",function(c){z(b);var d=M();return A(P5a(d,c))})("blur",function(){z(b);var c=M();return A(P5a(c,null))});H()()}a&2&&(a=M(),D("ngStyle",Nf(2,Q5a,a.editModeWidth)),B(1),D("value",a.title))},T5a=function(a){if(a&1){var b=x();G(0,"button",8);K("click",function(){z(b);var c=M();return A(S5a(c))});
J(1,"mat-icon",9);H()}a&2&&(a=M(),D("disabled",a.disabled))},U5a=function(a){a&1&&(G(0,"div",4),J(1,"mat-icon",5),P(2),Q(3,"async"),H());if(a&2){a=M();var b=Hf(4);D("onedevHovercardTrigger",b);B(2);If("",R(3,2,a.teamName$)," ")}},V5a=function(a){a&1&&zf(0)},W5a=function(a){a&1&&(xf(0),O(1,V5a,1,0,"ng-container",14),yf());if(a&2){M();var b=Hf(21);B(1);D("ngTemplateOutlet",b)}},X5a=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M().$implicit,B(1),If(" ",a," "))},Y5a=function(a,b){a&1&&(G(0,"div",15),J(1,
"mat-icon",16),O(2,X5a,2,1,"ng-container",17),H());if(a&2){a=b.$implicit;M();var c=Hf(18);D("onedevHovercardTrigger",c);B(2);D("ngIf",2<=a)}},Z5a=function(a){a&1&&(xf(0),J(1,"b-list-issues-card",18,19),Q(3,"async"),yf());if(a&2){var b=Hf(2);a=M();var c=Hf(18);B(1);D("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",R(3,5,a.blockedByids$))("mode",a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},$5a=function(a,b){a&1&&J(0,"ancestors-breadcrumbs",25);a&2&&(a=
b.ngIf,b=M(3),D("ancestors",a)("issueId",b.issueId))},a6a=function(a){a&1&&(xf(0),J(1,"b-component-breadcrumb-chip",21),Q(2,"async"),G(3,"div",22),O(4,$5a,1,2,"ancestors-breadcrumbs",23),Q(5,"async"),J(6,"b-issue-id-picker",24),Q(7,"async"),Q(8,"async"),Q(9,"async"),H(),yf());a&2&&(a=M(2),B(1),D("componentId",R(2,8,a.componentId$))("showLeafOnly",!0)("issueId",a.issueId),B(3),D("ngIf",R(5,10,a.ancestors$)),B(2),D("issueId",a.issueId)("componentId",R(7,12,a.componentId$))("issueTitle",R(8,14,a.issueTitle$))("isExternalIssue",
!!R(9,16,a.isWithinExternalComponent$)))},b6a=function(a){if(a&1){var b=x();G(0,"b-team-chip",20);K("onTeamLoaded",function(){z(b);var c=M();return A(c.isTeamLoaded=!0)});Q(1,"async");Q(2,"async");H();O(3,a6a,10,18,"ng-container",17)}a&2&&(a=M(),D("componentId",R(1,3,a.componentId$))("teamId",R(2,5,a.teamId$)),B(3),D("ngIf",a.isTeamLoaded))},c6a=function(a){a&1&&(xf(0),J(1,"b-component-breadcrumb-chip",26),Q(2,"async"),G(3,"div",27),J(4,"b-issue-id-picker",28),Q(5,"async"),Q(6,"async"),Q(7,"async"),
H(),yf());a&2&&(a=M(2),B(1),D("componentId",R(2,6,a.componentId$))("issueId",a.issueId),B(3),D("issueId",a.issueId)("componentId",R(5,8,a.componentId$))("issueTitle",R(6,10,a.issueTitle$))("isExternalIssue",!!R(7,12,a.isWithinExternalComponent$)))},d6a=function(a){if(a&1){var b=x();G(0,"b-team-chip",20);K("onTeamLoaded",function(){z(b);var c=M();return A(c.isTeamLoaded=!0)});Q(1,"async");Q(2,"async");H();O(3,c6a,8,14,"ng-container",17)}a&2&&(a=M(),D("componentId",R(1,3,a.componentId$))("teamId",R(2,
5,a.teamId$)),B(3),D("ngIf",a.isTeamLoaded))},e6a=function(a){return 1===a?"Blocked":"Blocked by "+a+" issues"},f6a=function(a){if(0!==a.length)return 1===a.length?ct.ISSUE(a[0]):ct.ISSUE_LIST},g6a=function(a){a&1&&(G(0,"output"),P(1),Q(2,"async"),H());if(a&2){a=M().ngIf;var b=M();B(1);Kf(" ",a," of ",R(2,2,b.currentSearchResults.totalText$)," ")}},i6a=function(a,b){if(a&1){var c=x();xf(0);O(1,g6a,3,4,"output",0);G(2,"span",1)(3,"button",2);K("onHotkey",function(){z(c);var d=M();return A(Os(d.currentSearchResults))})("click",
function(){z(c);var d=M();return A(Os(d.currentSearchResults))});Q(4,"async");J(5,"mat-icon",3);H();G(6,"button",4);K("onHotkey",function(){z(c);var d=M();return A(Ps(d.currentSearchResults))})("click",function(){z(c);var d=M();return A(Ps(d.currentSearchResults))});Q(7,"async");J(8,"mat-icon",5);H()();yf()}a&2&&(a=b.ngIf,b=M(),B(1),D("ngIf",-1!==a),B(1),D("ngClass",Nf(10,h6a,-1===a)),B(1),D("hotkey",b.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!R(4,6,b.currentSearchResults.hasPreviousIssue$)),B(3),
D("hotkey",b.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!R(7,8,b.currentSearchResults.hasNextIssue$)))},j6a=function(a){a&1&&J(0,"b-access-level-indicator",5);a&2&&(a=M(2).$implicit,D("accessLevel",a.accessLevel))},k6a=function(a){a&1&&J(0,"b-retention-chip",6);a&2&&(a=M(2).$implicit,D("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},l6a=function(a){a&1&&(G(0,"div",2),O(1,j6a,1,1,"b-access-level-indicator",3),O(2,k6a,1,3,"b-retention-chip",4),H());a&2&&(a=M().$implicit,
B(1),D("ngIf",a.isShowingPublicPartner),B(1),D("ngIf",a.isShowingRetention))},m6a=function(a,b){a&1&&(xf(0),O(1,l6a,3,2,"div",1),yf());a&2&&(a=b.$implicit,B(1),D("ngIf",a.isShowingPublicPartner||a.isShowingRetention))},n6a=function(a,b){b&&(null!=b.autocompleteGroupingType&&a.setAutocompleteGroupingType(b.autocompleteGroupingType),null!=b.autocompleteGroupingLabel&&a.setAutocompleteGroupingLabel(b.autocompleteGroupingLabel),null!=b.autocompleteHeader&&a.setAutocompleteHeader(b.autocompleteHeader),
null!=b.autocompleteMaxResultsBeforeScroll&&a.setAutocompleteMaxResultsBeforeScroll(b.autocompleteMaxResultsBeforeScroll),null!=b.density&&a.setDensity(b.density),null!=b.moveAutocompleteAboveAnchorIfOffscreen&&a.setMoveAutocompleteAboveAnchorIfOffscreen(b.moveAutocompleteAboveAnchorIfOffscreen),null!=b.autoActivateFirstSuggestion&&a.setAutoActivateFirstSuggestion(b.autoActivateFirstSuggestion),null!=b.showSuggestions&&a.setShowSuggestions(b.showSuggestions))},o6a=function(a){if(a&1){var b=x();G(0,
"input",3,4);K("peoplekitAutocompleteSelectionChange",function(c){z(b);var d=M();0<c.length&&(d.inputValue=c[0].result().getPrimaryTarget().getValue());return A()})("ngModelChange",function(c){z(b);var d=M();return A(d.inputValue=c)});H()}a&2&&(a=M(),D("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("ngModel",a.inputValue))},p6a=function(a){a&1&&zf(0)},r6a=function(a){a&1&&(xf(0),O(1,p6a,1,0,"ng-container",6),yf());a&2&&(a=M(),B(1),D("ngTemplateOutlet",
a.selectedUserTemplate)("ngTemplateOutletContext",Nf(2,q6a,a.email)))},s6a=function(a){a&1&&P(0);a&2&&(a=M(),If(" ",a.email," "))},t6a=function(a){a&1&&(Lc(),G(0,"svg",7),J(1,"path",8),H())},u6a=function(a){a&1&&J(0,"b-user-membership-chip",4);if(a&2){a=M().$implicit;var b=M(),c;D("email",a)("teamId",null!==(c=b.teamId)&&void 0!==c?c:"")("enableSmallChip",!0)}},v6a=function(a,b){a&1&&O(0,u6a,1,3,"b-user-membership-chip",3);a&2&&D("ngIf",b.$implicit)},w6a=function(a){return function(b){return rb(b,
dt,1).map(function(c){return{workspaceId:c.getWorkspaceId(),workspaceName:c.getName(),issueId:a}})}},x6a=function(a){a&1&&zf(0)},y6a=function(a){a&1&&(xf(0),O(1,x6a,1,0,"ng-container",33),yf());if(a&2){M();var b=Hf(67);B(1);D("ngTemplateOutlet",b)}},A6a=function(a,b){a&1&&J(0,"b-list-field",35);a&2&&(a=b.ngIf,b=M(3),D("readonly",!0)("defaultLineCount",3)("title","Team")("type",b.ListFieldType.TEAM)("values",Nf(5,z6a,a)))},B6a=function(a){a&1&&(xf(0),O(1,A6a,1,7,"b-list-field",34),Q(2,"async"),yf());
a&2&&(a=M(2),B(1),D("ngIf",R(2,1,a.teamHovercardInputs$)))},D6a=function(a){if(a&1){var b=x();G(0,"div",37)(1,"b-team-warning",38);K("updateTeam",function(){z(b);var h=M(3);et(h.issueFridge,h.issueId);return A()});Q(2,"async");Q(3,"async");H()()}if(a&2){a=M().ngIf;var c=M().ngIf,d=M(),e,f;B(1);D("warningType",a)("componentId",c.componentId)("parentComponentId",(null==(e=R(2,4,d.component$))?null:e.parentComponentId)||0)("teamSuggestions",null!==(f=R(3,6,d.teamSuggestions$))&&void 0!==f?f:Mf(8,C6a))}},
E6a=function(a){a&1&&(xf(0),O(1,D6a,4,9,"div",36),Q(2,"async"),yf());a&2&&(a=M(2),B(1),D("ngIf",R(2,1,a.shouldDisplayTeamSuggestions$)))},G6a=function(a){if(a&1){var b=x();xf(0);G(1,"b-edit-field",39,40);K("valueChange",function(f){z(b);var h=Hf(2),k=M(2);return A(F6a(k,h,null!==f&&void 0!==f?f:""))});Q(3,"async");Q(4,"async");Q(5,"async");H();yf()}if(a&2){a=M().ngIf;var c=M(),d,e;B(1);D("name","reporter")("title","Reporter")("type",c.FieldType.TEXT)("value",a.reporter)("user",null!==(d=a.reporterUser)&&
void 0!==d?d:void 0)("isUser",!0)("readonly",!R(3,10,c.hasAclToEdit$))("disabled",!!R(4,12,c.isSaving$("reporter")))("showAvailability",!0)("teamId",null!==(e=R(5,14,c.teamId$))&&void 0!==e?e:"")}},I6a=function(a){if(a&1){var b=x();G(0,"onedev-edit-field")(1,"onedev-field-label");P(2,"Reporter");H();G(3,"onedev-field-value",41);Q(4,"async");G(5,"b-user-picker",42);K("emailChange",function(e){z(b);var f=M(2);return A(H6a(f.editIssueService,f.issueId,e))});Q(6,"async");Q(7,"async");H()()()}if(a&2){a=
M().ngIf;var c=M(),d;B(3);D("thinking",!!R(4,4,c.isSaving$("reporter")));B(2);D("user",a.reporterUser)("teamId",null!==(d=R(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!R(7,8,c.hasAclToEdit$))}},J6a=function(a){a&1&&zf(0)},K6a=function(a){a&1&&(xf(0),O(1,J6a,1,0,"ng-container",33),yf());if(a&2){M();var b=Hf(69);B(1);D("ngTemplateOutlet",b)}},L6a=function(a,b){if(a&1){var c=x();G(0,"div",44);J(1,"div",45);G(2,"span",46);K("click",function(){var d=z(c).ngIf,e=M(3);return A(ft(e,d))})("keydown.enter",
function(d){var e=z(c).ngIf;ft(M(3),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;ft(M(3),e);d.stopPropagation();return A(d.preventDefault())});Q(3,"async");Q(4,"async");P(5);H()()}a&2&&(a=b.ngIf,b=M(3),B(2),sf("disabled",!!R(3,6,b.isSaving$("status"))),D("matTooltip",a.description||""),nf("aria-disabled",!!R(4,8,b.isSaving$("status")))("aria-label",a.displayText||null),B(3),If(" ",a.displayText," "))},M6a=function(a){a&1&&(xf(0),O(1,L6a,6,10,"div",
43),Q(2,"async"),yf());a&2&&(a=M(2),B(1),D("ngIf",R(2,1,a.issueStatusQuickAction$)))},N6a=function(a){a&1&&(J(0,"b-issue-card",47,48),Q(2,"async"));if(a&2){var b=Hf(1);a=M(2);D("onedevIsHovercardReady",b.init)("issueId",R(2,2,a.canonicalIssueId$))}},P6a=function(a){if(a&1){var b=x();G(0,"b-estimated-effort-row",49);K("effortChange",function(e){z(b);var f=M(2);return A(O6a(f.editIssueService,f.issueId,e))});Q(1,"async");Q(2,"async");H()}if(a&2){a=M(2);var c,d;D("effort",null!==(c=R(1,2,a.effort$))&&
void 0!==c?c:void 0)("effortSpec",null!==(d=R(2,4,a.effortSpec$))&&void 0!==d?d:void 0)}},R6a=function(a){a&1&&(G(0,"div"),P(1," Expanded access is turned on for this component. Assignees and verifiers can edit issues in this component, and CC'd users can comment on them. "),G(2,"a",55),P(3,"Learn more"),H()());a&2&&(a=M(3),B(2),D("href",Q6a(a.documentationLinks),Kd))},S6a=function(a){a&1&&(G(0,"div",50)(1,"span",51),P(2,"Expanded Access"),H(),G(3,"xap-bubble",52)(4,"xap-icon-trigger"),J(5,"mat-icon",
53),H(),O(6,R6a,4,1,"ng-template",null,54,gg),H()());if(a&2){var b=Hf(7);B(3);D("panelTemplate",b)}},T6a=function(a){a&1&&(G(0,"span",61),Q(1,"async"),P(2),H());if(a&2){a=M().ngIf;var b=M(4);sf("disabled",!!R(1,3,b.isSaving$("assignee")));B(2);If(" ",a.displayText," ")}},U6a=function(a,b){if(a&1){var c=x();G(0,"div",59);K("onHotkey",function(){var d=z(c).ngIf,e=M(4);return A(ft(e,d))})("click",function(){var d=z(c).ngIf,e=M(4);return A(ft(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;ft(M(4),
e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;ft(M(4),e);d.stopPropagation();return A(d.preventDefault())});Q(1,"async");J(2,"div",45);O(3,T6a,3,5,"span",60);Q(4,"async");H()}a&2&&(a=b.ngIf,b=M(4),D("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),nf("aria-disabled",!!R(1,5,b.isSaving$("assignee")))("aria-label",a.description),B(3),D("ngIf",R(4,7,b.hasAclToEdit$)))},V6a=function(a){a&1&&(xf(0),O(1,U6a,5,9,"div",58),
Q(2,"async"),yf());a&2&&(a=M(3),B(1),D("ngIf",R(2,1,a.issueAssigneeQuickAction$)))},X6a=function(a){if(a&1){var b=x();xf(0);G(1,"b-edit-field",56,57);K("onHotkey",function(){z(b);var f=Hf(2);return A(dp(f,null,!0,!1))})("valueChange",function(f){z(b);var h=Hf(2),k=M(2);return A(W6a(k,h,null!==f&&void 0!==f?f:""))});Q(3,"async");Q(4,"async");Q(5,"async");H();O(6,V6a,3,3,"ng-container",0);yf()}if(a&2){a=M().ngIf;var c=M(),d,e;B(1);D("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("name","assignee")("title","Assignee")("type",
c.FieldType.TEXT)("value",a.assignee)("user",null!==(d=a.assigneeUser)&&void 0!==d?d:void 0)("isUser",!0)("readonly",!R(3,12,c.hasAclToEdit$))("disabled",!!R(4,14,c.isSaving$("assignee")))("showAvailability",!0)("teamId",null!==(e=R(5,16,c.teamId$))&&void 0!==e?e:"");B(5);D("ngIf",c.defaultAssigneeQuickActionEnabled)}},Y6a=function(a){if(a&1){var b=x();G(0,"div",66);K("click",function(){z(b);var c=M(3);return A(gt(c.editIssueService,c.issueId,""))});P(1," Un-assign ");H()}},Z6a=function(a,b){if(a&
1){var c=x();G(0,"div",68);K("onHotkey",function(){var d=z(c).ngIf,e=M(4);return A(ft(e,d))})("click",function(){var d=z(c).ngIf,e=M(4);return A(ft(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;ft(M(4),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;ft(M(4),e);d.stopPropagation();return A(d.preventDefault())});Q(1,"async");Q(2,"async");P(3);H()}a&2&&(a=b.ngIf,b=M(4),sf("disabled",!!R(1,7,b.isSaving$("assignee"))),D("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",
a.description),nf("aria-disabled",!!R(2,9,b.isSaving$("assignee")))("aria-label",a.description),B(3),If(" ",a.displayText," "))},$6a=function(a){a&1&&(xf(0),O(1,Z6a,4,11,"div",67),Q(2,"async"),yf());a&2&&(a=M(3),B(1),D("ngIf",R(2,1,a.issueAssigneeQuickAction$)))},a7a=function(a){if(a&1){var b=x();G(0,"onedev-edit-field")(1,"onedev-field-label");P(2,"Assignee");H();G(3,"onedev-field-value",41);Q(4,"async");G(5,"b-user-picker",62,63);K("onHotkey",function(){z(b);var e=Hf(6);return A(e.openPopOver())})("emailChange",
function(e){z(b);var f=M(2);return A(gt(f.editIssueService,f.issueId,e))});Q(7,"async");Q(8,"async");H();G(9,"div",64);O(10,Y6a,2,0,"div",65);Q(11,"async");O(12,$6a,3,3,"ng-container",0);Q(13,"async");H()()()}if(a&2){a=M().ngIf;var c=M(),d;B(3);D("thinking",!!R(4,7,c.isSaving$("assignee")));B(2);D("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("user",a.assigneeUser)("teamId",null!==(d=R(7,9,c.teamId$))&&void 0!==d?d:"")("disabled",!R(8,11,c.hasAclToEdit$));B(5);D("ngIf",a.assigneeUser&&R(11,13,c.hasAclToEdit$));
B(2);D("ngIf",c.defaultAssigneeQuickActionEnabled&&R(13,15,c.hasAclToEdit$))}},c7a=function(a){if(a&1){var b=x();xf(0);G(1,"b-edit-field",69,70);K("valueChange",function(f){z(b);var h=Hf(2),k=M(2);return A(b7a(k,h,null!==f&&void 0!==f?f:""))});Q(3,"async");Q(4,"async");Q(5,"async");H();yf()}if(a&2){a=M().ngIf;var c=M(),d,e;B(1);D("name","verifier")("title","Verifier")("type",c.FieldType.TEXT)("value",a.verifier)("user",null!==(d=a.verifierUser)&&void 0!==d?d:void 0)("isUser",!0)("readonly",!R(3,10,
c.hasAclToEdit$))("disabled",!!R(4,12,c.isSaving$("verifier")))("showAvailability",!0)("teamId",null!==(e=R(5,14,c.teamId$))&&void 0!==e?e:"")}},e7a=function(a){if(a&1){var b=x();G(0,"onedev-edit-field")(1,"onedev-field-label");P(2,"Verifier");H();G(3,"onedev-field-value",41);Q(4,"async");G(5,"b-user-picker",42);K("emailChange",function(e){z(b);var f=M(2);return A(d7a(f.editIssueService,f.issueId,e))});Q(6,"async");Q(7,"async");H()()()}if(a&2){a=M().ngIf;var c=M(),d;B(3);D("thinking",!!R(4,4,c.isSaving$("verifier")));
B(2);D("user",a.verifierUser)("teamId",null!==(d=R(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!R(7,8,c.hasAclToEdit$))}},f7a=function(a){a&1&&(G(0,"span"),P(1," Un-CC me "),H())},g7a=function(a){a&1&&(G(0,"span"),P(1," CC me "),H())},i7a=function(a){if(a&1){var b=x();G(0,"div",71);K("click",function(){z(b);var c=M(2);return A(h7a(c))})("keydown.enter",function(c){z(b);h7a(M(2));c.stopPropagation();return A(c.preventDefault())})("keydown.space",function(c){z(b);h7a(M(2));c.stopPropagation();return A(c.preventDefault())});
Q(1,"async");Q(2,"async");Q(3,"async");Q(4,"async");O(5,f7a,2,0,"span",0);Q(6,"async");O(7,g7a,2,0,"span",0);Q(8,"async");Q(9,"async");H()}a&2&&(a=M(2),sf("disabled",!!R(1,7,a.isSaving$("ccs"))),D("matTooltip",R(4,13,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),nf("aria-disabled",!!R(2,9,a.isSaving$("ccs")))("aria-label",R(3,11,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),B(5),D("ngIf",R(6,15,a.isCurrentUserCCd$)),B(2),D("ngIf",!R(8,17,a.isCurrentUserCCd$)&&
R(9,19,a.isAllowedToEditCC$)))},j7a=function(a){a&1&&zf(0)},k7a=function(a){a&1&&(xf(0),O(1,j7a,1,0,"ng-container",33),yf());if(a&2){M();var b=Hf(71);B(1);D("ngTemplateOutlet",b)}},l7a=function(a){a&1&&J(0,"b-list-field",72);if(a&2){a=M().ngIf;var b=M(2);D("readonly",!0)("defaultLineCount",3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},m7a=function(a,b){a&1&&(xf(0),O(1,l7a,1,6,"b-list-field",20),Q(2,
"async"),yf());a&2&&(a=b.ngIf,b=M(2),B(1),D("ngIf",R(2,1,b.shouldDisplayWtdmUi$)&&a.length))},n7a=function(a){a&1&&J(0,"b-list-field",72);if(a&2){a=M().ngIf;var b=M();D("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},p7a=function(a,b){a&1&&(G(0,"div"),zf(1,73),H());if(a&2){a=b.$implicit;M();var c=Hf(83);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",
Nf(2,o7a,a))}},q7a=function(a){a&1&&zf(0)},r7a=function(a){a&1&&(xf(0),O(1,q7a,1,0,"ng-container",33),yf());if(a&2){M();var b=Hf(81);B(1);D("ngTemplateOutlet",b)}},s7a=function(a){a&1&&J(0,"hr",74)},t7a=function(a){a&1&&zf(0)},u7a=function(a){a&1&&(xf(0),O(1,t7a,1,0,"ng-container",33),yf());if(a&2){M(2);var b=Hf(67);B(1);D("ngTemplateOutlet",b)}},v7a=function(a){a&1&&zf(0)},w7a=function(a){a&1&&(xf(0),O(1,v7a,1,0,"ng-container",33),yf());if(a&2){M(2);var b=Hf(69);B(1);D("ngTemplateOutlet",b)}},x7a=
function(a){a&1&&zf(0)},y7a=function(a){a&1&&(xf(0),O(1,x7a,1,0,"ng-container",33),yf());if(a&2){M(2);var b=Hf(71);B(1);D("ngTemplateOutlet",b)}},z7a=function(a,b){a&1&&(G(0,"div"),zf(1,73),H());if(a&2){a=b.$implicit;M(2);var c=Hf(83);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Nf(2,o7a,a))}},A7a=function(a){a&1&&zf(0)},B7a=function(a){a&1&&(xf(0),O(1,A7a,1,0,"ng-container",33),yf());if(a&2){M(2);var b=Hf(81);B(1);D("ngTemplateOutlet",b)}},C7a=function(a){a&1&&(G(0,"collapsible-panel",
75),Q(1,"async"),O(2,u7a,2,1,"ng-container",0),Q(3,"async"),O(4,w7a,2,1,"ng-container",0),Q(5,"async"),O(6,y7a,2,1,"ng-container",0),Q(7,"async"),O(8,z7a,2,4,"div",21),Q(9,"async"),O(10,B7a,2,1,"ng-container",0),Q(11,"async"),H());if(a&2){a=M(2);var b;D("titleWhenCollapsed",null!==(b=R(1,8,a.showHiddenFieldsLabel$))&&void 0!==b?b:"")("titleWhenExpanded","Hide additional fields");B(2);D("ngIf",a.showSloStatus&&!R(3,10,a.isSloStatusPrimary$));B(2);D("ngIf",!R(5,12,a.isSeverityPrimary$));B(2);D("ngIf",
a.showChangelists&&!R(7,14,a.isChangelistPrimary$));B(2);D("ngForOf",R(9,16,a.hiddenCustomFields$))("ngForTrackBy",a.trackCustomField);B(2);D("ngIf",!R(11,18,a.isForgottenFourPrimary$))}},E7a=function(a){if(a&1){var b=x();G(0,"b-issue-slo-box",77);K("onSnoozeChange",function(h){z(b);var k=M(3);return A(D7a(k.editIssueService,k.issueId,h))});Q(1,"async");Q(2,"async");Q(3,"async");Q(4,"async");H()}if(a&2){a=M(2).ngIf;var c=M(),d,e,f;D("sloStatus",null!==(d=R(1,6,c.sloStatus$))&&void 0!==d?d:void 0)("sloSnoozeUntil",
a.sloSnoozeUntil)("sloId",null!==(e=R(2,8,c.sloId$))&&void 0!==e?e:void 0)("componentId",a.componentId)("isEditable",!!R(3,10,c.hasAclToEdit$))("issueCreationTimestamp",null!==(f=R(4,12,c.createdTimeMicros$))&&void 0!==f?f:0)}},F7a=function(a){a&1&&O(0,E7a,5,14,"ng-template",76);a&2&&(a=M(2),D("refreshable",a.refreshMonitor.getObservable()))},H7a=function(a){if(a&1){var b=x();G(0,"b-edit-field",78);K("valueChange",function(d){z(b);var e=M(2);return A(G7a(e.editIssueService,e.issueId,null!==d&&void 0!==
d?d:""))});Q(1,"async");Q(2,"async");H()}if(a&2){a=M().ngIf;var c=M();D("name","severity")("title","Severity")("type",c.FieldType.ENUM)("tooltip","Set severity, which reflects how much the issue affects the use of the product")("value",a.severity)("choices",c.severityChoices)("readonly",!R(1,8,c.hasAclToEdit$))("disabled",!!R(2,10,c.isSaving$("severity")))}},I7a=function(a){if(a&1){var b=x();G(0,"insights-graph-btn",82);K("pressed",function(){z(b);var c=M(3).issueInsightsSidebarService;bo(c.analytics,
go.SIDEBAR,"ingress-click");c.openSidebar("deployments");return A()});H()}},K7a=function(a){if(a&1){var b=x();G(0,"b-list-field",79);K("valuesChange",function(h){z(b);var k=M(2);return A(J7a(k.editIssueService,k.issueId,h.values))});Q(1,"async");Q(2,"async");G(3,"div",80);O(4,I7a,1,0,"insights-graph-btn",81);Q(5,"async");H()();J(6,"b-list-field",72);Q(7,"async");Q(8,"async");Q(9,"async")}if(a&2){a=M().ngIf;var c=M(),d,e,f;D("readonly",!R(1,15,c.hasAclToEdit$))("defaultLineCount",3)("title","Changelists")("type",
c.ListFieldType.CHANGELISTS)("values",a.changelist)("listFieldDisabled",!!R(2,17,c.isSaving$("changelists")));B(4);D("ngIf",R(5,19,c.issueInsightsSidebarService.shouldShowInsightsGraphButton$));B(2);sf("bv2-issue-metadata-error",null==(d=R(7,21,c.pendingChangelists$))?null:d.hasError);D("readonly",!0)("defaultLineCount",3)("title","Pending Changelists")("type",c.ListFieldType.CHANGELISTS)("values",null!==(e=null==(e=R(8,23,c.pendingChangelists$))?null:e.cls)&&void 0!==e?e:Mf(27,C6a))("tooltip",(null==
(f=R(9,25,c.pendingChangelists$))?0:f.hasError)?"Error fetching pending CLs":"Pending changelists (auto-populated)")}},M7a=function(a){if(a&1){var b=x();G(0,"b-edit-field",83);K("valueChange",function(d){z(b);var e=M(2);return A(L7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});Q(1,"csv");Q(2,"async");Q(3,"async");H()}if(a&2){a=M().ngIf;var c=M();D("name","foundInVersion")("title","Found In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product affected by this issue (comma-separated list)")("value",
R(1,8,a.foundInVersion))("readonly",!R(2,10,c.hasAclToEdit$))("disabled",!!R(3,12,c.isSaving$("foundInVersion")))}},O7a=function(a){if(a&1){var b=x();G(0,"b-edit-field",84);K("valueChange",function(d){z(b);var e=M(2);return A(N7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});Q(1,"csv");Q(2,"async");Q(3,"async");H()}if(a&2){a=M().ngIf;var c=M();D("name","targetedToVersion")("title","Targeted To")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)")("value",
R(1,8,a.targetedToVersion))("readonly",!R(2,10,c.hasAclToEdit$))("disabled",!!R(3,12,c.isSaving$("targetedToVersion")))}},Q7a=function(a){if(a&1){var b=x();G(0,"b-edit-field",83);K("valueChange",function(d){z(b);var e=M(2);return A(P7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});Q(1,"csv");Q(2,"async");Q(3,"async");H()}if(a&2){a=M().ngIf;var c=M();D("name","verifiedInVersion")("title","Verified In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue fix was verified (comma-separated list)")("value",
R(1,8,a.verifiedInVersion))("readonly",!R(2,10,c.hasAclToEdit$))("disabled",!!R(3,12,c.isSaving$("verifiedInVersion")))}},S7a=function(a){if(a&1){var b=x();G(0,"b-edit-field",85);K("valueChange",function(d){z(b);var e=M(2);return A(R7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:!1))});Q(1,"async");Q(2,"async");H()}if(a&2){a=M().ngIf;var c=M();D("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!R(1,
7,c.hasAclToEdit$))("disabled",!!R(2,9,c.isSaving$("inProd")))}},T7a=function(a){a&1&&zf(0)},U7a=function(a){a&1&&zf(0)},V7a=function(a){a&1&&zf(0)},W7a=function(a){a&1&&zf(0)},X7a=function(a){a&1&&(G(0,"div",4),O(1,T7a,1,0,"ng-container",33),O(2,U7a,1,0,"ng-container",33),O(3,V7a,1,0,"ng-container",33),O(4,W7a,1,0,"ng-container",33),H());if(a&2){M();var b=Hf(73),c=Hf(75),d=Hf(77),e=Hf(79);B(1);D("ngTemplateOutlet",b);B(1);D("ngTemplateOutlet",c);B(1);D("ngTemplateOutlet",d);B(1);D("ngTemplateOutlet",
e)}},Z7a=function(a,b){if(a&1){var c=x();G(0,"b-custom-field-editor",86);K("save",function(e){var f=z(c).$implicit,h=M(2);return A(Y7a(h.editIssueService,h.issueId,f.customFieldId,e))});Q(1,"async");Q(2,"async");H()}if(a&2){a=b.$implicit;b=M().ngIf;var d=M();D("issue",b)("field",a)("readonly",!R(1,4,d.hasAclToEdit$))("disabled",!!R(2,6,d.isSaving$(a.customFieldId)))}},e8a=function(a,b){if(a&1){var c=x();xf(0);O(1,y6a,2,1,"ng-container",0);Q(2,"async");O(3,B6a,3,3,"ng-container",0);O(4,E6a,3,3,"ng-container",
0);Q(5,"async");O(6,G6a,6,16,"ng-container",1);O(7,I6a,8,10,"ng-template",null,2,gg);G(9,"b-edit-field",3);K("valueChange",function(w){z(c);var y=M();return A($7a(y.editIssueService,y.issueId,null!==w&&void 0!==w?w:""))});Q(10,"async");Q(11,"async");H();G(12,"div",4)(13,"b-edit-field",5);K("onHotkey",function(w){z(c);var y=M();(w=a8a("P"+w))&&b8a(y.editIssueService,y.issueId,w);return A()})("valueChange",function(w){z(c);var y=M();return A(b8a(y.editIssueService,y.issueId,null!==w&&void 0!==w?w:""))});
Q(14,"async");Q(15,"async");H();O(16,K6a,2,1,"ng-container",0);Q(17,"async");H();G(18,"div",6)(19,"b-edit-field",7);K("valueChange",function(w){z(c);var y=M();return A(c8a(y,null!==w&&void 0!==w?w:""))});Q(20,"async");Q(21,"async");Q(22,"async");Q(23,"async");H();O(24,M6a,3,3,"ng-container",0);Q(25,"async");H();G(26,"onedev-hovercard",null,8);O(28,N6a,3,4,"b-issue-card",9);H();O(29,P6a,3,6,"b-estimated-effort-row",10);Q(30,"async");Q(31,"async");G(32,"div",11);Q(33,"async");O(34,S6a,8,1,"div",12);
Q(35,"async");G(36,"div",13);O(37,X6a,7,18,"ng-container",1);O(38,a7a,14,17,"ng-template",null,14,gg);H();O(40,c7a,6,16,"ng-container",1);O(41,e7a,8,10,"ng-template",null,15,gg);G(43,"b-list-field",16,17);K("valuesChange",function(w){z(c);var y=Hf(44),E=M();return A(d8a(E,y,w.values))});Q(45,"async");Q(46,"async");Q(47,"async");G(48,"div",18);O(49,i7a,10,21,"div",19);Q(50,"async");Q(51,"async");Q(52,"async");H()()();O(53,k7a,2,1,"ng-container",0);Q(54,"async");O(55,m7a,3,3,"ng-container",0);Q(56,
"async");O(57,n7a,1,6,"b-list-field",20);O(58,p7a,2,4,"div",21);Q(59,"async");O(60,r7a,2,1,"ng-container",0);Q(61,"async");O(62,s7a,1,0,"hr",22);Q(63,"async");O(64,C7a,12,20,"collapsible-panel",23);Q(65,"async");O(66,F7a,1,1,"ng-template",null,24,gg);O(68,H7a,3,12,"ng-template",null,25,gg);O(70,K7a,10,28,"ng-template",null,26,gg);O(72,M7a,4,14,"ng-template",null,27,gg);O(74,O7a,4,14,"ng-template",null,28,gg);O(76,Q7a,4,14,"ng-template",null,29,gg);O(78,S7a,3,11,"ng-template",null,30,gg);O(80,X7a,
5,4,"ng-template",null,31,gg);O(82,Z7a,3,8,"ng-template",null,32,gg);yf()}if(a&2){a=b.ngIf;var d=Hf(8),e=Hf(27),f=Hf(39),h=Hf(42);b=M();var k,q;B(1);D("ngIf",b.showSloStatus&&R(2,58,b.isSloStatusPrimary$));B(2);D("ngIf",b.sessionIsInternal);B(1);D("ngIf",R(5,60,b.teamWarningType$));B(2);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",d);B(3);D("name","type")("title","Type")("type",b.FieldType.ENUM)("value",a.type)("choices",b.typeChoices)("readonly",!R(10,62,b.hasAclToEdit$))("disabled",!!R(11,64,b.isSaving$("type")));
B(4);D("name","priority")("title","Priority")("type",b.FieldType.ENUM)("tooltip","Set priority, which reflects how soon the issue should be fixed")("value",a.priority)("choices",b.priorityChoices)("hotkey",b.HOTKEYS.CHANGE_ISSUE_PRIORITY)("readonly",!R(14,66,b.hasAclToEdit$))("disabled",!!R(15,68,b.isSaving$("priority")));B(3);D("ngIf",R(17,70,b.isSeverityPrimary$));B(3);D("name","status")("title","Status")("type",b.FieldType.ENUM)("value",a.status)("choices",null!==(k=R(20,72,b.statusChoices$))&&
void 0!==k?k:Mf(114,C6a))("readonly",!R(21,74,b.hasAclToEdit$))("disabled",!!R(22,76,b.isSaving$("status")))("onedevHovercardActive",!!R(23,78,b.canonicalIssueId$))("onedevHovercardTrigger",e);B(5);D("ngIf",R(25,80,b.hasAclToEdit$));B(5);D("ngIf",b.sessionIsInternal&&R(30,82,b.isEffortEnabled$)&&!R(31,84,b.isWithinExternalComponent$));B(3);sf("implicit-access-box",R(33,86,b.showImplicitAccessIndicator$));B(2);D("ngIf",R(35,88,b.showImplicitAccessIndicator$));B(3);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",
f);B(3);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",h);B(3);D("defaultLineCount",5)("readonly",!R(45,90,b.isAllowedToEditCC$))("title","CC")("type",b.ListFieldType.CCS)("isUser",!0)("values",a.cc)("users",a.ccUsers)("listFieldDisabled",!!R(46,92,b.isSaving$("ccs")))("teamId",null!==(q=R(47,94,b.teamId$))&&void 0!==q?q:"");B(6);D("ngIf",R(50,96,b.isCurrentUserCCd$)||!R(51,98,b.isCurrentUserCCd$)&&R(52,100,b.isAllowedToEditCC$));B(4);D("ngIf",b.showChangelists&&R(54,102,b.isChangelistPrimary$));B(2);
D("ngIf",R(56,104,b.workspaces$));B(2);D("ngIf",!b.sessionIsExternal&&(null==a.postmortems?null:a.postmortems.length));B(1);D("ngForOf",R(59,106,b.visibleCustomFields$))("ngForTrackBy",b.trackCustomField);B(2);D("ngIf",R(61,108,b.isForgottenFourPrimary$));B(2);D("ngIf",R(63,110,b.hasHiddenFields$));B(2);D("ngIf",R(65,112,b.hasHiddenFields$))}},f8a=function(a){a&1&&J(0,"edit-issue-metadata",5);a&2&&(a=M(),D("issueId",a.issueId))},g8a=function(a,b){a&1&&(G(0,"h2",9),P(1),H());a&2&&(a=b.ngIf,B(1),If("Issue ",
a,""))},h8a=function(a){a&1&&(G(0,"a",13),P(1,"Learn more"),H())},i8a=function(a){if(a&1){var b=x();G(0,"button",14);K("click",function(){var c=z(b).ngIf,d=M(2);return A(d.editIssueService.unarchive(c))});P(1," Unarchive ");H()}},j8a=function(a){a&1&&(G(0,"b-callout",10)(1,"b-callout-body"),P(2,"This issue has been archived. "),O(3,h8a,2,0,"a",11),H(),G(4,"b-callout-actions"),O(5,i8a,2,0,"button",12),Q(6,"async"),H()());a&2&&(a=M(),D("messageType","caution")("format","app")("iconOverride","archive_24px"),
B(3),D("ngIf",a.activeSession.isInternalSession()),B(2),D("ngIf",R(6,5,a.id$)))},k8a=function(a){a&1&&(G(0,"a",17),P(1,"Learn more"),H())},l8a=function(a){a&1&&(G(0,"b-callout",15)(1,"b-callout-body"),P(2," This issue is in an archived component. "),O(3,k8a,2,0,"a",16),H()());a&2&&(a=M(),D("format","app")("iconOverride","archive_24px"),B(3),D("ngIf",a.activeSession.isInternalSession()))},m8a=function(a,b){a&1&&(xf(0),P(1," Reason: "),G(2,"code"),P(3),H(),P(4,". "),yf());a&2&&(a=b.$implicit,B(3),Jf(a))},
n8a=function(a){a&1&&(G(0,"a",22),P(1,"Learn more"),H())},p8a=function(a){if(a&1){var b=x();G(0,"button",23);K("click",function(){var d=z(b).ngIf,e=M(2);return A(o8a(e.editIssueService,d))});Q(1,"async");Q(2,"async");P(3," Undelete ");H()}if(a&2){a=M(2);var c;D("matTooltip",null!==(c=R(1,2,a.undeleteButtonTooltip$))&&void 0!==c?c:"")("disabled",!R(2,4,a.permissions.canUndeleteIssue$))}},q8a=function(a){a&1&&(G(0,"b-callout",18)(1,"b-callout-body"),P(2," This issue has been deleted. "),O(3,m8a,5,1,
"ng-container",19),Q(4,"async"),O(5,n8a,2,0,"a",20),H(),G(6,"b-callout-actions"),O(7,p8a,4,6,"button",21),Q(8,"async"),H()());if(a&2){a=M();var b;B(3);D("ngIf",null==(b=R(4,3,a.snapshot$))?null:b.deletionReason);B(2);D("ngIf",a.activeSession.isInternalSession());B(2);D("ngIf",R(8,5,a.id$))}},r8a=function(a,b){a&1&&(G(0,"output",35),P(1),H());a&2&&(a=b.$implicit,B(1),If(" ",a," "))},t8a=function(a,b){a&1&&(G(0,"a",32,33),P(2),O(3,r8a,2,1,"output",34),Q(4,"async"),H());if(a&2){a=b.$implicit;var c=Hf(1);
D("routerLink",a.link)("active",c.isActive)("routerLinkActiveOptions",Mf(7,s8a));B(2);If(" ",a.title," ");B(1);D("ngIf",R(4,5,a.count$))}},u8a=function(a,b){a&1&&(G(0,"header",24),J(1,"aside",25),Q(2,"async"),Q(3,"async"),G(4,"div",26),Q(5,"async"),Q(6,"async"),Q(7,"async"),J(8,"issue-banner",27),G(9,"aside",28)(10,"div",29),J(11,"chip-indicators")(12,"b-pagination-one-issue"),H(),J(13,"issue-actions",27),H()(),G(14,"nav",30),O(15,t8a,5,8,"a",31),H()());a&2&&(a=b.$implicit,b=M(),B(1),Gf("title","[",
R(2,10,b.prettyStatus$),"] ",R(3,12,b.title$),""),B(3),sf("overline",b.STATUS_IS_FEATURED[R(5,14,b.status$)])("color-field",b.STATUS_IS_FEATURED[R(6,16,b.status$)]),Ef("ngClass","status",R(7,18,b.status$),""),B(4),D("issueId",a),B(5),D("issueId",a),B(2),D("ngForOf",b.tabs))},v8a=function(a,b){a&1&&J(0,"issue-metadata-sidebar",27);a&2&&D("issueId",b.ngIf)},w8a=function(a){a&1&&J(0,"issue-details-wrapper")},x8a=function(a){a&1&&(G(0,"div",2),J(1,"b-access-denied-metadata",3),H());a&2&&(a=M(),B(1),D("issueMetadata",
a.issueMetadata))},y8a=function(a,b){a&1&&(xf(0),J(1,"b-issues-table",1),yf());a&2&&(a=b.ngIf,b=M(),B(1),D("issueIds",a)("menuItemFactory",b.getMenuItems)("tableColumns",b.tableColumns)("initialSort",b.initialSort))},A8a=function(a){if(a&1){var b=x();G(0,"div",5);J(1,"img",6);G(2,"p",7);P(3," This issue has no duplicates ");H();G(4,"p",8);P(5,' A duplicate is an issue with similar content. Marking an issue as a duplicate closes it and lists it as a duplicate of the original issue (sometimes called the "canonical issue"). ');
G(6,"a",9);P(7,"Learn more");H()();G(8,"button",10);K("click",function(){z(b);var c=M(2);return A(z8a(c))});P(9," Add ");H()()}a&2&&(a=M(2),B(1),D("src",a.ROBOT_SLEEPING,Kd))},B8a=function(a){a&1&&J(0,"b-duplicates-table",15);if(a&2){a=M(2).$implicit;var b=M();D("issueId",b.lastKnownId)("duplicateIds",a)}},C8a=function(a,b){a&1&&(xf(0),G(1,"a",16),P(2," View as search results "),H(),yf());a&2&&(a=b.ngIf,B(1),D("routerLink",a.path)("queryParams",a.params))},D8a=function(a){if(a&1){var b=x();G(0,"h4",
11);P(1,"Duplicates ");G(2,"button",12);K("click",function(){z(b);var c=M(2);return A(z8a(c))});P(3," Add ");H()();O(4,B8a,1,2,"b-duplicates-table",13);G(5,"aside",14);O(6,C8a,3,2,"ng-container",1);Q(7,"async");H()}a&2&&(a=M(2),B(4),D("ngIf",a.lastKnownId),B(2),D("ngIf",R(7,2,a.dupeUrl$)))},E8a=function(a,b){a&1&&(xf(0),O(1,A8a,10,1,"div",3),O(2,D8a,8,4,"ng-template",null,4,gg),yf());if(a&2){a=b.$implicit;var c=Hf(3);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},F8a=function(a){a&1&&(G(0,"aside",17),
J(1,"b-spinner"),H())},G8a=function(a){a&1&&(xf(0),J(1,"mat-icon",4),P(2,"Oldest first"),yf())},H8a=function(a){a&1&&(xf(0),J(1,"mat-icon",5),P(2,"Newest first"),yf())},I8a=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:return bh(a,"Unexpected retention model")}},J8a=function(a){var b=a.hasRetentionPeriod()?{seconds:a.getRetentionPeriod().getSeconds(),nanos:a.getRetentionPeriod().getNanos()}:null;a=a.hasScheduledDeletionTime()?
{seconds:a.getScheduledDeletionTime().getSeconds(),nanos:a.getScheduledDeletionTime().getNanos()}:null;return{retentionPeriod:b,scheduledDeletionTime:a}},K8a=function(a){a&1&&J(0,"b-restricted-chip",10);a&2&&(a=M(),D("label",a.getRestrictedLabel())("retentionState",null==a.attachment?null:a.attachment.piiRetentionState)("contentType","attachment"))},L8a=function(a){a&1&&(G(0,"span",11),J(1,"b-actions-menu",12),H());a&2&&(a=M(),B(1),D("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip",
"Attachment actions"))},O8a=function(a){if(a&1){var b=x();G(0,"span")(1,"b-conditional-link",13);K("customHandler",function(){z(b);var c=M();c.isRestricted()?M8a(c,!1):c.domSafe.openInNewTab(ht(c,!1));return A()});H()()}a&2&&(a=M(),vf("bv2-issue-attachment-link ",N8a(a),""),B(1),D("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",ht(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},P8a=function(a){if(a&1){var b=x();G(0,"span")(1,"b-conditional-link",13);K("customHandler",function(){z(b);
var c=M();c.isRestricted()?M8a(c,!0):c.domSafe.openInNewTab(ht(c,!0));return A()});H()()}a&2&&(a=M(),vf("bv2-issue-attachment-link ",N8a(a),""),B(1),D("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",ht(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},Q8a=function(a){a&1&&(G(0,"span",14)(1,"a",15),J(2,"mat-icon",16),H()());a&2&&(a=M(),B(1),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Kd)("disableRipple",!0),B(1),D("svgIcon","help-outline"))},R8a=function(a){a&1&&
(G(0,"div",17),P(1," You do not have access to this restricted attachment. "),G(2,"a",18),P(3,"Learn more"),H()());a&2&&(a=M(),B(2),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Kd))},T8a=function(a){if(a&1){var b=x();G(0,"button",18,19);K("click",function(){z(b);var c=M(2);return A(S8a(c))});J(2,"mat-icon",20);H()}},U8a=function(a){a&1&&(xf(0),P(1," on behalf of "),J(2,"b-user-display",6),Q(3,"async"),G(4,"onedev-hovercard",null,21),J(6,"b-issue-person-card",8),Q(7,"async"),H(),yf());
if(a&2){var b=Hf(5);a=M(2);B(2);D("onedevHovercardTrigger",b)("model",R(3,3,a.reporterUser$));B(4);D("email",R(7,5,a.reporterUserEmailAddress$))}},V8a=function(a,b){if(a&1){var c=x();G(0,"a",22);K("click",function(d){var e=z(c).ngIf;M(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return A()});P(1);H()}a&2&&(a=b.ngIf,b=M().$implicit,M(),D("routerLinkObj",sn(a,{comment:1})),nf("aria-label","Comment number"+b.commentNumber),B(1),If(" #",b.commentNumber,""))},X8a=function(a){a&
1&&(xf(0),G(1,"span",23),P(2," \u2022 Edited"),H(),yf());if(a&2){a=M().$implicit;var b=M();B(1);D("matTooltip",W8a(b,a))}},Y8a=function(a){a&1&&(xf(0),G(1,"p",24),P(2," Comment has been deleted. "),H(),yf())},Z8a=function(a){if(a&1){var b=x();G(0,"b-restricted-comment-placeholder",27);K("onConfirm",function(){z(b);var c=M().ngIf,d=M(3).$implicit,e=M();return A(e.loadRestrictedComment(c,d))});Q(1,"async");H()}a&2&&(a=M(5),D("disabled",!R(1,1,a.mayReadPii$)))},$8a=function(a){a&1&&(xf(0),O(1,Z8a,2,
3,"b-restricted-comment-placeholder",26),Q(2,"async"),yf());a&2&&(a=M(4),B(1),D("ngIf",R(2,1,a.shouldShowRestrictedPlaceholder$)))},a9a=function(a){a&1&&(xf(0),O(1,$8a,3,3,"ng-container",9),Q(2,"async"),yf());a&2&&(a=M(3),B(1),D("ngIf",R(2,1,a.id$)))},b9a=function(a,b){a&1&&(J(0,"b-note-container",30),Q(1,"async"),Q(2,"async"));if(a&2){a=b.$implicit;b=M(4);var c;D("issueId",null!==(c=R(1,4,b.idAsNumber$))&&void 0!==c?c:0)("issueAccessLevel",R(2,6,b.accessLevel$))("note",a)("formattingMode",b.formattingMode)}},
c9a=function(a){if(a&1){var b=x();G(0,"div",31)(1,"div",32);P(2,"This issue has no description, click the update button to add one.");H();G(3,"button",33);K("click",function(){z(b);var c=M(4);return A(S8a(c))});J(4,"mat-icon",34);P(5,"Update");H()()}},d9a=function(a){a&1&&(O(0,b9a,3,8,"b-note-container",28),Q(1,"async"),O(2,c9a,6,0,"div",29));if(a&2){a=M(2).$implicit;var b=M();D("ngIf",""!==a.unlinkifiedComment&&R(1,2,b.firstNote$));B(2);D("ngIf",""===a.unlinkifiedComment)}},e9a=function(a){a&1&&
(O(0,a9a,3,3,"ng-container",15),Q(1,"async"),O(2,d9a,3,4,"ng-template",null,25,gg));if(a&2){var b=Hf(3);a=M(2);D("ngIf",R(1,2,a.isRedacted$))("ngIfElse",b)}},f9a=function(a,b){a&1&&(G(0,"div",37),J(1,"b-attachment-viewer",38),Q(2,"async"),H());if(a&2){a=b.$implicit;b=M(3);var c;Ef("id","attachment",a.attachmentId,"");B(1);D("issueId",null!==(c=R(2,4,b.idAsNumber$))&&void 0!==c?c:0)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable())}},g9a=function(a){a&1&&(G(0,"div",35),O(1,f9a,3,6,
"div",36),H());a&2&&(a=M().$implicit,B(1),D("ngForOf",a.attachments))},i9a=function(a,b){a&1&&(G(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4),P(4,"DESCRIPTION"),H(),O(5,T8a,3,0,"button",5),J(6,"b-user-display",6),G(7,"onedev-hovercard",null,7),J(9,"b-issue-person-card",8),H(),P(10," created issue "),O(11,U8a,8,7,"ng-container",9),Q(12,"async"),Q(13,"async"),O(14,V8a,2,3,"a",10),Q(15,"async"),O(16,X8a,3,1,"ng-container",9),Q(17,"async"),H(),G(18,"div",11),J(19,"b-formatted-date-time",12)(20,"b-actions-menu",
13,14),Q(22,"async"),H()(),O(23,Y8a,3,0,"ng-container",15),Q(24,"async"),O(25,e9a,4,4,"ng-template",null,16,gg),O(27,g9a,2,1,"div",17),H());if(a&2){a=b.$implicit;var c=Hf(8),d=Hf(26);b=M();var e;B(5);D("ngIf",b.canEditComment());B(1);D("onedevHovercardTrigger",c)("model",a.userPerformingActionUser);B(3);D("email",b.getUserEmailIfAvailable());B(2);D("ngIf",R(12,13,b.reporterUser$)&&R(13,15,b.isAuthorNotReporter$));B(3);D("ngIf",R(15,17,b.idAsNumber$));B(2);D("ngIf",R(17,19,b.isShowCommentHistoryActionInMenu$));
B(3);D("timestamp",a.modifiedDate);B(1);D("buttonLabel","Description actions")("menuItems",null!==(e=R(22,21,b.commentActionMenuItems$))&&void 0!==e?e:Mf(25,h9a));B(3);D("ngIf",R(24,23,b.isDeleted$))("ngIfElse",d);B(4);D("ngIf",null==a?null:null==a.attachments?null:a.attachments.length)}},j9a=function(a){a&1&&J(0,"mat-icon",3)},k9a=function(a){a&1&&J(0,"b-spinner")},l9a=function(a){a&1&&zf(0)},m9a=function(a){a&1&&(xf(0),O(1,l9a,1,0,"ng-container",7),yf());if(a&2){M();var b=Hf(14);B(1);D("ngTemplateOutlet",
b)}},n9a=function(a){a&1&&zf(0)},o9a=function(a){a&1&&(xf(0),O(1,n9a,1,0,"ng-container",7),yf());if(a&2){M();var b=Hf(6);B(1);D("ngTemplateOutlet",b)}},r9a=function(a){if(a&1){var b=x();G(0,"button",8);K("click",function(){z(b);var c=M();return A(p9a(c))});P(1," Create ");H()}a&2&&(a=M(),D("disabled",!(0<q9a(a).length)))},s9a=function(a){if(a&1){var b=x();G(0,"button",9);K("click",function(){z(b);var c=M();c.dialogRef.close(c.selectedHotlistIds);return A()});P(1);H()}a&2&&(a=M(),D("mat-dialog-close",
!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),nf("aria-label",a.saveBtnTooltip),B(1),If(" ",a.saveBtnLabel," "))},u9a=function(a,b){if(a&1){var c=x();xf(0);G(1,"div",26,27);Q(3,"async");G(4,"mat-list-option",28);K("focus",function(){z(c);var h=Hf(2);return A(h.show())})("blur",function(){z(c);var h=Hf(2);return A(h.hide())});Q(5,"async");zf(6,29);H()();yf()}if(a&2){a=b.$implicit;b=M(5);var d=Hf(12),e,f;B(1);D("matTooltip",!1===(null==(e=R(3,8,a.permissions$))?null:e.appender)?b.NO_ACCESS_MESSAGE:
"");B(3);rf("height",b.compactHotlistItemHeight,"px");D("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(f=R(5,10,a.permissions$))?null:f.appender))("value",a.hotlistId);B(2);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Nf(12,t9a,a))}},v9a=function(a,b){a&1&&(xf(0),G(1,"div",24),Q(2,"async"),O(3,u9a,7,14,"ng-container",25),H(),yf());a&2&&(a=b.$implicit,b=M(4),B(1),rf("overflow","auto")("height",R(2,6,b.hotlistViewportContainerHeight$),"px"),B(2),D("ngForOf",a)("ngForTrackBy",
b.trackByHotlistId))},w9a=function(a){a&1&&(xf(0),O(1,v9a,4,8,"ng-container",19),Q(2,"async"),Q(3,"stagedHotlistSlice"),yf());a&2&&(a=M().$implicit,B(1),D("ngIf",R(2,1,R(3,3,a))))},y9a=function(a,b){if(a&1){var c=x();xf(0);G(1,"div",26,27);Q(3,"async");G(4,"mat-list-option",28);K("focus",function(){z(c);var h=Hf(2);return A(h.show())})("blur",function(){z(c);var h=Hf(2);return A(h.hide())});Q(5,"async");zf(6,29);H()();yf()}if(a&2){a=b.$implicit;b=M(4);var d=Hf(12),e,f;B(1);D("matTooltip",!1===(null==
(e=R(3,8,a.permissions$))?null:e.appender)?b.NO_ACCESS_MESSAGE:"");B(3);rf("height","auto");D("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(f=R(5,10,a.permissions$))?null:f.appender))("value",a.hotlistId);B(2);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Nf(12,x9a,a))}},z9a=function(a){a&1&&O(0,y9a,7,14,"ng-container",25);if(a&2){a=M().$implicit;var b=M(2);D("ngForOf",a)("ngForTrackBy",b.trackByHotlistId)}},A9a=function(a){a&1&&(xf(0),O(1,w9a,4,5,"ng-container",0),
Q(2,"async"),O(3,z9a,1,2,"ng-template",null,23,gg),yf());if(a&2){var b=Hf(4);a=M(2);B(1);D("ngIf",R(2,2,a.isCompactMode$))("ngIfElse",b)}},B9a=function(a){a&1&&(G(0,"div",30),P(1," (The number of hotlists is large: presenting in compact form.) "),H())},D9a=function(a){if(a&1){var b=x();G(0,"button",31);K("click",function(){z(b);var c=M(2),d=Ki(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),c.dialogRef.close(c.selectedHotlistIds)):C9a(c,d);return A()});P(1);Q(2,"async");G(3,"span",
32);P(4,"(add hotlist by ID)");H()()}a&2&&(a=M(2),B(1),If(" ",R(2,1,a.query$)," "))},E9a=function(a){if(a&1){var b=x();G(0,"button",33);K("click",function(){z(b);M(2).showCreateNewPane=!0;return A()});P(1);Q(2,"async");G(3,"span",32);P(4,"(create new)");H()()}a&2&&(a=M(2),B(1),If(" ",R(2,1,a.query$)," "))},G9a=function(a){if(a&1){var b=x();G(0,"header",10)(1,"h2");P(2,"Search for Hotlists");H();G(3,"div",11);J(4,"mat-icon",12);G(5,"input",13,14);K("input",function(){z(b);var c=Hf(6);M().query$.next(c.value);
return A()});H()()();G(7,"section",15,16)(9,"mat-selection-list",17,18);K("selectionChange",function(c){z(b);var d=M();return A(F9a(d,c))});O(11,A9a,5,4,"ng-container",19);Q(12,"async");H();O(13,B9a,2,0,"div",20);Q(14,"async");O(15,D9a,5,3,"button",21);Q(16,"async");O(17,E9a,5,3,"button",22);Q(18,"async");H()}a&2&&(a=M(),B(11),D("ngIf",R(12,4,a.visibleHotlists$)),B(2),D("ngIf",R(14,6,a.isCompactMode$)),B(2),D("ngIf",R(16,8,a.showLoadById$)),B(2),D("ngIf",R(18,10,a.showCreateNew$)))},I9a=function(a){if(a&
1){var b=x();G(0,"b-star-toggle",41);K("starClicked",function(){z(b);var d=M(2).hotlist,e=M();return A(e.toggleStar(d.hotlistId))});Q(1,"async");Q(2,"async");H()}if(a&2){a=M(2).hotlist;var c=M();D("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("acceptInput",!R(1,4,H9a(c.isSavingStar,a.hotlistId)))("starred",R(2,6,H9a(c.starredHotlists,a.hotlistId)))}},J9a=function(a){a&1&&(G(0,"p",42),P(1),H());a&2&&(a=M(2).hotlist,B(1),If(" ",a.description," "))},K9a=function(a){a&1&&
(xf(0),G(1,"div",34)(2,"label",35),P(3),H(),G(4,"span",36),O(5,I9a,3,8,"b-star-toggle",37),G(6,"a",38),K("click",function(d){return d.stopPropagation()})("keydown.enter",function(d){return d.stopPropagation()}),J(7,"mat-icon",39),H()()(),O(8,J9a,2,1,"p",40),yf());if(a&2){var b=M();a=b.hotlist;b=b.isCompact;var c=M();B(3);If(" ",a.name," ");B(2);D("ngIf",c.shouldShowStar(a));B(1);D("routerLink",c.paths.viewHotlist(a.hotlistId));B(2);D("ngIf",!b&&a.description)}},L9a=function(a){a&1&&O(0,K9a,9,4,"ng-container",
19);a&2&&(M(),D("ngIf",!0))},M9a=function(a){a&1&&(G(0,"header",10)(1,"h2"),P(2,"Create new hotlist"),H()(),G(3,"section",43)(4,"div",44)(5,"form",45)(6,"label",46),P(7,"Name"),H(),J(8,"input",47),G(9,"label",48),P(10,"Description"),H(),J(11,"textarea",49),G(12,"p",32),P(13," Note: Access controls can be adjusted after the hotlist is created. "),H()()()());a&2&&(a=M(),B(5),D("formGroup",a.hotlistUnderEdit))},N9a=function(a,b){return a.name.localeCompare(b.name)},O9a=function(a,b){if(null==a||""===
a.trim())return!1;b=b.map(function(c){var d;return null==(d=c.name)?void 0:d.toLowerCase()});a=a.toLowerCase();return!b.includes(a)},P9a=function(a){var b,c=null!=(b=null==a?void 0:a.added.length)?b:0,d;b=null!=(d=null==a?void 0:a.removed.length)?d:0;return a?0<c&&0===b?["Add ("+c+")","Add "+c+" hotlist(s)"]:0===c&&0<b?["Remove ("+b+")","Remove "+b+" hotlist(s)"]:["Save","Save all changes ("+c+" added, "+b+" removed)"]:["Save","(No changes)"]},Q9a=function(a,b){a&1&&(G(0,"span",11),P(1," of "),G(2,
"a",12),P(3),H()());if(a&2){a=b.$implicit;M(2);var c=Hf(13);B(2);Ef("routerLink","/issues/",a,"");D("onedevHovercardTrigger",c);B(1);If(" ",a," ")}},R9a=function(a,b){a&1&&(G(0,"div")(1,"div",9),P(2),H(),O(3,Q9a,4,3,"span",10),Q(4,"async"),H());a&2&&(a=b.$implicit,b=M(),B(1),vf("b-chip xs squared status status",a,""),D("title",b.STATUS_FULL_TEXT[a]),B(1),If(" ",b.STATUS_TERSE[a]," "),B(1),D("ngIf",R(4,6,b.canonicalId$)))},S9a=function(a,b){a&1&&(G(0,"span"),P(1),H());a&2&&(a=b.$implicit,b=M(),vf("b-chip squared issue-type-",
a,""),B(1),If(" ",b.ISSUE_TYPE_TEXT.get(a)," "))},U9a=function(a,b){if(a&1){var c=x();G(0,"b-hotlist-chip-smart",17);K("removeHotlist",function(){var d=z(c).$implicit,e=M(2);return A(T9a(e,d))});H()}a&2&&D("id",b.$implicit)},W9a=function(a,b){if(a&1){var c=x();G(0,"div",13);O(1,U9a,1,1,"b-hotlist-chip-smart",14);G(2,"button",15);K("onHotkey",function(){z(c);var d=M();return A(V9a(d))})("click",function(){z(c);var d=M();return A(V9a(d))});J(3,"mat-icon",16);P(4);H()()}a&2&&(a=b.$implicit,b=M(),B(1),
D("ngForOf",a),B(1),Ff("matTooltip",0===a.length?"":"Add Hotlist"),D("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER),B(2),If(" ",0===a.length?"Add Hotlist":""," "))},X9a=function(a){a&1&&(J(0,"b-issue-card",18,19),Q(2,"async"));if(a&2){var b=Hf(1);a=M();D("onedevIsHovercardReady",b.init)("issueId",R(2,2,a.canonicalId$))}},Y9a=function(a){return null==a?void 0:a.snapshot[0].hotlistId},Z9a=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M(2),B(1),If(" by ",Ll(a.event.lastCommentEditorUser),""))},$9a=function(a){a&
1&&(xf(0)(1),P(2,"Message last modified"),yf(),O(3,Z9a,2,1,"ng-container",0),xf(4),P(5," on "),J(6,"b-formatted-date-time",1),yf()());a&2&&(a=M(),B(3),D("ngIf",0===a.event.version&&!!a.event.lastCommentEditorUser),B(3),D("timestamp",a.event.commentLastModifiedAtDate))},a$a=function(a){a&1&&(G(0,"span"),P(1),H());if(a&2){a=M(5);var b;B(1);Jf(null!==(b=a.effortSpecName)&&void 0!==b?b:"Estimated Effort")}},b$a=function(a){a&1&&(G(0,"label"),O(1,a$a,2,1,"span",9),P(2,":\u200b "),H());if(a&2){a=M(4);var b=
Hf(5);B(1);D("ngIf",a.effortEnabled)("ngIfElse",b)}},c$a=function(a){a&1&&(G(0,"label"),P(1),H());a&2&&(a=M(3).$implicit,B(1),If("",a.displayName,":\u200b"))},d$a=function(a){a&1&&(G(0,"span"),J(1,"b-user-display-name",12),H());a&2&&(a=M().$implicit,B(1),D("email",a)("showEmail",!0))},e$a=function(a){a&1&&(xf(0),J(1,"plain-component-path",13),yf());a&2&&(a=M(4).$implicit,B(1),D("id",a.oldValue))},f$a=function(a){a&1&&J(0,"b-formatted-date-time",15);if(a&2){a=M(2).$implicit;var b=M(4);D("timestamp",
1E3*b.asNumber(a))}},g$a=function(a){a&1&&(G(0,"span"),P(1,"[Issue creation date]"),H())},h$a=function(a){a&1&&(G(0,"span"),O(1,f$a,1,1,"b-formatted-date-time",14),O(2,g$a,2,0,"span",5),H());a&2&&(a=M().$implicit,B(1),D("ngIf","<none>"!==a),B(1),D("ngIf","<none>"===a))},i$a=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),Jf(a))},j$a=function(a){a&1&&(xf(0),O(1,d$a,2,2,"span",5),O(2,e$a,2,1,"ng-container",5),O(3,h$a,3,2,"span",5),O(4,i$a,2,1,"span",5),P(5," \u00a0 "),J(6,"span",
11),P(7," \u00a0 "),yf());a&2&&(a=M(3).$implicit,B(1),D("ngIf",a.isUser),B(1),D("ngIf","component"===a.name),B(1),D("ngIf","sloSnoozeUntil"==a.name),B(1),D("ngIf",!a.isUser&&"component"!==a.name&&"sloSnoozeUntil"!==a.name))},k$a=function(a){a&1&&J(0,"b-user-display-name",12);a&2&&(a=M().$implicit,D("email",a)("showEmail",!0))},l$a=function(a){a&1&&(G(0,"span"),J(1,"plain-component-path",13),H());a&2&&(a=M(4).$implicit,B(1),D("id",a.newValue))},m$a=function(a){a&1&&J(0,"b-formatted-date-time",15);
if(a&2){a=M(2).$implicit;var b=M(4);D("timestamp",1E3*b.asNumber(a))}},n$a=function(a){a&1&&(G(0,"span"),P(1,"[Issue creation date]"),H())},o$a=function(a){a&1&&(G(0,"span"),O(1,m$a,1,1,"b-formatted-date-time",14),O(2,n$a,2,0,"span",5),H());a&2&&(a=M().$implicit,B(1),D("ngIf","<none>"!==a),B(1),D("ngIf","<none>"===a))},q$a=function(a){a&1&&(G(0,"span",18),P(1),H());if(a&2){a=M().$implicit;var b=M(3).$implicit;D("ngClass",Nf(2,p$a,b.oldValue&&"title"==b.name));B(1);Jf(a)}},r$a=function(a){a&1&&(xf(0),
O(1,k$a,1,2,"b-user-display-name",16),O(2,l$a,2,1,"span",5),O(3,o$a,3,2,"span",5),O(4,q$a,2,4,"span",17),yf());a&2&&(a=M(3).$implicit,B(1),D("ngIf",a.isUser),B(1),D("ngIf","component"===a.name),B(1),D("ngIf","sloSnoozeUntil"===a.name),B(1),D("ngIf",!a.isUser&&"component"!=a.name&&"sloSnoozeUntil"!=a.name))},s$a=function(a){a&1&&(G(0,"div",8),O(1,b$a,3,2,"label",9),O(2,c$a,2,1,"ng-template",null,10,gg),O(4,j$a,8,4,"ng-container",5),O(5,r$a,5,4,"ng-container",5),H());if(a&2){var b=Hf(3);a=M(2).$implicit;
B(1);D("ngIf","effort"===a.name)("ngIfElse",b);B(3);D("ngIf",a.oldValue);B(1);D("ngIf",a.newValue)}},t$a=function(a){a&1&&(G(0,"span"),P(1,", "),H())},u$a=function(a,b){a&1&&(G(0,"span"),J(1,"b-user-display-name",12),O(2,t$a,2,0,"span",5),H());a&2&&(a=b.$implicit,b=b.last,B(1),D("email",a)("showEmail",!0),B(1),D("ngIf",!b))},v$a=function(a){a&1&&(G(0,"span"),O(1,u$a,3,3,"span",19),H());a&2&&(a=M(4).$implicit,B(1),D("ngForOf",a.added))},w$a=function(a){a&1&&(G(0,"span"),P(1,", "),H())},x$a=function(a,
b){a&1&&(G(0,"span")(1,"span"),P(2),H(),O(3,w$a,2,0,"span",5),H());a&2&&(a=b.$implicit,b=b.last,B(2),Jf(a),B(1),D("ngIf",!b))},y$a=function(a){a&1&&(G(0,"span"),O(1,x$a,4,2,"span",19),H());a&2&&(a=M(4).$implicit,B(1),D("ngForOf",a.added))},z$a=function(a){a&1&&(G(0,"div")(1,"label"),P(2),H(),O(3,v$a,2,1,"span",5),O(4,y$a,2,1,"span",5),H());a&2&&(a=M(3).$implicit,B(2),If("+",a.displayName,":\u200b"),B(1),D("ngIf",a.isUser),B(1),D("ngIf",!a.isUser))},A$a=function(a){a&1&&(G(0,"span"),P(1,", "),H())},
B$a=function(a,b){a&1&&(G(0,"span"),J(1,"b-user-display-name",12),O(2,A$a,2,0,"span",5),H());a&2&&(a=b.$implicit,b=b.last,B(1),D("email",a)("showEmail",!0),B(1),D("ngIf",!b))},C$a=function(a){a&1&&(G(0,"span"),O(1,B$a,3,3,"span",19),H());a&2&&(a=M(4).$implicit,B(1),D("ngForOf",a.removed))},D$a=function(a){a&1&&(G(0,"span"),P(1,", "),H())},E$a=function(a,b){a&1&&(G(0,"span")(1,"span"),P(2),H(),O(3,D$a,2,0,"span",5),H());a&2&&(a=b.$implicit,b=b.last,B(2),Jf(a),B(1),D("ngIf",!b))},F$a=function(a){a&
1&&(G(0,"span"),O(1,E$a,4,2,"span",19),H());a&2&&(a=M(4).$implicit,B(1),D("ngForOf",a.removed))},G$a=function(a){a&1&&(G(0,"div")(1,"label"),P(2),H(),O(3,C$a,2,1,"span",5),O(4,F$a,2,1,"span",5),H());a&2&&(a=M(3).$implicit,B(2),If("-",a.displayName,":\u200b"),B(1),D("ngIf",a.isUser),B(1),D("ngIf",!a.isUser))},H$a=function(a){a&1&&(G(0,"div",8),O(1,z$a,5,3,"div",5),O(2,G$a,5,3,"div",5),H());if(a&2){a=M(2).$implicit;var b=M();B(1);D("ngIf",a.added&&a.added.length&&b.isStringArray(a.added));B(1);D("ngIf",
a.removed&&a.removed.length&&b.isStringArray(a.removed))}},I$a=function(a){a&1&&zf(0)},K$a=function(a,b){a&1&&(G(0,"span"),O(1,I$a,1,0,"ng-container",20),H());if(a&2){a=b.$implicit;b=b.last;var c=M(4).$implicit;M();var d=Hf(3);B(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Pf(J$a,c,a,b))}},L$a=function(a){a&1&&(G(0,"div")(1,"label"),P(2),H(),O(3,K$a,2,6,"span",19),H());a&2&&(a=M(3).$implicit,B(2),If("+",a.displayName,":\u200b"),B(1),D("ngForOf",a.added))},M$a=function(a){a&1&&zf(0)},N$a=function(a,
b){a&1&&(G(0,"span"),O(1,M$a,1,0,"ng-container",20),H());if(a&2){a=b.$implicit;b=b.last;var c=M(4).$implicit;M();var d=Hf(3);B(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Pf(J$a,c,a,b))}},O$a=function(a){a&1&&(G(0,"div")(1,"label"),P(2),H(),O(3,N$a,2,6,"span",19),H());a&2&&(a=M(3).$implicit,B(2),If("-",a.displayName,":\u200b"),B(1),D("ngForOf",a.removed))},P$a=function(a){a&1&&(G(0,"div",8),O(1,L$a,4,2,"div",5),O(2,O$a,4,2,"div",5),H());if(a&2){a=M(2).$implicit;var b=M();B(1);D("ngIf",a.added&&
a.added.length&&b.isLinkedItemArray(a.added));B(1);D("ngIf",a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed))}},Q$a=function(a){a&1&&J(0,"b-formatted-date-time",15);a&2&&(a=M().$implicit,D("timestamp",a))},R$a=function(a){a&1&&(G(0,"span"),P(1," - "),H())},S$a=function(a,b){a&1&&(G(0,"span"),J(1,"b-formatted-date-time",15),O(2,R$a,2,0,"span",5),H());a&2&&(a=b.$implicit,b=b.last,B(1),D("timestamp",a),B(1),D("ngIf",!b))},T$a=function(a){a&1&&(G(0,"span"),O(1,S$a,3,2,"span",19),H());a&2&&
(a=M(4).$implicit,B(1),D("ngForOf",a.oldValue.split(", ")))},U$a=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),Jf(a))},V$a=function(a){a&1&&(xf(0),O(1,Q$a,1,1,"b-formatted-date-time",14),O(2,T$a,2,1,"span",5),O(3,U$a,2,1,"span",5),P(4," \u00a0 "),J(5,"span",11),P(6," \u00a0 "),yf());if(a&2){a=M(3).$implicit;var b=M();B(1);D("ngIf",it(b,a,"oldValue"));B(1);D("ngIf",jt(b,a,"oldValue"));B(1);D("ngIf",!it(b,a,"oldValue")&&!jt(b,a,"oldValue"))}},W$a=function(a){a&1&&J(0,"b-formatted-date-time",
15);a&2&&(a=M().$implicit,D("timestamp",a))},X$a=function(a){a&1&&(G(0,"span"),P(1," - "),H())},Y$a=function(a,b){a&1&&(G(0,"span"),J(1,"b-formatted-date-time",15),O(2,X$a,2,0,"span",5),H());a&2&&(a=b.$implicit,b=b.last,B(1),D("timestamp",a),B(1),D("ngIf",!b))},Z$a=function(a){a&1&&(G(0,"span"),O(1,Y$a,3,2,"span",19),H());a&2&&(a=M(4).$implicit,B(1),D("ngForOf",a.newValue.split(", ")))},$$a=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M().$implicit,B(1),Jf(a))},aab=function(a){a&1&&(xf(0),O(1,
W$a,1,1,"b-formatted-date-time",14),O(2,Z$a,2,1,"span",5),O(3,$$a,2,1,"span",5),yf());if(a&2){a=M(3).$implicit;var b=M();B(1);D("ngIf",it(b,a,"newValue"));B(1);D("ngIf",jt(b,a,"newValue"));B(1);D("ngIf",!it(b,a,"newValue")&&!jt(b,a,"newValue"))}},bab=function(a){a&1&&(G(0,"div",8)(1,"label"),P(2),H(),O(3,V$a,7,3,"ng-container",5),O(4,aab,4,3,"ng-container",5),H());if(a&2){a=M(2).$implicit;var b=M();B(1);nf("title",b.customFieldName(a));B(1);If("",b.customFieldName(a),":\u200b");B(1);D("ngIf",a.oldValue);
B(1);D("ngIf",a.newValue)}},cab=function(a){a&1&&(xf(0),J(1,"b-formatted-date-time",6),O(2,s$a,6,4,"div",7),O(3,H$a,3,2,"div",7),O(4,P$a,3,2,"div",7),O(5,bab,5,4,"div",7),yf());a&2&&(a=M().$implicit,B(1),D("timestamp",a.timestamp),B(1),D("ngIf","SINGLE_VALUE"===a.type),B(1),D("ngIf","COLLECTION"===a.type||"USER_COLLECTION"===a.type),B(1),D("ngIf","LINKED_COLLECTION"===a.type),B(1),D("ngIf","CUSTOM_FIELD"===a.type))},dab=function(a,b){a&1&&(G(0,"div",4),O(1,cab,6,5,"ng-container",5),H());a&2&&(a=b.$implicit,
b=M(),B(1),D("ngIf","sloSnoozeUntil"===(null==a?void 0:a.name)?b.activeSession.isInternalSession():!0))},eab=function(a){a&1&&J(0,"b-issue-card",25,26);if(a&2){var b=Hf(1);a=M(2).$implicit;var c=M(2);D("onedevIsHovercardReady",b.init)("issueId",c.asNumber(a))}},fab=function(a){a&1&&(G(0,"span"),P(1,", "),H())},gab=function(a){a&1&&(G(0,"span")(1,"onedev-hovercard",null,22),O(3,eab,2,2,"b-issue-card",23),H(),G(4,"b-issue-reference-widget",24),P(5),H(),O(6,fab,2,0,"span",5),H());if(a&2){var b=Hf(2);
a=M().$implicit;var c=M(),d=c.change;c=c.isLast;var e=M();B(4);D("href",d.href)("onedevHovercardTrigger",b)("issueId",e.asNumber(a));B(1);Jf(a);B(1);D("ngIf",!c)}},hab=function(a){a&1&&(G(0,"span"),P(1,", "),H())},iab=function(a){a&1&&(xf(0),J(1,"hotlist-link",13),O(2,hab,2,0,"span",5),yf());if(a&2){a=M(2).$implicit;var b=M().isLast;B(1);D("id",a);B(1);D("ngIf",!b)}},jab=function(a){a&1&&(G(0,"span"),P(1,", "),H())},kab=function(a){a&1&&(G(0,"a",28),P(1),H(),O(2,jab,2,0,"span",5));if(a&2){a=M(2).$implicit;
var b=M(),c=b.isLast;D("href",b.change.href,Kd);B(1);Jf(a);B(1);D("ngIf",!c)}},lab=function(a){a&1&&(O(0,iab,3,2,"ng-container",9),O(1,kab,3,3,"ng-template",null,27,gg));if(a&2){var b=Hf(2);a=M(2).diff;var c=M();D("ngIf",c.isHotlistDiff(a))("ngIfElse",b)}},mab=function(a){a&1&&(xf(0),O(1,gab,7,5,"span",9),O(2,lab,3,2,"ng-template",null,21,gg),yf());if(a&2){var b=Hf(3);a=M().diff;var c=M();B(1);D("ngIf",c.isIssueDiff(a))("ngIfElse",b)}},nab=function(a,b){a&1&&O(0,mab,4,2,"ng-container",5);a&2&&D("ngIf",
b.change.value)},oab=function(a){a&1&&(G(0,"span"),P(1,"Estimated Effort (disabled)"),H())},pab=function(a){a&1&&(xf(0),J(1,"b-component-card",3,4),yf());if(a&2){var b=Hf(2);a=M();B(1);D("onedevIsHovercardReady",b.init)("componentId",a.id)}},qab=function(a){a&1&&J(0,"b-user-email",5);a&2&&(a=M().$implicit,D("email",a.text)("withProfile",!0))},rab=function(a){a&1&&(G(0,"b-issue-reference-widget",6),xf(1),P(2),yf(),H());if(a&2){a=M().$implicit;var b=M();D("href",pn(a.text))("issueId",b.getIssueId(a));
B(2);Jf(a.text)}},sab=function(a){a&1&&(xf(0),P(1),yf());a&2&&(a=M().$implicit,B(1),Jf(a.text))},tab=function(a,b){a&1&&(xf(0)(1,1),O(2,qab,1,2,"b-user-email",2),O(3,rab,3,3,"b-issue-reference-widget",3),O(4,sab,2,1,"ng-container",4),yf()());a&2&&(a=b.$implicit,B(1),D("ngSwitch",a.tag),B(1),D("ngSwitchCase","user"),B(1),D("ngSwitchCase","bug"))},uab=function(a,b){a&1&&(J(0,"b-user-membership-chip",24),Q(1,"async"));if(a&2){a=b.ngIf;b=M(2);var c;D("user",b.event.userPerformingActionUser)("email",a)("teamId",
null!==(c=R(1,3,b.teamId$))&&void 0!==c?c:"")}},vab=function(a){a&1&&J(0,"b-user-display",25);a&2&&(a=M(2),D("model",a.event.userPerformingActionUser))},wab=function(a){a&1&&zf(0)},xab=function(a){a&1&&(xf(0),G(1,"span",26),O(2,wab,1,0,"ng-container",27),H(),G(3,"onedev-hovercard",null,28),J(5,"b-issue-person-card",29),H(),yf());if(a&2){var b=Hf(4);M();var c=Hf(10);a=M();B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.getUserEmailIfAvailable())}},yab=function(a){a&
1&&(G(0,"span",30),P(1),H());a&2&&(a=M(2),B(1),If(" <",Ll(a.event.userPerformingActionUser),"> "))},zab=function(a){if(a&1){var b=x();G(0,"span")(1,"a",31);K("click",function(c){z(b);var d=M(2);d.issueReferenceResolver.visit({issueId:d.issueId,elementId:"comment"+d.event.commentNumber,event:c});return A()});P(2);H()()}a&2&&(a=M(2),B(1),D("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),nf("aria-label","Comment number"+a.event.commentNumber),B(1),If(" #",a.event.commentNumber,""))},Aab=
function(a){if(a&1){var b=x();G(0,"button",32);K("click",function(){z(b);var c=M(2);return A(kt(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});H()}},Bab=function(a){a&1&&J(0,"b-restricted-chip",33);if(a&2){a=M(2);var b,c;D("label",a.getRestrictedLabel())("retention",null!==(b=a.event.commentRetention)&&void 0!==b?b:void 0)("retentionState",null!==(c=a.event.commentRetentionState)&&void 0!==c?c:void 0)}},Dab=function(a){a&1&&(J(0,"b-actions-menu",34,35),Q(2,"async"));if(a&
2){a=M(2);var b;D("buttonLabel","Comment actions")("menuItems",null!==(b=R(2,2,a.commentActionMenuItems$))&&void 0!==b?b:Mf(4,Cab))}},Eab=function(a){a&1&&(G(0,"div",36),J(1,"b-tagged-text",37),H());a&2&&(a=M(2),B(1),D("texts",a.event.taggedSummary))},Fab=function(a){a&1&&(J(0,"b-issue-event-details",38),Q(1,"async"),Q(2,"async"));if(a&2){a=M().ngIf;var b=M(),c;D("diffs",b.event.preDiffs)("customFieldMap",a.customFieldMap)("effortSpecName",null==(c=R(1,4,b.effortSpec$))?null:c.getName())("effortEnabled",
!!R(2,6,b.isEffortEnabled$))}},Gab=function(a){a&1&&J(0,"b-formatted-date-time",39);a&2&&(a=M(2),D("timestamp",a.event.modifiedDate))},Hab=function(a){a&1&&(G(0,"div",40),P(1," Comment has been deleted. "),H())},Iab=function(a){if(a&1){var b=x();G(0,"b-restricted-comment-placeholder",41);K("onConfirm",function(){z(b);var c=M(2);return A(c.loadRestrictedComment())});Q(1,"async");H()}a&2&&(a=M(2),D("disabled",!R(1,1,a.mayReadPii$)))},Jab=function(a){a&1&&J(0,"b-note-container",42);a&2&&(a=M(2),D("issueId",
a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",a.formattingMode))},Kab=function(a){if(a&1){var b=x();G(0,"a",46);K("click",function(){z(b);var c=M(3);return A(c.showCommentHistoryDialog(c.event.commentNumber))});P(1," Show History ");H()}},Lab=function(a){a&1&&(G(0,"div",43),J(1,"b-comment-edit-timestamp-message",44),O(2,Kab,2,0,"a",45),H());a&2&&(a=M(2),B(1),D("event",a.event),B(1),D("ngIf",a.commentHistoryEnabled))},Mab=function(a){a&1&&(J(0,
"b-issue-event-details",38),Q(1,"async"),Q(2,"async"));if(a&2){a=M().ngIf;var b=M(),c;D("diffs",b.event.postDiffs)("customFieldMap",a.customFieldMap)("effortSpecName",null==(c=R(1,4,b.effortSpec$))?null:c.getName())("effortEnabled",!!R(2,6,b.isEffortEnabled$))}},Nab=function(a,b){a&1&&(G(0,"div",49),J(1,"b-attachment-viewer",50),H());a&2&&(a=b.$implicit,b=M(3),Ef("id","attachment",a.attachmentId,""),B(1),D("issueId",b.issueId)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable()))},Oab=
function(a){a&1&&(G(0,"div",47),O(1,Nab,2,4,"div",48),H());a&2&&(a=M(2),B(1),D("ngForOf",a.event.attachments))},Pab=function(a){a&1&&(xf(0),G(1,"div",1),J(2,"b-user-image",2),H(),G(3,"div",3)(4,"h4",4),O(5,uab,2,5,"b-user-membership-chip",5),O(6,vab,1,1,"ng-template",null,6,gg),O(8,xab,6,3,"ng-container",7),O(9,yab,2,1,"ng-template",null,8,gg),O(11,zab,3,3,"span",0),O(12,Aab,1,0,"button",9),Q(13,"async"),G(14,"span",10),O(15,Bab,1,3,"b-restricted-chip",11),J(16,"b-formatted-date-time",12),O(17,Dab,
3,5,"b-actions-menu",13),H()(),J(18,"div",14),O(19,Eab,2,1,"div",15),O(20,Fab,3,8,"b-issue-event-details",16),Q(21,"async"),J(22,"div",14),G(23,"div",17)(24,"div"),O(25,Gab,1,1,"b-formatted-date-time",18),Q(26,"async"),O(27,Hab,2,0,"div",19),O(28,Iab,2,3,"b-restricted-comment-placeholder",20),O(29,Jab,1,4,"b-note-container",21),H(),O(30,Lab,3,2,"div",22),H(),O(31,Mab,3,8,"b-issue-event-details",16),Q(32,"async"),J(33,"div",14),O(34,Oab,2,1,"div",23),J(35,"div",14),H(),yf());if(a&2){var b=Hf(7),c=
Hf(10);a=M();B(2);D("email",a.getUserEmailIfAvailable());B(2);var d=[];a.event&&a.event.commentNumber&&d.push("Comment number: "+a.event.commentNumber);a.event&&a.event.userPerformingActionUser&&d.push("User: "+Ll(a.event.userPerformingActionUser));nf("aria-label",d.join(" "));B(1);D("ngIf",a.enableTeamAnnotations&&a.getUserEmailIfAvailable())("ngIfElse",b);B(3);D("ngIf",a.isNonObfuscatedEmail(a.getUserEmailIfAvailable()))("ngIfElse",c);B(3);D("ngIf",a.isCommentEvent(a.event));B(1);D("ngIf",R(13,
20,a.canEditComment$)&&!lt(a));B(3);D("ngIf",a.isRestricted());B(1);D("timestamp",a.event.modifiedDate);B(1);D("ngIf",a.isCommentEvent(a.event));B(2);D("ngIf",a.event.taggedSummary&&a.event.taggedSummary.length);B(1);D("ngIf",R(21,22,a.showFullHistory$));B(5);D("ngIf",R(26,24,a.isShowingCommentTimestamp$));B(2);D("ngIf",a.isDeleted());B(1);D("ngIf",lt(a)&&!a.isDeleted());B(1);D("ngIf",xn(a.event)&&!!a.event.unlinkifiedComment&&!lt(a)&&!a.isDeleted());B(1);D("ngIf",a.isCommentEvent(a.event)&&0<(a.event.commentVersion||
0)&&!lt(a));B(1);D("ngIf",R(32,26,a.showFullHistory$));B(3);D("ngIf",null==a.event?null:null==a.event.attachments?null:a.event.attachments.length)}},Qab=function(a){a&1&&(G(0,"aside",4),J(1,"b-spinner"),H())},Rab=function(a){a&1&&(G(0,"div",6),J(1,"b-history-event",7),H());if(a&2){a=M().$implicit;var b=M();B(1);D("issueId",b.internalIssueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Sab=function(a,b){a&1&&(xf(0),O(1,Rab,2,3,"div",5),yf());a&2&&(a=b.$implicit,b=M(),B(1),D("ngIf",b.internalIssueId&&
b.showEvent(a)))},Vab=function(a){a&1&&(J(0,"b-issue-event-details",9),Q(1,"async"),Q(2,"async"),Q(3,"async"));if(a&2){a=M().ngIf;var b=M(),c,d;D("diffs",null!==(c=R(1,4,b.firstEventPostDiffs$))&&void 0!==c?c:Mf(10,Uab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=R(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!R(3,8,b.isEffortEnabled$))}},Wab=function(a){a&1&&(xf(0),O(1,Vab,4,11,"b-issue-event-details",8),yf());a&2&&(a=M(),B(1),D("ngIf",0===a.allEventsToDisplay.length&&
a.showFullHistory))},Xab=function(a){a&1&&(G(0,"aside",4),J(1,"b-spinner"),H())},Yab=function(a){a&1&&(G(0,"div",3),J(1,"b-history-event",4),H());if(a&2){a=M().$implicit;var b=M();B(1);D("issueId",b.issueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Zab=function(a,b){a&1&&(xf(0),O(1,Yab,2,3,"div",2),yf());a&2&&(a=b.$implicit,b=M(),B(1),D("ngIf",b.issueId&&b.showEvent(a)))},abb=function(a,b){a&1&&(J(0,"b-history-event-stream",4),Q(1,"async"),Q(2,"async"),Q(3,"async"));a&2&&(a=b.$implicit,
b=M(),D("events",Nf(10,$ab,a))("issueId",R(1,4,b.idNumber$))("issueAccessLevel",R(2,6,b.accessLevel$))("showFullHistory",R(3,8,b.preferences.showFullHistory$)))},bbb=function(a){a&1&&(J(0,"b-event-stream",5),Q(1,"async"),Q(2,"slice"),Q(3,"async"),Q(4,"async"),Q(5,"async"),Q(6,"async"));a&2&&(a=M(),D("issueId",R(1,5,a.idNumber$))("events",Rf(2,7,R(3,10,a.events$),1))("firstEventPostDiffs",R(4,12,a.firstEventPostDiffs$))("issueAccessLevel",R(5,14,a.accessLevel$))("showFullHistory",R(6,16,a.preferences.showFullHistory$)))},
cbb=function(a){a&1&&(J(0,"b-history-event-stream",6),Q(1,"async"),Q(2,"async"),Q(3,"slice"),Q(4,"async"),Q(5,"async"));a&2&&(a=M(),D("issueId",R(1,4,a.idNumber$))("issueAccessLevel",R(2,6,a.accessLevel$))("events",Rf(3,8,R(4,11,a.events$),1))("showFullHistory",R(5,13,a.preferences.showFullHistory$)))},dbb=function(a){a&1&&(G(0,"aside",7),J(1,"b-spinner"),H())},ebb=function(a){if(a&1){var b=x();G(0,"span")(1,"b-checkbox",9);K("change",function(){z(b);var c=M(3);return A(c.toggleAutoCcOnComment())});
Q(2,"async");Q(3,"async");H()()}a&2&&(a=M(3),B(1),D("checked",!!R(2,2,a.autoCcOnComment$))("disabled",!!R(3,4,a.isCurrentUserCCd$)))},fbb=function(a){a&1&&(J(0,"b-checkbox",12),Q(1,"async"));a&2&&(a=M(4),D("checked",!0)("disabled",!0)("tooltip",R(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},gbb=function(a){a&1&&(G(0,"span",10),O(1,fbb,2,5,"b-checkbox",11),Q(2,"async"),H());a&2&&(a=M(3),B(1),D("ngIf",R(2,1,a.isCurrentUserCCd$)))},hbb=function(a){a&1&&J(0,"b-markdown-toggle")},kbb=
function(a){if(a&1){var b=x();xf(0);G(1,"h3",1);P(2,"Add comment");H();G(3,"div",2)(4,"b-comment-box",3,4);K("onHotkey",function(){z(b);var f=Hf(5);return A(ibb(f,"editpage-hotkey"))})("onChange",function(){z(b);var f=M(2);return A(f.saveCommentDraft())})("onSubmit",function(){z(b);var f=M(2);return A(f.legacyEditIssue.submitCommentBox())})("onRestrict",function(){z(b);var f=M(2);return A(f.legacyEditIssue.showNewContentJudgementDialog())});Q(6,"async");Q(7,"async");Q(8,"async");Q(9,"async");G(10,
"div",5)(11,"b-button",6);K("onAction",function(){z(b);var f=M(2);return A(f.legacyEditIssue.submitCommentBox())});P(12," Comment ");H();G(13,"div",5);O(14,ebb,4,6,"span",0);Q(15,"async");Q(16,"async");O(17,gbb,3,3,"span",7);Q(18,"async");Q(19,"async");O(20,hbb,1,0,"b-markdown-toggle",0);Q(21,"async");H();J(22,"b-access-level-indicator",8);Q(23,"async");H()()();yf()}if(a&2){a=M().ngIf;var c=M(),d,e;B(4);D("hotkey",c.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.issueId)("comment",R(6,
14,c.comment$))("componentId",a.componentId)("placeholder",null!==(d=R(7,16,c.commentPlaceholderText$))&&void 0!==d?d:void 0)("judgementForNewContent",c.legacyEditIssue.judgementForNewContent)("audience",null!==(e=R(8,18,c.audience$))&&void 0!==e?e:void 0)("disabled",!1===R(9,20,c.commentBoxEnabled$));B(7);D("disabled",!jbb(c.legacyEditIssue));B(3);D("ngIf",!R(15,22,c.isCurrentUserCCd$)&&R(16,24,c.hasAclToEdit$));B(3);D("ngIf",R(18,26,c.isCurrentUserCCd$)||!R(19,28,c.hasAclToEdit$));B(3);D("ngIf",
R(21,30,c.hasAclToComment$));B(2);D("accessLevel",R(23,32,c.accessLevel$))}},lbb=function(a,b){a&1&&(xf(0),O(1,kbb,24,34,"ng-container",0),yf());a&2&&(a=b.ngIf,b=M(),B(1),D("ngIf",b.legacyEditIssue&&!a.isDeleted))},mbb=function(a,b){a&1&&(G(0,"div",2),J(1,"issue-description-area",3)(2,"b-issue-description",4),H());a&2&&(a=b.$implicit,B(1),D("id",a),B(1),D("id",a))},nbb=function(a){a&1&&J(0,"issue-description-area",3);a&2&&(a=M().$implicit,D("id",a))},obb=function(a){a&1&&(xf(0),J(1,"b-event-stream-header"),
yf())},pbb=function(a){a&1&&J(0,"issue-event-list",4);a&2&&(a=M().$implicit,D("id",a))},qbb=function(a){a&1&&J(0,"issue-event-list",4);a&2&&(a=M().$implicit,D("id",a))},rbb=function(a,b){a&1&&(G(0,"div",5),O(1,nbb,1,1,"issue-description-area",6),O(2,obb,2,0,"ng-container",7),O(3,pbb,1,1,"issue-event-list",8),J(4,"b-post-comment",9),O(5,qbb,1,1,"issue-event-list",8),H());a&2&&(a=b.$implicit,b=M(),D("bFocus",!0),B(1),D("ngIf",!b.enableEnhancedCommentThread),B(1),D("ngIf",b.enableEnhancedCommentThread),
B(1),D("ngIf",!b.enableEnhancedCommentThread||!b.showRecentEventsFirst),B(1),D("issueId",a),B(1),D("ngIf",b.enableEnhancedCommentThread&&b.showRecentEventsFirst))},sbb=function(a){a&1&&(G(0,"div",4),J(1,"img",5),G(2,"p",6),P(3," This issue has no resources "),H(),G(4,"p",7),P(5," If there were any links or bugs mentioned in the comments or description of the issue, they would appear here. "),G(6,"a",8),P(7,"Learn more"),H()()());a&2&&(a=M(2),B(1),D("src",a.ROBOT_SLEEPING,Kd))},tbb=function(a,b){a&
1&&(xf(0),O(1,sbb,8,1,"div",3),yf());if(a&2){a=b.ngIf;M();var c=Hf(4);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},ubb=function(a){a&1&&(xf(0),G(1,"h2"),P(2),H(),J(3,"b-issues-table",12),yf());a&2&&(a=M().ngIf,B(2),If("Related issues (",a.length,")"),B(1),D("issueIds",a))},vbb=function(a,b){a&1&&(xf(0),O(1,ubb,4,2,"ng-container",1),yf());a&2&&(a=b.ngIf,B(1),D("ngIf",0<a.length))},wbb=function(a){a&1&&(G(0,"h2"),P(1),H());a&2&&(a=M().ngIf,B(1),If("Other linked resources (",a.length,")"))},xbb=function(a,
b){a&1&&(G(0,"ul")(1,"li")(2,"b-external-hyperlink-widget",14),P(3),H()()());a&2&&(a=b.$implicit,B(2),D("href",a.href)("originalHref",a.href),B(1),Jf(a.href))},ybb=function(a,b){a&1&&(xf(0),O(1,wbb,2,1,"h2",1),O(2,xbb,4,3,"ul",13),yf());a&2&&(a=b.ngIf,B(1),D("ngIf",0<a.length),B(1),D("ngForOf",a))},zbb=function(a){a&1&&(G(0,"div",9),O(1,vbb,2,1,"ng-container",1),Q(2,"async"),J(3,"br"),O(4,ybb,3,2,"ng-container",1),Q(5,"async"),J(6,"br")(7,"hr",10),G(8,"p",7),J(9,"mat-icon",11),P(10," This page shows links or bugs mentioned in the comments or description of the issue. "),
G(11,"a",8),P(12,"Learn more"),H()()());a&2&&(a=M(),B(1),D("ngIf",R(2,2,a.ids$)),B(3),D("ngIf",R(5,4,a.hyperlinks$)))},Abb=function(a){a&1&&(G(0,"div",4),J(1,"img",5),G(2,"p",6),P(3," This issue has no TODOs "),H(),G(4,"p",7),P(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),G(6,"a",8),P(7,"Learn more"),H()()());a&2&&(a=M(3),B(1),D("src",a.ROBOT_SLEEPING,Kd))},Bbb=function(a,b){a&1&&J(0,"b-package-mentions-listing",12);if(a&2){a=b.$implicit;b=M(3).ngIf;
var c=M().ngIf,d=M();D("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},Cbb=function(a){if(a&1){var b=x();xf(0);O(1,Bbb,1,3,"b-package-mentions-listing",9);G(2,"p",10)(3,"a",11);K("click",function(){z(b);var c=M(4);return A(c.trackSqueegeeClick())});P(4,"View in Squeegee");H()();yf()}a&2&&(a=M(2).ngIf,B(1),D("ngForOf",a.mentions.packageMentionSet),B(2),D("href",a.link,Kd))},Dbb=function(a){a&1&&O(0,Cbb,5,2,"ng-container",1);a&2&&(a=M().ngIf,D("ngIf",a.mentions))},
Ebb=function(a,b){a&1&&(xf(0),O(1,Abb,8,1,"div",2),O(2,Dbb,1,1,"ng-template",null,3,gg),yf());if(a&2){a=b.ngIf;var c=Hf(3);M(2);B(1);D("ngIf",!(a.mentions&&0<a.mentions.totalMentions))("ngIfElse",c)}},Fbb=function(a){a&1&&(xf(0),O(1,Ebb,4,2,"ng-container",1),Q(2,"async"),yf());a&2&&(a=M(),B(1),D("ngIf",R(2,1,a.codeMentionsState$)))},Gbb=function(a){a&1&&J(0,"b-spinner",6);a&2&&D("large",!0)},Hbb=function(a){a&1&&J(0,"b-hotlist-grid",7);a&2&&(a=M(),D("hotlists",a.hotlists))},Ibb=function(a){a&1&&(G(0,
"div",9),J(1,"b-spinner"),G(2,"span"),P(3),H()());a&2&&(a=M(),B(3),If(" Searching",a.query?" for "+a.query:"","..."))},Jbb=function(a){a&1&&(xf(0),P(1," No issues matched your search. "),yf())},Kbb=function(a){a&1&&P(0," Use search box to find issues. ")},Lbb=function(a){a&1&&(G(0,"div",10),O(1,Jbb,2,0,"ng-container",11),O(2,Kbb,1,0,"ng-template",null,12,gg),H());if(a&2){var b=Hf(3);a=M();D("bFocus",!0);B(1);D("ngIf",a.query)("ngIfElse",b)}},Nbb=function(a){if(a&1){var b=x();G(0,"div",13)(1,"b-issues-grid",
14);K("init",function(c){z(b);var d=M();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);var d=M();return A(d.issueColumns=c)})("columnsChange",function(){z(b);M();Mbb();return A()})("sortChange",function(c){z(b);var d=M();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=M();return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=M();return A(mt(c,c.page,1))})("onPrevPage",function(){z(b);var c=M();return A(mt(c,c.page,-1))});H()()}a&
2&&(a=M(),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Obb=function(a){a&1&&(G(0,"div",9),J(1,"b-spinner"),P(2," Loading recent issues... "),H())},Pbb=function(a){a&1&&(G(0,"div",10),P(1," No recent issues found. "),H())},Qbb=function(a){if(a&1){var b=x();G(0,"div",11)(1,"b-issues-grid",12);K("init",function(c){z(b);var d=M();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);
var d=M();return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=M();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=M();return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=M(),d;return A(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)+1))})("onPrevPage",function(){z(b);var c=M(),d;return A(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)-1))});H()()}a&2&&(a=M(),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",
a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Rbb=function(a,b){return b.map(function(c){var d=a.indexOf(String(c.id));return[a.length-d,c]}).sort(function(c,d){var e=r(c);c=e.next().value;e.next();d=r(d);e=d.next().value;d.next();return c-e}).map(function(c){c=r(c);c.next();return c.next().value})},Sbb=function(a){a&1&&(G(0,"div",6)(1,"h2"),P(2,"Manage SLOs"),H(),G(3,"p",7),P(4,"You have admin rights for all SLOs listed below."),H()())},Tbb=function(a){a&1&&
J(0,"b-spinner",8);a&2&&D("large",!0)},Ubb=function(a){a&1&&(G(0,"div",11),P(1,"You have no Active SLOs"),H())},Vbb=function(a){a&1&&J(0,"b-slo-grid",12);a&2&&(a=M(2),D("slos",a.activeSlos))},Wbb=function(a){a&1&&(xf(0),O(1,Ubb,2,0,"div",9),O(2,Vbb,1,1,"b-slo-grid",10),yf());a&2&&(a=M(),B(1),D("ngIf",!a.activeSlos.length),B(1),D("ngIf",a.activeSlos.length))},Xbb=function(a){a&1&&(G(0,"p",19),P(1," You have no archived SLOs. "),H())},Ybb=function(a){a&1&&J(0,"b-slo-grid",12);a&2&&(a=M(3),D("slos",
a.archivedSlos))},Zbb=function(a){a&1&&(G(0,"div",17),O(1,Xbb,2,0,"p",18),O(2,Ybb,1,1,"b-slo-grid",10),H());a&2&&(a=M(2),B(1),D("ngIf",!a.archivedSlos.length),B(1),D("ngIf",a.archivedSlos.length))},$bb=function(a){if(a&1){var b=x();xf(0);G(1,"button",13);K("click",function(){z(b);var c=M();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return A()});G(2,"h4",14);J(3,"mat-icon",15);P(4);H()();O(5,Zbb,3,2,"div",16);yf()}a&2&&(a=M(),B(3),sf("rotate-180",a.areArchivedSlosExpanded),D("svgIcon","arrow-dropdown"),
B(1),If(" Archived SLOs (",a.archivedSlos.length,") "),B(1),D("ngIf",a.areArchivedSlosExpanded))},acb=function(a){var b={};a=r(a.groupMetadata);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},dcb=function(a){return{approximateSize:dj(a,2),groupEmail:V(a,1),sizeCategory:bcb[X(a,3,0)],permissionCategory:ccb[X(a,5,0)]}},ecb=function(a){var b;return{groupMetadata:(null!=(b=rb(a,nt,1))?b:[]).map(dcb)}},fcb=function(a){a&1&&(xf(0),G(1,"p"),P(2,"Team inheritance path:"),H(),J(3,
"b-team-breadcrumb",1),yf());a&2&&(a=M(),B(3),D("teamPath",a.teamPath))},gcb=function(a){a&1&&(xf(0),G(1,"p"),P(2,"Component inheritance path:"),H(),J(3,"b-component-breadcrumb",2),yf());a&2&&(a=M(),B(3),D("componentPathInfo",a.componentPath))},icb=function(a,b){var c=[];if(!b||!a)return c;for(var d=r(hcb),e=d.next();!e.done;e=d.next()){e=e.value;var f=Pi(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},kcb=function(a,b){if(!a.appenders||!b||Ei(b.appenders,
a.appenders))return!1;a=r(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,jcb.has(c)&&!b.appenders.includes(c))return!0;return!1},lcb=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next())switch(c=c.value,c.sizeCategory){case "LARGE":case "HUGE":case "ENORMOUS":b.set(c.groupEmail,c)}return b},mcb=function(a,b){return 0!==a&&0!==b?"Adding large and open groups to a public component":0!==a?1===a?"Adding a large group to a public component":"Adding large groups to a public component":
1===b?"Adding an open group to a public component":"Adding open groups to a public component"},ncb=function(a){if(0===a.size)return ot;for(var b=1===a.size?Pn("P",{},"The following large group is added: "):Pn("P",{},"The following large groups are added: "),c=[],d=r(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Pn("P",{},Qn(Pn("B",{},e)," has approximately ",Pn("B",{},f)," Googlers.")))}return Qn(b,c)},ocb=function(a){if(0===a.size)return ot;var b=1===a.size?
Pn("P",{},"The following open group is added: "):Pn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Pn("P",{},Pn("B",{},d.value)));return Qn(b,c)},pcb=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,"OPEN_TO_JOIN"===c.permissionCategory&&b.set(c.groupEmail,c);return b},qcb=function(a,b){var c=b.restrictedPlusReaders;return 0<a.restrictedPlusReaders.filter(function(d){return!c.includes(d)}).filter(function(d){return d.startsWith("3:")}).length},
rcb=function(a,b,c){a="2:"+a;b=b.admins.concat(b.inheritedAdmins);var d=c.admins.concat(c.inheritedAdmins);c=b.filter(function(f){return!d.includes(f)});b=c.filter(function(f){return f.startsWith("3:")});var e=c.filter(function(f){return f.startsWith("2:")});return d.includes(a)||0===c.length?!1:e.includes(a)?!0:b.length?!0:!1},pt=function(a){var b=a.split(":");a=Number(b[0]);return 4===a?(b=b[1],{value:b,displayText:Ppa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,
detailedUserType:null}},scb=function(a,b){a&1&&J(0,"b-contact-chip",2);a&2&&(a=b.$implicit,b=M(2),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},tcb=function(a,b){a&1&&(xf(0),G(1,"tr")(2,"td"),P(3),H(),G(4,"td"),O(5,scb,1,5,"b-contact-chip",1),H()(),yf());a&2&&(a=b.$implicit,B(3),Jf(a.permission),B(2),D("ngForOf",a.principals))},Fcb=function(a){return[ucb,vcb,wcb,xcb,ycb,zcb,Acb,Bcb,Ccb,Dcb,Ecb].reduce(function(b,
c){return c(b)},a).permissionsFromRoles},ucb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.issuesPermissions.editors),u(b.editor),u(b.componentAdmin))))).sort(),d=[].concat(u(new Set([].concat(u(a.issuesPermissions.appenders),u(b.editor),u(b.componentAdmin))))).sort(),e=[].concat(u(new Set([].concat(u(a.issuesPermissions.readers),u(b.editor),u(b.componentAdmin))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},
a.componentPermissions,{admins:[].concat(u(new Set([].concat(u(b.componentAdmin),u(b.componentAdminOnly))))).sort()}),issuesPermissions:Object.assign({},a.issuesPermissions,{editors:c,appenders:d,readers:e})})}},vcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.componentPermissions.inheritedAdmins),u(b.inheritedComponentAdmin))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,
{inheritedAdmins:c})})}},wcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.issuesPermissions.admins),u(b.issueAdmin))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{admins:c})})}},xcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.componentPermissions.appenders),u(b.editor))))).sort(),d=[].concat(u(new Set([].concat(u(a.issuesPermissions.editors),
u(b.editor))))).sort(),e=[].concat(u(new Set([].concat(u(a.issuesPermissions.appenders),u(b.editor))))).sort(),f=[].concat(u(new Set([].concat(u(a.issuesPermissions.readers),u(b.editor))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c}),issuesPermissions:Object.assign({},a.issuesPermissions,{editors:d,appenders:e,readers:f})})}},ycb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.componentPermissions.appenders),
u(b.contributor))))).sort(),d=[].concat(u(new Set([].concat(u(a.issuesPermissions.appenders),u(b.contributor))))).sort(),e=[].concat(u(new Set([].concat(u(a.issuesPermissions.readers),u(b.contributor))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c}),issuesPermissions:Object.assign({},a.issuesPermissions,{appenders:d,readers:e})})}},zcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.issuesPermissions.readers),
u(b.viewer))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{readers:c})})}},Acb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.issuesPermissions.editors),u(b.editExistingIssuesOnly))))).sort(),d=[].concat(u(new Set([].concat(u(a.issuesPermissions.appenders),u(b.editExistingIssuesOnly))))).sort(),e=[].concat(u(new Set([].concat(u(a.issuesPermissions.readers),u(b.editExistingIssuesOnly))))).sort();
return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{editors:c,appenders:d,readers:e})})}},Bcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.componentPermissions.appenders),u(b.createIssuesOnly))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c})})}},Ccb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;
var c=[].concat(u(new Set([].concat(u(a.issuesPermissions.appenders),u(b.commentOnly))))).sort(),d=[].concat(u(new Set([].concat(u(a.issuesPermissions.readers),u(b.commentOnly))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{appenders:c,readers:d})})}},Dcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.issuesPermissions.restrictedReaders),u(b.viewRestricted))))).sort();return{rolesMap:b,
permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{restrictedReaders:c})})}},Ecb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(u(new Set([].concat(u(a.issuesPermissions.restrictedPlusReaders),u(b.viewRestrictedPlus))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{restrictedPlusReaders:c})})}},Gcb=function(a,b){return b.reduce(function(c,d){return d(c)},
a).rolesMap},qt=function(a){return[].concat(u(a.componentAdmin),u(a.componentAdminOnly),u(a.issueAdmin))},rt=function(a){var b=new Set(a);return function(c){return!b.has(c)}},Hcb=function(){var a=oc.apply(0,arguments).map(function(b){return new Set(b)}).reduce(function(b,c){for(var d=r(c),e=d.next();!e.done;e=d.next())e=e.value,b.has(e)||c.delete(e);return c});return[].concat(u(a)).sort()},Icb=function(a,b){var c=new Set(b);a=a.reduce(function(d,e){return c.has(e)?Object.assign({},d,{componentAdminsWithIssuesPermissions:[].concat(u(d.componentAdminsWithIssuesPermissions),
[e])}):Object.assign({},d,{componentAdminOnlyUsers:[].concat(u(d.componentAdminOnlyUsers),[e])})},{componentAdminOnlyUsers:[],componentAdminsWithIssuesPermissions:[]});b=a.componentAdminsWithIssuesPermissions;return{componentAdminOnlyUsers:a.componentAdminOnlyUsers.sort(),componentAdminsWithIssuesPermissions:b.sort()}},Jcb=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return[].concat(u(new Set([].concat(u(b?[].concat(u(b.inheritedAdmins||[]),u(b.admins||[]),u(b.appenders||[])):[]),
u(a?[].concat(u(a.admins||[]),u(a.editors||[]),u(a.appenders||[]),u(a.readers||[]),u(a.restrictedReaders||[]),u(a.restrictedPlusReaders||[])):[]))))).sort()},Kcb=function(a){return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:a.componentAccessPolicy.admins.sort()})})},Lcb=function(a){var b=a.issueAccessPolicy;b=[].concat(u(b.admins),u(b.editors),u(b.appenders),u(b.readers),u(b.restrictedReaders),u(b.restrictedPlusReaders));b=Icb(a.rolesMap.componentAdmin,b);return Object.assign({},
a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:b.componentAdminsWithIssuesPermissions,componentAdminOnly:b.componentAdminOnlyUsers})})},Mcb=function(a){var b=a.componentAccessPolicy.inheritedAdmins.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{inheritedComponentAdmin:b})})},Ncb=function(a){var b=new Set(a.rolesMap.componentAdmin),c=new Set(a.rolesMap.componentAdminOnly),d=a.rolesMap.inheritedComponentAdmin.filter(function(e){return!b.has(e)&&!c.has(e)}).sort();return Object.assign({},
a,{rolesMap:Object.assign({},a.rolesMap,{inheritedComponentAdminOnly:d})})},Ocb=function(a){var b=[].concat(u(new Set([].concat(u(a.issueAccessPolicy.admins))))).sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{issueAdmin:b})})},Pcb=function(a){var b=Hcb(a.componentAccessPolicy.appenders,a.issueAccessPolicy.editors),c=qt(a.rolesMap);b=b.filter(rt(c));return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{editor:b})})},Qcb=function(a){var b=Hcb(a.componentAccessPolicy.appenders,
a.issueAccessPolicy.appenders),c=qt(a.rolesMap);c=rt([].concat(u(c),u(a.issueAccessPolicy.editors)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{contributor:b})})},Rcb=function(a){var b=a.issueAccessPolicy.readers,c=qt(a.rolesMap);c=rt([].concat(u(c),u(a.issueAccessPolicy.editors),u(a.issueAccessPolicy.appenders)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewer:b})})},Scb=function(a){var b=a.issueAccessPolicy.editors,c=qt(a.rolesMap);
c=rt([].concat(u(c),u(a.componentAccessPolicy.appenders)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{editExistingIssuesOnly:b})})},Tcb=function(a){var b=a.componentAccessPolicy.appenders,c=qt(a.rolesMap);c=rt([].concat(u(c),u(a.issueAccessPolicy.editors),u(a.issueAccessPolicy.readers)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{createIssuesOnly:b})})},Ucb=function(a){var b=a.issueAccessPolicy.appenders,c=qt(a.rolesMap);c=rt([].concat(u(c),
u(a.componentAccessPolicy.appenders),u(a.issueAccessPolicy.editors)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{commentOnly:b})})},Vcb=function(a){var b=a.issueAccessPolicy.restrictedReaders.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewRestricted:b})})},Wcb=function(a){var b=a.issueAccessPolicy.restrictedPlusReaders.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewRestrictedPlus:b})})},st=function(a,b){var c;
(c=!b)||(c=!(!Ei(b.admins,a.admins)||!Ei(b.appenders,a.appenders)||!Ei(b.implicitAccess,a.implicitAccess)));return!c},Xcb=function(a,b){return b&&a?!Ei(a.admins,b.admins)||!Ei(a.editors,b.editors)||!Ei(a.appenders,b.appenders)||!Ei(a.readers,b.readers)||!Ei(a.restrictedReaders,b.restrictedReaders)||!Ei(a.restrictedPlusReaders,b.restrictedPlusReaders):!1},Ycb=function(a){if(a&1){var b=x();G(0,"input",17);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.rolesEditor.component.accessLimit.accessLevel=
c)});H()}a&2&&(a=M(2),D("disabled",!a.rolesEditor.isAdmin)("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Zcb=function(a){if(a&1){var b=x();G(0,"input",18);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});H()}a&2&&(a=M(2),D("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},$cb=function(a){if(a&1){var b=x();G(0,"input",19);K("ngModelChange",function(c){z(b);var d=
M(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});H()}a&2&&(a=M(2),D("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},bdb=function(a){a&1&&(G(0,"div",3)(1,"div",4)(2,"span",5),P(3,"Component visibility: "),H()(),G(4,"div",6)(5,"div",7),O(6,Ycb,1,2,"input",8),G(7,"label",9),P(8),H()(),G(9,"div",7),O(10,Zcb,1,2,"input",10),G(11,"label",11),P(12),H()(),G(13,"div",12),O(14,$cb,1,2,"input",13),G(15,"label",14),P(16),H()()(),
G(17,"p",15)(18,"a",16),P(19," Learn more "),H()()());a&2&&(a=M(),B(6),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),If(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),If(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),B(2),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),If(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC),
" "),B(2),D("href",adb(a.documentationLinks),Kd))},fdb=function(a,b){if(a&1){var c=x();xf(0);G(1,"tr")(2,"td")(3,"div",2)(4,"div",3)(5,"label",4);P(6);H();G(7,"button",5);J(8,"mat-icon",6);H()();G(9,"b-multi-user-input",7);K("usersChange",function(d){var e=z(c).$implicit,f=M();return A(f.updateRolesMap(e.roleType,d))})("isValid",function(d){var e=z(c).$implicit,f=M();f.aclFormValidity.set(e.roleType,d);d=[].concat(u(f.aclFormValidity.values())).every(Boolean);f.formIsValid.emit(d);return A()});H()()();
G(10,"td");J(11,"b-icon",8);H();G(12,"td");J(13,"b-icon",8);H();G(14,"td");J(15,"b-icon",8);H();G(16,"td");J(17,"b-icon",8);H();G(18,"td");J(19,"b-icon",8);H();G(20,"td");J(21,"b-icon",8);H();G(22,"td");J(23,"b-icon",8);H();G(24,"td");J(25,"b-icon",8);H()();yf()}a&2&&(a=b.$implicit,b=M(),B(3),sf("bv2-edit-resource-readonly",b.canEdit),B(3),Jf(a.label),B(1),D("matTooltip",a.tooltip),B(2),D("idForInputBox",a.roleType)("users",a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("containerChips",
(null==a.chips?0:a.chips.values)&&0<a.chips.values.length?Nf(21,cdb,Of(18,ddb,a.chips.displayText,a.chips.values)):Mf(23,edb)),nf("disabled",b.canEdit?null:!0),B(2),D("name",b.getIconName(a,"componentAdmin")),B(2),D("name",b.getIconName(a,"createIssues")),B(2),D("name",b.getIconName(a,"issueAdmin")),B(2),D("name",b.getIconName(a,"issueEditor")),B(2),D("name",b.getIconName(a,"issueCommenter")),B(2),D("name",b.getIconName(a,"issueReader")),B(2),D("name",b.getIconName(a,"restrictedReader")),B(2),D("name",
b.getIconName(a,"restrictedPlusReader")))},gdb=function(a){a&1&&(G(0,"div",2),J(1,"b-spinner"),H())},idb=function(a){if(a&1){var b=x();G(0,"div")(1,"div",3)(2,"mat-tab-group")(3,"mat-tab",4)(4,"roles-view",5);K("saveRolesMap",function(c){z(b);var d=M();hdb(d.rolesEditor,c);return A()});H()();G(5,"mat-tab",6);J(6,"permissions-view",7);H()()()()}a&2&&(a=M(),B(4),D("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),B(2),D("componentReaders",
a.rolesEditor.componentReaders)("componentAccessPolicyUnderEdit",a.rolesEditor.componentAccessPolicyUnderEdit)("issueDefaultAccessPolicyUnderEdit",a.rolesEditor.issueDefaultAccessPolicyUnderEdit)("accessLevel",null==a.rolesEditor.component?null:null==a.rolesEditor.component.accessLimit?null:a.rolesEditor.component.accessLimit.accessLevel))},kdb=function(a){if(a&1){var b=x();G(0,"b-button",12,13);K("onAction",function(){z(b);var c=M(2);return A(jdb(c))});P(2);H()}a&2&&(a=M(2),D("disabled",a.isSaving()),
B(2),If(" ",a.archiveAction," Component "))},ldb=function(a){if(a&1){var b=x();G(0,"b-button",14);K("onAction",function(){z(b);var c=M(2);return A(c.createIssue())});P(1," Create Issue ");H()}a&2&&(a=M(2),D("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},mdb=function(a){a&1&&(xf(0),G(1,"a",9),P(2," Browse Components "),H(),O(3,kdb,3,2,"b-button",10),O(4,ldb,2,2,"b-button",11),yf());a&2&&(a=M(),B(1),D("routerLinkObj",a.componentListRoute(a.component.componentId)),
B(2),D("ngIf",a.isAdmin()),B(1),D("ngIf",!a.isAnonymous))},ndb=function(a){a&1&&(G(0,"div",15),J(1,"b-spinner"),H())},odb=function(a){a&1&&(G(0,"span",35),P(1," (archived) "),H())},pdb=function(a){a&1&&zf(0)},qdb=function(a){a&1&&zf(0)},rdb=function(a){a&1&&zf(0)},sdb=function(a){a&1&&zf(0)},tdb=function(a){a&1&&zf(0)},udb=function(a){if(a&1){var b=x();G(0,"div",74)(1,"div",45)(2,"label",75)(3,"span",42);P(4,"Parent Component");H()();G(5,"span",47)(6,"div",76)(7,"strong");P(8,"Careful!");H();P(9,
" Moving this component can have significant consequences. If this component has custom fields that are defined on the parent or ancestor components, those fields will be lost, and issues in this component will no longer display those fields. ");G(10,"div",49);J(11,"div",50)(12,"div",51);H()()()();G(13,"b-team-component-picker",77);K("selectedComponentChange",function(c){z(b);var d=M(3);return A(d.parentComponent=null!==c&&void 0!==c?c:null)});H()()}a&2&&(a=M(3),B(2),sf("required",a.isParentComponentRequired),
B(11),D("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired))},vdb=function(a){a&1&&(G(0,"a",78),P(1," Learn more "),H());a&2&&(M(3),D("href",W_a(),Kd))},wdb=function(a){if(a&1){var b=x();G(0,"div",79)(1,"label",80)(2,"span",42);P(3,"Retention Settings");H()();G(4,"div",81)(5,"p");P(6,"Please choose a period of time to retain the data stored in this component.");J(7,"br");G(8,"a",82);P(9," Learn more ");H()()();G(10,"div",83)(11,"b-retention-settings-form",
84);K("modelChange",function(c){z(b);var d=M(3);return A(d.component.retentionSettings=c)})("validChange",function(c){z(b);M(3).retentionIsValid=c;return A()});H()()()}a&2&&(a=M(3),sf("bv2-edit-resource-readonly",!a.isAdmin()),B(8),D("href",tt(),Kd),B(3),D("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("initialModel",a.component.retentionSettings))},ydb=function(a){if(a&1){var b=x();G(0,"div",88)(1,"b-component-team-picker",89);K("modelChange",function(c){z(b);var d=
M(4);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&xdb(d);return A()});H()()}a&2&&(a=M(4),B(1),Ff("anchorTarget",a.hasUnsavedChanges()?"_blank":"_self"),D("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",null==a.parentComponent?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},zdb=function(a){a&1&&(G(0,"div",85)(1,"label",86)(2,"span",42),P(3,"Team Configuration"),H()(),O(4,ydb,2,6,"div",87),H());a&2&&
(a=M(3),sf("bv2-edit-resource-readonly",!a.isAdmin()),B(4),D("ngIf",a.component.team))},Adb=function(a){a&1&&(G(0,"a",101),P(1),H());if(a&2){a=M().ngIf;var b=M(4),c;D("routerLinkObj",b.getSloManagementLink(a.id));B(1);If(" ",null!==(c=null==a.slo?null:a.slo.getName())&&void 0!==c?c:a.id," ")}},Bdb=function(a){a&1&&P(0," None ")},Cdb=function(a,b){a&1&&(G(0,"div",98),P(1," Inherited SLO Policy: "),O(2,Adb,2,2,"a",99),O(3,Bdb,1,0,"ng-template",null,100,gg),H());if(a&2){a=b.ngIf;var c=Hf(4);B(2);D("ngIf",
"0"!==a.id)("ngIfElse",c)}},Ddb=function(a){a&1&&(G(0,"a",106),P(1),Q(2,"titlecase"),H());a&2&&(a=M().ngIf,D("routerLinkObj",a.link),B(1),Kf(" (",R(2,3,a.type),") ",a.name," "))},Edb=function(a){a&1&&P(0," None ")},Fdb=function(a){a&1&&(G(0,"div",108),J(1,"slo-inheritance-breadcrumbs",109),H());a&2&&(a=M().ngIf,B(1),D("componentPath",a.componentPath)("teamPath",a.teamPath))},Gdb=function(a){a&1&&(xf(0),O(1,Fdb,2,2,"div",107),yf());a&2&&(a=M(5),B(1),D("ngIf",a.showSloInheritancePath))},Hdb=function(a,
b){if(a&1){var c=x();G(0,"div",102);P(1," Policy Source: ");O(2,Ddb,3,5,"a",103);O(3,Edb,1,0,"ng-template",null,104,gg);G(5,"button",105);K("click",function(){z(c);var e=M(4);return A(e.showSloInheritancePath=!e.showSloInheritancePath)});P(6);H();O(7,Gdb,2,1,"ng-container",5);Q(8,"async");H()}if(a&2){a=b.ngIf;var d=Hf(4);b=M(4);B(2);D("ngIf",a.link)("ngIfElse",d);B(3);nf("aria-expanded",b.showSloInheritancePath);B(1);If(" ",b.showSloInheritancePath?"Hide":"Show"," full path ");B(1);D("ngIf",R(8,5,
b.policySourcePath$))}},Idb=function(a){a&1&&(xf(0),J(1,"mat-icon",112),P(2," on "),yf())},Jdb=function(a){a&1&&(J(0,"mat-icon",113),P(1," off "))},Kdb=function(a){a&1&&(xf(0),P(1," Lock: "),O(2,Idb,3,0,"ng-container",110),Q(3,"async"),O(4,Jdb,2,0,"ng-template",null,111,gg),yf());if(a&2){var b=Hf(5);a=M(4);B(2);D("ngIf",R(3,2,a.sloLocked$))("ngIfElse",b)}},Mdb=function(a){if(a&1){var b=x();G(0,"div",114)(1,"mat-checkbox",115);K("change",function(c){z(b);var d=M(4);c=c.checked;d.component.slo.inherit=
!c;c||xdb(d);return A()});G(2,"span");P(3,"Override the inherited SLO policy");H()()()}a&2&&(a=M(4),B(1),D("checked",!a.component.slo.inherit)("disabled",!Ldb(a)))},Ndb=function(a){if(a&1){var b=x();G(0,"div",122)(1,"label",123);P(2," Justification ");H();J(3,"mat-icon",124);G(4,"textarea",125);K("ngModelChange",function(c){z(b);var d=M(5);return A(d.component.slo.comment=c)});H()()}a&2&&(a=M(5),B(4),D("ngModel",a.component.slo.comment))},Odb=function(a){a&1&&(G(0,"a",126),J(1,"mat-icon",127),H());
a&2&&(a=M(5),Ff("target",a.hasUnsavedChanges()?"_blank":"_self"),D("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},Sdb=function(a){if(a&1){var b=x();xf(0);O(1,Ndb,5,1,"div",116);G(2,"mat-slide-toggle",117);K("ngModelChange",function(c){z(b);var d=M(4);return A(d.isEnableSloChecked=c)})("change",function(c){z(b);var d=M(4);c=c.checked;d.isEnableSloChecked=c;c||(d.component.slo.id="0");return A()});P(3," Enable SLO ");H();G(4,"div",118)(5,"label",119);P(6,"SLO policy");H();G(7,"slo-picker",
120);K("onSloSelect",function(c){z(b);var d=M(4);return A(d.onSloChange(c))});H();O(8,Odb,2,2,"a",121);H();yf()}a&2&&(a=M(4),B(1),D("ngIf",Pdb(a)),B(1),sf("indented",Qdb(a)),D("ngModel",a.isEnableSloChecked)("disabled",!Rdb(a)),B(5),D("bv2Disabled",!a.isEnableSloChecked||!Rdb(a))("boundId",a.component.slo.id)("bv2Placeholder",a.isEnableSloChecked&&Rdb(a)?"Type to search for an SLO":"SLO disabled"),B(1),D("ngIf",a.component.slo.id&&"0"!==a.component.slo.id))},Tdb=function(a){a&1&&(G(0,"div",90)(1,
"div",45)(2,"label",91)(3,"span",42),P(4,"SLO Configuration"),H()(),G(5,"span",47)(6,"div",92)(7,"strong"),P(8,"Careful!"),H(),P(9," Changing the SLO (service level objective) of a component has the potential to impact the Buganizer SLO compliance status of every issue under that component. "),G(10,"div",49),J(11,"div",50)(12,"div",51),H()()()(),G(13,"div",93),O(14,Cdb,5,2,"div",94),Q(15,"async"),O(16,Hdb,9,7,"div",95),Q(17,"async"),G(18,"div",96),O(19,Kdb,6,4,"ng-container",5),H()(),O(20,Mdb,4,2,
"div",97),O(21,Sdb,9,9,"ng-container",5),H());if(a&2){a=M(3);sf("bv2-edit-resource-readonly",!a.isAdmin());B(14);D("ngIf",R(15,7,a.inheritedSlo$));B(2);D("ngIf",R(17,9,a.sloPolicySource$));B(3);D("ngIf",a.enableSloLockingUi);B(1);D("ngIf",Qdb(a));B(1);if(a.component&&a.component.slo){var b=!!a.component.team&&"0"!==a.component.team.id,c=!a.component.slo.inherit;a=0===a.component.parentComponentId&&!b||c}else a=!1;D("ngIf",a)}},Udb=function(a){if(a&1){var b=x();G(0,"div",70)(1,"b-button",128);K("onAction",
function(){z(b);var c=M(3);return A(c.saveMetadata())});P(2," Update ");H();G(3,"b-button",129);K("onAction",function(){z(b);var c=M(3);return A(c.revertMetadataChanges())});P(4," Revert Changes ");H();G(5,"b-button",129);K("onAction",function(){z(b);var c=M(3);return A(c.createChild())});P(6," Create Child Component ");H()()}a&2&&(a=M(3),B(1),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),D("disabled",a.hasUnsavedMetadataChanges()))},
Vdb=function(a){if(a&1){var b=x();G(0,"b-button",130);K("onAction",function(){z(b);var c=M(3);return A(c.showUpdateHistoryModal())});P(1," View History ");H()}},Wdb=function(a){a&1&&J(0,"b-spinner")},Xdb=function(a){if(a&1){var b=x();G(0,"b-component-children-list",131);K("onVisit",function(){z(b);var c=M(3);return A(c.trackClick("openChildComponent"))});H()}a&2&&(a=M(3),D("children",a.childComponents))},Ydb=function(a){a&1&&(G(0,"span"),P(1," No child components. "),H())},Zdb=function(a){if(a&1){var b=
x();G(0,"div",36)(1,"form",37,38);J(3,"b-error-banner",39);G(4,"div",40)(5,"label",41)(6,"span",42);P(7,"Name");H()();G(8,"input",43);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.component.name=c)});H()();G(9,"div",44)(10,"div",45)(11,"label",46)(12,"span",42);P(13,"Description");H()();G(14,"span",47)(15,"div",48);P(16," The description will be used during component searches. You can add previous project names or keywords that will help users search for your component. ");G(17,"div",49);
J(18,"div",50)(19,"div",51);H()()()();G(20,"textarea",52);K("ngModelChange",function(c){z(b);var d=M(2);return A(d.component.description=c)});P(21,"            ");H()();O(22,udb,14,5,"div",53);G(23,"div",54)(24,"div",55)(25,"b-checkbox",56);K("change",function(c){z(b);var d=M(2);d.commentEditsEnabled=c;return A(d.setCommentEditState())});H()();G(26,"div")(27,"strong",57);P(28,"Editable Comments");H();G(29,"div",58);P(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
J(31,"br");O(32,vdb,2,1,"a",59);H()()();O(33,wdb,12,6,"div",60);O(34,zdb,5,3,"div",61);O(35,Tdb,22,11,"div",62);G(36,"div",63)(37,"div",45)(38,"label",64)(39,"span",42);P(40,"Component Alias");H()();G(41,"span",47)(42,"div",65);P(43," You can create a new issue in this component by sending an email to this alias. ");J(44,"br");G(45,"a",66);P(46," Learn more ");H();G(47,"div",49);J(48,"div",50)(49,"div",51);H()()()();G(50,"div")(51,"a",67);P(52);H()()();G(53,"div",68);O(54,Udb,7,3,"div",69);G(55,"div",
70);O(56,Vdb,2,0,"b-button",71);H()();G(57,"div",72)(58,"label")(59,"span",42);P(60,"Child Components");H()();O(61,Wdb,1,0,"b-spinner",5);O(62,Xdb,1,1,"b-component-children-list",73);O(63,Ydb,2,0,"span",5);H()()()}a&2&&(a=M(2),B(1),sf("show-errors",a.error),B(2),D("error",a.error),B(1),sf("bv2-edit-resource-readonly",ut(a)),B(4),D("ngModel",a.component.name)("disabled",ut(a)),B(1),sf("bv2-edit-resource-readonly",ut(a)),B(11),D("ngModel",a.component.description)("disabled",ut(a)),B(2),D("ngIf",a.isAdmin()),
B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),D("checked",a.commentEditsEnabled)("disabled",ut(a)),B(7),D("ngIf",!a.sessionIsExternal),B(1),D("ngIf",!a.sessionIsExternal),B(1),D("ngIf",a.sessionIsInternal),B(1),D("ngIf",a.component.slo&&a.sessionIsInternal),B(10),D("href",a.documentationLinks.baseDocumentationUrl+"/guides/create-issue-email",Kd),B(6),Ef("href","mailto:",a.component.emailAlias,"",Kd),nf("aria-label","Component Alias -"+a.component.emailAlias),B(1),Jf(a.component.emailAlias),
B(2),D("ngIf",a.isEditor_),B(2),D("ngIf",a.componentHistoryUiEnabled),B(5),D("ngIf",void 0===a.childComponents),B(1),D("ngIf",a.childComponents&&0<a.childComponents.length),B(1),D("ngIf",a.childComponents&&0===a.childComponents.length))},$db=function(a){a&1&&(G(0,"div",136),P(1," Standard Fields "),H())},beb=function(a){if(a&1){var b=x();G(0,"b-component-standard-fields",137);K("updateComponent",function(c){z(b);var d=M(3);return A(aeb(d,c))});H()}a&2&&(a=M(3),D("effortSpec",null==a.component?null:
a.component.effortSpec)("parentEffortSpec",null==a.parentComponent?null:a.parentComponent.effortSpec))},ceb=function(a){a&1&&(G(0,"div",138),P(1," Custom Fields "),H())},deb=function(a){a&1&&(O(0,$db,2,0,"div",132),O(1,beb,1,2,"b-component-standard-fields",133),O(2,ceb,2,0,"div",134),J(3,"b-component-custom-fields",135));a&2&&(a=M(2),D("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),D("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),D("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),D("editMode",
a.isEditor_)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},feb=function(a){a&1&&(G(0,"a",142),P(1," Learn more "),H());a&2&&(M(3),D("href",eeb(),Kd))},heb=function(a){if(a&1){var b=x();G(0,"div",36)(1,"div",139);P(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");O(3,feb,2,1,"a",140);H();G(4,"b-field-reorder",141);K("onReload",function(){z(b);var c=M(2);return A(geb(c))});
H()()}a&2&&(a=M(2),B(3),D("ngIf",a.sessionIsInternal),B(1),D("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},ieb=function(a){a&1&&J(0,"b-edit-templates",144);a&2&&(a=M(3),D("componentId",a.componentId)("supportCustomFields",!0))},jeb=function(a){a&1&&(G(0,"div"),P(1),H());a&2&&(a=M().$implicit,B(1),Jf(a.description))},keb=function(a,b){a&1&&(G(0,"div",146)(1,"label"),P(2),H(),O(3,jeb,2,1,"div",5),G(4,"div")(5,"a",67),
P(6),H()()());a&2&&(a=b.$implicit,B(2),Jf(a.name),B(1),D("ngIf",a.description),B(2),D("href",a.url,Kd),nf("aria-label","Click to open the template "+a.name),B(1),Jf(a.url))},leb=function(a){a&1&&(xf(0),O(1,keb,7,5,"div",145),yf());a&2&&(a=M(3),B(1),D("ngForOf",a.templates))},meb=function(a){a&1&&(G(0,"div",36),O(1,ieb,1,2,"b-edit-templates",143),O(2,leb,2,1,"ng-container",5),H());a&2&&(a=M(2),B(1),D("ngIf",a.isEditor_),B(1),D("ngIf",!a.isEditor_))},neb=function(a){a&1&&J(0,"role-based-permissions")},
oeb=function(a){if(a&1){var b=x();G(0,"input",201);K("ngModelChange",function(c){z(b);var d=M(5);return A(d.component.accessLimit.accessLevel=c)});H()}a&2&&(a=M(5),D("disabled",!a.isAdmin())("ngModel",a.component.accessLimit.accessLevel))},peb=function(a){if(a&1){var b=x();G(0,"input",202);K("ngModelChange",function(c){z(b);var d=M(5);return A(d.component.accessLimit.accessLevel=c)});H()}a&2&&(a=M(5),D("disabled",!a.isAdmin()||!a.isParentPartner())("ngModel",a.component.accessLimit.accessLevel))},
qeb=function(a){if(a&1){var b=x();G(0,"input",203);K("ngModelChange",function(c){z(b);var d=M(5);return A(d.component.accessLimit.accessLevel=c)});H()}a&2&&(a=M(5),D("disabled",!a.isAdmin()||!a.isParentPublic())("ngModel",a.component.accessLimit.accessLevel))},reb=function(a){a&1&&(G(0,"div",187)(1,"div",188)(2,"span",189),P(3,"Component visibility: "),H()(),G(4,"div",190)(5,"div",191),O(6,oeb,1,2,"input",192),G(7,"label",193),P(8),H()(),G(9,"div",191),O(10,peb,1,2,"input",194),G(11,"label",195),
P(12),H()(),G(13,"div",196),O(14,qeb,1,2,"input",197),G(15,"label",198),P(16),H()()(),G(17,"p",199)(18,"a",200),P(19," Learn more "),H()()());a&2&&(a=M(4),B(6),D("ngIf",a.component&&a.component.accessLimit),B(2),If(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),D("ngIf",a.component&&a.component.accessLimit),B(2),If(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),B(2),D("ngIf",a.component&&a.component.accessLimit),B(2),If(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC),
" "),B(2),D("href",adb(a.documentationLinks),Kd))},seb=function(a){a&1&&(G(0,"a",204),P(1," Learn more "),H());a&2&&(a=M(4),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Kd))},teb=function(a){a&1&&(G(0,"span",47)(1,"div",48),P(2,' Only individuals or group aliases may be granted issue edit permission for components designated as "Visible to Public". '),G(3,"div",49),J(4,"div",50)(5,"div",51),H()()())},ueb=function(a){a&1&&(G(0,"a",205),P(1," Learn more "),H());a&2&&(a=M(4),D("href",
a.documentationLinks.getRestrictedAccessHelpLink(),Kd))},veb=function(a){a&1&&(G(0,"a",206),P(1," Learn more "),H());a&2&&(a=M(4),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Kd))},web=function(a){if(a&1){var b=x();G(0,"b-button",207);K("onAction",function(){z(b);var c=M(4);return A(c.revertAccessPolicyChanges())});P(1," Revert Changes ");H()}},Ceb=function(a){if(a&1){var b=x();G(0,"div")(1,"div",36);O(2,reb,20,7,"div",147);G(3,"div",139);P(4," Access to issues is granted per component using the settings below. All settings provide access to view the component. ");
G(5,"a",148);P(6,"Learn more");H()();G(7,"form",149)(8,"div",150)(9,"label",151)(10,"span",42);P(11,"Component Admins");H();G(12,"p",152);P(13," View component, edit component details and access controls, create issues (does not imply permission to view issues). ");H()();G(14,"b-multi-user-input",153);K("usersChange",function(c){z(b);var d=M(3);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{admins:c});return A()})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["component-admins"]=
c)});H()();G(15,"div",154)(16,"label",155)(17,"span",42);P(18,"Create issues");H();G(19,"p",152);P(20," View component, create issues (does not imply permission to view issues). ");H()();G(21,"b-multi-user-input",156);K("usersChange",function(c){z(b);var d=M(3);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{appenders:c});return A()})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["component-appenders"]=c)});H()();G(22,"div",157)(23,"label",158)(24,
"span",42);P(25,"Issue Admins");H();G(26,"p",152);P(27," View component, view issues, add comments and attachments, edit all issue data,");J(28,"br");P(29," mark issues as spam, delete and undelete issues, change restriction level of content. ");O(30,seb,2,1,"a",159);H()();G(31,"b-multi-user-input",160);K("usersChange",function(c){z(b);var d=M(3);return A(vt(d,{admins:c}))})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["issue-admins"]=c)});H()();G(32,"div",161)(33,"label",162)(34,
"div")(35,"span",42);P(36,"Edit issues");H();O(37,teb,6,0,"span",163);H();G(38,"p",152);P(39," View component, view issues, add comments and attachments, edit all issue data. ");H()();G(40,"b-multi-user-input",164);K("usersChange",function(c){z(b);var d=M(3);return A(vt(d,{editors:c}))})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["issue-editors"]=c)});H()();G(41,"div",165)(42,"label",166)(43,"span",42);P(44,"Comment on issues");H();G(45,"p",152);P(46," View component, view issues, add comments and attachments. ");
H()();G(47,"b-multi-user-input",167);K("usersChange",function(c){z(b);var d=M(3);return A(vt(d,{appenders:c}))})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["issue-appenders"]=c)});H()();G(48,"div",168)(49,"label",169)(50,"span",42);P(51,"View restricted+ content");H();G(52,"p",152);P(53," View component, view issues, view restricted content, view restricted+ content. This ACL does not accept groups. ");O(54,ueb,2,1,"a",170);H()();G(55,"b-multi-user-input",171);K("usersChange",
function(c){z(b);var d=M(3);return A(vt(d,{restrictedPlusReaders:c}))})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["issue-restricted-plus-readers"]=c)});H()();G(56,"div",172)(57,"label",173)(58,"span",42);P(59,"View restricted content");H();G(60,"p",152);P(61," View component, view issues, view restricted content. This ACL accepts groups. ");O(62,veb,2,1,"a",174);H()();G(63,"b-multi-user-input",175);K("usersChange",function(c){z(b);var d=M(3);return A(vt(d,{restrictedReaders:c}))})("isValid",
function(c){z(b);var d=M(3);return A(d.aclFormValidity["issue-restricted-readers"]=c)});H()();G(64,"div",176)(65,"label",177)(66,"span",42);P(67,"View issues");H();G(68,"p",152);P(69," View component, view issues. ");H()();G(70,"b-multi-user-input",178);K("usersChange",function(c){z(b);var d=M(3);return A(vt(d,{readers:c}))})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["issue-readers"]=c)});H()();G(71,"div",179)(72,"label",180)(73,"span",42);P(74,"View Component (Auto-populated)");
H();G(75,"p",152);P(76," View component (view all settings for this component, view custom fields for this and all parent components). ");J(77,"br");P(78," This field is auto-populated with all users and groups listed in the above settings. ");H()();G(79,"b-multi-user-input",181);K("usersChange",function(c){z(b);var d=M(3);return A(d.componentReaders=c)})("isValid",function(c){z(b);var d=M(3);return A(d.aclFormValidity["component-readers"]=c)});H()();G(80,"div",182)(81,"span",55)(82,"b-checkbox",
183);K("change",function(c){z(b);var d=M(3);return A(d.implicitAccess.setValue(c))});H()();G(83,"div")(84,"strong",184);P(85,"Expanded access");H();G(86,"div",58);P(87," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. ");G(88,"a",185);P(89,"Learn more");H()()()()();G(90,"div",68)(91,"b-button",128);K("onAction",function(){z(b);var c=M(3);return A(c.saveAccessPolicy())});P(92," Update ");H();O(93,web,2,0,"b-button",186);H()()()}a&2&&(a=M(3),
B(2),D("ngIf",a.shouldShowAccessLimitChangeUi()),B(3),Ef("href","",Do(a.documentationLinks),"#components",Kd),B(3),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("users",a.componentAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel())("containerChips",Nf(72,wt,Nf(70,xeb,a.componentAccessPolicyUnderEdit.inheritedAdmins))),nf("disabled",a.isAccessEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("users",a.componentAccessPolicyUnderEdit.appenders)("accessLevel",
a.getComponentAccessLevel())("containerChips",Nf(76,wt,Nf(74,yeb,a.componentAdmins)))("includeAliases",!0),nf("disabled",a.isAccessEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(8),D("ngIf",!a.sessionIsExternal),B(1),D("users",a.issueDefaultAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel()),nf("disabled",a.isAccessEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),sf("field-label-with-help",a.isPublic()),
B(3),D("ngIf",a.isPublic()),B(3),D("users",a.issueDefaultAccessPolicyUnderEdit.editors)("accessLevel",a.getComponentAccessLevel())("containerChips",Nf(80,wt,Nf(78,zeb,a.issueDefaultAccessPolicyUnderEdit.admins)))("includeAliases",!a.isPublic()),nf("disabled",a.isAccessEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("users",a.issueDefaultAccessPolicyUnderEdit.appenders)("accessLevel",a.getComponentAccessLevel())("containerChips",Nf(84,wt,Nf(82,Aeb,a.issueCommenters)))("includeAliases",
!0),nf("disabled",a.isAccessEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("ngIf",!a.sessionIsExternal),B(1),D("users",a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders)("accessLevel",a.getComponentAccessLevel())("customValidators",a.restrictedPlusReadersValidators),nf("disabled",a.isAccessEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("ngIf",!a.sessionIsExternal),B(1),D("users",a.issueDefaultAccessPolicyUnderEdit.restrictedReaders)("accessLevel",
a.getComponentAccessLevel())("containerChips",Nf(88,wt,Nf(86,Beb,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders))),nf("disabled",a.isAccessEditDisabled()?!0:null),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("users",a.issueDefaultAccessPolicyUnderEdit.readers)("accessLevel",a.getComponentAccessLevel())("containerChips",a.issueViewersChip)("includeAliases",!0)("includeViewAliases",!0),nf("disabled",a.isAccessEditDisabled()?!0:null),B(9),D("users",a.componentReaders)("accessLevel",
a.getComponentAccessLevel()),nf("disabled",!0),B(1),sf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),D("checked",a.implicitAccess.getValue())("disabled",a.isAccessEditDisabled()),B(6),D("href",Do(a.documentationLinks),Kd),B(3),D("disabled",!(xt(a)||yt(a))||a.isSaving()||a.aclFormIsInvalid()),B(2),D("ngIf",a.isAdmin()))},Deb=function(a){a&1&&(O(0,neb,1,0,"role-based-permissions",5),O(1,Ceb,94,90,"div",5));a&2&&(a=M(2),D("ngIf",a.enableRoleBasedPermissions),B(1),D("ngIf",!a.enableRoleBasedPermissions))},
Eeb=function(a){if(a&1){var b=x();G(0,"div")(1,"div",16)(2,"h2");P(3);H();O(4,odb,2,0,"span",17);G(5,"a",18);K("click",function(){z(b);var k=M();return A(k.trackClick("recentIssues"))});P(6," (Recent Issues)");H();J(7,"b-access-level-indicator",19);H();G(8,"div",20);J(9,"b-component-breadcrumb",21)(10,"div",22);H();G(11,"mat-tab-group",23);K("selectedIndexChange",function(k){z(b);var q=M();return A(q.tabChange(k))});G(12,"mat-tab",24);O(13,pdb,1,0,"ng-container",25);H();G(14,"mat-tab",26);O(15,qdb,
1,0,"ng-container",25);H();G(16,"mat-tab",27);O(17,rdb,1,0,"ng-container",25);H();G(18,"mat-tab",28);O(19,sdb,1,0,"ng-container",25);H();G(20,"mat-tab",29);O(21,tdb,1,0,"ng-container",25);H()();O(22,Zdb,64,29,"ng-template",null,30,gg);O(24,deb,4,7,"ng-template",null,31,gg);O(26,heb,5,5,"ng-template",null,32,gg);O(28,meb,3,2,"ng-template",null,33,gg);O(30,Deb,2,2,"ng-template",null,34,gg);H()}if(a&2){var c=Hf(23),d=Hf(25),e=Hf(27),f=Hf(29),h=Hf(31);a=M();B(3);Kf(" Component ",a.component.componentId,
": ",a.currentName," ");B(1);D("ngIf",a.isArchived());B(1);D("routerLinkObj",a.getRecentIssuesLink());B(2);D("accessLevel",a.getComponentAccessLevel());B(2);D("componentPathInfo",a.component.componentPathInfo)("isArchived",a.isArchived())("label","Parent Component");B(2);D("selectedIndex",a.selectedTabIndex);B(1);D("id",a.Tab.BASIC);B(1);D("ngTemplateOutlet",c);B(1);D("id",a.Tab.CUSTOM_FIELDS)("label",a.sessionIsInternal&&!a.isExternal()?"Fields":"Custom Fields");B(1);D("ngTemplateOutlet",d);B(1);
D("id",a.Tab.FIELD_ORDERING);B(1);D("ngTemplateOutlet",e);B(1);D("id",a.Tab.TEMPLATES);B(1);D("ngTemplateOutlet",f);B(1);D("id",a.Tab.ACCESS);B(1);D("ngTemplateOutlet",h)}},Feb=function(a){a&1&&(G(0,"span")(1,"p"),P(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),J(3,"br"),G(4,"a",213),P(5," Learn more "),H()(),G(6,"p"),P(7," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),
J(8,"br"),P(9," so they can be scheduled for deletion. "),G(10,"a",214),P(11," Learn more "),H()()());a&2&&(M(2),B(4),D("href","http://go/archived-components",Kd),B(6),D("href",tt(),Kd))},Geb=function(a){a&1&&(G(0,"span"),P(1," : "),G(2,"b"),P(3),H()());if(a&2){a=M().$implicit;var b=M(2),c;sf("b-archive-warning-indef",!(null==(c=a.getRetentionSettings())?0:dj(c,2)));B(3);Jf(b.getRetentionPeriod(a))}},Heb=function(a,b){a&1&&(G(0,"span")(1,"span"),P(2),H(),O(3,Geb,4,3,"span",215),J(4,"br"),H());a&2&&
(a=b.$implicit,b=M(2),B(2),Jf(V(a,1)),B(1),D("ngIf","Archive"===b.archiveAction))},Ieb=function(a){if(a&1){var b=x();G(0,"h2",208);P(1);H();G(2,"mat-dialog-content");O(3,Feb,12,2,"span",5);G(4,"p");P(5," The following components will be affected: ");H();G(6,"div",209);O(7,Heb,5,2,"span",210);H()();G(8,"mat-dialog-actions")(9,"button",211);K("click",function(){z(b);var c=M();c.archive();c.isArchiving_=!1;return A()});P(10," Yes ");H();G(11,"button",212);K("click",function(){z(b);M().isArchiving_=!1;
return A()});P(12," No ");H()()}a&2&&(a=M(),B(1),Jf(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'" and its subcomponents?':""),B(2),D("ngIf","Archive"===a.archiveAction),B(4),D("ngForOf",a.descendants))},Jeb=function(a){var b=null;if(a instanceof zt)var c=a.getSourceTeamId();else c=a.sourceTeamId,b=a.sourceComponentId;return{sourceTeamId:c,sourceComponentId:b}},Keb=function(a,b){var c=a.componentPathInfo;a=c.componentPathId;c=c.componentPathName;
var d=a.findIndex(function(e){return""+e===b});return{componentPathId:a.slice(d),componentPathName:null==c?void 0:c.slice(d)}},Leb=function(a,b,c,d){(null==c?0:c.inherit)||"0"!==(null==c?void 0:c.id)||!d||(a=d);if(!a)return null;c=a.getPathNamesList();a=a.getPathIdsList();d=[];for(var e=a.findIndex(function(f){return""+f===b});e<a.length;e++)d.push({id:a[e],name:c[e]});return d},Meb=function(a,b){a&1&&(G(0,"div",39),J(1,"b-team-breadcrumb",40),H());a&2&&(a=b.ngIf,B(1),D("teamPath",a))},Neb=function(a,
b){a&1&&(xf(0),P(1),yf());a&2&&(a=b.ngIf,B(1),Jf(a.trim()))},Oeb=function(a){a&1&&P(0," No description ")},Peb=function(a,b){a&1&&(xf(0),J(1,"b-multi-user-input",41),yf());a&2&&(a=b.ngIf,B(1),D("users",a),nf("disabled",!0))},Qeb=function(a){a&1&&(xf(0),G(1,"p"),P(2,"No child teams"),H(),yf())},Reb=function(a,b){a&1&&(xf(0),J(1,"br"),G(2,"a",44),P(3),H(),yf());a&2&&(a=b.$implicit,B(2),Ef("routerLink","/teams/",a.getId(),"/edit"),B(1),Jf(a.getName()))},Seb=function(a){a&1&&O(0,Reb,4,2,"ng-container",
43);a&2&&(a=M().ngIf,D("ngForOf",a))},Teb=function(a,b){a&1&&(xf(0),O(1,Qeb,3,0,"ng-container",18),O(2,Seb,1,1,"ng-template",null,42,gg),yf());if(a&2){a=b.ngIf;var c=Hf(3);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},Ueb=function(a){a&1&&(G(0,"a",48),P(1),H());if(a&2){a=M().ngIf;var b;D("routerLinkObj",a.link);B(1);If(" ",null!==(b=null==a.slo?null:a.slo.getName())&&void 0!==b?b:a.id," ")}},Veb=function(a){a&1&&P(0," None ")},Web=function(a,b){a&1&&(G(0,"div",45),P(1," Inherited SLO Policy: "),O(2,
Ueb,2,2,"a",46),O(3,Veb,1,0,"ng-template",null,47,gg),H());if(a&2){a=b.ngIf;var c=Hf(4);B(2);D("ngIf",a.link)("ngIfElse",c)}},Xeb=function(a,b){a&1&&(G(0,"a",49),P(1),H());a&2&&(a=b.ngIf,D("routerLinkObj",a.link),B(1),If(" ",a.name," "))},Yeb=function(a){a&1&&P(0," None ")},Zeb=function(a){a&1&&(xf(0),J(1,"mat-icon",51),P(2," on "),yf())},$eb=function(a){a&1&&(J(0,"mat-icon",52),P(1," off "))},afb=function(a){a&1&&(xf(0),P(1," Lock: "),O(2,Zeb,3,0,"ng-container",18),O(3,$eb,2,0,"ng-template",null,
50,gg),yf());if(a&2){var b=Hf(4);a=M(2);B(2);D("ngIf",a.originalSloLock)("ngIfElse",b)}},bfb=function(a){if(a&1){var b=x();G(0,"div",54)(1,"mat-checkbox",55);K("change",function(c){z(b);var d=M(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.getSlo().getSloId());return A()});G(2,"span");P(3,"Override the inherited SLO");H()()()}a&2&&(a=M(3),B(1),D("disabled",!a.hasEditAccess)("checked",!a.isSloInheritEnabled))},cfb=function(a){if(a&1){var b=x();G(0,"div",60)(1,"label",
61);P(2," Justification to override the org SLO ");H();J(3,"mat-icon",62);G(4,"textarea",63);K("ngModelChange",function(c){z(b);var d=M(4);return A(d.sloJustification$.next(c))});Q(5,"async");H()()}a&2&&(a=M(4),B(3),D("matTooltip",a.justificationRequiredText),nf("aria-label",a.justificationRequiredText),B(1),D("ngModel",R(5,4,a.sloJustification$))("disabled",!a.hasEditAccess))},dfb=function(a,b){a&1&&(G(0,"a",64),Q(1,"async"),J(2,"mat-icon",9),H());a&2&&(a=b.ngIf,b=M(4),Ff("target",R(1,2,b.hasUnsavedChanges$)?
"_blank":"_self"),D("routerLinkObj",a))},efb=function(a){if(a&1){var b=x();xf(0);O(1,cfb,6,6,"div",56);G(2,"div",14)(3,"mat-slide-toggle",57);K("ngModelChange",function(d){z(b);var e=M(3);return A(e.enableSloChecked=d)})("change",function(d){z(b);var e=M(3);return A(e.enableSloChecked=d.checked)});P(4," Enable SLO ");H();G(5,"slo-picker",58);K("onSloSelect",function(d){z(b);var e=M(3);return A(e.onSloChange(d))});H();O(6,dfb,3,4,"a",59);Q(7,"async");H();yf()}if(a&2){a=M().ngIf;var c=M(2);B(1);D("ngIf",
!a.value);B(2);sf("indented",!a.value);D("ngModel",c.enableSloChecked)("disabled",!c.hasEditAccess);B(2);D("boundId",c.sloId)("bv2Disabled",!c.hasEditAccess||!c.enableSloChecked||c.isSloInheritEnabled)("bv2Placeholder",c.enableSloChecked?"Type to search for an SLO":"SLO disabled");B(1);D("ngIf",R(7,9,c.sloPickerLink$))}},ffb=function(a,b){a&1&&(xf(0),O(1,bfb,4,2,"div",53),O(2,efb,8,11,"ng-container",6),yf());a&2&&(a=b.ngIf,b=M(2),B(1),D("ngIf",!a.value),B(1),D("ngIf",!b.isSloInheritEnabled))},gfb=
function(a){if(a&1){var b=x();G(0,"div",14)(1,"mat-checkbox",65);K("change",function(c){z(b);var d=M(2);return A(d.sloLocked=c.checked)});G(2,"span");P(3,"Lock for all child teams");H()()()}a&2&&(a=M(2),B(1),D("checked",a.sloLocked)("disabled",!a.canEditSloLock))},kfb=function(a){if(a&1){var b=x();G(0,"div",66)(1,"div",67)(2,"button",68);K("click",function(){z(b);var c=M(2);return A(hfb(c))});Q(3,"async");P(4," Update ");H();G(5,"button",69);K("click",function(){z(b);var c=M(2);c.error="";ifb(c);
c.enableSloLockingUi&&jfb(c);return A()});Q(6,"async");P(7," Revert changes ");H()()()}a&2&&(a=M(2),B(2),D("disabled",!R(3,2,a.hasUnsavedChanges$)),B(3),D("disabled",!R(6,4,a.hasUnsavedChanges$)))},lfb=function(a){a&1&&(xf(0),G(1,"p"),P(2,"No mapped components"),H(),yf())},mfb=function(a,b){a&1&&(G(0,"ul")(1,"li")(2,"a",44),P(3),H()()());a&2&&(a=b.$implicit,B(2),Ef("routerLink","/components/",a.componentId,"/manage"),B(1),If(" ",a.name," "))},nfb=function(a){a&1&&(O(0,mfb,4,2,"ul",43),Q(1,"async"));
a&2&&(a=M(3),D("ngForOf",R(1,1,a.associatedComponents$)))},ofb=function(a,b){a&1&&(xf(0),O(1,lfb,3,0,"ng-container",18),O(2,nfb,2,3,"ng-template",null,70,gg),yf());if(a&2){a=b.ngIf;var c=Hf(3);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},qfb=function(a,b){if(a&1){var c=x();xf(0);G(1,"div",7)(2,"h2");P(3);G(4,"a",8);P(5);J(6,"mat-icon",9);H()()();O(7,Meb,2,1,"div",10);Q(8,"async");G(9,"mat-tab-group",11);K("selectedIndexChange",function(f){z(c);var h=M();return A(h.selectedTabIndex=f)})("selectedIndexChange",
function(f){z(c);var h=M();return A(h.tabChange(f))});G(10,"mat-tab",12)(11,"div",13);P(12," Team information on this page comes from ");G(13,"a",8);P(14," Team Graph ");J(15,"mat-icon",9);H();P(16," and is view only. ");G(17,"div",14)(18,"div",15)(19,"label")(20,"span",16);P(21,"Description");H()();G(22,"div",17);O(23,Neb,2,1,"ng-container",18);O(24,Oeb,1,0,"ng-template",null,19,gg);H()()();G(26,"div",14)(27,"div",20)(28,"label",21)(29,"span",16);P(30," Team admins ");H();G(31,"span",22)(32,"div",
23);P(33," Team admins are either team editors or team leads from Team Graph. ");G(34,"div",24);J(35,"div",25)(36,"div",26);H()()()();O(37,Peb,2,2,"ng-container",6);Q(38,"async");H()();G(39,"div",14)(40,"div",15)(41,"label")(42,"span",16);P(43,"Child team(s)");H()();O(44,Teb,4,2,"ng-container",6);Q(45,"async");H()()()();G(46,"mat-tab",27)(47,"div",13)(48,"div",20)(49,"label",21)(50,"span",16);P(51,"SLO configuration");H()();G(52,"span",22)(53,"div",28)(54,"strong");P(55,"Careful!");H();P(56," Changing the SLO (service level objective) of a component has the potential to impact the compliance status of every issue under this team's components. ");
G(57,"div",24);J(58,"div",25)(59,"div",26);H()()()();G(60,"div",29);O(61,Web,5,2,"div",30);Q(62,"async");G(63,"div",31);P(64," Policy Source: ");O(65,Xeb,2,2,"a",32);Q(66,"async");O(67,Yeb,1,0,"ng-template",null,33,gg);H();G(69,"div",34);O(70,afb,5,2,"ng-container",6);H()();J(71,"b-error-banner",35);O(72,ffb,3,2,"ng-container",6);Q(73,"async");O(74,gfb,4,2,"div",36);O(75,kfb,8,6,"div",37);H()();G(76,"mat-tab",38)(77,"div",13)(78,"div",14)(79,"div",15)(80,"label")(81,"span",16);P(82," Component(s) that have mapped to this team ");
H()()();O(83,ofb,4,2,"ng-container",6);Q(84,"async");H()()()();yf()}if(a&2){a=b.ngIf;var d=Hf(25),e=Hf(68);b=M();B(3);If(" Team ",a.getTeamId(),": ");B(1);Ef("href","https://moma.corp.google.com/team/",a.getTeamId(),"",Kd);B(1);If(" ",a.getName()," ");B(2);D("ngIf",R(8,22,b.teamPath$));B(2);D("selectedIndex",b.selectedTabIndex);B(1);D("id",b.Tab.BASIC);B(3);Ef("href","https://moma.corp.google.com/team/",a.getTeamId(),"",Kd);B(10);D("ngIf",a.getDescription())("ngIfElse",d);B(14);D("ngIf",R(38,24,b.adminsAndLeads$));
B(7);D("ngIf",R(45,26,b.childTeams$));B(2);D("id",b.Tab.SLO);B(15);D("ngIf",R(62,28,b.inheritedSlo$));B(4);D("ngIf",R(66,30,b.sloPolicySource$))("ngIfElse",e);B(5);D("ngIf",b.enableSloLockingUi);B(1);D("error",b.error);B(1);D("ngIf",Nf(36,pfb,R(73,32,b.isRootTeam$)));B(2);D("ngIf",b.enableSloLockingUi);B(1);D("ngIf",b.hasEditAccess);B(1);D("id",b.Tab.MAPPINGS);B(7);D("ngIf",R(84,34,b.associatedComponents$))}},rfb=function(a){a&1&&zf(0)},tfb=function(a,b){a&1&&(xf(0),O(1,rfb,1,0,"ng-container",7),
yf());if(a&2){a=b.$implicit;M(3);var c=Hf(5);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Nf(2,sfb,a))}},ufb=function(a){a&1&&(G(0,"div",4)(1,"div",5),P(2,"TEAMFOOD"),H(),O(3,tfb,2,4,"ng-container",6),Q(4,"async"),H());a&2&&(a=M(2),B(3),D("ngForOf",R(4,1,a.beapFeaturesTF$)))},vfb=function(a){a&1&&zf(0)},wfb=function(a,b){a&1&&(xf(0),O(1,vfb,1,0,"ng-container",7),yf());if(a&2){a=b.$implicit;M(3);var c=Hf(5);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Nf(2,sfb,a))}},xfb=function(a){a&
1&&(G(0,"div",4)(1,"div",5),P(2,"EARLY ACCESS"),H(),O(3,wfb,2,4,"ng-container",6),Q(4,"async"),H());a&2&&(a=M(2),B(3),D("ngForOf",R(4,1,a.beapFeaturesEA$)))},yfb=function(a){a&1&&(xf(0),O(1,ufb,5,3,"div",3),Q(2,"async"),O(3,xfb,5,3,"div",3),Q(4,"async"),yf());a&2&&(a=M(),B(1),D("ngIf",R(2,2,a.hasFeaturesTF$)),B(2),D("ngIf",R(4,4,a.hasFeaturesEA$)))},zfb=function(a){a&1&&(G(0,"div",8),P(1,"No available experiments"),H())},Afb=function(a){a&1&&(G(0,"a",23),P(1," Learn more"),H());a&2&&(a=M().feature,
nf("href",V(a,6),Kd))},Bfb=function(a){a&1&&(G(0,"b-callout",24)(1,"b-callout-body"),P(2," Reload page to see changes. "),H()())},Dfb=function(a,b){if(a&1){var c=x();G(0,"div",9)(1,"div",10)(2,"div",11);J(3,"mat-slide-toggle",12);Q(4,"featureState");Q(5,"featureState");H();G(6,"div",13)(7,"div",14);P(8);H();G(9,"span",15);P(10);O(11,Afb,2,1,"a",16);H();G(12,"div",17)(13,"a",18);K("click",function(){var d=z(c).feature,e=M();d=d.getExperimentId();e.linkClicked[d]=!0;return A()});J(14,"mat-icon",19);
P(15);Q(16,"featureState");H()();O(17,Bfb,3,0,"b-callout",20);H();G(18,"div",21);J(19,"b-app-beap-state-indicator",22);H()()()}a&2&&(a=b.feature,b=M(),B(3),D("checked",R(4,10,a.getState()))("matTooltip",R(5,12,a.getState())?"Opted in":"Opted out")("disabled",!0),B(5),If(" ",a.getTitle()," "),B(2),If("",a.getDescription()," "),B(1),D("ngIf",V(a,6)),B(2),nf("href","https://webdog.corp.google.com/app/list;frontend=buganizer;id="+a.getExperimentId(),Kd),B(2),If(" ",R(16,14,a.getState())?"Opt out":"Opt in",
" "),B(2),D("ngIf",Cfb(b,a.getExperimentId())),B(2),D("experimentId",a.getExperimentId()))},Efb=function(a){a&1&&(G(0,"mat-option",28),P(1),H());a&2&&(a=M().$implicit,D("value",a),B(1),If(" ",a.name," "))},Ffb=function(a,b){a&1&&(xf(0),O(1,Efb,2,2,"mat-option",27),yf());a&2&&(a=b.$implicit,B(1),D("ngIf",a.shouldDisplay()))},Gfb=function(a,b){a&1&&(G(0,"mat-option",31),P(1),H());a&2&&(a=b.$implicit,D("value",a.id),B(1),If(" ",a.name," "))},Ifb=function(a){if(a&1){var b=x();G(0,"mat-form-field",8)(1,
"mat-select",29);K("ngModelChange",function(c){z(b);var d=M();return A(d.preferredHomepage.selectedOptionId=c)})("selectionChange",function(){z(b);var c=M();return A(Hfb(c.preferredHomepage))});O(2,Gfb,2,2,"mat-option",30);H()()}a&2&&(a=M(),B(1),D("ngModel",a.preferredHomepage.selectedOptionId),B(1),D("ngForOf",a.preferredHomepage.selectedMainOption.options))},Jfb=function(a,b){a&1&&(G(0,"mat-option",32),P(1),H());a&2&&(a=b.$implicit,D("value",a.value),B(1),If(" ",a.label," "))},Kfb=function(a,b){a&
1&&(G(0,"mat-option",32),P(1),H());a&2&&(a=b.$implicit,D("value",a.value),B(1),If(" ",a.label," "))},Lfb=function(a,b){a&1&&(G(0,"mat-option",32),P(1),H());a&2&&(a=b.$implicit,D("value",a.value),B(1),If(" ",a.label," "))},Mfb=function(a){if(a&1){var b=x();G(0,"div");J(1,"hr");G(2,"div",1)(3,"div",2);P(4," Other ");H();G(5,"div",5)(6,"div",6)(7,"label",33);P(8," Enable bug screensaver? ");H();G(9,"b-slide-toggle",34);K("modelChange",function(c){z(b);var d=M();return A(d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=
c)})("modelChange",function(){z(b);var c=M(),d=c.userPreferences.bugScreensaverPreferences.enableBugScreensaver;return A(c.save("saveBugScreensaverPreferences",void 0===d?"undefined":d.toString()))});H()()()()()}a&2&&(a=M(),B(9),D("model",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},Nfb=function(a,b){a&1&&(G(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),H());a&2&&(a=b.$implicit,D("value",a),B(1),If(" ",R(2,2,a)," "))},Ofb=function(a,b){a&1&&(G(0,"mat-option",20),P(1),
Q(2,"toNewEmailPreference"),H());a&2&&(a=b.$implicit,D("value",a),B(1),If(" ",R(2,2,a)," "))},Pfb=function(a,b){a&1&&(G(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),H());a&2&&(a=b.$implicit,D("value",a),B(1),If(" ",R(2,2,a)," "))},Qfb=function(a,b){a&1&&(G(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),H());a&2&&(a=b.$implicit,D("value",a),B(1),If(" ",R(2,2,a)," "))},Rfb=function(a,b){a&1&&(G(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),H());a&2&&(a=b.$implicit,D("value",a),B(1),
If(" ",R(2,2,a)," "))},Sfb=function(a){if(a&1){var b=x();G(0,"button",3);K("click",function(){z(b);var c=M();return A(c.onBack.emit())});J(1,"mat-icon",4);H()}a&2&&(a=M(),D("matTooltip",a.backLabel))},Tfb=function(a){if(a&1){var b=x();G(0,"button",3);K("click",function(){z(b);var c=M();return A(c.onRefresh.emit())});J(1,"mat-icon",5);H()}a&2&&(a=M(),D("matTooltip",a.refreshLabel))},Ufb=function(a){a&1&&(G(0,"h2"),P(1),H());a&2&&(a=M(),B(1),Jf(a.title))},Vfb=function(a){a&1&&(G(0,"mat-tab",6)(1,"div",
3),J(2,"b-beap-settings"),H()())},Wfb=function(a){if(a&1){var b=x();G(0,"b-star-toggle",13);K("starClicked",function(){z(b);var c=M(2);return A(c.toggleStar())});H()}a&2&&(a=M(2),D("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},Xfb=function(a){a&1&&J(0,"b-star-toggle",14);a&2&&D("starMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("starred",
!0)("disabled",!0)},Yfb=function(a,b){a&1&&(G(0,"li")(1,"a",15),P(2),H()());a&2&&(a=b.$implicit,b=M(2),B(1),D("href",b.getUrl(a),Kd)("title",a.description),B(1),If(" ",b.getDisplayName(a)," "))},Zfb=function(a){if(a&1){var b=x();G(0,"div")(1,"div",4)(2,"div",5);O(3,Wfb,1,3,"b-star-toggle",6);O(4,Xfb,1,4,"b-star-toggle",7);G(5,"span",8);P(6);H();G(7,"button",9);K("click",function(){z(b);var c=M();return A(c.openEditBookmarkGroup())});H()();G(8,"div",10);P(9);H()();G(10,"ul",11);O(11,Yfb,3,3,"li",12);
H()()}a&2&&(a=M(),B(3),D("ngIf",!a.userIsOwner),B(1),D("ngIf",a.userIsOwner),B(2),If("Bookmark Group: ",a.bookmarkGroup.name," "),B(3),Jf(a.bookmarkGroup.description),B(2),D("ngForOf",a.bookmarkGroup.item))},$fb=function(a){if(a&1){var b=x();G(0,"b-star-toggle",16);K("starClicked",function(){z(b);var c=M(2);return A(c.toggleStar())})("keydown.space",function(c){return c.stopPropagation()})("keydown.enter",function(c){return c.stopPropagation()});H()}a&2&&(a=M(2),D("starMessage","Star this hotlist")("unStarMessage",
"Un-star this hotlist")("starred",a.isStarred))},agb=function(a){a&1&&J(0,"b-star-toggle",17);a&2&&D("starMessage","You are the owner of this hotlist, and cannot star/unstar it.")("unStarMessage","You are the owner of this hotlist, and cannot star/unstar it.")("starred",!0)("disabled",!0)},bgb=function(a){a&1&&J(0,"b-star-toggle",17);a&2&&D("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},cgb=function(a){a&1&&(G(0,"div",18),P(1," Hotlist not found. "),H());a&2&&D("bFocus",!0)},
dgb=function(a){a&1&&(G(0,"div"),P(1," Loading details... "),H())},egb=function(a){a&1&&(G(0,"span",25),P(1," (archived) "),H())},fgb=function(a){a&1&&(G(0,"span",26),P(1," \u00a0(changed) "),H())},ggb=function(a){if(a&1){var b=x();G(0,"div")(1,"span",19);P(2," Hotlist: ");G(3,"span",20);P(4);H()();O(5,egb,2,0,"span",21);G(6,"div",22)(7,"button",23);K("click",function(){z(b);var c=M(2);return A(c.openEditHotlist())});H()();O(8,fgb,2,0,"span",24);H()}a&2&&(a=M(2),B(3),D("matTooltip",a.hotlist.description),
B(1),If(" ",a.hotlist.name," "),B(1),D("ngIf",a.hotlist.archived),B(3),D("ngIf",a.hasParamChanges()))},igb=function(a){if(a&1){var b=x();G(0,"div",27)(1,"button",28);K("click",function(){z(b);var c=M(2);return A(c.save())});P(2,"Save ");H();G(3,"button",29);K("click",function(){z(b);var c=M(2);return A(c.discardChanges())});P(4,"Discard changes ");H()()}},jgb=function(a){a&1&&(G(0,"div",9),O(1,$fb,1,3,"b-star-toggle",10),O(2,agb,1,4,"b-star-toggle",11),O(3,bgb,1,4,"b-star-toggle",11),G(4,"div",12),
O(5,cgb,2,1,"div",13),O(6,dgb,2,0,"div",14),O(7,ggb,9,4,"div",14),H(),O(8,igb,5,0,"div",15),H());a&2&&(a=M(),B(1),D("ngIf",!a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),B(1),D("ngIf",a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),B(1),D("ngIf",!a.hotlist),B(2),D("ngIf",!a.hotlist&&!a.hotlistLoading),B(1),D("ngIf",a.hotlistLoading),B(1),D("ngIf",a.hotlist&&!a.hotlistLoading),B(1),D("ngIf",a.hasParamChanges()))},kgb=function(a){a&1&&(G(0,"div",30),J(1,"b-spinner"),G(2,"span"),P(3),H()());
a&2&&(a=M(),B(3),If(" Loading hotlist: ",a.hotlistId,""))},lgb=function(a){a&1&&(G(0,"div",31),P(1),H());a&2&&(a=M(),D("bFocus",!0),B(1),If(" No issues in hotlist ",a.hotlistId,". "))},mgb=function(a){if(a&1){var b=x();G(0,"div",32)(1,"b-issues-grid",33);K("init",function(c){z(b);var d=M();return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=M();return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=M();return A(d.issueColumns=c)})("sortChange",function(c){z(b);
var d=M();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=M();return A(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){z(b);var d=M();return A(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){z(b);var c=M();return A(mt(c,c.page,1))})("onPrevPage",function(){z(b);var c=M();return A(mt(c,c.page,-1))});H()()}a&2&&(a=M(),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",
!!a.isColumnSaveEnabled)("sort",a.getSort()))},ngb=function(a){a&1&&(G(0,"div"),P(1," Loading details... "),H())},ogb=function(a){a&1&&(G(0,"div"),P(1," Saved search not found. "),H())},pgb=function(a){a&1&&(G(0,"span",15),P(1," \u00a0(changed) "),H())},qgb=function(a){if(a&1){var b=x();G(0,"div",11);P(1," Saved search: ");G(2,"span",12);P(3);H();G(4,"button",13);K("click",function(){z(b);var c=M(2);return A(c.openEditSavedSearch())});H();O(5,pgb,2,0,"span",14);H()}a&2&&(a=M(2),B(2),D("matTooltip",
a.savedSearch.description),B(1),If(" ",a.savedSearch.name," "),B(2),D("ngIf",a.hasParamChanges()))},rgb=function(a){a&1&&(G(0,"div",9),O(1,ngb,2,0,"div",8),O(2,ogb,2,0,"div",8),O(3,qgb,6,3,"div",10),H());a&2&&(a=M(),B(1),D("ngIf",!a.savedSearch&&a.isLoading),B(1),D("ngIf",!a.savedSearch&&!a.isLoading),B(1),D("ngIf",a.savedSearch))},sgb=function(a){if(a&1){var b=x();G(0,"div",16)(1,"button",17);K("click",function(){z(b);var c=M();return A(c.save())});P(2,"Save ");H();G(3,"button",18);K("click",function(){z(b);
var c=M();return A(c.discardChanges())});P(4,"Discard changes ");H();G(5,"span",19)(6,"a",20);K("click",function(){z(b);var c=M();bo(c.analytics,c.ANALYTICS_CATEGORY,"backToNormalSearch");return A()});P(7," Back to normal search");H()()()}a&2&&(a=M(),B(6),D("href",a.exitLink,Kd))},tgb=function(a){a&1&&(G(0,"span"),P(1),H());a&2&&(a=M(3),B(1),If(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},ugb=function(a){a&1&&(G(0,"div",24),J(1,"b-spinner"),O(2,tgb,2,1,"span",8),H());
a&2&&(a=M(2),B(2),D("ngIf",a.searchParams))},vgb=function(a){a&1&&(G(0,"div",25),P(1," No issues in saved search. "),H());a&2&&D("bFocus",!0)},wgb=function(a){if(a&1){var b=x();G(0,"div",26)(1,"b-issues-grid",27);K("init",function(c){z(b);var d=M(2);return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=M(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=M(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=M(2);return A(d.setSort(c.field,
c.direction))})("rowClick",function(c){z(b);var d=M(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=M(2);return A(mt(c,c.page,1))})("onPrevPage",function(){z(b);var c=M(2);return A(mt(c,c.page,-1))});H()()}a&2&&(a=M(2),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},xgb=function(a){a&1&&(G(0,"div"),O(1,ugb,3,1,"div",21),O(2,vgb,2,1,"div",22),
O(3,wgb,2,5,"div",23),H());a&2&&(a=M(),B(1),D("ngIf",a.isLoading),B(1),D("ngIf",!a.isLoading&&!a.hasResults()),B(1),D("ngIf",!a.isLoading&&a.hasResults()))},ygb=function(a){if(a&1){var b=x();G(0,"div",7)(1,"label",8);P(2,"Issue email");H();G(3,"input",20,21);K("focus",function(){z(b);var d=Hf(4);return A(d.select())});H();G(5,"button",22);K("click",function(){z(b);var d=Hf(4),e=M();return A(At(e,d))});J(6,"mat-icon",12);H()()}if(a&2){var c=Hf(4);a=M();B(1);D("htmlFor",c.id);B(2);nf("value",a.getIssueEmail())}},
zgb=function(a){if(a&1){var b=x();G(0,"div",7)(1,"label",8);P(2,"TODO comment");H();G(3,"input",23,24);K("focus",function(){z(b);var d=Hf(4);return A(d.select())});H();G(5,"button",25);K("click",function(){z(b);var d=Hf(4),e=M();return A(At(e,d))});J(6,"mat-icon",12);H()()}if(a&2){var c=Hf(4);a=M();B(1);D("htmlFor",c.id);B(2);nf("value",a.getTodoComment())}},Agb=function(a){if(a&1){var b=x();G(0,"b-button",6);K("onAction",function(){z(b);var c=M();return A(c.markAsDuplicate.emit())});G(1,"span");
P(2,"Mark as Duplicate");H()()}a&2&&(a=M(),D("disabled",!a.hasAclToEdit||a.statusIsSaving))},Bgb=function(a){if(a&1){var b=x();G(0,"b-button",7);K("onAction",function(){z(b);var c=M();return A(c.clearCanonical.emit())});G(1,"span");P(2,"Unmark as Duplicate");H()()}a&2&&(a=M(),D("disabled",!a.hasAclToEdit||a.statusIsSaving))},Cgb=function(a){if(a&1){var b=x();G(0,"b-app-vote-button",8);K("onVote",function(){z(b);var c=M();return A(c.onVote.emit())});H()}a&2&&(a=M(),D("issueId",a.issueId)("upvoted",
a.upvoted)("voteCount",a.voteCount))},Dgb=function(a){a&1&&(J(0,"b-issue-id-picker-legacy",8),Q(1,"async"));a&2&&(a=M(),D("issueId",a.parent.issueId)("componentId",(null==a.parent.currentComponent?null:a.parent.currentComponent.componentId)||0)("issueTitle",a.parent.issue.title)("isExternalIssue",!!R(1,4,a.isWithinExternalComponent$)))},Egb=function(a){if(a&1){var b=x();G(0,"span",9);K("click",function(){z(b);var c=M();return A(Bt(c.parent))})("keydown.enter",function(){z(b);var c=M();return A(Bt(c.parent))});
Q(1,"async");Q(2,"async");Q(3,"async");Q(4,"async");H()}a&2&&(a=M(),sf("bv2-disabled",!R(1,5,a.hasAclToEdit$)||!!R(2,7,a.isSaving$("title"))),D("matTooltip",Ct(a.parent)),nf("aria-label",Ct(a.parent))("aria-disabled",!R(3,9,a.hasAclToEdit$)||!!R(4,11,a.isSaving$("title"))))},Ggb=function(a){if(a&1){var b=x();G(0,"div",37)(1,"b-rel-issues-picker",38);K("itemsChange",function(c){z(b);var d=M(2);return A(Fgb(d.parent,c))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");H()()}a&2&&(a=M(2),nf("aria-hidden",
"BLOCKED"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!!R(2,8,a.isSaving$("blockedByIssueId"))||!R(3,10,a.hasAclToEdit$))("removeButtonTitle",R(4,12,a.hasAclToEdit$)?"Remove blocking issue":"")("addButtonTitle",R(5,14,a.hasAclToEdit$)?"Add blocking issue":"")("items",a.parent.blockedByIssues)("searchLink",a.parent.blockingIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId))},Igb=function(a){if(a&1){var b=x();G(0,"div",39)(1,"b-rel-issues-picker",
40);K("itemsChange",function(c){z(b);var d=M(2);return A(Hgb(d.parent,c))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");H()()}a&2&&(a=M(2),nf("aria-hidden","BLOCKING"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!!R(2,8,a.isSaving$("blockingIssueId"))||!R(3,10,a.hasAclToEdit$))("removeButtonTitle",R(4,12,a.hasAclToEdit$)?"Remove blocked issue":"")("addButtonTitle",R(5,14,a.hasAclToEdit$)?"Add blocked issue":"")("items",a.parent.blockingIssues)("searchLink",a.parent.blockedIssuesSearchUrl)("currentResourceId",
a.parent.issueId)("componentId",a.parent.issue.componentId))},Jgb=function(a){a&1&&(G(0,"div",41),J(1,"b-rel-issues-picker",42),H());a&2&&(a=M(2),nf("aria-hidden","DUPLICATES"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!0)("hideStatus",!0)("items",a.parent.duplicateIssues))},Kgb=function(a){a&1&&J(0,"b-wtdm-info-hovercard",46)},Mgb=function(a){if(a&1){var b=x();G(0,"div",43)(1,"b-rel-issues-picker",44);K("itemChange",function(c){z(b);var d=M(2);return A(Lgb(d.parent,c))});Q(2,"async");Q(3,
"async");Q(4,"async");Q(5,"async");O(6,Kgb,1,0,"b-wtdm-info-hovercard",45);H()()}a&2&&(a=M(2),nf("aria-hidden","PARENTS"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!!R(2,8,a.isSaving$("parentIssues"))||!R(3,10,a.hasAclToEdit$))("removeButtonTitle",R(4,12,a.hasAclToEdit$)?"Remove parent issue":"")("addButtonTitle",R(5,14,a.hasAclToEdit$)?"Add parent issue":"")("items",a.parent.parentIssues)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId),B(5),D("ngIf",!a.parent.sessionIsExternal))},
Ngb=function(a){a&1&&J(0,"b-wtdm-info-hovercard",46)},Qgb=function(a){if(a&1){var b=x();G(0,"div",47)(1,"b-rel-issues-picker",48);K("itemChange",function(d){z(b);var e=M(2);return A(Ogb(e.parent,d))})("itemMove",function(d){z(b);var e=M(2);return A(Ogb(e.parent,d))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");Q(6,"async");O(7,Ngb,1,0,"b-wtdm-info-hovercard",45);H()()}if(a&2){a=M(2);var c;nf("aria-hidden","CHILDREN"!=a.parent.relatedIssuesTrayOpen);B(1);D("disabled",!!R(2,10,a.isSaving$("childIssues"))||
!R(3,12,a.hasAclToEdit$))("removeButtonTitle",R(4,14,a.hasAclToEdit$)?"Remove child issue":"")("addButtonTitle",R(5,16,a.hasAclToEdit$)?"Add child issue":"")("items",null!==(c=R(6,18,a.parent.childIssues$))&&void 0!==c?c:Mf(20,Pgb))("searchLink",a.parent.childIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId)("reorderable",!0);B(6);D("ngIf",!a.parent.sessionIsExternal)}},Rgb=function(a,b){a&1&&J(0,"b-package-mentions-listing",53);if(a&2){a=b.$implicit;
b=M(2).ngIf;var c=M(3);D("issueId",""+c.parent.issueId)("packageMentionSet",a)("displayPackageName",c.parent.displayPackageNames(b))}},Sgb=function(a){a&1&&(xf(0),O(1,Rgb,1,3,"b-package-mentions-listing",52),yf());a&2&&(a=M().ngIf,B(1),D("ngForOf",a.mentions.packageMentionSet))},Tgb=function(a,b){if(a&1){var c=x();xf(0);O(1,Sgb,2,1,"ng-container",36);G(2,"div",50)(3,"a",51);K("click",function(){z(c);var d=M(3);return A(d.parent.trackSqueegeeClick())});P(4,"View in Squeegee");H()();yf()}a&2&&(a=b.ngIf,
B(1),D("ngIf",a.mentions),B(2),D("href",a.link,Kd))},Ugb=function(a){a&1&&(G(0,"div",49),O(1,Tgb,5,2,"ng-container",36),Q(2,"async"),H());a&2&&(a=M(2),nf("aria-hidden","MENTIONS"!=a.parent.relatedIssuesTrayOpen),B(1),D("ngIf",R(2,2,a.parent.codeMentionsState$)))},Vgb=function(a){if(a&1){var b=x();G(0,"b-callout",54)(1,"b-callout-body");P(2," This issue is leveraging a new work tracking data model. Help us improve it by joining the early access group and reloading the page. ");G(3,"a",55);P(4,"Learn more");
H()();G(5,"b-callout-actions")(6,"b-button",56);K("onAction",function(){z(b);var c=M(2).wtdmEa;c.dismissalService.dismiss("wtdm-ea-announcement").pipe(Ye(c.destroyed$)).subscribe();return A()});P(7,"Dismiss");H();G(8,"a",57)(9,"b-button",58);P(10,"Opt in");H()()()()}a&2&&D("messageType","info")("format","app")},Wgb=function(a){a&1&&(J(0,"b-issue-id-picker-legacy",59),Q(1,"async"));a&2&&(a=M(2),D("issueId",a.parent.issueId)("componentId",(null==a.parent.currentComponent?null:a.parent.currentComponent.componentId)||
0)("issueTitle",a.parent.issue.title)("isExternalIssue",!!R(1,4,a.isWithinExternalComponent$)))},Xgb=function(a){if(a&1){var b=x();G(0,"span",60,61);K("click",function(){z(b);var c=M(2);return A(Bt(c.parent))})("keydown",function(c){z(b);var d=M(2);return A(Bt(d.parent,c))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");H()}a&2&&(a=M(2),sf("bv2-disabled",!R(2,5,a.hasAclToEdit$)||!!R(3,7,a.isSaving$("title"))),D("matTooltip",Ct(a.parent)),nf("aria-label",Ct(a.parent))("aria-disabled",!R(4,9,
a.hasAclToEdit$)||!!R(5,11,a.isSaving$("title"))))},Ygb=function(a){a&1&&(G(0,"div"),P(1," You must have "),G(2,"strong"),P(3,"issue admin"),H(),P(4," access. "),H())},Zgb=function(a){a&1&&(G(0,"div"),P(1," You can change admin settings in the "),G(2,"a",66),P(3,"component management page"),H(),P(4,". "),H());a&2&&(a=M(4),B(2),D("href",a.paths.manageComponentAcl(a.parent.issue.componentId),Kd))},$gb=function(a){a&1&&(G(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),P(2," Flag this issue as spam. "),
O(3,Ygb,5,0,"div",36),Q(4,"async"),O(5,Zgb,5,1,"div",36),Q(6,"async"),Q(7,"async"),H()());a&2&&(a=M(3),B(3),D("ngIf",!R(4,2,a.canDeleteIssue$)),B(2),D("ngIf",!R(6,4,a.canDeleteIssue$)&&R(7,6,a.userIsComponentAdmin$)))},ahb=function(a){if(a&1){var b=x();G(0,"div",62)(1,"b-button",63);K("onAction",function(){z(b);var d=M(2);return A(d.parent.showFlagAsSpamDialog())});Q(2,"async");J(3,"b-icon",64);H();O(4,$gb,8,8,"ng-template",null,65,gg);H()}if(a&2){var c=Hf(5);a=M(2);D("xapInlineDialog",c);B(1);D("disabled",
!R(2,2,a.canDeleteIssue$))}},chb=function(a,b){if(a&1){var c=x();G(0,"b-hotlist-chip-smart",67);K("removeHotlist",function(){var d=z(c).$implicit,e=M(2);return A(bhb(e,d))});H()}a&2&&D("id",""+b.$implicit)},dhb=function(a){a&1&&(G(0,"div",68)(1,"span"),P(2),H()());a&2&&(a=M(2),B(2),Kf("",a.parent.voteCount," ",1==a.parent.voteCount?"person has":"people have"," starred this issue."))},ehb=function(a){if(a&1){var b=x();G(0,"a",72);K("click",function(c){z(b);var d=M(3).parent;d.newComponent=d.currentComponent;
d.editComponent=!0;d.hotkeys.pause();c.stopPropagation();return A()})("keydown.enter",function(c){z(b);var d=M(3).parent;d.newComponent=d.currentComponent;d.editComponent=!0;d.hotkeys.pause();c.stopPropagation();return A()});H()}a&2&&D("matTooltip","Change component")},fhb=function(a){a&1&&(G(0,"div",69)(1,"b-async-data-placeholder",18),Q(2,"async"),J(3,"b-component-breadcrumb",70),Q(4,"async"),O(5,ehb,1,1,"a",71),Q(6,"async"),H()());if(a&2){a=M(2);var b;B(1);D("isReady",!!R(2,4,a.parent.componentPathInfo$));
B(2);D("componentPathInfo",R(4,6,a.parent.componentPathInfo$))("isArchived",null!==(b=null==a.parent.currentComponent?null:a.parent.currentComponent.archived)&&void 0!==b?b:!1);B(2);D("ngIf",R(6,8,a.hasAclToEdit$))}},ghb=function(a){if(a&1){var b=x();G(0,"b-team-component-picker",73);K("selectedComponentChange",function(c){z(b);var d=M(2);return A(M5a(d.issueEditComponentService,d.parent.issueId,null!==c&&void 0!==c?c:null))})("dropdownClosed",function(){z(b);var c=M(2).parent;c.editComponent=!1;
c.hotkeys.unpause();return A()});H()}a&2&&(a=M(2),D("selectedComponent",a.parent.newComponent)("placeholder","Choose Component")("isRequired",!0)("shouldFocus",!0))},khb=function(a){a&1&&J(0,"b-actions-menu",74);if(a&2){a=M(2).parent;var b={permissions:a.issuePermissionService.issuePermissions(),accessLevel:a.issuePermissionService.accessLevel(),isDeleted:a.issue.isDeleted,isArchived:a.issue.isArchived,isInternal:a.activeSession.isInternalSession(),isComponentAdmin:a.issuePermissionService.userIsComponentAdmin(),
retentionOverride:a.issueDetailsBrain.retention(),retentionState:a.issueDetailsBrain.retentionState()};a=[hhb(a,b),ihb(a,b),jhb(a,b)].filter($k);D("menuItems",a)("buttonLabel","Issue actions")("matTooltip","Issue actions")}},lhb=function(a){if(a&1){var b=x();G(0,"div",75)(1,"p");P(2);H();G(3,"b-button",76);K("onAction",function(){z(b);var c=M(2);return A(c.parent.undelete())});Q(4,"async");Q(5,"async");P(6," Undelete Issue ");H()()}a&2&&(a=M(2),B(2),If(" This issue has been marked for deletion for reason '",
a.parent.issue.deletionReason,"'. Some changes can still be made to the issue but it will not appear in regular search results. "),B(1),D("tooltip",R(4,3,a.undeleteButtonTooltip$)||"")("disabled",!R(5,5,a.canUndeleteIssue$)))},nhb=function(a){a&1&&(J(0,"b-history-event-stream",77),Q(1,"async"));a&2&&(a=M(2),D("issueId",a.parent.issueId)("issueAccessLevel",R(1,3,a.accessLevel$))("events",Nf(5,mhb,a.parent.firstEvent)))},ohb=function(a){a&1&&(J(0,"b-history-event-stream",78),Q(1,"async"));a&2&&(a=M(2),
D("issueId",a.parent.issueId)("issueAccessLevel",R(1,4,a.accessLevel$))("events",a.parent.events)("showFullHistory",a.parent.preferences.showFullHistory))},phb=function(a){a&1&&(G(0,"div",79)(1,"div",80)(2,"p",81),J(3,"b-spinner"),P(4," Loading history and comments... "),H()()())},qhb=function(a){if(a&1){var b=x();G(0,"span")(1,"b-checkbox",89);K("change",function(){z(b);var d=M(3);return A(d.parent.toggleAutoCcOnComment())});Q(2,"async");H()()}if(a&2){a=M(3);var c;B(1);D("checked",null!==(c=a.parent.preferences.autoCcOnComment)&&
void 0!==c?c:!1)("disabled",!!R(2,2,a.isCurrentUserCCd$))}},rhb=function(a){a&1&&(J(0,"b-checkbox",92),Q(1,"async"));a&2&&(a=M(4),D("checked",!0)("disabled",!0)("tooltip",R(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},shb=function(a){a&1&&(G(0,"span",90),O(1,rhb,2,5,"b-checkbox",91),Q(2,"async"),H());a&2&&(a=M(3),B(1),D("ngIf",R(2,1,a.isCurrentUserCCd$)))},thb=function(a){a&1&&J(0,"b-markdown-toggle")},whb=function(a){if(a&1){var b=x();G(0,"div")(1,"h3",82);P(2,"Add comment");H();
G(3,"div",83)(4,"b-comment-box",84,85);K("onHotkey",function(){z(b);var d=Hf(5);return A(ibb(d,"editpage-hotkey"))})("onChange",function(){z(b);var d=M(2);return A(d.parent.saveCommentDraft())})("onSubmit",function(){z(b);var d=M(2);return A(d.parent.submitCommentBox())})("onRestrict",function(){z(b);var d=M(2);return A(d.parent.showNewContentJudgementDialog())});Q(6,"async");Q(7,"async");G(8,"div",86)(9,"b-button",87);K("onAction",function(){z(b);var d=M(2);return A(d.parent.submitCommentBox())});
P(10," Comment ");H();G(11,"div",86);O(12,qhb,3,4,"span",36);Q(13,"async");Q(14,"async");O(15,shb,3,3,"span",88);Q(16,"async");Q(17,"async");O(18,thb,1,0,"b-markdown-toggle",36);Q(19,"async");H();J(20,"b-access-level-indicator",16);Q(21,"async");H()()()()}if(a&2){a=M(2);var c;B(4);D("hotkey",a.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.parent.issueId)("comment",a.parent.comment)("componentId",a.parent.issue.componentId)("placeholder",uhb(a.parent))("judgementForNewContent",a.parent.judgementForNewContent)("audience",
null!==(c=R(6,15,a.audience$))&&void 0!==c?c:void 0)("disabled",!vhb(a.parent))("attachmentsDisabled",!R(7,17,a.hasAclToComment$));B(5);D("disabled",!jbb(a.parent));B(3);D("ngIf",!R(13,19,a.isCurrentUserCCd$)&&R(14,21,a.hasAclToEdit$));B(3);D("ngIf",R(16,23,a.isCurrentUserCCd$)||!R(17,25,a.hasAclToEdit$));B(3);D("ngIf",R(19,27,a.hasAclToComment$));B(2);D("accessLevel",R(21,29,a.accessLevel$))}},zhb=function(a){if(a&1){var b=x();G(0,"div",1)(1,"div",2);O(2,Ggb,6,16,"div",3);O(3,Igb,6,16,"div",4);O(4,
Jgb,2,4,"div",5);O(5,Mgb,7,16,"div",6);O(6,Qgb,8,21,"div",7);O(7,Ugb,3,4,"div",8);H();O(8,Vgb,11,2,"b-callout",9);Q(9,"async");Q(10,"async");G(11,"div",10)(12,"edit-issue-scroll-eclipse",11);K("eclipsing",function(e){z(b);var f=M();return A(f.scrollEclipseShowing=e)});H();G(13,"div",12)(14,"div",13)(15,"b-star-toggle",14);K("onHotkey",function(){z(b);var e=M();return A(e.parent.toggleStarDebounced())})("starClicked",function(){z(b);var e=M();return A(e.parent.toggleStar())});Q(16,"async");H();O(17,
Wgb,2,6,"b-issue-id-picker-legacy",15);J(18,"b-access-level-indicator",16);Q(19,"async");G(20,"h3",17)(21,"b-async-data-placeholder",18)(22,"span",19)(23,"span",19);P(24);H();O(25,Xgb,6,13,"span",20);Q(26,"async");H()()();O(27,ahb,6,4,"div",21);G(28,"span");O(29,chb,1,1,"b-hotlist-chip-smart",22);H()();J(30,"div",23);O(31,dhb,3,2,"div",24);G(32,"div",25)(33,"div",26);O(34,fhb,7,10,"div",27);O(35,ghb,1,4,"b-team-component-picker",28);H();G(36,"span",29);J(37,"b-retention-chip",30);Q(38,"async");Q(39,
"async");H();O(40,khb,1,3,"b-actions-menu",31);H()();O(41,lhb,7,7,"div",32);O(42,nhb,2,7,"b-history-event-stream",33);O(43,ohb,2,6,"b-history-event-stream",34);O(44,phb,5,0,"div",35);O(45,whb,22,31,"div",36);H()()}if(a&2){a=M();var c,d;B(2);D("ngIf","BLOCKED"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf","BLOCKING"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf","DUPLICATES"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf",!a.parent.sessionIsExternal&&a.parent.enableWtdmMvpUi&&"PARENTS"==a.parent.relatedIssuesTrayOpen);
B(1);D("ngIf",!a.parent.sessionIsExternal&&a.parent.enableWtdmMvpUi&&"CHILDREN"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf",!a.parent.sessionIsExternal&&"MENTIONS"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf",xhb(a.parent)&&!R(9,35,a.isWithinExternalComponent$)&&R(10,37,a.wtdmEa.shouldEnableEaCallout$));B(3);D("bFocus",!a.parent.isLoading);nf("aria-label",a.parent.issue.title);B(1);D("parent",a.parent);B(3);D("starMessage",a.parent.starTooltip)("unStarMessage",a.parent.unStarTooltip)("starred",
null==a.parent.userData?null:a.parent.userData.starred)("hotkey",a.HOTKEYS.TOGGLE_STAR)("disabled",!!R(16,39,a.isSaving$("star")));B(2);D("ngIf",!a.scrollEclipseShowing);B(1);D("accessLevel",R(19,41,a.accessLevel$));B(3);D("isReady",!!a.parent.issue.title);B(1);nf("aria-label",a.parent.ariaIssueTitle);B(2);Jf(a.parent.issue.title);B(1);D("ngIf",R(26,43,a.hasAclToEdit$));B(2);D("ngIf",yhb(a));B(2);D("ngForOf",a.parent.issue.hotlistId);B(2);D("ngIf",!a.parent.frontendIsInternalOrPartner);B(3);D("ngIf",
!a.parent.editComponent);B(1);D("ngIf",a.parent.editComponent);B(2);D("retentionState",null!==(c=R(38,45,a.retentionState$))&&void 0!==c?c:void 0)("compactMode",!1)("modifiedTime",null!==(d=R(39,47,a.modifiedTime$))&&void 0!==d?d:void 0);B(3);D("ngIf",!a.parent.issue.isDeleted);B(1);D("ngIf",a.parent.issue.isDeleted);B(1);D("ngIf",a.parent.firstEvent);B(1);D("ngIf",!a.parent.areEventsLoading);B(1);D("ngIf",a.parent.areEventsLoading);B(1);D("ngIf",!a.parent.issue.isDeleted)}},Ahb=function(a){a&1&&
(G(0,"output",1),P(1),H());a&2&&(a=M(),rf("background-color",a.entity.color)("color",a.entity.textColor||"inherit"),sf("smallType",a.isMultiCharShortName())("uncoloredMultichar",a.isMultiCharShortName()&&null==a.entity.color)("noShortName",!a.entity.shortName),D("title",a.getTooltip(a.entity)),B(1),If(" ",a.entity.shortName," "))},Bhb=function(a){return null==a?!1:1<Array.from(a.shortName||"").length},Chb=function(a){if(null!=a){var b=a.title,c=a.shortName;a=a.color;var d="";null!=c&&(d="["+c+"] ");
c="";null!=a&&(c=" (color: "+a+")");return d+b+c}},Dhb=function(a){if(a&1){var b=x();xf(0);G(1,"mat-form-field",1)(2,"input",2);K("ngModelChange",function(c){z(b);var d=M();return A(d.entity.color=c)})("input",function(){z(b);var c=M();return A(c.update(c.entity))});H();G(3,"mat-hint");P(4,"The main color that represents this item");H()();G(5,"mat-form-field",3)(6,"input",4);K("ngModelChange",function(c){z(b);var d=M();return A(d.entity.shortName=c)})("input",function(){z(b);var c=M();return A(c.update(c.entity))});
H();J(7,"mat-hint");H();G(8,"mat-form-field",1)(9,"input",5);K("ngModelChange",function(c){z(b);var d=M();return A(d.entity.textColor=c)})("input",function(){z(b);var c=M();return A(c.update(c.entity))});H();G(10,"mat-hint");P(11,"Only needed if you choose a dark color");H()();yf()}a&2&&(a=M(),B(2),D("ngModel",a.entity.color),B(4),D("ngModel",a.entity.shortName),B(3),D("ngModel",a.entity.textColor))},Ehb=function(){return new Dt(new Et("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s"))},
Fhb=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},Ft="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},Ghb=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("a");},ki=Ghb(this),
Gt=function(a,b){if(b)a:{var c=ki;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&Ft(c,a,{configurable:!0,writable:!0,value:b})}};
Gt("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;Ft(this,"description",{configurable:!0,writable:!0,value:h})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("b");return new b(c+(f||"")+"_"+d++,f)};return e});
Gt("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ki[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&Ft(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Hhb(Fhb(this))}})}return a});Gt("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var Hhb=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Ht=function(a){return a.raw=a},r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Fhb(a)}},Ce=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},u=function(a){return a instanceof Array?a:Ce(r(a))},It=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Ihb="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=
1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)It(d,e)&&(a[e]=d[e])}return a};Gt("Object.assign",function(a){return a||Ihb});var Jhb="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},Khb;
if("function"==typeof Object.setPrototypeOf)Khb=Object.setPrototypeOf;else{var Lhb;a:{var Mhb={a:!0},Nhb={};try{Nhb.__proto__=Mhb;Lhb=Nhb.a;break a}catch(a){}Lhb=!1}Khb=Lhb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}
var Jt=Khb,U=function(a,b){a.prototype=Jhb(b.prototype);a.prototype.constructor=a;if(Jt)Jt(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype},Kt=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
Kt.prototype.start_=function(){if(this.isRunning_)throw new TypeError("g");this.isRunning_=!0};Kt.prototype.next_=function(a){this.yieldResult=a};Kt.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};Kt.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var ne=function(a,b,c){a.nextAddress=c;return{value:b}};Kt.prototype.jumpTo=function(a){this.nextAddress=a};
var oe=function(a){a.nextAddress=0},Lt=function(a,b,c){a.catchAddress_=b;void 0!=c&&(a.finallyAddress_=c)},Mt=function(a,b){a.nextAddress=b;a.catchAddress_=0},Nt=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Ot=function(a){a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=0;a.finallyAddress_=0},Pt=function(a,b){var c=a.finallyContexts_.splice(0)[0];(c=a.abruptCompletion_=a.abruptCompletion_||c)?c.isException?a.nextAddress=a.catchAddress_||
a.finallyAddress_:void 0!=c.jumpTo&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b},Qt=function(a){this.context_=new Kt;this.program_=a};Qt.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Ohb(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return Rt(this)};
var Phb=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return Ohb(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return Rt(a)};Qt.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Ohb(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return Rt(this)};
var Ohb=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("f`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(h){return a.context_.yieldAllIterator_=null,a.context_.throw_(h),Rt(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return Rt(a)},Rt=function(a){for(;a.context_.nextAddress;)try{var b=a.program_(a.context_);if(b)return a.context_.isRunning_=!1,{value:b.value,done:!1}}catch(c){a.context_.yieldResult=
void 0,a.context_.throw_(c)}a.context_.isRunning_=!1;if(a.context_.abruptCompletion_){b=a.context_.abruptCompletion_;a.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}},Qhb=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return Phb(a,b)};this[Symbol.iterator]=function(){return this}},LTa=function(a){var b=MTa;a=new Qhb(new Qt(a));Jt&&b.prototype&&Jt(a,
b.prototype);return a},Rhb=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}f(a.next())})},me=function(a){return Rhb(new Qhb(new Qt(a)))},ofa=function(a){this[Symbol.asyncIterator]=function(){return this};this[Symbol.iterator]=function(){return a};this.next=function(b){return Promise.resolve(a.next(b))};void 0!==a["throw"]&&(this["throw"]=function(b){return Promise.resolve(a["throw"](b))});
void 0!==a["return"]&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},oc=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};Gt("Reflect.setPrototypeOf",function(a){return a?a:Jt?function(b,c){try{return Jt(b,c),!0}catch(d){return!1}}:null});
Gt("Promise",function(a){function b(){this.batch_=null}function c(h){return h instanceof e?h:new e(function(k){k(h)})}if(a)return a;b.prototype.asyncExecute=function(h){if(null==this.batch_){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(h)};var d=ki.setTimeout;b.prototype.asyncExecuteFunction=function(h){d(h,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var k=0;k<h.length;++k){var q=
h[k];h[k]=null;try{q()}catch(w){this.asyncThrow_(w)}}}this.batch_=null};b.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};var e=function(h){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{h(k.resolve,k.reject)}catch(q){k.reject(q)}};e.prototype.createResolveAndReject_=function(){function h(w){return function(y){q||(q=!0,w.call(k,y))}}var k=this,q=!1;return{resolve:h(this.resolveTo_),
reject:h(this.reject_)}};e.prototype.resolveTo_=function(h){if(h===this)this.reject_(new TypeError("h"));else if(h instanceof e)this.settleSameAsPromise_(h);else{a:switch(typeof h){case "object":var k=null!=h;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(h):this.fulfill_(h)}};e.prototype.resolveToNonPromiseObj_=function(h){var k=void 0;try{k=h.then}catch(q){this.reject_(q);return}"function"==typeof k?this.settleSameAsThenable_(k,h):this.fulfill_(h)};e.prototype.reject_=
function(h){this.settle_(2,h)};e.prototype.fulfill_=function(h){this.settle_(1,h)};e.prototype.settle_=function(h,k){if(0!=this.state_)throw Error("i`"+h+"`"+k+"`"+this.state_);this.state_=h;this.result_=k;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var h=this;d(function(){if(h.notifyUnhandledRejection_()){var k=ki.console;"undefined"!==typeof k&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=ki.CustomEvent,k=ki.Event,q=ki.dispatchEvent;if("undefined"===typeof q)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof k?h=new k("unhandledrejection",{cancelable:!0}):(h=ki.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return q(h)};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var h=
0;h<this.onSettledCallbacks_.length;++h)f.asyncExecute(this.onSettledCallbacks_[h]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(h){var k=this.createResolveAndReject_();h.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(h,k){var q=this.createResolveAndReject_();try{h.call(k,q.resolve,q.reject)}catch(w){q.reject(w)}};e.prototype.then=function(h,k){function q(I,N){return"function"==typeof I?function(L){try{w(I(L))}catch(S){y(S)}}:
N}var w,y,E=new e(function(I,N){w=I;y=N});this.callWhenSettled_(q(h,w),q(k,y));return E};e.prototype.catch=function(h){return this.then(void 0,h)};e.prototype.callWhenSettled_=function(h,k){function q(){switch(w.state_){case 1:h(w.result_);break;case 2:k(w.result_);break;default:throw Error("j`"+w.state_);}}var w=this;null==this.onSettledCallbacks_?f.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(h){return new e(function(k,q){q(h)})};e.race=
function(h){return new e(function(k,q){for(var w=r(h),y=w.next();!y.done;y=w.next())c(y.value).callWhenSettled_(k,q)})};e.all=function(h){var k=r(h),q=k.next();return q.done?c([]):new e(function(w,y){function E(L){return function(S){I[L]=S;N--;0==N&&w(I)}}var I=[],N=0;do I.push(void 0),N++,c(q.value).callWhenSettled_(E(I.length-1),y),q=k.next();while(!q.done)})};return e});var St=function(a,b,c){if(null==a)throw new TypeError("k`"+c);if(b instanceof RegExp)throw new TypeError("l`"+c);return a+""};
Gt("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=St(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});var Shb=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};Gt("Array.prototype.find",function(a){return a?a:function(b,c){return Shb(this,b,c).v}});
Gt("WeakMap",function(a){function b(){}function c(q){var w=typeof q;return"object"===w&&null!==q||"function"===w}function d(q){if(!It(q,f)){var w=new b;Ft(q,f,{value:w})}}function e(q){var w=Object[q];w&&(Object[q]=function(y){if(y instanceof b)return y;Object.isExtensible(y)&&d(y);return w(y)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),w=Object.seal({}),y=new a([[q,2],[w,3]]);if(2!=y.get(q)||3!=y.get(w))return!1;y.delete(q);y.set(w,4);return!y.has(q)&&4==y.get(w)}catch(E){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var h=0,k=function(q){this.id_=(h+=Math.random()+1).toString();if(q){q=r(q);for(var w;!(w=q.next()).done;)w=w.value,this.set(w[0],w[1])}};k.prototype.set=function(q,w){if(!c(q))throw Error("m");d(q);if(!It(q,f))throw Error("n`"+q);q[f][this.id_]=w;return this};k.prototype.get=function(q){return c(q)&&It(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&It(q,f)&&It(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&It(q,f)&&It(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
Gt("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var k=Object.seal({x:4}),q=new a(r([[k,"s"]]));if("s"!=q.get(k)||1!=q.size||q.get({x:4})||q.set({x:4},"t")!=q||2!=q.size)return!1;var w=q.entries(),y=w.next();if(y.done||y.value[0]!=k||"s"!=y.value[1])return!1;y=w.next();return y.done||4!=y.value[0].x||"t"!=y.value[1]||!w.next().done?!1:!0}catch(E){return!1}}())return a;var b=new WeakMap,c=function(k){this.data_={};this.head_=
f();this.size=0;if(k){k=r(k);for(var q;!(q=k.next()).done;)q=q.value,this.set(q[0],q[1])}};c.prototype.set=function(k,q){k=0===k?0:k;var w=d(this,k);w.list||(w.list=this.data_[w.id]=[]);w.entry?w.entry.value=q:(w.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:k,value:q},w.list.push(w.entry),this.head_.previous.next=w.entry,this.head_.previous=w.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||
delete this.data_[k.id],k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=
function(){return e(this,function(k){return k.value})};c.prototype.forEach=function(k,q){for(var w=this.entries(),y;!(y=w.next()).done;)y=y.value,k.call(q,y[1],y[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,q){var w=q&&typeof q;"object"==w||"function"==w?b.has(q)?w=b.get(q):(w=""+ ++h,b.set(q,w)):w="p_"+q;var y=k.data_[w];if(y&&It(k.data_,w))for(k=0;k<y.length;k++){var E=y[k];if(q!==q&&E.key!==E.key||q===E.key)return{id:w,list:y,index:k,entry:E}}return{id:w,list:y,index:-1,
entry:void 0}},e=function(k,q){var w=k.head_;return Hhb(function(){if(w){for(;w.head!=k.head_;)w=w.previous;for(;w.next!=w.head;)return w=w.next,{done:!1,value:q(w)};w=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});Gt("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
Gt("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});var Thb=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};Gt("Array.prototype.entries",function(a){return a?a:function(){return Thb(this,function(b,c){return[b,c]})}});
Gt("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});Gt("Object.setPrototypeOf",function(a){return a||Jt});Gt("Array.prototype.keys",function(a){return a?a:function(){return Thb(this,function(b){return b})}});Gt("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
Gt("Set",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};b.prototype.add=function(c){c=0===c?0:c;this.map_.set(c,c);this.size=this.map_.size;return this};b.prototype.delete=function(c){c=this.map_.delete(c);this.size=this.map_.size;return c};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(c){return this.map_.has(c)};b.prototype.entries=function(){return this.map_.entries()};b.prototype.values=function(){return this.map_.values()};b.prototype.keys=
b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.map_.forEach(function(f){return c.call(d,f,f,e)})};return b});Gt("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
Gt("Array.prototype.values",function(a){return a?a:function(){return Thb(this,function(b,c){return c})}});Gt("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=St(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
Gt("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});var Tt=function(a){return a?a:Array.prototype.fill};Gt("Int8Array.prototype.fill",Tt);Gt("Uint8Array.prototype.fill",Tt);Gt("Uint8ClampedArray.prototype.fill",Tt);Gt("Int16Array.prototype.fill",Tt);Gt("Uint16Array.prototype.fill",Tt);Gt("Int32Array.prototype.fill",Tt);
Gt("Uint32Array.prototype.fill",Tt);Gt("Float32Array.prototype.fill",Tt);Gt("Float64Array.prototype.fill",Tt);Gt("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Shb(this,b,c).i}});Gt("Array.prototype.flatMap",function(a){return a?a:function(b,c){for(var d=[],e=0;e<this.length;e++){var f=b.call(c,this[e],e,this);Array.isArray(f)?d.push.apply(d,f):d.push(f)}return d}});Gt("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
Gt("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});Gt("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==St(this,b,"includes").indexOf(b,c||0)}});Gt("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)It(b,d)&&c.push([d,b[d]]);return c}});
Gt("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("o`"+b);b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("p");c[d[0]]=d[1]}return c}});Gt("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)It(b,d)&&c.push(b[d]);return c}});
Gt("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});Gt("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
Gt("Promise.allSettled",function(a){function b(d){return{status:"fulfilled",value:d}}function c(d){return{status:"rejected",reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});
Gt("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("q");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
Gt("String.prototype.codePointAt",function(a){return a?a:function(b){var c=St(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(0<=b&&b<d){b|=0;var e=c.charCodeAt(b);if(55296>e||56319<e||b+1===d)return e;b=c.charCodeAt(b+1);return 56320>b||57343<b?e:1024*(e-55296)+b+9216}}});
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Ut=Ut||{},ba=this||self,Ko=function(a,b){a=a.split(".");b=b||ba;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},La=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},Ca=function(a){var b=La(a);return"array"==b||"object"==b&&"number"==typeof a.length},Da=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ea=function(a){return Object.prototype.hasOwnProperty.call(a,Uhb)&&a[Uhb]||(a[Uhb]=++Vhb)},Uhb="closure_uid_"+(1E9*Math.random()>>>
0),Vhb=0,Whb=function(a,b,c){return a.call.apply(a.bind,arguments)},Xhb=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},Vt=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Vt=Whb:Vt=Xhb;return Vt.apply(null,arguments)},Wt=function(a,
b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},Xt=function(){return Date.now()},Yhb=function(a){(0,eval)(a)},Yt=function(a,b){a=a.split(".");var c=ba;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},Zt=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;
a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[e].apply(d,h)}},Zhb=function(a){return a};
Zt(aa,Error);aa.prototype.name="CustomError";
var $hb;
Zt(aaa,aa);aaa.prototype.name="AssertionError";
var Mi=function(a,b){return 0==a.lastIndexOf(b,0)},$t=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},nOa=function(a){return 0==au("@ldap.google.com",a.slice(a.length-16))},Vi=function(a){return/^[\s\xa0]*$/.test(a)},Qi=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},au=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},hib=function(a){if(!aib.test(a))return a;-1!=a.indexOf("&")&&
(a=a.replace(bib,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(cib,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(dib,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(eib,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(fib,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(gib,"&#0;"));return a},bib=/&/g,cib=/</g,dib=/>/g,eib=/"/g,fib=/'/g,gib=/\x00/g,aib=/[\x00&<>"']/,da=function(a,b){return-1!=a.indexOf(b)},na=function(a,b){return da(a.toLowerCase(),b.toLowerCase())},oa=function(a,b){var c=0;a=Qi(String(a)).split(".");
b=Qi(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=iib(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||iib(0==f[2].length,0==h[2].length)||iib(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c},iib=function(a,b){return a<b?-1:a>b?1:0};
var ra=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},qa=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},jib=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,k=0;k<d;k++)if(k in h){var q=h[k];b.call(c,q,k,a)&&(e[f++]=q)}return e},bu=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},kib=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=
"string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};
var lib=function(a){lib[" "](a);return a};lib[" "]=function(){};var mib=function(a,b){try{return lib(a[b]),!0}catch(c){}return!1},qHa=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
var nib=ea("Opera"),cu=baa(),du=ea("Edge"),Yna=du||cu,eu=ea("Gecko")&&!(na(ca(),"WebKit")&&!ea("Edge"))&&!(ea("Trident")||ea("MSIE"))&&!ea("Edge"),fu=na(ca(),"WebKit")&&!ea("Edge"),oib=fu&&ea("Mobile"),gu=ea("Macintosh"),pib=ea("Windows"),qib=ea("Linux")||ea("CrOS"),rib=ba.navigator||null;rib&&da(rib.appVersion||"","X11");var sib=ea("Android"),tib=la(),uib=ea("iPad"),vib=ea("iPod"),wib=ma();na(ca(),"KaiOS");var xib=function(){var a=ba.document;return a?a.documentMode:void 0},yib;
a:{var zib="",Aib=function(){var a=ca();if(eu)return/rv:([^\);]+)(\)|;)/.exec(a);if(du)return/Edge\/([\d\.]+)/.exec(a);if(cu)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(fu)return/WebKit\/(\S+)/.exec(a);if(nib)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Aib&&(zib=Aib?Aib[1]:"");if(cu){var Bib=xib();if(null!=Bib&&Bib>parseFloat(zib)){yib=String(Bib);break a}}yib=zib}var hu=yib,Cib={},iu=function(a){return qHa(Cib,a,function(){return 0<=oa(hu,a)})},Dib;
if(ba.document&&cu){var Eib=xib();Dib=Eib?Eib:parseInt(hu,10)||void 0}else Dib=void 0;var ju=Dib;
var Fib=fa(),Gib=la()||ea("iPod"),Hib=ea("iPad"),Iib=daa(),Jib=ia(),Kib=caa()&&!ma();
var Lib={},ku=null,Mib=eu||fu||!Kib&&!cu&&"function"==typeof ba.atob,ab=function(a,b){void 0===b&&(b=0);Nib();b=Lib[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],q=a[e+2],w=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=w+h+k+q}w=0;q=d;switch(a.length-e){case 2:w=a[e+1],q=b[(w&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|w>>4]+q+d}return c.join("")},tUa=function(a){if(Mib)return ba.atob(a);var b="";Oib(a,function(c){b+=String.fromCharCode(c)});
return b},Pib=function(a){var b=[];Oib(a,function(c){b.push(c)});return b},raa=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):da("=.",a[b-1])&&(c=da("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Oib(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},Oib=function(a,b){function c(q){for(;d<a.length;){var w=a.charAt(d++),y=ku[w];if(null!=y)return y;if(!Vi(w))throw Error("A`"+w);}return q}Nib();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),k=c(64);if(64===k&&-1===e)break;b(e<<2|f>>4);64!=
h&&(b(f<<4&240|h>>2),64!=k&&b(h<<6&192|k))}},Nib=function(){if(!ku){ku={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Lib[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===ku[f]&&(ku[f]=e)}}}};
var Na="undefined"!==typeof Uint8Array,Qa,Oa={};
var Qib,Pa=function(a,b){taa(b);this.value_=a;if(null!==a&&0===a.length)throw Error("C");},Ya=function(){return Qib||(Qib=new Pa(null,Oa))},db=function(a){var b=a.value_;null!=b&&"string"!==typeof b&&(Na&&b instanceof Uint8Array?b=ab(b):(La(b),b=null));return(a.value_=b)||""};Pa.prototype.isEmpty=function(){return null==this.value_};Pa.prototype.sizeBytes=function(){var a=uaa(this);return a?a.length:0};var uaa=function(a){taa(Oa);return a.value_=saa(a.value_)};
var Rib="function"===typeof Uint8Array.prototype.slice;
var lu=function(a){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,void 0,void 0,void 0)};g=lu.prototype;g.init=function(a,b,c,d){d=void 0===d?{}:d;this.aliasBytesFields=void 0===d.aliasBytesFields?!1:d.aliasBytesFields;a&&(a=vaa(a),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.start_=b||0,this.end_=void 0!==c?this.start_+c:this.bytes_.length,this.cursor_=this.start_)};g.free=function(){this.clear();100>mu.length&&mu.push(this)};
g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};g.getEnd=function(){return this.end_};g.setEnd=function(a){this.end_=a};g.reset=function(){this.cursor_=this.start_};g.getCursor=function(){return this.cursor_};g.advance=function(a){this.cursor_+=a;nu(this)};
g.readSplitVarint64=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=this.bytes_[this.cursor_++],nu(this),c|=(b&127)<<7*e;128<=b&&(b=this.bytes_[this.cursor_++],nu(this),c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=this.bytes_[this.cursor_++],nu(this),d|=(b&127)<<7*e+3;if(128>b)return a(c>>>0,d>>>0);throw Error("w");};var nu=function(a){if(a.cursor_>a.end_)throw Error("x`"+a.cursor_+"`"+a.end_);};g=lu.prototype;
g.readSignedVarint32=function(){var a=this.bytes_,b=a[this.cursor_],c=b&127;if(128>b)return this.cursor_+=1,nu(this),c;b=a[this.cursor_+1];c|=(b&127)<<7;if(128>b)return this.cursor_+=2,nu(this),c;b=a[this.cursor_+2];c|=(b&127)<<14;if(128>b)return this.cursor_+=3,nu(this),c;b=a[this.cursor_+3];c|=(b&127)<<21;if(128>b)return this.cursor_+=4,nu(this),c;b=a[this.cursor_+4];this.cursor_+=5;c|=(b&15)<<28;if(128>b)return nu(this),c;if(128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&
128<=a[this.cursor_++]&&128<=a[this.cursor_++])throw Error("w");nu(this);return c};g.readUint32=function(){var a=this.bytes_[this.cursor_],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];this.cursor_+=4;nu(this);return(a<<0|b<<8|c<<16|d<<24)>>>0};g.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return waa(a,b)};
g.readInt32=function(){var a=this.bytes_[this.cursor_],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];this.cursor_+=4;nu(this);return a<<0|b<<8|c<<16|d<<24};g.readInt64=function(){var a=this.readUint32(),b=this.readUint32();return xaa(a,b)};g.readBool=function(){for(var a=0,b=this.cursor_,c=b+10;b<c;){var d=this.bytes_[b++];a|=d;if(0===(d&128))return this.cursor_=b,nu(this),!!(a&127)}throw Error("w");};
g.readByteString=function(a){if(0>a)throw Error("y`"+a);if(this.cursor_+a>this.end_)throw Error("x`"+(this.end_-this.cursor_)+"`"+a);if(0==a)return Ya();if(this.aliasBytesFields&&this.bytesAreImmutable_)var b=this.bytes_.subarray(this.cursor_,this.cursor_+a);else{b=this.bytes_;var c=this.cursor_,d=this.cursor_+a;b=c===d?Qa||(Qa=new Uint8Array(0)):Rib?b.slice(c,d):new Uint8Array(b.subarray(c,d))}this.cursor_+=a;return 0==b.length?Ya():new Pa(b,Oa)};var mu=[];
var Sib=function(a){if(mu.length){var b=mu.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new lu(a);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions()};g=Sib.prototype;g.setOptions=function(){var a={};this.discardUnknownFields=void 0===a.discardUnknownFields?!1:a.discardUnknownFields};g.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;100>ou.length&&ou.push(this)};g.getCursor=function(){return this.decoder_.getCursor()};
g.getTag=function(){return this.nextTag_};g.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};g.advance=function(a){this.decoder_.advance(a)};
var hba=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=a.decoder_.readSignedVarint32()>>>0;var c=b>>>3,d=b&7;if(!(0<=d&&5>=d))throw Error("s`"+d+"`"+a.fieldCursor_);if(1>c)throw Error("t`"+c+"`"+a.fieldCursor_);a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},vb=function(a){switch(a.nextWireType_){case 0:0!=a.nextWireType_?vb(a):a.decoder_.readBool();break;case 1:a.decoder_.advance(8);break;case 2:if(2!=a.nextWireType_)vb(a);else{var b=a.decoder_.readSignedVarint32()>>>
0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);break;case 3:b=a.nextField_;do{if(!hba(a))throw Error("u");if(4==a.nextWireType_){if(a.nextField_!=b)throw Error("v");break}vb(a)}while(1);break;default:throw Error("s`"+a.nextWireType_+"`"+a.fieldCursor_);}};g=Sib.prototype;g.readInt32=function(){return this.decoder_.readSignedVarint32()};g.readInt64=function(){return this.decoder_.readSplitVarint64(xaa)};g.readUint32=function(){return this.decoder_.readSignedVarint32()>>>0};
g.readUint64=function(){return this.decoder_.readSplitVarint64(waa)};g.readBool=function(){return this.decoder_.readBool()};g.readByteString=function(){var a=this.decoder_.readSignedVarint32()>>>0;return this.decoder_.readByteString(a)};g.readSplitVarint64=function(a){return this.decoder_.readSplitVarint64(a)};var ou=[];
var yaa={};
var Ra="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;
var Tib,pu=Object.freeze(Ta([])),lb=function(a){if(Va(a.internalArray_))throw Error("G");},Uib="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;
var gb=function(a,b){this.arr_=a;this.valueCtor=b;this.map={};this.arrClean=!1;for(a=this.size=0;a<this.arr_.length;a++){b=this.arr_[a];var c=b[0].toString(),d=this.map[c];this.map[c]=b;void 0===d&&this.size++}},Vib=function(a){if(Va(a.arr_))throw Error("H");};gb.prototype.toArrayInternal=function(){if(!this.arrClean){var a=qu(this);a.sort();for(var b=0;b<a.length;b++)this.arr_[b]=this.map[a[b]];a.length<this.arr_.length&&(this.arr_.length=a.length);this.arrClean=!0;this.size=this.arr_.length}return this.arr_};
var Naa=function(a,b){var c=a.valueCtor,d=new gb(Ta([]),c),e;for(e in a.map){var f=a.map[e];c?d.set(f[0],b(ru(a,f))):d.set(f[0],f[1])}return d};g=gb.prototype;g.clear=function(){Vib(this);this.map={};this.size=this.arr_.length=0;this.arrClean=!0};g.delete=function(a){Vib(this);a=a.toString();return this.map.hasOwnProperty(a)?(delete this.map[a],this.size--,this.arrClean=!1,!0):!1};g.del=function(a){return this.delete(a)};
g.entries=function(){var a=[],b=qu(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d[0],ru(this,d)])}return new su(a)};g.keys=function(){var a=[],b=qu(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map[b[c]][0]);return new su(a)};g.values=function(){var a=[],b=qu(this);b.sort();for(var c=0;c<b.length;c++)a.push(ru(this,this.map[b[c]]));return new su(a)};
g.forEach=function(a,b){var c=qu(this);c.sort();for(var d=0;d<c.length;d++){var e=this.map[c[d]];a.call(b,ru(this,e),e[0],this)}};g.set=function(a,b){Vib(this);var c=a.toString(),d=this.map[c];d?d[1]=b:(a=[a,b],this.map[c]=a,this.arr_.push(a),this.arrClean=!1,this.size++);return this};var ru=function(a,b){var c=b[1];a.valueCtor&&(Array.isArray(c)||null==c)&&(c=new a.valueCtor(c),c=b[1]=c,Va(a.arr_)&&Wa(c.internalArray_));return c};
gb.prototype.get=function(a){if(a=this.map[a.toString()])return ru(this,a)};gb.prototype.has=function(a){return a.toString()in this.map};var qu=function(a){a=a.map;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};gb.prototype[Symbol.iterator]=function(){return this.entries()};var su=function(a){this.idx_=0;this.arr_=a};su.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};
su.prototype[Symbol.iterator]=function(){return this};
var Wib=function(a){return a.internalSparseObject_||(a.internalSparseObject_=a.internalArray_[a.pivot_+a.arrayIndexOffset]={})},p=function(a,b,c){return-1===b?null:b>=a.pivot_?a.internalSparseObject_?a.internalSparseObject_[b]:void 0:(void 0===c?0:c)&&a.internalSparseObject_&&(c=a.internalSparseObject_[b],null!=c)?c:a.internalArray_[b+a.arrayIndexOffset]},l=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||lb(a);b<a.pivot_&&!d?a.internalArray_[b+a.arrayIndexOffset]=c:Wib(a)[b]=c;return a},cj=
function(a,b){return null!=p(a,b)},ul=function(a,b,c){return pb(a,c)===b},jb=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;var e=p(a,b,d);null==e&&(e=pu);if(Va(a.internalArray_))c&&(Wa(e),Object.freeze(e));else if(e===pu||Va(e))e=Ta(e.slice()),l(a,b,e,d);return e},tu=function(a,b){a=p(a,b);return null==a?a:+a},Ro=function(a,b){a=p(a,b);return null==a?a:!!a},uu=function(a,b){var c=p(a,b);if(null==c)return null;if(c instanceof Pa)return c;c=Za(c);l(a,b,c,void 0,!0);return c},X=function(a,b,
c){a=p(a,b);return null==a?c:a},W=function(a,b,c){c=void 0===c?!1:c;a=Ro(a,b);return null==a?c:a},xl=function(a,b,c){c=void 0===c?0:c;a=tu(a,b);return null==a?c:a},Lm=function(a,b){var c=void 0===c?"":c;a=uu(a,b);return null==a?c?new Pa(c,Oa):Ya():a},Yi=function(a,b,c){a:{var d=p(a,b);if(null==d)d=[];else if(d.constructor===gb){a=d;break a}var e=Va(a.internalArray_),f=Va(d);if(!e&&f){for(var h=d.slice(),k=0;k<d.length;k++)if(Array.isArray(h[k])){var q=h[k].slice();h[k]=q;c&&1<q.length&&Array.isArray(q[1])&&
Wa(q[1])}d=h}c=new gb(d,c);e&&!f&&Wa(c.arr_);l(a,b,c,!1,!0);a=c}return a},hl=function(a,b,c){var d=void 0===d?!1:d;return l(a,b,null==c?Ta([]):Array.isArray(c)?Ta(c):c,d)},mb=function(a,b,c){return l(a,b,void 0,!1,void 0===c?!1:c)},vu=function(a,b,c){lb(a);null==c||(c instanceof Pa?c.isEmpty():0===c.length)?mb(a,b):l(a,b,c);return a},ao=function(a,b,c,d){lb(a);(c=pb(a,c))&&c!==b&&null!=d&&(a.internalWrappers_&&c in a.internalWrappers_&&(a.internalWrappers_[c]=void 0),l(a,c));return l(a,b,d)},pb=function(a,
b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=p(a,e)&&(0!==c&&mb(a,c,!0),c=e)}return c},wu=function(a,b,c){var d=void 0===d?!1:d;lb(a);a.internalWrappers_||(a.internalWrappers_={});var e=a.internalWrappers_[c];if(e)return b=e.toMutable(yaa),b!==e&&(l(a,c,b.toArrayInternal(),d),a.internalWrappers_[c]=b),b;e=p(a,c,d);b=new b(e);Va(b.internalArray_)&&(b=b.toMutable(yaa));l(a,c,b.toArrayInternal(),d);return a.internalWrappers_[c]=b},m=function(a,b,c,d,e){if(-1===c)return null;a.internalWrappers_||
(a.internalWrappers_={});var f=a.internalWrappers_[c];if(f)return f;e=p(a,c,void 0===e?!1:e);if(null==e&&!d)return f;b=new b(e);Va(a.internalArray_)&&Wa(b.internalArray_);return a.internalWrappers_[c]=b},rb=function(a,b,c,d){d=void 0===d?!1:d;a.internalWrappers_||(a.internalWrappers_={});var e=Va(a.internalArray_),f=a.internalWrappers_[c];if(!f){d=jb(a,c,!0,d);f=[];e=e||Va(d);for(var h=0;h<d.length;h++)f[h]=new b(d[h]),e&&Wa(f[h].internalArray_);e&&(Wa(f),Object.freeze(f));a.internalWrappers_[c]=
f}return f},Ab=function(a,b,c,d){d=void 0===d?!1:d;lb(a);a.internalWrappers_||(a.internalWrappers_={});var e=null!=c?c.toArrayInternal():c;a.internalWrappers_[b]=c;return l(a,b,e,d)},xu=function(a,b,c,d){lb(a);a.internalWrappers_||(a.internalWrappers_={});var e=null!=d?d.toArrayInternal():d;a.internalWrappers_[b]=d;return ao(a,b,c,e)},zb=function(a,b,c,d){d=void 0===d?!1:d;lb(a);if(c){var e=Ta([]);for(var f=0;f<c.length;f++)e[f]=c[f].toArrayInternal();a.internalWrappers_||(a.internalWrappers_={});
a.internalWrappers_[b]=c}else a.internalWrappers_&&(a.internalWrappers_[b]=void 0),e=pu;return l(a,b,e,d)},yu=function(a,b,c,d,e){var f=void 0===f?!1:f;lb(a);f=rb(a,c,b,f);c=null!=d?d:new c;b=jb(a,b);void 0!=e?(f.splice(e,0,c),b.splice(e,0,c.toArrayInternal())):(f.push(c),b.push(c.toArrayInternal()));return a},dj=function(a,b,c){return X(a,b,void 0===c?0:c)},kj=function(a,b,c){return X(a,b,void 0===c?"0":c)},V=function(a,b,c){return X(a,b,void 0===c?"":c)},Or=function(a,b,c){return p(a,qb(a,c,b))},
wl=function(a,b,c,d){return m(a,b,qb(a,d,c))},ko=function(a,b,c){return nb(a,b,c,!1)},Sk=function(a,b,c){return nb(a,b,c,0)},tl=function(a,b,c){return nb(a,b,c,"")},ql=function(a,b,c){return nb(a,b,c,0)};
var Au=function(a,b,c){a||(a=zu);zu=null;var d=this.constructor.messageId;a||(a=d?[d]:[]);this.arrayIndexOffset=(d?0:-1)-(this.constructor.internalGroupNumberDoNotUse||0);this.internalWrappers_=void 0;this.internalArray_=a;a:{d=this.internalArray_.length;a=d-1;if(d&&(d=this.internalArray_[a],Daa(d))){this.pivot_=a-this.arrayIndexOffset;this.internalSparseObject_=d;break a}void 0!==b&&-1<b?(this.pivot_=Math.max(b,a+1-this.arrayIndexOffset),this.internalSparseObject_=void 0):this.pivot_=Number.MAX_VALUE}if(c)for(b=
0;b<c.length;b++)if(a=c[b],a<this.pivot_)a+=this.arrayIndexOffset,(d=this.internalArray_[a])?Array.isArray(d)&&Ta(d):this.internalArray_[a]=pu;else{d=Wib(this);var e=d[a];e?Array.isArray(e)&&Ta(e):d[a]=pu}};Au.prototype.toArray=function(){return this.toJSON()};Au.prototype.toJSON=function(){var a=this.toArrayInternal();return Tib?a:ib(a,Laa)};Au.prototype.toArrayInternal=function(){return this.internalArray_};
Au.prototype.serialize=function(){Tib=!0;try{return JSON.stringify(this.toJSON(),Uaa)}finally{Tib=!1}};var ho=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("K`"+La(b)+"`"+b);zu=b;a=new a(b);zu=null;return a};g=Au.prototype;g.getExtension=function(a){return a.getExtensionFn(this)};g.hasExtension=function(a){return cj(this,a.fieldIndex)};g.clone=function(){var a=ib(this.toArrayInternal());zu=a;a=new this.constructor(a);zu=null;Vaa(a,this);return a};
g.isMutable=function(){zaa();return!Va(this.internalArray_)};g.isImmutable=function(a){zaa(a);return Va(this.internalArray_)};g.toString=function(){return this.toArrayInternal().toString()};var zu;
var Bu=function(){Au.apply(this,arguments)};U(Bu,Au);var wr=function(a,b,c){return b.setExtensionFn(a,c)};Bu.prototype.toMutable=function(){return this};if(Uib){var Xib={};Object.defineProperties(Bu,(Xib[Symbol.hasInstance]=Gaa(function(){throw Error("L");}),Xib))}
;var sb=Symbol(),bba=Symbol(),tb=Symbol(),Yib=wb(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readInt64());return!0},function(a,b,c){a.writeInt64(c,p(b,c))}),Cu=wb(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readInt32());return!0},function(a,b,c){a.writeInt32(c,p(b,c))}),Zib=wb(function(a,b,c){if(0!==a.nextWireType_&&2!==a.nextWireType_)return!1;b=jb(b,c);if(2==a.nextWireType_){c=lu.prototype.readSignedVarint32;var d=a.decoder_.readSignedVarint32()>>>0;for(d=a.decoder_.getCursor()+
d;a.decoder_.getCursor()<d;)b.push(c.call(a.decoder_))}else b.push(a.readInt32());return!0},function(a,b,c){a.writeRepeatedInt32(c,jb(b,c))}),$ib=wb(function(a,b,c){if(1!==a.nextWireType_)return!1;l(b,c,a.decoder_.readUint64());return!0},function(a,b,c){a.writeFixed64(c,p(b,c))}),ajb=wb(function(a,b,c){if(5!==a.nextWireType_)return!1;l(b,c,a.decoder_.readUint32());return!0},function(a,b,c){a.writeFixed32(c,p(b,c))}),bjb=wb(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readBool());return!0},
function(a,b,c){a.writeBool(c,p(b,c))}),cjb=wb(function(a,b,c,d,e){if(2!==a.nextWireType_)return!1;b=wu(b,d,c);c=a.decoder_.getEnd();d=a.decoder_.readSignedVarint32()>>>0;var f=a.decoder_.getCursor()+d,h=f-c;0>=h&&(a.decoder_.setEnd(f),e(b,a),h=f-a.decoder_.getCursor());if(h)throw Error("r`"+d+"`"+(d-h));a.decoder_.cursor_=f;a.decoder_.setEnd(c);return!0},function(a,b,c,d,e){a.writeMessage(c,m(b,d,c),e)});
var iba=function(a,b,c,d){var e=jba,f=kba;this.fieldIndex=a;this.fieldName=b;this.ctor=c;this.toObjectFn=d;this.isRepeated=0;this.getExtensionFn=e;this.setExtensionFn=f};
var lba=function(a){return a};
var Z=function(){Bu.apply(this,arguments)};U(Z,Bu);
Z.prototype.toMutable=function(a){zaa(a);if(Va(this.internalArray_)){a={copyRepeatedFields:!0};var b=Va(this.internalArray_);if(b&&!a.copyRepeatedFields)throw Error("N");var c=new this.constructor;this.internalUnknownFields_&&(c.internalUnknownFields_=this.internalUnknownFields_.slice());for(var d=this.toArrayInternal(),e=0;e<d.length;e++){var f=d[e];if(e===d.length-1&&Daa(f))for(k in f){var h=+k;Number.isNaN(h)?Wib(c)[k]=f[k]:mba(this,c,h,f[k],b,a)}else mba(this,c,e-this.arrayIndexOffset,f,b,a)}var k=
c}else k=this;return k};if(Uib){var djb={};Object.defineProperties(Z,(djb[Symbol.hasInstance]=Gaa(Object[Symbol.hasInstance]),djb))}
;var Du=function(a){Z.call(this,a)};U(Du,Z);Du.prototype.getCustomerId=function(){return p(this,1)};Du.prototype.toObject=function(){return ejb(void 0,this)};var ejb=function(a,b){if(null!=b){var c={customerId:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var fjb=function(a){Z.call(this,a)};U(fjb,Z);var gjb=function(a){Z.call(this,a)};U(gjb,Z);var Eu=function(a){Z.call(this,a)};U(Eu,Z);Eu.prototype.getCustomerId=function(){return m(this,Du,1)};var hjb=[1,2];fjb.prototype.toObject=function(){return ijb(void 0,this)};var ijb=function(a,b){if(null!=b){var c={consumerInfo:jjb(a,wl(b,gjb,1,hjb)),customerInfo:kjb(a,wl(b,Eu,2,hjb))};a&&(c.$jspbMessageInstance=b);return c}};gjb.prototype.toObject=function(){return jjb(void 0,this)};
var jjb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};Eu.prototype.toObject=function(){return kjb(void 0,this)};var kjb=function(a,b){if(null!=b){var c={customerId:ejb(a,b.getCustomerId())};a&&(c.$jspbMessageInstance=b);return c}};
var Fu=function(a){Z.call(this,a)};U(Fu,Z);Fu.prototype.getIndex=function(){return dj(this,1)};Fu.prototype.setIndex=function(a){Sk(this,1,a)};Fu.prototype.toObject=function(){return ljb(void 0,this)};var ljb=function(a,b){if(null!=b){var c={index:dj(b,1),dataSourceIndex:dj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Gu=function(a){Z.call(this,a)};U(Gu,Z);g=Gu.prototype;g.getId=function(){return V(this,1)};g.setId=function(a){return tl(this,1,a)};g.getSourceId=function(){return X(this,2,0)};g.setSourceId=function(a){return ql(this,2,a)};g.toObject=function(){return mjb(void 0,this)};var mjb=function(a,b){if(null!=b){var c={id:V(b,1),sourceId:X(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Hu=function(a){Z.call(this,a)};U(Hu,Z);g=Hu.prototype;g.getUrl=function(){return V(this,1)};g.setUrl=function(a){return tl(this,1,a)};g.getHeight=function(){return dj(this,2)};g.setHeight=function(a){return Sk(this,2,a)};g.getWidth=function(){return dj(this,3)};g.setWidth=function(a){return Sk(this,3,a)};g.toObject=function(){return Iu(void 0,this)};var Iu=function(a,b){if(null!=b){var c={url:V(b,1),height:dj(b,2),width:dj(b,3),rotation:dj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var hm=function(a){Z.call(this,a)};U(hm,Z);g=hm.prototype;g.getSeconds=function(){return dj(this,1)};g.setSeconds=function(a){return Sk(this,1,a)};g.getNanos=function(){return dj(this,2)};g.setNanos=function(a){Sk(this,2,a)};g.toObject=function(){return Ju(void 0,this)};var Ju=function(a,b){if(null!=b){var c={seconds:dj(b,1),nanos:dj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Ku=function(a){Z.call(this,a)};U(Ku,Z);Ku.prototype.getDuration=function(){return m(this,hm,2)};Ku.prototype.toObject=function(){return njb(void 0,this)};var njb=function(a,b){if(null!=b){var c={aspectRatio:xl(b,1),duration:Ju(a,b.getDuration())};a&&(c.$jspbMessageInstance=b);return c}};
var ojb=function(a){Z.call(this,a)};U(ojb,Z);ojb.prototype.toObject=function(){return pjb(void 0,this)};var pjb=function(a,b){if(null!=b){var c={left:xl(b,1),top:xl(b,2),right:xl(b,3),bottom:xl(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Lu=function(a){Z.call(this,a)};U(Lu,Z);Lu.prototype.getRotate=function(){return dj(this,2)};Lu.prototype.setRotate=function(a){return Sk(this,2,a)};Lu.prototype.toObject=function(){return qjb(void 0,this)};var qjb=function(a,b){if(null!=b){var c={cropCoordinates:pjb(a,m(b,ojb,1)),rotate:dj(b,2),caption:V(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var rjb=function(a){Z.call(this,a)};U(rjb,Z);g=rjb.prototype;g.getEmail=function(){return V(this,1)};g.setEmail=function(a){return tl(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return tl(this,2,a)};g.getDisplayName=function(){return V(this,3)};g.setDisplayName=function(a){return tl(this,3,a)};g.toObject=function(){return sjb(void 0,this)};
var sjb=function(a,b){if(null!=b){var c={email:V(b,1),name:V(b,2),displayName:V(b,3),templateProfilePhotoUrl:V(b,4),profilePhoto:Iu(a,m(b,Hu,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Mu=function(a){Z.call(this,a)};U(Mu,Z);Mu.prototype.getBackgroundColor=function(){return V(this,2)};Mu.prototype.setBackgroundColor=function(a){tl(this,2,a)};Mu.prototype.setSelected=function(a){return ko(this,5,a)};Mu.prototype.toObject=function(){return tjb(void 0,this)};var tjb=function(a,b){if(null!=b){var c={accessRole:X(b,1,0),backgroundColor:V(b,2),foregroundColor:V(b,3),hidden:W(b,4),selected:W(b,5),profileMetadata:sjb(a,m(b,rjb,6))};a&&(c.$jspbMessageInstance=b);return c}};
var ujb=function(a){Z.call(this,a)};U(ujb,Z);ujb.prototype.toObject=function(){return vjb(void 0,this)};var vjb=function(a,b){if(null!=b){var c={rawBytes:Eb(Lm(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Nu=function(a){Z.call(this,a,-1,wjb)};U(Nu,Z);var wjb=[1,2];Nu.prototype.toObject=function(){return xjb(void 0,this)};var xjb=function(a,b){if(null!=b){var c={emailList:n(jb(b,1)),groupIdList:n(jb(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Ou=function(a){Z.call(this,a)};U(Ou,Z);Ou.prototype.getCategory=function(){return X(this,1,0)};Ou.prototype.setCategory=function(a){ql(this,1,a)};Ou.prototype.toObject=function(){return yjb(void 0,this)};var yjb=function(a,b){if(null!=b){var c={category:X(b,1,0),categoryLabel:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var rj=function(a){Z.call(this,a)};U(rj,Z);g=rj.prototype;g.getSeconds=function(){return dj(this,1)};g.setSeconds=function(a){return Sk(this,1,a)};g.getNanos=function(){return dj(this,2)};g.setNanos=function(a){Sk(this,2,a)};g.toDate=function(){var a=this.getSeconds(),b=this.getNanos();return new Date(1E3*a+b/1E6)};g.toObject=function(){return Pu(void 0,this)};var Pu=function(a,b){if(null!=b){var c={seconds:dj(b,1),nanos:dj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Qu=function(a){Z.call(this,a)};U(Qu,Z);Qu.prototype.getTotalItems=function(){return dj(this,1)};Qu.prototype.setTotalItems=function(a){return Sk(this,1,a)};Qu.prototype.toObject=function(){return zjb(void 0,this)};var zjb=function(a,b){if(null!=b){var c={totalItems:dj(b,1),startTimestamp:Pu(a,m(b,rj,2)),endTimestamp:Pu(a,m(b,rj,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Ajb=function(a){Z.call(this,a)};U(Ajb,Z);Ajb.prototype.toObject=function(){return Bjb(void 0,this)};var Bjb=function(a,b){if(null!=b){var c={albumMetadata:zjb(a,m(b,Qu,1)),dedupKey:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Cjb=function(a){Z.call(this,a)};U(Cjb,Z);Cjb.prototype.toObject=function(){return Djb(void 0,this)};var Djb=function(a,b){if(null!=b){var c={dataUrl:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Ru=function(a){Z.call(this,a)};U(Ru,Z);Ru.prototype.getCategory=function(){return V(this,1)};Ru.prototype.setCategory=function(a){tl(this,1,a)};Ru.prototype.toObject=function(){return Ejb(void 0,this)};var Ejb=function(a,b){if(null!=b){var c={category:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Su=function(a){Z.call(this,a)};U(Su,Z);g=Su.prototype;g.getWidth=function(){return dj(this,1)};g.setWidth=function(a){return Sk(this,1,a)};g.getHeight=function(){return dj(this,2)};g.setHeight=function(a){return Sk(this,2,a)};g.toObject=function(){return Fjb(void 0,this)};var Fjb=function(a,b){if(null!=b){var c={width:dj(b,1),height:dj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Gjb=function(a){Z.call(this,a)};U(Gjb,Z);Gjb.prototype.toObject=function(){return Hjb(void 0,this)};var Hjb=function(a,b){if(null!=b){var c={imageSize:Fjb(a,m(b,Su,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Tu=function(a){Z.call(this,a)};U(Tu,Z);Tu.prototype.toObject=function(){return Ijb(void 0,this)};var Ijb=function(a,b){if(null!=b){var c={originalImage:Iu(a,m(b,Hu,1)),referrerUrl:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Uu=function(a){Z.call(this,a)};U(Uu,Z);Uu.prototype.getVideoMetadata=function(){return m(this,Ku,1)};Uu.prototype.toObject=function(){return Jjb(void 0,this)};var Jjb=function(a,b){if(null!=b){var c={videoMetadata:njb(a,b.getVideoMetadata()),channelName:V(b,2),channelId:V(b,3),viewCount:dj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Kjb=function(a){Z.call(this,a)};U(Kjb,Z);Kjb.prototype.toObject=function(){return Ljb(void 0,this)};var Ljb=function(a,b){if(null!=b){var c={youtubeVideoMetadata:Jjb(a,m(b,Uu,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Vu=function(a){Z.call(this,a)};U(Vu,Z);Vu.prototype.getVideoMetadata=function(){return m(this,Ku,3)};var Wu=function(a){Z.call(this,a,-1,Mjb)};U(Wu,Z);g=Wu.prototype;g.getId=function(){return m(this,Gu,1)};g.setId=function(a){return Ab(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return tl(this,2,a)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return tl(this,3,a)};g.getParentId=function(){return V(this,4)};
g.setParentId=function(a){tl(this,4,a)};g.getType=function(){return X(this,6,0)};g.setType=function(a){return ql(this,6,a)};g.getMimeType=function(){return V(this,7)};g.setMimeType=function(a){tl(this,7,a)};g.getUrl=function(){return V(this,8)};g.setUrl=function(a){return tl(this,8,a)};g.getIconUrl=function(){return V(this,11)};var Xu=function(a){return rb(a,Hu,10)};Wu.prototype.getLastModifiedTimestamp=function(){return m(this,rj,12)};var Njb=function(a){Z.call(this,a)};U(Njb,Z);
Vu.prototype.toObject=function(){return Ojb(void 0,this)};var Ojb=function(a,b){if(null!=b){var c={shared:W(b,1),hasPrimarySyncParent:W(b,2),videoMetadata:njb(a,b.getVideoMetadata()),recencyTimestamp:Pu(a,m(b,rj,4)),recencyReason:dj(b,5),sharedDriveId:V(b,6),hasOwnPermissions:W(b,7),shortcutDetails:Pjb(a,m(b,Njb,8)),copyable:W(b,9),downloadUrl:V(b,10),resourceKey:V(b,11),isRecentUpload:W(b,12)};a&&(c.$jspbMessageInstance=b);return c}},Mjb=[5,10,22];
Wu.prototype.toObject=function(){return Yu(void 0,this)};
var Yu=function(a,b){if(null!=b){var c={id:mjb(a,b.getId()),name:V(b,2),description:V(b,3),parentId:V(b,4),allParentIdList:n(jb(b,5)),type:X(b,6,0),mimeType:V(b,7),url:V(b,8),templateThumbUrl:V(b,9),iconUrl:V(b,11),embedUrl:V(b,13),previewUrl:V(b,20),thumbnailList:Bb(Xu(b),Iu,a),internalThumbnailList:Bb(rb(b,Hu,22),Iu,a),lastModifiedTimestamp:Pu(a,b.getLastModifiedTimestamp()),creationTimestampMs:Pu(a,m(b,rj,16)),calendarMetadata:tjb(a,m(b,Mu,14)),webMetadata:Ijb(a,m(b,Tu,15)),photosMetadata:Bjb(a,
m(b,Ajb,18)),themesMetadata:Ejb(a,m(b,Ru,19)),driveMetadata:Ojb(a,m(b,Vu,21)),youtubeMetadata:Ljb(a,m(b,Kjb,24)),cameraMetadata:vjb(a,m(b,ujb,26)),contactsMetadata:xjb(a,m(b,Nu,27)),partyMetadata:yjb(a,m(b,Ou,28)),urlMetadata:Hjb(a,m(b,Gjb,29)),uploadMetadata:Djb(a,m(b,Cjb,30)),cropPhotoMetadata:qjb(a,m(b,Lu,32)),bucketId:V(b,17),sizeBytes:dj(b,23),itemDiagnosticsInfo:ljb(a,m(b,Fu,25)),isAttachment:W(b,31)};a&&(c.$jspbMessageInstance=b);return c}};
Njb.prototype.toObject=function(){return Pjb(void 0,this)};var Pjb=function(a,b){if(null!=b){var c={targetId:V(b,1),targetMimeType:V(b,2),targetItem:Yu(a,m(b,Wu,3)),targetLookupStatus:X(b,4,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Zu=function(a){Z.call(this,a)};U(Zu,Z);Zu.prototype.setGmailDelegatorId=function(a){return tl(this,1,a)};Zu.prototype.toObject=function(){return Qjb(this)};var Qjb=function(a){if(null!=a)return{gmailDelegatorId:V(a,1)}};
var $u=function(a){Z.call(this,a)};U($u,Z);g=$u.prototype;g.getOrigin=function(){return V(this,1)};g.setOrigin=function(a){return tl(this,1,a)};g.getInstanceId=function(){return V(this,2)};g.setInstanceId=function(a){return tl(this,2,a)};g.getWidgetType=function(){return X(this,3,0)};g.getContainerType=function(){return X(this,4,0)};g.toObject=function(){return Rjb(this)};
var Rjb=function(a){if(null!=a)return{origin:V(a,1),instanceId:V(a,2),widgetType:X(a,3,0),containerType:X(a,4,0),iframeLoadStartTime:Pu(void 0,m(a,rj,5)),gapiLoadStartTimestamp:Pu(void 0,m(a,rj,6)),gapiLoadEndTimestamp:Pu(void 0,m(a,rj,7))}};
var av=function(a){Z.call(this,a)};U(av,Z);g=av.prototype;g.getAuthUser=function(){return dj(this,1)};g.setAuthUser=function(a){return Sk(this,1,a)};g.getEmail=function(){return V(this,2)};g.setEmail=function(a){return tl(this,2,a)};g.toObject=function(){return Sjb(this)};var Sjb=function(a){if(null!=a)return{authUser:dj(a,1),email:V(a,2),gaiaId:V(a,3)}};
var Tjb=function(a){Z.call(this,a)};U(Tjb,Z);Tjb.prototype.toObject=function(){return Ujb(this)};var Ujb=function(a){if(null!=a)return{top:xl(a,1),right:xl(a,2),bottom:xl(a,3),left:xl(a,4)}};
var Vjb=function(a){Z.call(this,a)};U(Vjb,Z);Vjb.prototype.toObject=function(){return Wjb(this)};var Wjb=function(a){if(null!=a)return{contentPadding:Ujb(m(a,Tjb,1)),gridElementHeight:xl(a,2)}};
var Xjb=function(a){Z.call(this,a)};U(Xjb,Z);Xjb.prototype.toObject=function(){return Yjb(this)};var Yjb=function(a){if(null!=a)return{chromeMode:X(a,1,0),modeSettings:Wjb(m(a,Vjb,4)),deprecatedWidgetType:X(a,2,0),deprecatedContainerType:X(a,3,0)}};
var Zjb=function(a){Z.call(this,a)};U(Zjb,Z);Zjb.prototype.toObject=function(){return $jb(this)};var $jb=function(a){if(null!=a)return{jsDebug:V(a,1),forceDisableDriveIvdp:W(a,2),enableLiveImpressions:W(a,3)}};
var bv=function(a){Z.call(this,a)};U(bv,Z);g=bv.prototype;g.getWidth=function(){return dj(this,1)};g.setWidth=function(a){return Sk(this,1,a)};g.getHeight=function(){return dj(this,2)};g.setHeight=function(a){return Sk(this,2,a)};g.toObject=function(){return akb(this)};var akb=function(a){if(null!=a)return{width:dj(a,1),height:dj(a,2)}};
var cv=function(a){Z.call(this,a,-1,bkb)};U(cv,Z);var ckb=function(a,b){return hl(a,1,b)},dv=function(a,b){ob(a,1,b)};cv.prototype.getMaxSize=function(){return m(this,Su,5)};cv.prototype.setMaxSize=function(a){Ab(this,5,a)};var bkb=[1,2,3,4];cv.prototype.toObject=function(){return dkb(this)};var dkb=function(a){if(null!=a)return{typeList:n(jb(a,1)),mimetypeList:n(jb(a,2)),excludeTypeList:n(jb(a,3)),excludeMimetypeList:n(jb(a,4)),maxSize:Fjb(void 0,a.getMaxSize()),maxSizeBytes:dj(a,6)}};
var ekb=function(a){Z.call(this,a)};U(ekb,Z);ekb.prototype.toObject=function(){return fkb(this)};var fkb=function(a){if(null!=a)return{noDataFoundLabel:V(a,1),noDataFoundDescription:V(a,2)}};
var ev=function(a){Z.call(this,a)};U(ev,Z);ev.prototype.toObject=function(){return gkb(void 0,this)};var gkb=function(a,b){if(null!=b){var c={copyToTemporaryAlbum:W(b,1),hasCaption:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var hkb=function(a){Z.call(this,a)};U(hkb,Z);hkb.prototype.toObject=function(){return ikb(void 0,this)};var ikb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var jkb=function(a){Z.call(this,a)};U(jkb,Z);jkb.prototype.toObject=function(){return kkb(void 0,this)};var kkb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var fv=function(a){Z.call(this,a)};U(fv,Z);fv.prototype.getId=function(){return X(this,1,0)};fv.prototype.setId=function(a){return ql(this,1,a)};var gv=[2,3,4];fv.prototype.toObject=function(){return lkb(void 0,this)};var lkb=function(a,b){if(null!=b){var c={id:X(b,1,0),profilePhotoOptions:kkb(a,wl(b,jkb,2,gv)),cropPhotoOptions:gkb(a,wl(b,ev,3,gv)),photoSharingOptions:ikb(a,wl(b,hkb,4,gv))};a&&(c.$jspbMessageInstance=b);return c}};
var mkb=function(a){Z.call(this,a)};U(mkb,Z);mkb.prototype.toObject=function(){return nkb(this)};var nkb=function(a){if(null!=a)return{previewMode:X(a,1,0)}};
var hv=function(a){Z.call(this,a)};U(hv,Z);hv.prototype.toObject=function(){return okb(this)};var okb=function(a){if(null!=a)return{selectionMode:X(a,1,0),allowCollectionSelection:W(a,2)}};
var iv=function(a){Z.call(this,a,-1,pkb)};U(iv,Z);g=iv.prototype;g.setHost=function(a){return ql(this,23,a)};g.getItemType=function(){return m(this,cv,2)};g.setItemType=function(a){Ab(this,2,a)};g.getAuthUser=function(){return m(this,av,6)};g.setAuthUser=function(a){return Ab(this,6,a)};g.getBaseUrl=function(){return V(this,8)};var qkb=function(a,b){return tl(a,8,b)};g=iv.prototype;g.getTitle=function(){return V(this,9)};g.setTitle=function(a){return tl(this,9,a)};
g.getLocale=function(){return V(this,10)};g.setLocale=function(a){return tl(this,10,a)};g.setSecretToken=function(a){return tl(this,12,a)};var rkb=function(a){var b=new $u;var c=b.setOrigin,d=window.location.origin;d||(d=jv(kv(new bp,window.location.protocol),window.location.host).toString());b=c.call(b,d);b=ql(b,3,2);return Ab(a,20,b)};g=iv.prototype;g.addPostProcessor=function(a){yu(this,28,fv,a)};g.setBuildLabel=function(a){tl(this,31,a)};g.setMinSize=function(a){Ab(this,32,a)};
g.getMaxSize=function(){return m(this,bv,33)};g.setMaxSize=function(a){Ab(this,33,a)};g.setInitialView=function(a){ql(this,35,a)};var pkb=[18,28];iv.prototype.toObject=function(){return skb(this)};
var skb=function(a){if(null!=a)return{host:X(a,23,0),hostUsecase:V(a,24),itemType:dkb(a.getItemType()),selectionStrategy:okb(m(a,hv,3)),maxItemsToSelect:dj(a,5),previewStrategy:nkb(m(a,mkb,21)),authUser:Sjb(a.getAuthUser()),oauth:V(a,7),baseUrl:V(a,8),topOrigin:V(a,27),title:V(a,9),locale:V(a,10),containerSpec:Yjb(m(a,Xjb,11)),secretToken:V(a,12),debugSpec:$jb(m(a,Zjb,14)),clientEnabledExperimentsList:n(jb(a,18)),selectButtonLabel:V(a,19),additionalInfo:Rjb(m(a,$u,20)),messageTextOverrides:fkb(m(a,
ekb,22)),enableDragDrop:W(a,25),preloaded:W(a,26),postProcessorList:Bb(rb(a,fv,28),lkb),accountDelegation:Qjb(m(a,Zu,29)),initialViewLayout:X(a,30,0),buildLabel:V(a,31),minSize:akb(m(a,bv,32)),maxSize:akb(a.getMaxSize()),enableInsertAttachment:W(a,34),initialView:X(a,35,0),deprecatedIsMultiselectAllowed:W(a,4),deprecatedOrigin:V(a,13),deprecatedInstanceId:V(a,15),deprecatedEnablePreview:W(a,17),deprecatedUseRefreshedUi:W(a,16),deprecatedRpcTargetId:V(a,36)}};
var lv=function(a){Z.call(this,a)};U(lv,Z);lv.prototype.getEventType=function(){return X(this,1,0)};lv.prototype.setEventType=function(a){return ql(this,1,a)};lv.prototype.toObject=function(){return tkb(this)};var tkb=function(a){if(null!=a)return{eventType:X(a,1,0)}};
var mv=function(a){Z.call(this,a,-1,ukb)};U(mv,Z);mv.prototype.getItemList=function(){return rb(this,Wu,1)};mv.prototype.setItemList=function(a){zb(this,1,a)};mv.prototype.addItem=function(a,b){return yu(this,1,Wu,a,b)};var ukb=[1];mv.prototype.toObject=function(){return vkb(this)};var vkb=function(a){if(null!=a)return{itemList:Bb(a.getItemList(),Yu),currentItem:Yu(void 0,m(a,Wu,2)),currentItemIndex:dj(a,3)}};
var nv=function(a){Z.call(this,a,-1,wkb)};U(nv,Z);g=nv.prototype;g.getStatus=function(){return X(this,1,0)};g.setStatus=function(a){return ql(this,1,a)};g.getItemList=function(){return rb(this,Wu,2)};g.setItemList=function(a){zb(this,2,a)};g.addItem=function(a,b){return yu(this,2,Wu,a,b)};g.getErrorCode=function(){return X(this,4,0)};var wkb=[2];nv.prototype.toObject=function(){return xkb(this)};
var xkb=function(a){if(null!=a)return{status:X(a,1,0),itemList:Bb(a.getItemList(),Yu),action:X(a,3,0),errorCode:X(a,4,0)}};
var ov=function(a){Z.call(this,a)};U(ov,Z);ov.prototype.getQuery=function(){return V(this,1)};ov.prototype.setQuery=function(a){return tl(this,1,a)};ov.prototype.toObject=function(){return ykb(void 0,this)};var ykb=function(a,b){if(null!=b){var c={query:V(b,1),minAccessRole:X(b,2,0),showHidden:W(b,3),fetchProfile:W(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var pv=function(a){Z.call(this,a)};U(pv,Z);pv.prototype.getUploadUrl=function(){return V(this,1)};pv.prototype.toObject=function(){return zkb(void 0,this)};var zkb=function(a,b){if(null!=b){var c={uploadUrl:V(b,1),metadataMap:Db(Yi(b,2),a),agentId:X(b,3,0),configurationId:X(b,4,0),sendDataUrl:W(b,5)};a&&(c.$jspbMessageInstance=b);return c}};
var qv=function(a){Z.call(this,a)};U(qv,Z);qv.prototype.getUploadSourceOptions=function(){return m(this,pv,2)};qv.prototype.setUploadSourceOptions=function(a){return Ab(this,2,a)};qv.prototype.toObject=function(){return Akb(void 0,this)};var Akb=function(a,b){if(null!=b){var c={uploadMode:X(b,1,0),uploadSourceOptions:zkb(a,b.getUploadSourceOptions())};a&&(c.$jspbMessageInstance=b);return c}};
var rv=function(a){Z.call(this,a)};U(rv,Z);rv.prototype.getQuery=function(){return V(this,1)};rv.prototype.setQuery=function(a){return tl(this,1,a)};rv.prototype.toObject=function(){return Bkb(void 0,this)};var Bkb=function(a,b){if(null!=b){var c={query:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var sv=function(a){Z.call(this,a,-1,Ckb)};U(sv,Z);var Ckb=[1,3];sv.prototype.toObject=function(){return Dkb(void 0,this)};var Dkb=function(a,b){if(null!=b){var c={parentList:n(jb(b,1)),embeddingParent:V(b,2),fileExtensionsList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var xp=function(a){Z.call(this,a)};U(xp,Z);g=xp.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return ql(this,1,a)};g.getDirection=function(){return X(this,2,0)};g.setDirection=function(a){return ql(this,2,a)};g.toObject=function(){return Ekb(void 0,this)};var Ekb=function(a,b){if(null!=b){var c={type:X(b,1,0),direction:X(b,2,0),foldersFirst:W(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var wp=function(a){Z.call(this,a)};U(wp,Z);g=wp.prototype;g.getParentId=function(){return V(this,1)};g.setParentId=function(a){tl(this,1,a)};g.getQuery=function(){return V(this,2)};g.setQuery=function(a){return tl(this,2,a)};g.getStarred=function(){return W(this,7)};g.setStarred=function(a){ko(this,7,a)};g.setViewMode=function(a){ql(this,8,a)};g.getLastModified=function(){return m(this,rj,9)};g.toObject=function(){return Fkb(void 0,this)};
var Fkb=function(a,b){if(null!=b){var c={parentId:V(b,1),query:V(b,2),sortBy:Ekb(a,m(b,xp,3)),ownedBy:X(b,4,0),sharedWithMe:W(b,5),starred:W(b,7),viewMode:X(b,8,0),lastModified:Pu(a,b.getLastModified()),disableInstantUpdates:W(b,10),inSharedDrive:W(b,11),inComputers:W(b,12),permissions:X(b,13,0),itemSuggest:W(b,14),driveUploadOptions:Dkb(a,m(b,sv,15)),encryptedOnlyMode:W(b,16),includeEncryptedItems:W(b,17)};a&&(c.$jspbMessageInstance=b);return c}};
var tv=function(a){Z.call(this,a)};U(tv,Z);tv.prototype.getCategory=function(){return X(this,2,0)};tv.prototype.setCategory=function(a){ql(this,2,a)};tv.prototype.toObject=function(){return Gkb(void 0,this)};var Gkb=function(a,b){if(null!=b){var c={category:X(b,2,0),deprecatedCategory:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var zp=function(a){Z.call(this,a,-1,Hkb)};U(zp,Z);zp.prototype.setViewMode=function(a){ql(this,3,a)};var Hkb=[8];zp.prototype.toObject=function(){return Ikb(void 0,this)};var Ikb=function(a,b){if(null!=b){var c={parentAlbumKey:V(b,1),bucketBy:X(b,2,0),viewMode:X(b,3,0),queryText:V(b,4),includePhotos:W(b,5),includeVideos:W(b,6),viewType:X(b,7,0),associationOriginList:n(jb(b,8))};a&&(c.$jspbMessageInstance=b);return c}};
var Jkb=function(a){Z.call(this,a)};U(Jkb,Z);Jkb.prototype.toObject=function(){return Kkb(void 0,this)};var Kkb=function(a,b){if(null!=b){var c={themeSourceId:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var uv=function(a){Z.call(this,a)};U(uv,Z);uv.prototype.setMode=function(a){return ql(this,1,a)};uv.prototype.toObject=function(){return Lkb(void 0,this)};var Lkb=function(a,b){if(null!=b){var c={mode:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var vv=function(a){Z.call(this,a)};U(vv,Z);vv.prototype.getQuery=function(){return V(this,1)};vv.prototype.setQuery=function(a){return tl(this,1,a)};vv.prototype.setViewMode=function(a){ql(this,4,a)};vv.prototype.toObject=function(){return Mkb(void 0,this)};var Mkb=function(a,b){if(null!=b){var c={query:V(b,1),usageRights:X(b,2,0),disableSafeSearchMode:W(b,3),viewMode:X(b,4,0)};a&&(c.$jspbMessageInstance=b);return c}};
var wv=function(a){Z.call(this,a)};U(wv,Z);wv.prototype.setViewMode=function(a){ql(this,1,a)};wv.prototype.getQuery=function(){return V(this,2)};wv.prototype.setQuery=function(a){return tl(this,2,a)};wv.prototype.toObject=function(){return Nkb(void 0,this)};var Nkb=function(a,b){if(null!=b){var c={viewMode:X(b,1,0),query:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var vp=function(a){Z.call(this,a,-1,Okb)};U(vp,Z);g=vp.prototype;g.getSourceId=function(){return X(this,1,0)};g.setSourceId=function(a){return ql(this,1,a)};g.getName=function(){return V(this,8)};g.setName=function(a){return tl(this,8,a)};g.getUploadSourceOptions=function(){return m(this,pv,10)};g.setUploadSourceOptions=function(a){return Ab(this,10,a)};var Okb=[14];vp.prototype.toObject=function(){return xv(void 0,this)};
var xv=function(a,b){if(null!=b){var c={sourceId:X(b,1,0),name:V(b,8),driveSourceOptions:Fkb(a,m(b,wp,3)),calendarSourceOptions:ykb(a,m(b,ov,4)),webSourceOptions:Mkb(a,m(b,vv,5)),photosSourceOptions:Ikb(a,m(b,zp,6)),themesSourceOptions:Kkb(a,m(b,Jkb,7)),youtubeSourceOptions:Nkb(a,m(b,wv,9)),uploadSourceOptions:zkb(a,b.getUploadSourceOptions()),contactsSourceOptions:Bkb(a,m(b,rv,12)),partySourceOptions:Gkb(a,m(b,tv,13)),urlSourceOptions:Lkb(a,m(b,uv,15)),cameraSourceOptions:Akb(a,m(b,qv,16)),childSourceList:Bb(rb(b,
vp,14),xv,a)};a&&(c.$jspbMessageInstance=b);return c}};
var yp=function(a){Z.call(this,a,-1,Pkb)};U(yp,Z);yp.prototype.getSourceList=function(){return rb(this,vp,1)};yp.prototype.setSourceList=function(a){return zb(this,1,a)};yp.prototype.addSource=function(a){yu(this,1,vp,a)};var Pkb=[1];yp.prototype.toObject=function(){var a=null!=this?{sourceList:Bb(this.getSourceList(),xv)}:void 0;return a};
var yv=function(a){Z.call(this,a,-1,Qkb)};U(yv,Z);g=yv.prototype;g.getCommand=function(){return X(this,1,0)};g.setCommand=function(a){return ql(this,1,a)};g.getSource=function(){return m(this,vp,2)};g.setSource=function(a){return Ab(this,2,a)};g.hasSource=function(){return cj(this,2)};g.setVisible=function(a){return ko(this,5,a)};g.getItemList=function(){return rb(this,Wu,7)};g.setItemList=function(a){zb(this,7,a)};g.addItem=function(a,b){return yu(this,7,Wu,a,b)};var Qkb=[3,7];
yv.prototype.toObject=function(){var a=null!=this?{command:X(this,1,0),source:xv(void 0,this.getSource()),itemIdList:Bb(rb(this,Gu,3),mjb),correlationId:V(this,4),visible:W(this,5),cssVisibilityChanged:W(this,6),itemList:Bb(this.getItemList(),Yu)}:void 0;return a};
var zv=function(a){Z.call(this,a,-1,Rkb)};U(zv,Z);g=zv.prototype;g.getCommand=function(){return X(this,1,0)};g.setCommand=function(a){return ql(this,1,a)};g.getItemList=function(){return rb(this,Wu,4)};g.setItemList=function(a){zb(this,4,a)};g.addItem=function(a,b){return yu(this,4,Wu,a,b)};var Rkb=[4];
zv.prototype.toObject=function(){var a=null!=this?{command:X(this,1,0),pickerResult:xkb(m(this,nv,2)),correlationId:V(this,3),itemList:Bb(this.getItemList(),Yu),previewData:vkb(m(this,mv,5)),latencyData:tkb(m(this,lv,6))}:void 0;return a};
var Av=function(a){Z.call(this,a,-1,Skb)};U(Av,Z);g=Av.prototype;g.getConfig=function(){return m(this,iv,1)};g.setConfig=function(a){return Ab(this,1,a)};g.getSourceList=function(){return rb(this,vp,2)};g.setSourceList=function(a){return zb(this,2,a)};g.addSource=function(a){yu(this,2,vp,a)};var Skb=[2];Av.prototype.toObject=function(){var a=null!=this?{config:skb(this.getConfig()),sourceList:Bb(this.getSourceList(),xv)}:void 0;return a};Av.messageId="ireq";
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
(function(a){function b(ta){q&&q.mark&&q.mark(ta)}function c(ta,Aa){q&&q.measure&&q.measure(ta,Aa)}function d(ta){return w+ta}function e(ta){Ha||a[Y]&&(Ha=a[Y].resolve(0));if(Ha){var Aa=Ha[ka];Aa||(Aa=Ha.then);Aa.call(Ha,ta)}else a[S](ta,0)}function f(ta){0===Lb&&0===ha.length&&e(h);ta&&ha.push(ta)}function h(){if(!ya){for(ya=!0;ha.length;){var ta=ha;ha=[];for(var Aa=0;Aa<ta.length;Aa++){var xa=ta[Aa];try{xa.zone.runTask(xa,null,null)}catch(Xa){Ma.onUnhandledError(Xa)}}}Ma.microtaskDrainDone();ya=
!1}}function k(){}var q=a.performance;b("Zone");var w=a.__Zone_symbol_prefix||"__zone_symbol__",y=!0===a[d("forceDuplicateZoneCheck")];if(a.Zone){if(y||"function"!==typeof a.Zone.__symbol__)throw Error("R");return a.Zone}var E=function(ta,Aa){this._parent=ta;this._name=Aa?Aa.name||"unnamed":"<root>";this._properties=Aa&&Aa.properties||{};this._zoneDelegate=new N(this,this._parent&&this._parent._zoneDelegate,Aa)};E.assertZonePatched=function(){if(a.Promise!==Ka.ZoneAwarePromise)throw Error("S");};
E.__load_patch=function(ta,Aa,xa){xa=void 0===xa?!1:xa;if(Ka.hasOwnProperty(ta)){if(!xa&&y)throw Error("T`"+ta);}else a["__Zone_disable_"+ta]||(xa="Zone:"+ta,b(xa),Ka[ta]=Aa(a,E,Ma),c(xa,xa))};E.prototype.get=function(ta){var Aa=this.getZoneWith(ta);if(Aa)return Aa._properties[ta]};E.prototype.getZoneWith=function(ta){for(var Aa=this;Aa;){if(Aa._properties.hasOwnProperty(ta))return Aa;Aa=Aa._parent}return null};E.prototype.fork=function(ta){if(!ta)throw Error("U");return this._zoneDelegate.fork(this,
ta)};E.prototype.wrap=function(ta,Aa){if("function"!==typeof ta)throw Error("V`"+ta);var xa=this._zoneDelegate.intercept(this,ta,Aa),Xa=this;return function(){return Xa.runGuarded(xa,this,arguments,Aa)}};E.prototype.run=function(ta,Aa,xa,Xa){hb={parent:hb,zone:this};try{return this._zoneDelegate.invoke(this,ta,Aa,xa,Xa)}finally{hb=hb.parent}};E.prototype.runGuarded=function(ta,Aa,xa,Xa){hb={parent:hb,zone:this};try{try{return this._zoneDelegate.invoke(this,ta,void 0===Aa?null:Aa,xa,Xa)}catch(eb){if(this._zoneDelegate.handleError(this,
eb))throw eb;}}finally{hb=hb.parent}};E.prototype.runTask=function(ta,Aa,xa){if(ta.zone!=this)throw Error("W`"+(ta.zone||Ja).name+"`"+this.name);if("notScheduled"!==ta.state||"eventTask"!==ta.type&&"macroTask"!==ta.type){var Xa="running"!=ta.state;Xa&&ta._transitionTo("running","scheduled");ta.runCount++;var eb=fb;fb=ta;hb={parent:hb,zone:this};try{"macroTask"==ta.type&&ta.data&&!ta.data.isPeriodic&&(ta.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ta,Aa,xa)}catch(yc){if(this._zoneDelegate.handleError(this,
yc))throw yc;}}finally{"notScheduled"!==ta.state&&"unknown"!==ta.state&&("eventTask"==ta.type||ta.data&&ta.data.isPeriodic?Xa&&ta._transitionTo("scheduled","running"):(ta.runCount=0,this._updateTaskCount(ta,-1),Xa&&ta._transitionTo("notScheduled","running","notScheduled"))),hb=hb.parent,fb=eb}}};E.prototype.scheduleTask=function(ta){if(ta.zone&&ta.zone!==this)for(var Aa=this;Aa;){if(Aa===ta.zone)throw Error("X`"+this.name+"`"+ta.zone.name);Aa=Aa.parent}ta._transitionTo("scheduling","notScheduled");
Aa=[];ta._zoneDelegates=Aa;ta._zone=this;try{ta=this._zoneDelegate.scheduleTask(this,ta)}catch(xa){throw ta._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,xa),xa;}ta._zoneDelegates===Aa&&this._updateTaskCount(ta,1);"scheduling"==ta.state&&ta._transitionTo("scheduled","scheduling");return ta};E.prototype.scheduleMicroTask=function(ta,Aa,xa,Xa){return this.scheduleTask(new L("microTask",ta,Aa,xa,Xa,void 0))};E.prototype.scheduleMacroTask=function(ta,Aa,xa,Xa,
eb){return this.scheduleTask(new L("macroTask",ta,Aa,xa,Xa,eb))};E.prototype.scheduleEventTask=function(ta,Aa,xa,Xa,eb){return this.scheduleTask(new L("eventTask",ta,Aa,xa,Xa,eb))};E.prototype.cancelTask=function(ta){if(ta.zone!=this)throw Error("Y`"+(ta.zone||Ja).name+"`"+this.name);ta._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,ta)}catch(Aa){throw ta._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,Aa),Aa;}this._updateTaskCount(ta,
-1);ta._transitionTo("notScheduled","canceling");ta.runCount=0;return ta};E.prototype._updateTaskCount=function(ta,Aa){var xa=ta._zoneDelegates;-1==Aa&&(ta._zoneDelegates=null);for(var Xa=0;Xa<xa.length;Xa++)xa[Xa]._updateTaskCount(ta.type,Aa)};ki.Object.defineProperties(E.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});ki.Object.defineProperties(E,{root:{configurable:!0,enumerable:!0,get:function(){for(var ta=
E.current;ta.parent;)ta=ta.parent;return ta}},current:{configurable:!0,enumerable:!0,get:function(){return hb.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return fb}}});E.__symbol__=d;var I={name:"",onHasTask:function(ta,Aa,xa,Xa){return ta.hasTask(xa,Xa)},onScheduleTask:function(ta,Aa,xa,Xa){return ta.scheduleTask(xa,Xa)},onInvokeTask:function(ta,Aa,xa,Xa,eb,yc){return ta.invokeTask(xa,Xa,eb,yc)},onCancelTask:function(ta,Aa,xa,Xa){return ta.cancelTask(xa,Xa)}},N=function(ta,Aa,
xa){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this.zone=ta;this._parentDelegate=Aa;this._forkZS=xa&&(xa&&xa.onFork?xa:Aa._forkZS);this._forkDlgt=xa&&(xa.onFork?Aa:Aa._forkDlgt);this._forkCurrZone=xa&&(xa.onFork?this.zone:Aa._forkCurrZone);this._interceptZS=xa&&(xa.onIntercept?xa:Aa._interceptZS);this._interceptDlgt=xa&&(xa.onIntercept?Aa:Aa._interceptDlgt);this._interceptCurrZone=xa&&(xa.onIntercept?this.zone:Aa._interceptCurrZone);this._invokeZS=xa&&(xa.onInvoke?xa:Aa._invokeZS);this._invokeDlgt=
xa&&(xa.onInvoke?Aa:Aa._invokeDlgt);this._invokeCurrZone=xa&&(xa.onInvoke?this.zone:Aa._invokeCurrZone);this._handleErrorZS=xa&&(xa.onHandleError?xa:Aa._handleErrorZS);this._handleErrorDlgt=xa&&(xa.onHandleError?Aa:Aa._handleErrorDlgt);this._handleErrorCurrZone=xa&&(xa.onHandleError?this.zone:Aa._handleErrorCurrZone);this._scheduleTaskZS=xa&&(xa.onScheduleTask?xa:Aa._scheduleTaskZS);this._scheduleTaskDlgt=xa&&(xa.onScheduleTask?Aa:Aa._scheduleTaskDlgt);this._scheduleTaskCurrZone=xa&&(xa.onScheduleTask?
this.zone:Aa._scheduleTaskCurrZone);this._invokeTaskZS=xa&&(xa.onInvokeTask?xa:Aa._invokeTaskZS);this._invokeTaskDlgt=xa&&(xa.onInvokeTask?Aa:Aa._invokeTaskDlgt);this._invokeTaskCurrZone=xa&&(xa.onInvokeTask?this.zone:Aa._invokeTaskCurrZone);this._cancelTaskZS=xa&&(xa.onCancelTask?xa:Aa._cancelTaskZS);this._cancelTaskDlgt=xa&&(xa.onCancelTask?Aa:Aa._cancelTaskDlgt);this._cancelTaskCurrZone=xa&&(xa.onCancelTask?this.zone:Aa._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=this._hasTaskDlgt=
this._hasTaskZS=null;var Xa=xa&&xa.onHasTask,eb=Aa&&Aa._hasTaskZS;if(Xa||eb)this._hasTaskZS=Xa?xa:I,this._hasTaskDlgt=Aa,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=ta,xa.onScheduleTask||(this._scheduleTaskZS=I,this._scheduleTaskDlgt=Aa,this._scheduleTaskCurrZone=this.zone),xa.onInvokeTask||(this._invokeTaskZS=I,this._invokeTaskDlgt=Aa,this._invokeTaskCurrZone=this.zone),xa.onCancelTask||(this._cancelTaskZS=I,this._cancelTaskDlgt=Aa,this._cancelTaskCurrZone=this.zone)};N.prototype.fork=function(ta,
Aa){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ta,Aa):new E(ta,Aa)};N.prototype.intercept=function(ta,Aa,xa){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ta,Aa,xa):Aa};N.prototype.invoke=function(ta,Aa,xa,Xa,eb){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ta,Aa,xa,Xa,eb):Aa.apply(xa,Xa)};N.prototype.handleError=function(ta,Aa){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,
this._handleErrorCurrZone,ta,Aa):!0};N.prototype.scheduleTask=function(ta,Aa){var xa=Aa;if(this._scheduleTaskZS)this._hasTaskZS&&xa._zoneDelegates.push(this._hasTaskDlgtOwner),(xa=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ta,Aa))||(xa=Aa);else if(Aa.scheduleFn)Aa.scheduleFn(Aa);else if("microTask"==Aa.type)f(Aa);else throw Error("Z");return xa};N.prototype.invokeTask=function(ta,Aa,xa,Xa){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,
this._invokeTaskCurrZone,ta,Aa,xa,Xa):Aa.callback.apply(xa,Xa)};N.prototype.cancelTask=function(ta,Aa){if(this._cancelTaskZS)ta=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ta,Aa);else{if(!Aa.cancelFn)throw Error("$");ta=Aa.cancelFn(Aa)}return ta};N.prototype.hasTask=function(ta,Aa){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ta,Aa)}catch(xa){this.handleError(ta,xa)}};N.prototype._updateTaskCount=function(ta,Aa){var xa=this._taskCounts,
Xa=xa[ta];Aa=xa[ta]=Xa+Aa;if(0>Aa)throw Error("aa");0!=Xa&&0!=Aa||this.hasTask(this.zone,{microTask:0<xa.microTask,macroTask:0<xa.macroTask,eventTask:0<xa.eventTask,change:ta})};var L=function(ta,Aa,xa,Xa,eb,yc){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=ta;this.source=Aa;this.data=Xa;this.scheduleFn=eb;this.cancelFn=yc;if(!xa)throw Error("ba");this.callback=xa;var Ua=this;"eventTask"===ta&&Xa&&Xa.useG?this.invoke=L.invokeTask:this.invoke=function(){return L.invokeTask.call(a,
Ua,this,arguments)}};L.invokeTask=function(ta,Aa,xa){ta||(ta=this);Lb++;try{return ta.runCount++,ta.zone.runTask(ta,Aa,xa)}finally{1==Lb&&h(),Lb--}};L.prototype._transitionTo=function(ta,Aa,xa){if(this._state===Aa||this._state===xa)this._state=ta,"notScheduled"==ta&&(this._zoneDelegates=null);else throw Error("ca`"+this.type+"`"+this.source+"`"+ta+"`"+Aa+"`"+(xa?" or '"+xa+"'":"")+"`"+this._state);};L.prototype.toString=function(){return this.data&&"undefined"!==typeof this.data.handleId?this.data.handleId.toString():
Object.prototype.toString.call(this)};L.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};ki.Object.defineProperties(L.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var S=d("setTimeout"),Y=d("Promise"),ka=d("then"),ha=[],ya=!1,Ha,Ja={name:"NO ZONE"},Ka={},Ma={symbol:d,currentZoneFrame:function(){return hb},onUnhandledError:k,
microtaskDrainDone:k,scheduleMicroTask:f,showUncaughtError:function(){return!E[d("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:k,patchMethod:function(){return k},bindArguments:function(){return[]},patchThen:function(){return k},patchMacroTask:function(){return k},patchEventPrototype:function(){return k},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return k},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},
ArraySlice:function(){return[]},patchClass:function(){return k},wrapWithCurrentZone:function(){return k},filterProperties:function(){return[]},attachOriginToPatched:function(){return k},_redefineProperty:function(){return k},patchCallbacks:function(){return k},nativeScheduleMicroTask:e},hb={parent:null,zone:new E(null,null)},fb=null,Lb=0;c("Zone","Zone");return a.Zone=E})("undefined"!==typeof window&&window||"undefined"!==typeof self&&self||global);
Zone.__load_patch("Error",function(a,b,c){function d(ha){for(var ya={zoneName:ha.zone.name},Ha=ya;ha.parent;){ha=ha.parent;var Ja={zoneName:ha.zone.name};ya=ya.parent=Ja}return Ha}function e(ha,ya,Ha){Ha=void 0===Ha?!0:Ha;ha=ha.split("\n");for(var Ja=0;ha[Ja]!==w&&ha[Ja]!==y&&ha[Ja]!==E&&ha[Ja]!==I&&ha[Ja]!==N&&Ja<ha.length;)Ja++;for(;Ja<ha.length&&ya;Ja++){var Ka=ha[Ja];if(Ka.trim())switch(q[Ka]){case 0:ha.splice(Ja,1);Ja--;break;case 1:ya.parent?ya=ya.parent:ya=null;ha.splice(Ja,1);Ja--;break;default:ha[Ja]+=
Ha?" ["+ya.zone.name+"]":" ["+ya.zoneName+"]"}}return ha.join("\n")}function f(){var ha=this,ya=k.apply(this,arguments),Ha=ya.originalStack=ya.stack;if(f.stackRewrite&&Ha){var Ja=c.currentZoneFrame();if("lazy"===L)ya[c.symbol("zoneFrameNames")]=d(Ja);else if("default"===L)try{ya.stack=ya.zoneAwareStack=e(Ha,Ja)}catch(Ka){}}return this instanceof k&&this.constructor!=k?(Object.keys(ya).concat("stack","message").forEach(function(Ka){var Ma=ya[Ka];if(void 0!==Ma)try{ha[Ka]=Ma}catch(hb){}}),this):ya}
var h=c.symbol("zoneJsInternalStackFrames"),k=a[c.symbol("Error")]=a.Error,q={},w,y,E,I,N;a.Error=f;var L=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=k.prototype;f[h]=q;f.stackRewrite=!1;var S=c.symbol("zoneAwareStack");"lazy"===L&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[S]||(this[S]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[S]},set:function(ha){this.originalStack=
ha;this[S]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var Y=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(k))&&a.forEach(function(ha){0===Y.filter(function(ya){return ya===ha}).length&&Object.defineProperty(f,ha,{get:function(){return k[ha]},set:function(ya){k[ha]=ya}})});k.hasOwnProperty("stackTraceLimit")&&(k.stackTraceLimit=Math.max(k.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return k.stackTraceLimit},set:function(ha){return k.stackTraceLimit=
ha}}));k.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(ha,ya){k.captureStackTrace(ha,ya)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return k.prepareStackTrace},set:function(ha){return ha&&"function"===typeof ha?k.prepareStackTrace=function(ya,Ha){if(Ha)for(var Ja=0;Ja<Ha.length;Ja++)if("zoneCaptureStackTrace"===Ha[Ja].getFunctionName()){Ha.splice(Ja,1);break}return ha.call(this,ya,Ha)}:k.prepareStackTrace=ha}});if("disable"!==
L){var ka=b.current.fork({name:"detect",onHandleError:function(ha,ya,Ha,Ja){if(Ja.originalStack&&Error===f)for(ha=Ja.originalStack.split(/\n/),Ja=Ha=ya=!1;ha.length;){var Ka=ha.shift();if(/:\d+:\d+/.test(Ka)||"ZoneAwareError"===Ka){var Ma=Ka.split("(")[0].split("@")[0],hb=1;-1!==Ma.indexOf("ZoneAwareError")&&(-1!==Ma.indexOf("new ZoneAwareError")?(w=Ka,y=Ka.replace("new ZoneAwareError","new Error.ZoneAwareError")):(E=Ka,I=Ka.replace("Error.",""),-1===Ka.indexOf("Error.ZoneAwareError")&&(N=Ka.replace("ZoneAwareError",
"Error.ZoneAwareError"))),q[y]=0);-1!==Ma.indexOf("runGuarded")?Ha=!0:-1!==Ma.indexOf("runTask")?Ja=!0:-1!==Ma.indexOf("run")?ya=!0:hb=0;q[Ka]=hb;if(ya&&Ha&&Ja){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(ha,ya,Ha,Ja){return ha.scheduleTask(Ha,Ja)},onInvokeTask:function(ha,ya,Ha,Ja,Ka,Ma){return ha.invokeTask(Ha,Ja,Ka,Ma)},onCancelTask:function(ha,ya,Ha,Ja){return ha.cancelTask(Ha,Ja)},onInvoke:function(ha,ya,Ha,Ja,Ka,Ma,hb){return ha.invoke(Ha,Ja,Ka,Ma,hb)}});
b=Error.stackTraceLimit;Error.stackTraceLimit=100;ka.run(function(){ka.runGuarded(function(){var ha=function(){};ka.scheduleEventTask(h,function(){ka.scheduleMacroTask(h,function(){ka.scheduleMicroTask(h,function(){throw Error();},void 0,function(ya){ya._transitionTo=ha;ya.invoke()});ka.scheduleMicroTask(h,function(){throw Error();},void 0,function(ya){ya._transitionTo=ha;ya.invoke()})},void 0,function(ya){ya._transitionTo=ha;ya.invoke()},function(){})},void 0,function(ya){ya._transitionTo=ha;ya.invoke()},
function(){})})});Error.stackTraceLimit=b}});
var Fb=Object.getOwnPropertyDescriptor,uba=Object.defineProperty,xba=Object.getPrototypeOf,Tkb=Object.create,Ukb=Array.prototype.slice,Vkb=Zone.__symbol__("addEventListener"),Wkb=Zone.__symbol__("removeEventListener"),Qb=Zone.__symbol__(""),Ib=Zone.__symbol__,Bv="undefined"!==typeof window,Pb=Bv?window:void 0,Kb=Bv&&Pb||"object"===typeof self&&self||global,Xkb="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Sb=!("nw"in Kb)&&"undefined"!==typeof Kb.process&&"[object process]"===
{}.toString.call(Kb.process),Ykb=!Sb&&!Xkb&&!(!Bv||!Pb.HTMLElement),Zkb="undefined"!==typeof Kb.process&&"[object process]"==={}.toString.call(Kb.process)&&!Xkb&&!(!Bv||!Pb.HTMLElement),Jb={},tba=function(a){if(a=a||Kb.event){var b=Jb[a.type];b||(b=Jb[a.type]=Ib("ON_PROPERTY"+a.type));var c=this||a.target||Kb;b=c[b];Ykb&&c===Pb&&"error"===a.type?(c=a,c=b&&b.call(this,c.message,c.filename,c.lineno,c.colno,c.error),!0===c&&a.preventDefault()):(c=b&&b.apply(this,arguments),void 0==c||c||a.preventDefault());
return c}},Mb=Ib("originalInstance"),zba=!1,Aba=!1;
var Tb=!1;if("undefined"!==typeof window)try{var Cv=Object.defineProperty({},"passive",{get:function(){Tb=!0}});window.addEventListener("test",Cv,Cv);window.removeEventListener("test",Cv,Cv)}catch(a){Tb=!1}var Fba={useG:!0},Rb={},Eba={},Hba=new RegExp("^"+Qb+"(\\w+)(true|false)$"),Dba=Ib("propagationStopped");
Zone.__load_patch("ZoneAwarePromise",function(a,b,c){function d(Ua){if(Ua&&Ua.toString===Object.prototype.toString){var bb=Ua.constructor&&Ua.constructor.name;return(bb?bb:"")+": "+JSON.stringify(Ua)}return Ua?Ua.toString():Object.prototype.toString.call(Ua)}function e(Ua){c.onUnhandledError(Ua);try{var bb=b[Ha];"function"===typeof bb&&bb.call(this,Ua)}catch(Sa){}}function f(Ua){return Ua}function h(Ua){return eb.reject(Ua)}function k(Ua,bb){return function(Sa){try{q(Ua,bb,Sa)}catch(ub){q(Ua,!1,ub)}}}
function q(Ua,bb,Sa){var ub=Lb();if(Ua===Sa)throw new TypeError("ea");if(null===Ua[Ja]){var cb=null;try{if("object"===typeof Sa||"function"===typeof Sa)cb=Sa&&Sa.then}catch(xb){return ub(function(){q(Ua,!1,xb)})(),Ua}if(!1!==bb&&Sa instanceof eb&&Sa.hasOwnProperty(Ja)&&Sa.hasOwnProperty(Ka)&&null!==Sa[Ja])w(Sa),q(Ua,Sa[Ja],Sa[Ka]);else if(!1!==bb&&"function"===typeof cb)try{cb.call(Sa,ub(k(Ua,bb)),ub(k(Ua,!1)))}catch(xb){ub(function(){q(Ua,!1,xb)})()}else{Ua[Ja]=bb;ub=Ua[Ka];Ua[Ka]=Sa;Ua[Ma]===Ma&&
!0===bb&&(Ua[Ja]=Ua[fb],Ua[Ka]=Ua[hb]);!1===bb&&Sa instanceof Error&&(cb=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&L(Sa,ta,{configurable:!0,enumerable:!1,writable:!0,value:cb});for(cb=0;cb<ub.length;)y(Ua,ub[cb++],ub[cb++],ub[cb++],ub[cb++]);if(0==ub.length&&0==bb){Ua[Ja]=0;bb=Sa;try{throw Error("fa`"+d(Sa)+"`"+(Sa&&Sa.stack?"\n"+Sa.stack:""));}catch(xb){bb=xb}ka&&(bb.throwOriginal=!0);bb.rejection=Sa;bb.promise=Ua;bb.zone=b.current;bb.task=b.currentTask;Y.push(bb);
c.scheduleMicroTask()}}}return Ua}function w(Ua){if(0===Ua[Ja]){try{var bb=b[Aa];bb&&"function"===typeof bb&&bb.call(this,{rejection:Ua[Ka],promise:Ua})}catch(Sa){}Ua[Ja]=!1;for(bb=0;bb<Y.length;bb++)Ua===Y[bb].promise&&Y.splice(bb,1)}}function y(Ua,bb,Sa,ub,cb){w(Ua);var xb=Ua[Ja],Hb=xb?"function"===typeof ub?ub:f:"function"===typeof cb?cb:h;bb.scheduleMicroTask("Promise.then",function(){try{var cc=Ua[Ka],zc=!!Sa&&Ma===Sa[Ma];zc&&(Sa[hb]=cc,Sa[fb]=xb);var qe=bb.run(Hb,void 0,zc&&Hb!==h&&Hb!==f?[]:
[cc]);q(Sa,!0,qe)}catch(fd){q(Sa,!1,fd)}},Sa)}function E(Ua){var bb=Ua.prototype,Sa=N(bb,"then");if(!Sa||!1!==Sa.writable&&Sa.configurable){var ub=bb.then;bb[ya]=ub;Ua.prototype.then=function(cb,xb){var Hb=this;return(new eb(function(cc,zc){ub.call(Hb,cc,zc)})).then(cb,xb)};Ua[yc]=!0}}function I(Ua){return function(bb,Sa){bb=Ua.apply(bb,Sa);if(bb instanceof eb)return bb;Sa=bb.constructor;Sa[yc]||E(Sa);return bb}}var N=Object.getOwnPropertyDescriptor,L=Object.defineProperty,S=c.symbol,Y=[],ka=!0===
a[S("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ha=S("Promise"),ya=S("then");c.onUnhandledError=function(Ua){if(c.showUncaughtError()){var bb=Ua&&Ua.rejection;bb?console.error("Unhandled Promise rejection:",bb instanceof Error?bb.message:bb,"; Zone:",Ua.zone.name,"; Task:",Ua.task&&Ua.task.source,"; Value:",bb,bb instanceof Error?bb.stack:void 0):console.error(Ua)}};c.microtaskDrainDone=function(){for(var Ua={};Y.length;){Ua.$jscomp$loop$prop$uncaughtPromiseError$1588=Y.shift();try{Ua.$jscomp$loop$prop$uncaughtPromiseError$1588.zone.runGuarded(function(bb){return function(){if(bb.$jscomp$loop$prop$uncaughtPromiseError$1588.throwOriginal)throw bb.$jscomp$loop$prop$uncaughtPromiseError$1588.rejection;
throw bb.$jscomp$loop$prop$uncaughtPromiseError$1588;}}(Ua))}catch(bb){e(bb)}Ua={$jscomp$loop$prop$uncaughtPromiseError$1588:Ua.$jscomp$loop$prop$uncaughtPromiseError$1588}}};var Ha=S("unhandledPromiseRejectionHandler"),Ja=S("state"),Ka=S("value"),Ma=S("finally"),hb=S("parentPromiseValue"),fb=S("parentPromiseState"),Lb=function(){var Ua=!1;return function(bb){return function(){Ua||(Ua=!0,bb.apply(null,arguments))}}},ta=S("currentTaskTrace"),Aa=S("rejectionHandledHandler"),xa=function(){},Xa=a.AggregateError,
eb=function(Ua){if(!(this instanceof eb))throw Error("ga");this[Ja]=null;this[Ka]=[];try{var bb=Lb();Ua&&Ua(bb(k(this,!0)),bb(k(this,!1)))}catch(Sa){q(this,!1,Sa)}};eb.toString=function(){return"function ZoneAwarePromise() { [native code] }"};eb.resolve=function(Ua){return q(new this(null),!0,Ua)};eb.reject=function(Ua){return q(new this(null),!1,Ua)};eb.any=function(Ua){if(!Ua||"function"!==typeof Ua[Symbol.iterator])return Promise.reject(new Xa([],"All promises were rejected"));var bb=[],Sa=0;try{for(var ub=
r(Ua),cb=ub.next();!cb.done;cb=ub.next()){var xb=cb.value;Sa++;bb.push(eb.resolve(xb))}}catch(zc){return Promise.reject(new Xa([],"All promises were rejected"))}if(0===Sa)return Promise.reject(new Xa([],"All promises were rejected"));var Hb=!1,cc=[];return new eb(function(zc,qe){for(var fd=0;fd<bb.length;fd++)bb[fd].then(function(Cd){Hb||(Hb=!0,zc(Cd))},function(Cd){cc.push(Cd);Sa--;0===Sa&&(Hb=!0,qe(new Xa(cc,"All promises were rejected")))})})};eb.race=function(Ua){function bb(cc){ub(cc)}function Sa(cc){cb(cc)}
var ub,cb,xb=new this(function(cc,zc){ub=cc;cb=zc});Ua=r(Ua);for(var Hb=Ua.next();!Hb.done;Hb=Ua.next())(Hb=Hb.value)&&Hb.then||(Hb=this.resolve(Hb)),Hb.then(bb,Sa);return xb};eb.all=function(Ua){return eb.allWithCallback(Ua)};eb.allSettled=function(Ua){return(this&&this.prototype instanceof eb?this:eb).allWithCallback(Ua,{thenCallback:function(bb){return{status:"fulfilled",value:bb}},errorCallback:function(bb){return{status:"rejected",reason:bb}}})};eb.allWithCallback=function(Ua,bb){var Sa,ub,cb=
new this(function(fd,Cd){Sa=fd;ub=Cd}),xb=2,Hb=0,cc=[],zc={};Ua=r(Ua);for(var qe=Ua.next();!qe.done;zc={$jscomp$loop$prop$curValueIndex$1591:zc.$jscomp$loop$prop$curValueIndex$1591},qe=Ua.next()){(qe=qe.value)&&qe.then||(qe=this.resolve(qe));zc.$jscomp$loop$prop$curValueIndex$1591=Hb;try{qe.then(function(fd){return function(Cd){cc[fd.$jscomp$loop$prop$curValueIndex$1591]=bb?bb.thenCallback(Cd):Cd;xb--;0===xb&&Sa(cc)}}(zc),function(fd){return function(Cd){bb?(cc[fd.$jscomp$loop$prop$curValueIndex$1591]=
bb.errorCallback(Cd),xb--,0===xb&&Sa(cc)):ub(Cd)}}(zc))}catch(fd){ub(fd)}xb++;Hb++}xb-=2;0===xb&&Sa(cc);return cb};ki.Object.defineProperty(eb.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});ki.Object.defineProperty(eb.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return eb}});eb.prototype.then=function(Ua,bb){var Sa,ub=null==(Sa=this.constructor)?void 0:Sa[Symbol.species];ub&&"function"===typeof ub||(ub=this.constructor||eb);
Sa=new ub(xa);ub=b.current;null==this[Ja]?this[Ka].push(ub,Sa,Ua,bb):y(this,ub,Sa,Ua,bb);return Sa};eb.prototype.catch=function(Ua){return this.then(null,Ua)};eb.prototype.finally=function(Ua){var bb,Sa=null==(bb=this.constructor)?void 0:bb[Symbol.species];Sa&&"function"===typeof Sa||(Sa=eb);bb=new Sa(xa);bb[Ma]=Ma;Sa=b.current;null==this[Ja]?this[Ka].push(Sa,bb,Ua,Ua):y(this,Sa,bb,Ua,Ua);return bb};eb.resolve=eb.resolve;eb.reject=eb.reject;eb.race=eb.race;eb.all=eb.all;ha=a[ha]=a.Promise;a.Promise=
eb;var yc=S("thenPatched");c.patchThen=E;ha&&(E(ha),Ob(a,"fetch",function(Ua){return I(Ua)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=Y;return eb});
var Ub=Ib("zoneTask");
Zone.__load_patch("toString",function(a){var b=Function.prototype.toString,c=Ib("OriginalDelegate"),d=Ib("Promise"),e=Ib("Error"),f=function(){if("function"===typeof this){var k=this[c];if(k)return"function"===typeof k?b.call(k):Object.prototype.toString.call(k);if(this===Promise&&(k=a[d])||this===Error&&(k=a[e]))return b.call(k)}return b.call(this)};f[c]=b;Function.prototype.toString=f;var h=Object.prototype.toString;Object.prototype.toString=function(){return"function"===typeof Promise&&this instanceof
Promise?"[object Promise]":h.call(this)}});
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
 @param {!_ZonePrivate} api
 @param {?} target
 @param {string} targetName
 @param {string} method
 @param {!Array<string>} callbacks
 @return {void}
*/
Zone.__load_patch("util",function(a,b,c){var d=Mba(a);c.patchOnProperties=wba;c.patchMethod=Ob;c.bindArguments=qba;c.patchMacroTask=yba;var e=b.__symbol__("BLACK_LISTED_EVENTS"),f=b.__symbol__("UNPATCHED_EVENTS");a[f]&&(a[e]=a[f]);a[e]&&(b[e]=b[f]=a[e]);c.patchEventPrototype=Jba;c.patchEventTarget=Iba;c.isIEOrEdge=Bba;c.ObjectDefineProperty=uba;c.ObjectGetOwnPropertyDescriptor=Fb;c.ObjectCreate=Tkb;c.ArraySlice=Ukb;c.patchClass=Nb;c.wrapWithCurrentZone=pba;c.filterProperties=Lba;c.attachOriginToPatched=
Gb;c._redefineProperty=Object.defineProperty;c.patchCallbacks=Kba;c.getGlobalObjects=function(){return{globalSources:Eba,zoneSymbolEventNames:Rb,eventNames:d,isBrowser:Ykb,isMix:Zkb,isNode:Sb,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:Qb,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}});
var Wb,Xb,Nba,Oba,Yb;
var Wba=[].concat(u("abort animationcancel animationend animationiteration auxclick beforeinput blur cancel canplay canplaythrough change compositionstart compositionupdate compositionend cuechange click close contextmenu curechange dblclick drag dragend dragenter dragexit dragleave dragover drop durationchange emptied ended error focus focusin focusout gotpointercapture input invalid keydown keypress keyup load loadstart loadeddata loadedmetadata lostpointercapture mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup mousewheel orientationchange pause play playing pointercancel pointerdown pointerenter pointerleave pointerlockchange mozpointerlockchange webkitpointerlockerchange pointerlockerror mozpointerlockerror webkitpointerlockerror pointermove pointout pointerover pointerup progress ratechange reset resize scroll seeked seeking select selectionchange selectstart show sort stalled submit suspend timeupdate volumechange touchcancel touchmove touchstart touchend transitioncancel transitionend waiting wheel".split(" ")),
u(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"]),u(["autocomplete","autocompleteerror"]),u(["toggle"]),u("afterscriptexecute beforescriptexecute DOMContentLoaded freeze fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange fullscreenerror mozfullscreenerror webkitfullscreenerror msfullscreenerror readystatechange visibilitychange resume".split(" ")),u("absolutedeviceorientation afterinput afterprint appinstalled beforeinstallprompt beforeprint beforeunload devicelight devicemotion deviceorientation deviceorientationabsolute deviceproximity hashchange languagechange message mozbeforepaint offline online paint pageshow pagehide popstate rejectionhandled storage unhandledrejection unload userproximity vrdisplayconnected vrdisplaydisconnected vrdisplaypresentchange".split(" ")),
u("beforecopy beforecut beforepaste copy cut paste dragstart loadend animationstart search transitionrun transitionstart webkitanimationend webkitanimationiteration webkitanimationstart webkittransitionend".split(" ")),u("activate afterupdate ariarequest beforeactivate beforedeactivate beforeeditfocus beforeupdate cellchange controlselect dataavailable datasetchanged datasetcomplete errorupdate filterchange layoutcomplete losecapture move moveend movestart propertychange resizeend resizestart rowenter rowexit rowsdelete rowsinserted command compassneedscalibration deactivate help mscontentzoom msmanipulationstatechanged msgesturechange msgesturedoubletap msgestureend msgesturehold msgesturestart msgesturetap msgotpointercapture msinertiastart mslostpointercapture mspointercancel mspointerdown mspointerenter mspointerhover mspointerleave mspointermove mspointerout mspointerover mspointerup pointerout mssitemodejumplistitemremoved msthumbnailclick stop storagecommit".split(" ")));
(function(a){a[(a.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var b=a.Zone;b.__load_patch("defineProperty",function(c,d,e){e._redefineProperty=Sba;Rba()});b.__load_patch("registerElement",function(c,d,e){d=e.getGlobalObjects();var f=d.isMix;(d.isBrowser||f)&&"registerElement"in c.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])});b.__load_patch("EventTargetLegacy",function(c,
d,e){Tba(c,e);d=e.getGlobalObjects();var f=d.isMix;d.isNode&&!f||Vba(e,c)||(d="undefined"!==typeof WebSocket,Xba(e),e.patchClass("XMLHttpRequest"),d&&Uba(e,c),Zone[e.symbol("patchEvents")]=!0)})}})("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{});
Zone.__load_patch("legacy",function(a){(a=a[Zone.__symbol__("legacyPatch")])&&a()});Zone.__load_patch("queueMicrotask",function(a,b,c){c.patchMethod(a,"queueMicrotask",function(){return function(d,e){b.current.scheduleMicroTask("queueMicrotask",e[0])}})});Zone.__load_patch("timers",function(a){Vb(a,"set","clear","Timeout");Vb(a,"set","clear","Interval");Vb(a,"set","clear","Immediate")});
Zone.__load_patch("requestAnimationFrame",function(a){Vb(a,"request","cancel","AnimationFrame");Vb(a,"mozRequest","mozCancel","AnimationFrame");Vb(a,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",function(a,b){for(var c=["alert","prompt","confirm"],d=0;d<c.length;d++)Ob(a,c[d],function(e,f,h){return function(k,q){return b.current.run(e,a,q,h)}})});
Zone.__load_patch("EventTarget",function(a,b,c){c.patchEventPrototype(a,c);if(!Zone[c.symbol("patchEventTarget")]){var d=c.getGlobalObjects();b=d.eventNames;var e=d.zoneSymbolEventNames,f=d.TRUE_STR,h=d.FALSE_STR;d=d.ZONE_SYMBOL_PREFIX;for(var k=0;k<b.length;k++){var q=b[k],w=d+(q+h),y=d+(q+f);e[q]={};e[q][h]=w;e[q][f]=y}(b=a.EventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b&&b.prototype])}(b=a.XMLHttpRequestEventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b.prototype])});
Zone.__load_patch("MutationObserver",function(){Nb("MutationObserver");Nb("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",function(){Nb("IntersectionObserver")});Zone.__load_patch("FileReader",function(){Nb("FileReader")});
Zone.__load_patch("on_property",function(a,b,c){if((!Sb||Zkb)&&!Zone[c.symbol("patchEvents")]){b=a.__Zone_ignore_on_properties;c=[];if(Ykb){var d=window;c=c.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));a:{try{var e=Pb.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")){var f=!0;break a}}catch(k){}f=!1}e=f?[{target:d,ignoreProperties:["error"]}]:
[];f=Mba(d);var h=b?b.concat(e):b;e=xba(d);d&&(f=Lba(d,f,h),wba(d,f,e))}c=c.concat("XMLHttpRequest XMLHttpRequestEventTarget IDBIndex IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor WebSocket".split(" "));for(d=0;d<c.length;d++)(e=a[c[d]])&&e.prototype&&(f=e.prototype,e=Mba(e.prototype),f&&(e=Lba(f,e,b),wba(f,e,void 0)))}});
Zone.__load_patch("customElements",function(a,b,c){b=c.getGlobalObjects();var d=b.isMix;(b.isBrowser||d)&&a.customElements&&"customElements"in a&&c.patchCallbacks(c,a.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])});
Zone.__load_patch("XHR",function(a,b){(function(q){function w(Ha){var Ja=Ha.data,Ka=Ja.target;Ka[f]=!1;Ka[k]=!1;var Ma=Ka[e];N||(N=Ka[Vkb],L=Ka[Wkb]);Ma&&L.call(Ka,"readystatechange",Ma);Ma=Ka[e]=function(){if(Ka.readyState===Ka.DONE)if(!Ja.aborted&&Ka[f]&&"scheduled"===Ha.state){var hb=Ka[b.__symbol__("loadfalse")];if(0!==Ka.status&&hb&&0<hb.length){var fb=Ha.invoke;Ha.invoke=function(){for(var Lb=Ka[b.__symbol__("loadfalse")],ta=0;ta<Lb.length;ta++)Lb[ta]===Ha&&Lb.splice(ta,1);Ja.aborted||"scheduled"!==
Ha.state||fb.call(Ha)};hb.push(Ha)}else Ha.invoke()}else Ja.aborted||!1!==Ka[f]||(Ka[k]=!0)};N.call(Ka,"readystatechange",Ma);Ka[c]||(Ka[c]=Ha);ha.apply(Ka,Ja.args);Ka[f]=!0;return Ha}function y(){}function E(Ha){Ha=Ha.data;Ha.aborted=!0;return ya.apply(Ha.target,Ha.args)}var I=q.XMLHttpRequest;if(I){I=I.prototype;var N=I[Vkb],L=I[Wkb];!N&&(q=q.XMLHttpRequestEventTarget)&&(q=q.prototype,N=q[Vkb],L=q[Wkb]);var S=Ob(I,"open",function(){return function(Ha,Ja){Ha[d]=0==Ja[2];Ha[h]=Ja[1];return S.apply(Ha,
Ja)}}),Y=Ib("fetchTaskAborting"),ka=Ib("fetchTaskScheduling"),ha=Ob(I,"send",function(){return function(Ha,Ja){if(!0===b.current[ka]||Ha[d])return ha.apply(Ha,Ja);Ja={target:Ha,url:Ha[h],isPeriodic:!1,args:Ja,aborted:!1};var Ka=Zone.current.scheduleMacroTask("XMLHttpRequest.send",y,Ja,w,E);Ha&&!0===Ha[k]&&!Ja.aborted&&"scheduled"===Ka.state&&Ka.invoke()}}),ya=Ob(I,"abort",function(){return function(Ha,Ja){var Ka=Ha[c];if(Ka&&"string"==typeof Ka.type)null==Ka.cancelFn||Ka.data&&Ka.data.aborted||Ka.zone.cancelTask(Ka);
else if(!0===b.current[Y])return ya.apply(Ha,Ja)}})}})(a);var c=Ib("xhrTask"),d=Ib("xhrSync"),e=Ib("xhrListener"),f=Ib("xhrScheduled"),h=Ib("xhrURL"),k=Ib("xhrErrorBeforeScheduled")});Zone.__load_patch("geolocation",function(a){a.navigator&&a.navigator.geolocation&&sba(a.navigator.geolocation)});
Zone.__load_patch("PromiseRejectionEvent",function(a,b){function c(d){return function(e){Gba(a,d).forEach(function(f){var h=a.PromiseRejectionEvent;h&&(h=new h(d,{promise:e.promise,reason:e.rejection}),f.invoke(h))})}}a.PromiseRejectionEvent&&(b[Ib("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),b[Ib("rejectionHandledHandler")]=c("rejectionhandled"))});
Zone.__load_patch("canvas",function(a,b,c){a=a.HTMLCanvasElement;"undefined"!==typeof a&&a.prototype&&a.prototype.toBlob&&c.patchMacroTask(a.prototype,"toBlob",function(d,e){return{name:"HTMLCanvasElement.toBlob",target:d,cbIdx:0,args:e}})});
var aca=Zb({__forward_ref__:Zb});
var $kb="undefined"!==typeof window&&window,alb="undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,blb="undefined"!==typeof global&&global,sd="undefined"!==typeof globalThis&&globalThis||blb||$kb||alb;
var bca=Zb({"\u0275prov":Zb}),fca=Zb({"\u0275inj":Zb}),cca=Zb({ngInjectableDef:Zb}),gca=Zb({ngInjectorDef:Zb});
var ic=function(a,b){b=Error.call(this,"NG0"+Math.abs(a)+(b?": "+b:""));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};U(ic,Error);
var kca;
/*

 The MIT License

 Copyright (c) 2014-2016 Google, Inc. http://angular.io

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
var Dv={},clb=/\n/gm,sda=Zb({provide:String,useValue:Zb}),kc=void 0;
var dlb=mc(pc(function(a){return{token:a}}),-1),Ev=mc(pc(),8);mc(pc(),2);var Fv=mc(pc(),4);mc(pc(),1);
var vca=Zb({"\u0275cmp":Zb}),wca=Zb({"\u0275dir":Zb}),xca=Zb({"\u0275pipe":Zb}),elb=Zb({"\u0275mod":Zb}),wc=Zb({"\u0275fac":Zb}),Uc=Zb({__NG_ELEMENT_ID__:Zb});
var sc={},qc=[];
var pca=0;
var Bca=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};Bca.prototype.isFirstChange=function(){return this.firstChange};
Ac.ngInherit=!0;
var Cca=void 0;
var flb={createRenderer:function(){return Dca()}};
var Fc=Jca(null);
var ad=function(a,b,c){this.factory=a;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};
var Oca=!0,Pca=0,Yc={},bd=function(a,b){this._tNode=a;this._lView=b};bd.prototype.get=function(a,b,c){return Xca(this._tNode,this._lView,a,c,b)};
Zb({provide:String,useValue:Zb});
var jd=function(a,b){this._desc=a;this.\u0275prov=void 0;"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=ec({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};jd.prototype.toString=function(){return"InjectionToken "+this._desc};ki.Object.defineProperties(jd.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});
var glb=new jd("INJECTOR",-1);
var dda=function(){};dda.prototype.get=function(a,b){b=void 0===b?Dv:b;if(b===Dv)throw a=Error("la`"+$b(a)),a.name="NullInjectorError",a;return b};
var Vga=new jd("Set Injector scope.");
var ld={},hlb={},mda=new jd("INJECTOR_INITIALIZER"),lda=new jd("INJECTOR_DEF_TYPES"),cda=void 0,Gv=function(){},id=function(a,b,c,d){this.parent=b;this.source=c;this.scopes=d;this.records=new Map;this._ngOnDestroyHooks=new Set;this._onDestroyHooks=[];this._destroyed=!1;a=r(a);for(b=a.next();!b.done;b=a.next())ilb(this,b.value);this.records.set(glb,kd(void 0,this));d.has("environment")&&this.records.set(Gv,kd(void 0,this));d=this.records.get(Vga);null!=d&&"string"===typeof d.value&&this.scopes.add(d.value);
this.injectorDefTypes=new Set(this.get(lda.multi,qc,2))};U(id,Gv);id.prototype.destroy=function(){if(this._destroyed)throw new ic(205,!1);this._destroyed=!0;try{for(var a=r(this._ngOnDestroyHooks),b=a.next();!b.done;b=a.next())b.value.ngOnDestroy();for(var c=r(this._onDestroyHooks),d=c.next();!d.done;d=c.next()){var e=d.value;e()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}};id.prototype.onDestroy=function(a){this._onDestroyHooks.push(a)};
id.prototype.get=function(a,b,c){b=void 0===b?Dv:b;c=void 0===c?0:c;if(this._destroyed)throw new ic(205,!1);var d=lc(this),e=jc();try{if(!(c&4)){var f=this.records.get(a);if(void 0===f){var h=("function"===typeof a||"object"===typeof a&&a instanceof jd)&&dca(a),k;if(k=h)if(h.providedIn){var q=bc(h.providedIn);k="string"===typeof q?"any"===q||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=kd(oda(a),ld):f=null;this.records.set(a,f)}if(null!=f){b=f;b.value===ld&&(b.value=hlb,b.value=b.factory());
var w;if(w="object"===typeof b.value&&b.value){var y=b.value;w=null!==y&&"object"===typeof y&&"function"===typeof y.ngOnDestroy}w&&this._ngOnDestroyHooks.add(b.value);return b.value}}var E=c&2?eda():this.parent;b=c&8&&b===Dv?null:b;return E.get(a,b)}catch(ya){if("NullInjectorError"===ya.name){(ya.ngTempTokenPath=ya.ngTempTokenPath||[]).unshift($b(a));if(d)throw ya;w=ya;var I=this.source,N=w.ngTempTokenPath;a.__source&&N.unshift(a.__source);var L="\n"+w.message;a=I;a=void 0===a?null:a;L=L&&"\n"===
L.charAt(0)&&"\u0275"==L.charAt(1)?L.slice(2):L;var S=$b(N);if(Array.isArray(N))S=N.map($b).join(" -> ");else if("object"===typeof N){I=[];for(var Y in N)if(N.hasOwnProperty(Y)){var ka=N[Y];I.push(Y+":"+("string"===typeof ka?JSON.stringify(ka):$b(ka)))}S="{"+I.join(", ")+"}"}var ha="R3InjectorError"+(a?"("+a+")":"")+"["+S+"]: "+L.replace(clb,"\n  ");w.message=ha;w.ngTokenPath=N;w.ngTempTokenPath=null;throw w;}throw ya;}finally{jc(e),lc(d)}};
var gda=function(a){var b=lc(a),c=jc();try{for(var d=a.get(mda.multi,qc,2),e=r(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{lc(b),jc(c)}};id.prototype.toString=function(){for(var a=[],b=r(this.records.keys()),c=b.next();!c.done;c=b.next())a.push($b(c.value));return"R3Injector["+a.join(", ")+"]"};
var ilb=function(a,b){b=bc(b);var c=md(b)?b:bc(b&&b.provide),d=rda(b);if(md(b)||!0!==b.multi)a.records.get(c);else{var e=a.records.get(c);e||(e=kd(void 0,ld,!0),e.factory=function(){return nca(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};ki.Object.defineProperties(id.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
var Hv=function(){},cf=function(a){if(Array.isArray(a))return hda({name:""},void 0,a,"");var b,c=null!=(b=a.name)?b:"";return hda({name:c},a.parent,a.providers,c)},jlb=new dda;Hv.\u0275prov=ec({token:Hv,providedIn:"any",factory:function(){return t(glb)}});Hv.__NG_ELEMENT_ID__=-1;
var Iv=function(a,b){this.token=a;this.id=b;if(!a)throw Error("ma");this.displayName=$b(this.token)};ki.Object.defineProperties(Iv,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return klb.numberOfKeys}}});var llb=function(){this._allKeys=new Map};llb.prototype.get=function(a){if(a instanceof Iv)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new Iv(a,Iv.numberOfKeys);this._allKeys.set(a,b);return b};
ki.Object.defineProperties(llb.prototype,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});var klb=new llb;
klb.get(bc(Hv));
var Jv=function(){};
var Kv=function(){},mlb=function(){};
var nlb=function(){},olb=function(){};
var nd=function(a){this.nativeElement=a};nd.__NG_ELEMENT_ID__=function(){return od(Gc(),x())};
new jd("Renderer2Interceptor");var Lv=function(){},Mv=function(){};Mv.__NG_ELEMENT_ID__=function(){var a=x(),b=Dc(Gc().index,a);return(uc(b)?b:a)[11]};
var vda=new Map,lea=0;
var Td=function(){this._console=console};Td.prototype.handleError=function(a){var b=this._findOriginalError(a),c=a&&a.ngErrorLogger||tda;c(this._console,"ERROR",a);b&&c(this._console,"ORIGINAL ERROR",b)};Td.prototype._findOriginalError=function(a){for(a=a&&a.ngOriginalError;a&&a.ngOriginalError;)a=a.ngOriginalError;return a||null};
var plb=("undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(sd);
var rd;
var Qd={};
var Ad=function(a){this.changingThisBreaksApplicationSecurity=a};Ad.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"};var qlb=function(){Ad.apply(this,arguments)};U(qlb,Ad);qlb.prototype.getTypeName=function(){return"HTML"};var rlb=function(){Ad.apply(this,arguments)};U(rlb,Ad);rlb.prototype.getTypeName=function(){return"URL"};var slb=function(){Ad.apply(this,arguments)};U(slb,Ad);
slb.prototype.getTypeName=function(){return"ResourceURL"};
var Xda=function(a){this.inertDocumentHelper=a};Xda.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(td(a),"text/html").body;if(null===b)return this.inertDocumentHelper.getInertBodyElement(a);b.removeChild(b.firstChild);return b}catch(c){return null}};
var Wda=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");if(null==this.inertDocument.body){a=this.inertDocument.createElement("html");this.inertDocument.appendChild(a);var b=this.inertDocument.createElement("body");a.appendChild(b)}};
Wda.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=td(a),b;b=this.inertDocument.createElement("body");b.innerHTML=td(a);this.defaultDoc.documentMode&&tlb(this,b);return b};var tlb=function(a,b){for(var c=b.attributes,d=c.length-1;0<d;d--){var e=c.item(d).name;"xmlns:ns1"!==e&&0!==e.indexOf("ns1:")||b.removeAttribute(e)}for(b=b.firstChild;b;)b.nodeType===Node.ELEMENT_NODE&&tlb(a,b),b=b.nextSibling};
var Qda=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Rda=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
var ulb=Fd("area,br,col,hr,img,wbr"),vlb=Fd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wlb=Fd("rp,rt"),xlb=Gd(wlb,vlb),ylb=Gd(vlb,Fd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),zlb=Gd(wlb,Fd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),
Zda=Gd(ulb,ylb,zlb,xlb),aea=Fd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),bea=Fd("srcset"),Alb=Fd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),
Blb=Fd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),
$da=Gd(aea,bea,Alb,Blb),cea=Fd("script,style,template"),Yda=function(){this.buf=[]};Yda.prototype.endElement=function(a){a=a.nodeName.toLowerCase();Zda.hasOwnProperty(a)&&!ulb.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var dea=function(a,b){if(b&&(a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("oa`"+a.outerHTML);return b},Tda=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Uda=/([^#-~ |!])/g,Hd;
var Clb={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5,0:"NONE",1:"HTML",2:"STYLE",3:"SCRIPT",4:"URL",5:"RESOURCE_URL"};
var Id;
var Dlb=Promise.resolve(null);
var hg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=hg.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(vc(a)){var b=a[8],c=b?b.indexOf(this):-1;-1<c&&(Fda(a,c),ed(b,c))}this._attachedToViewContainer=!1}Hda(this._lView[1],this._lView)};g.onDestroy=function(a){uea(this._lView[1],this._lView,null,a)};
g.markForCheck=function(){Cea(this._cdRefInjectingView||this._lView)};g.detach=function(){this._lView[2]&=-129};g.detectChanges=function(){var a=this._lView[1],b=this._lView,c=this.context,d=b[10];d.begin&&d.begin();try{Od(a,b,a.template,c)}catch(e){throw Eea(b,e),e;}finally{d.end&&d.end()}};
ki.Object.defineProperties(hg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return Vd(b,a,b.firstChild,[])}},context:{configurable:!0,enumerable:!0,get:function(){return this._lView[8]},set:function(a){this._lView[8]=a}},destroyed:{configurable:!0,enumerable:!0,get:function(){return 256===(this._lView[2]&256)}}});var Nv=function(a){hg.call(this,a);this._view=a};U(Nv,hg);
Nv.prototype.detectChanges=function(){for(var a=this._view[8],b=0;b<a.components.length;b++){var c=a.components[b],d=wda(c);if(null!==d){var e=d[1],f=e.template,h=d[10],k=4===(d[2]&4);try{!k&&h.begin&&h.begin(),k&&Nd(e,d,c),Od(e,d,f,c)}finally{!k&&h.end&&h.end()}}}};ki.Object.defineProperties(Nv.prototype,{context:{configurable:!0,enumerable:!0,get:function(){return null}}});
var Ov=function(){};Ov.\u0275prov=ec({token:Ov,providedIn:"root",factory:function(){return null}});
var Elb=new function(a){this.full=a;this.major=a.split(".")[0];this.minor=a.split(".")[1];this.patch=a.split(".").slice(2).join(".")}("0.0.0-PLACEHOLDER");
var Flb={};
var Glb=function(a){this.ngModule=a};U(Glb,Jv);var Qv=function(a,b){return new Pv(b[vca]||null,a.ngModule)},Hlb=function(a,b){this.injector=a;this.parentInjector=b};Hlb.prototype.get=function(a,b,c){var d=this.injector.get(a,Flb,c);return d!==Flb||b===Flb?d:this.parentInjector.get(a,b,c)};
var Pv=function(a,b){this.componentDef=a;this.ngModule=b;this.componentType=a.type;this.selector=a.selectors.map(Pda).join(",");this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[];this.isBoundToModule=!!b};U(Pv,olb);
Pv.prototype.create=function(a,b,c,d){d=d||this.ngModule;var e,f=(d=d instanceof Gv?d:null==(e=d)?void 0:e.injector)?new Hlb(a,d):a;e=f.get(Lv,flb);var h=f.get(Ov,null);a=e.createRenderer(null,this.componentDef);d=this.componentDef.selectors[0][0]||"div";if(c)a.listen?d=a.selectRootElement(c,3===this.componentDef.encapsulation):(d="string"===typeof c?a.querySelector(c):c,d.textContent="");else{var k=e.createRenderer(null,this.componentDef),q=d.toLowerCase();d=Dda(k,d,"svg"===q?"svg":"math"===q?"math":
null)}q=d;var w=this.componentDef.onPush?576:528;d={components:[],scheduler:plb,clean:Dlb,playerHandler:null,flags:0};k=tea(0,null,null,1,0,null,null,null,null,null);f=Ld(null,k,d,w,null,null,e,a,h,f,null);Ica(f);try{var y=this.componentDef,E=f[1];f[22]=q;var I=Md(E,22,2,"#host",null),N=I.mergedAttrs=y.hostAttrs;if(null!==N&&(Ud(I,N,!0),null!==q&&(Qc(a,q,N),null!==I.classes&&Lda(a,q,I.classes),null!==I.styles))){var L=I.styles;a.listen?a.setAttribute(q,"style",L):q.style.cssText=L}var S=e.createRenderer(q,
y),Y=Ld(f,qea(y),null,y.onPush?64:16,f[22],I,e,S,null,null,null);if(E.firstCreatePass){var ka=Wc(I,f);Vc(ka,E,y.type);zea(E,I);var ha=f.length;I.flags|=1;I.directiveStart=ha;I.directiveEnd=ha+1;I.providerIndexes=ha}Pd(f,Y);var ya=f[22]=Y;if(q)if(c)Qc(a,q,["ng-version",Elb.full]);else{var Ha=this.componentDef.selectors[0];c=[];y=[];E=1;for(I=2;E<Ha.length;){var Ja=Ha[E];if("string"===typeof Ja)2===I?""!==Ja&&c.push(Ja,Ha[++E]):8===I&&y.push(Ja);else{if(0!==(I&1))break;I=Ja}E++}c&&Qc(a,q,c);y&&0<y.length&&
Lda(a,q,y.join(" "))}var Ka=k.data[22];if(void 0!==b){var Ma=Ka.projection=[];for(Ha=0;Ha<this.ngContentSelectors.length;Ha++){var hb=b[Ha];Ma.push(null!=hb?Array.from(hb):null)}}var fb=Hea(ya,this.componentDef,f,d);Nd(k,f,null)}finally{Lca()}return new Rv(this.componentType,fb,od(Ka,f),f,Ka)};ki.Object.defineProperties(Pv.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){return Iea(this.componentDef.inputs)}},outputs:{configurable:!0,enumerable:!0,get:function(){return Iea(this.componentDef.outputs)}}});
var Rv=function(a,b,c,d,e){this.location=c;this._rootLView=d;this._tNode=e;this.instance=b;this.hostView=this.changeDetectorRef=new Nv(d);this.componentType=a};U(Rv,nlb);Rv.prototype.destroy=function(){this.hostView.destroy()};Rv.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};ki.Object.defineProperties(Rv.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new bd(this._tNode,this._rootLView)}}});
var Sv=function(a,b){this._parent=b;this._bootstrapComponents=[];this.injector=this;this.destroyCbs=[];this.componentFactoryResolver=new Glb(this);var c=(a[elb]||null).bootstrap;this._bootstrapComponents=c instanceof Function?c():c;this._r3Injector=fda(a,b,[{provide:Kv,useValue:this},{provide:Jv,useValue:this.componentFactoryResolver}],$b(a),new Set(["environment"]));gda(this._r3Injector);this.instance=this.get(a)};U(Sv,Kv);
Sv.prototype.get=function(a,b,c){b=void 0===b?Dv:b;return a===Hv||a===Kv||a===glb?this:this._r3Injector.get(a,b,void 0===c?0:c)};Sv.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};Sv.prototype.onDestroy=function(a){this.destroyCbs.push(a)};var Tv=function(a){this.moduleType=a};U(Tv,mlb);Tv.prototype.create=function(a){return new Sv(this.moduleType,a)};
var Ilb=new jd("Application Initializer"),Uv=function(a){var b=this;this.appInits=a;this.reject=this.resolve=Kea;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){b.resolve=c;b.reject=d})},Jlb=function(a){if(!a.initialized){var b=[];if(a.appInits)for(var c={},d=0;d<a.appInits.length;c={$jscomp$loop$prop$initResult$1598:c.$jscomp$loop$prop$initResult$1598},d++)if(c.$jscomp$loop$prop$initResult$1598=a.appInits[d](),Wd(c.$jscomp$loop$prop$initResult$1598))b.push(c.$jscomp$loop$prop$initResult$1598);
else if(Jea(c.$jscomp$loop$prop$initResult$1598)){var e=new Promise(function(f){return function(h,k){f.$jscomp$loop$prop$initResult$1598.subscribe({complete:h,error:k})}}(c));b.push(e)}Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});0===b.length&&(a.done=!0,a.resolve());a.initialized=!0}};Uv.\u0275fac=function(a){return new (a||Uv)(t(Ilb,8))};Uv.\u0275prov=ec({token:Uv,factory:Uv.\u0275fac,providedIn:"root"});
var Klb=new jd("AppId",{providedIn:"root",factory:Mea}),Qga=new jd("Platform Initializer"),Vv=new jd("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),Llb=new jd("appBootstrapListener");new jd("Application Packages Root URL");var Wv=new jd("AnimationModuleType");
var Xv=function(){};Xv.prototype.log=function(a){console.log(a)};Xv.prototype.warn=function(a){console.warn(a)};Xv.\u0275fac=function(a){return new (a||Xv)};Xv.\u0275prov=ec({token:Xv,factory:Xv.\u0275fac,providedIn:"platform"});
var Oea=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],["SMTWTFS".split(""),"Sun Mon Tue Wed Thu Fri Sat".split(" "),"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),"Su Mo Tu We Th Fr Sa".split(" ")],void 0,["JFMAMJJASOND".split(""),"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),"January February March April May June July August September October November December".split(" ")],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],". , ; % + - E \u00d7 \u2030 \u221e NaN :".split(" "),["#,##0.###","#,##0%","\u00a4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(a){var b=a.toString().replace(/^[^.]*\.?/,"").length;return 1===Math.floor(Math.abs(a))&&0===b?1:5}];
var Pea={};
var pi=new jd("LocaleId",{providedIn:"root",factory:function(){return t(pi,12)||("undefined"!==typeof Ut?"en-US":"undefined"!==typeof $localize&&$localize.locale||"en-US")}});new jd("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new jd("Translations");new jd("TranslationsFormat");
var Yv=function(){};Yv.prototype.getModuleId=function(){};Yv.\u0275fac=function(a){return new (a||Yv)};Yv.\u0275prov=ec({token:Yv,factory:Yv.\u0275fac,providedIn:"root"});new jd("compilerOptions");
var Qea=Promise.resolve(0);
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
var Mlb=!1,ee={Promise:void 0,set useDeprecatedSynchronousErrorHandling(a){a?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):Mlb&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Mlb=a},get useDeprecatedSynchronousErrorHandling(){return Mlb}};
var ue="function"===typeof Symbol&&Symbol.observable||"@@observable";
var Zv={closed:!0,next:function(){},error:function(a){if(ee.useDeprecatedSynchronousErrorHandling)throw a;Yd(a)},complete:function(){}};
var be=function(){function a(b){this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"";this.name="UnsubscriptionError";this.errors=b;return this}a.prototype=Object.create(Error.prototype);return a}();
var ke=Array.isArray||function(a){return a&&"number"===typeof a.length};
var ae=function(a){this.closed=!1;this._subscriptions=this._parentOrParents=null;a&&(this._ctorUnsubscribe=!0,this._unsubscribe=a)};
ae.prototype.unsubscribe=function(){if(!this.closed){var a=this._parentOrParents,b=this._ctorUnsubscribe,c=this._unsubscribe,d=this._subscriptions;this.closed=!0;this._subscriptions=this._parentOrParents=null;if(a instanceof ae)a.remove(this);else if(null!==a)for(var e=0;e<a.length;++e)a[e].remove(this);if(Zd(c)){b&&(this._unsubscribe=void 0);try{c.call(this)}catch(q){var f=q instanceof be?Tea(q.errors):[q]}}if(ke(d)){e=-1;for(var h=d.length;++e<h;){var k=d[e];if($d(k))try{k.unsubscribe()}catch(q){f=
f||[],q instanceof be?f=f.concat(Tea(q.errors)):f.push(q)}}}if(f)throw new be(f);}};
ae.prototype.add=function(a){var b=a;if(!a)return ae.EMPTY;switch(typeof a){case "function":b=new ae(a);case "object":if(b===this||b.closed||"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;b instanceof ae||(a=b,b=new ae,b._subscriptions=[a]);break;default:throw Error("ra`"+a);}var c=b._parentOrParents;if(null===c)b._parentOrParents=this;else if(c instanceof ae){if(c===this)return b;b._parentOrParents=[c,this]}else if(-1===c.indexOf(this))c.push(this);else return b;
a=this._subscriptions;null===a?this._subscriptions=[b]:a.push(b);return b};ae.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};var Nlb=new ae;Nlb.closed=!0;ae.EMPTY=Nlb;
var ce=function(a,b,c){ae.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=Zv;break;case 1:if(!a){this.destination=Zv;break}if("object"===typeof a){a instanceof ce?(this.syncErrorThrowable=a.syncErrorThrowable,this.destination=a,a.add(this)):(this.syncErrorThrowable=!0,this.destination=new $v(this,a));break}default:this.syncErrorThrowable=!0,this.destination=new $v(this,a,b,c)}};U(ce,ae);ce.EMPTY=ae.EMPTY;
ce.create=function(a,b,c){a=new ce(a,b,c);a.syncErrorThrowable=!1;return a};g=ce.prototype;g.next=function(a){this.isStopped||this._next(a)};g.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};g.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};g.unsubscribe=function(){this.closed||(this.isStopped=!0,ae.prototype.unsubscribe.call(this))};g._next=function(a){this.destination.next(a)};g._error=function(a){this.destination.error(a);this.unsubscribe()};
g._complete=function(){this.destination.complete();this.unsubscribe()};g._unsubscribeAndRecycle=function(){var a=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.isStopped=this.closed=!1;this._parentOrParents=a;return this};
var $v=function(a,b,c,d){ce.call(this);this._parentSubscriber=a;var e=this;if(Zd(b))var f=b;else b&&(f=b.next,c=b.error,d=b.complete,b!==Zv&&(e=Object.create(b),Sea(b)&&b.add(this.unsubscribe.bind(this)),e.unsubscribe=this.unsubscribe.bind(this)));this._context=e;this._next=f;this._error=c;this._complete=d};U($v,ce);$v.EMPTY=ce.EMPTY;$v.create=ce.create;g=$v.prototype;
g.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;ee.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}};
g.error=function(a){if(!this.isStopped){var b=this._parentSubscriber,c=ee.useDeprecatedSynchronousErrorHandling;if(this._error)c&&b.syncErrorThrowable?this.__tryOrSetError(b,this._error,a):this.__tryOrUnsub(this._error,a),this.unsubscribe();else if(b.syncErrorThrowable)c?(b.syncErrorValue=a,b.syncErrorThrown=!0):Yd(a),this.unsubscribe();else{this.unsubscribe();if(c)throw a;Yd(a)}}};
g.complete=function(){var a=this;if(!this.isStopped){var b=this._parentSubscriber;if(this._complete){var c=function(){return a._complete.call(a._context)};ee.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,c):this.__tryOrUnsub(c)}this.unsubscribe()}};g.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(c){this.unsubscribe();if(ee.useDeprecatedSynchronousErrorHandling)throw c;Yd(c)}};
g.__tryOrSetError=function(a,b,c){if(!ee.useDeprecatedSynchronousErrorHandling)throw Error("sa");try{b.call(this._context,c)}catch(d){return ee.useDeprecatedSynchronousErrorHandling?(a.syncErrorValue=d,a.syncErrorThrown=!0):Yd(d),!0}return!1};g._unsubscribe=function(){var a=this._parentSubscriber;this._parentSubscriber=this._context=null;a.unsubscribe()};
var aw=function(a){ce.call(this);this.destination=a};U(aw,ce);aw.EMPTY=ce.EMPTY;aw.create=ce.create;
var fe=function(a){a&&(this._subscribe=a)};g=fe.prototype;g.lift=function(a){var b=new fe;b.source=this;b.operator=a;return b};
g.subscribe=function(a,b,c){var d=this.operator;a:{if(a){if(a instanceof ce||Wea(a)&&Sea(a))break a;if(Wea(a)){a=new aw(a);break a}}a=a||b||c?new ce(a,b,c):new ce(Zv)}d?a.add(d.call(a,this.source)):a.add(this.source||ee.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(ee.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){ee.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),Uea(a)?a.error(b):console.warn(b)}};g.forEach=function(a,b){var c=this;b=Xea(b);return new b(function(d,e){var f=c.subscribe(function(h){try{a(h)}catch(k){e(k),f&&f.unsubscribe()}},e,d)})};g._subscribe=function(a){var b=this.source;return b&&b.subscribe(a)};fe.prototype[ue]=function(){return this};
fe.prototype.pipe=function(){var a=oc.apply(0,arguments);return 0===a.length?this:Vea(a)(this)};fe.create=function(a){return new fe(a)};
var bw=function(a,b){ae.call(this);this.subject=a;this.subscriber=b;this.closed=!1};U(bw,ae);bw.EMPTY=ae.EMPTY;bw.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,b=a.observers;this.subject=null;!b||0===b.length||a.isStopped||a.closed||(a=b.indexOf(this.subscriber),-1!==a&&b.splice(a,1))}};
var cw=function(){function a(){this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Se=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};U(Se,fe);g=Se.prototype;g.lift=function(a){var b=new dw(this,this);b.operator=a;return b};g.next=function(a){if(this.closed)throw new cw;if(!this.isStopped){var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].next(a)}};
g.error=function(a){if(this.closed)throw new cw;this.hasError=!0;this.thrownError=a;this.isStopped=!0;var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].error(a);this.observers.length=0};g.complete=function(){if(this.closed)throw new cw;this.isStopped=!0;var a=this.observers,b=a.length;a=a.slice();for(var c=0;c<b;c++)a[c].complete();this.observers.length=0};g.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};
g._trySubscribe=function(a){if(this.closed)throw new cw;return fe.prototype._trySubscribe.call(this,a)};g._subscribe=function(a){if(this.closed)throw new cw;if(this.hasError)return a.error(this.thrownError),ae.EMPTY;if(this.isStopped)return a.complete(),ae.EMPTY;this.observers.push(a);return new bw(this,a)};var Olb=function(a){var b=new fe;b.source=a;return b};
ki.Object.defineProperties(Se.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return 0<(null==(a=this.observers)?void 0:a.length)}}});Se.create=function(a,b){return new dw(a,b)};var dw=function(a,b){Se.call(this);this.destination=a;this.source=b};U(dw,Se);dw.create=Se.create;dw.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};dw.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};
dw.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};dw.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):ae.EMPTY};
var le=function(){Se.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1};U(le,Se);le.create=Se.create;le.prototype._subscribe=function(a){return this.hasError?(a.error(this.thrownError),ae.EMPTY):this.hasCompleted&&this.hasNext?(a.next(this.value),a.complete(),ae.EMPTY):Se.prototype._subscribe.call(this,a)};le.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)};le.prototype.error=function(a){this.hasCompleted||Se.prototype.error.call(this,a)};
le.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&Se.prototype.next.call(this,this.value);Se.prototype.complete.call(this)};
var ew=function(a){Se.call(this);this._value=a};U(ew,Se);ew.create=Se.create;ew.prototype._subscribe=function(a){var b=Se.prototype._subscribe.call(this,a);b&&!b.closed&&a.next(this._value);return b};ew.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new cw;return this._value};ew.prototype.next=function(a){Se.prototype.next.call(this,this._value=a)};ki.Object.defineProperties(ew.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});
var Be=new fe(function(a){return a.complete()});
var $ea=function(a){return function(b){for(var c=0,d=a.length;c<d&&!b.closed;c++)b.next(a[c]);b.complete()}};
var Plb=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a};Plb.prototype.observe=function(a){switch(this.kind){case "N":var b;null==(b=a.next)||b.call(a,this.value);break;case "E":var c;null==(c=a.error)||c.call(a,this.error);break;case "C":var d;null==(d=a.complete)||d.call(a)}};
Plb.prototype.accept=function(a,b,c){if(a&&"function"===typeof a.next)a=this.observe(a);else{switch(this.kind){case "N":null==a||a(this.value);break;case "E":null==b||b(this.error);break;case "C":null==c||c()}a=void 0}return a};
var fw={now:function(){return(fw.delegate||Date).now()},delegate:void 0};
var Re=function(a,b,c){a=void 0===a?Infinity:a;b=void 0===b?Infinity:b;c=void 0===c?fw:c;Se.call(this);this.timestampProvider=c;this._events=[];this._infiniteTimeWindow=!1;this._bufferSize=1>a?1:a;this._windowTime=1>b?1:b;Infinity===b?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow};U(Re,Se);Re.create=Se.create;g=Re.prototype;
g.nextInfiniteTimeWindow=function(a){var b=this._events;b.push(a);b.length>this._bufferSize&&b.shift();Se.prototype.next.call(this,a)};g.nextTimeWindow=function(a){this._events.push({time:this._getNow(),value:a});this._trimBufferThenGetEvents();Se.prototype.next.call(this,a)};
g._subscribe=function(a){var b=this._infiniteTimeWindow,c=b?this._events:this._trimBufferThenGetEvents(),d=c.length;if(this.closed)throw new cw;if(this.isStopped||this.hasError)var e=ae.EMPTY;else this.observers.push(a),e=new bw(this,a);if(b)for(var f=0;f<d&&!a.closed;f++)a.next(c[f]);else for(f=0;f<d&&!a.closed;f++)a.next(c[f].value);this.hasError?a.error(this.thrownError):this.isStopped&&a.complete();return e};g._getNow=function(){var a=this.timestampProvider;return a?a.now():fw.now()};
g._trimBufferThenGetEvents=function(){for(var a=this._getNow(),b=this._bufferSize,c=this._windowTime,d=this._events,e=d.length,f=0;f<e&&!(a-d[f].time<c);)f++;e>b&&(f=Math.max(f,e-b));0<f&&d.splice(0,f);return d};
var gw=function(a,b){b=void 0===b?Qlb:b;this.SchedulerAction=a;this.now=b};gw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return(new this.SchedulerAction(this,a)).schedule(c,b)};var Qlb=fw.now;
var Ne=function(){function a(){this.message="no elements in sequence";this.name="EmptyError";return this}a.prototype=Object.create(Error.prototype);return a}();
var cfa=function(){};cfa.prototype.call=function(a,b){b._refCount++;a=new hw(a,b);var c=b.subscribe(a);a.closed||(a.connection=b.connect());return c};var hw=function(a,b){ce.call(this,a);this.connectable=b;this.connection=null};U(hw,ce);hw.EMPTY=ce.EMPTY;hw.create=ce.create;
hw.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._refCount;0>=b?this.connection=null:(a._refCount=b-1,1<b?this.connection=null:(b=this.connection,a=a._connection,this.connection=null,!a||b&&a!==b||a.unsubscribe()))}else this.connection=null};
var iw=function(a,b){this.source=a;this.subjectFactory=b;this._refCount=0;this._isComplete=!1};U(iw,fe);iw.create=fe.create;iw.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};iw.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};
iw.prototype.connect=function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new ae,a.add(this.source.subscribe(new jw(this.getSubject(),this))),a.closed&&(this._connection=null,a=ae.EMPTY));return a};iw.prototype.refCount=function(){return je()(this)};var zga,kw=iw.prototype;
zga={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:kw._subscribe},_isComplete:{value:kw._isComplete,writable:!0},getSubject:{value:kw.getSubject},connect:{value:kw.connect},refCount:{value:kw.refCount}};var jw=function(a,b){ce.call(this);this.destination=a;this.connectable=b};U(jw,ce);jw.EMPTY=ce.EMPTY;jw.create=ce.create;
jw.prototype._error=function(a){this._unsubscribe();ce.prototype._error.call(this,a)};jw.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();ce.prototype._complete.call(this)};jw.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._connection;a._refCount=0;a._subject=null;a._connection=null;b&&b.unsubscribe()}};
var dfa=function(a){this.project=a;this.thisArg=void 0};dfa.prototype.call=function(a,b){return b.subscribe(new lw(a,this.project,this.thisArg))};var lw=function(a,b,c){ce.call(this,a);this.project=b;this.count=0;this.thisArg=c||this};U(lw,ce);lw.EMPTY=ce.EMPTY;lw.create=ce.create;lw.prototype._next=function(a){try{var b=this.project.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var te="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";
var tfa=function(a){return a&&"number"===typeof a.length&&"function"!==typeof a};
var Rlb=function(a){return function(b){var c=a[te]();do{var d=void 0;try{d=c.next()}catch(e){b.error(e);return}if(d.done){b.complete();break}b.next(d.value);if(b.closed)break}while(1);"function"===typeof c.return&&b.add(function(){c.return&&c.return()});return b}};
var Slb=function(a){return function(b){var c=a[ue]();if("function"!==typeof c.subscribe)throw new TypeError("wa");return c.subscribe(b)}};
var Tlb=function(a){return function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,Yd);return b}};
var pe=function(a){if(a&&"function"===typeof a[ue])return Slb(a);if(tfa(a))return $ea(a);if(lfa(a))return Tlb(a);if(a&&"function"===typeof a[te])return Rlb(a);if(Symbol&&Symbol.asyncIterator&&a&&"function"===typeof a[Symbol.asyncIterator])return nfa(a);throw new TypeError("xa`"+($d(a)?"an invalid object":"'"+a+"'"));};
var mw=function(a){ce.call(this);this.parent=a};U(mw,ce);mw.EMPTY=ce.EMPTY;mw.create=ce.create;mw.prototype._next=function(a){this.parent.notifyNext(a)};mw.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};mw.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};var nw=function(a,b,c){ce.call(this);this.parent=a;this.outerValue=b;this.outerIndex=c};U(nw,ce);nw.EMPTY=ce.EMPTY;nw.create=ce.create;
nw.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex)};nw.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};nw.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};var ow=function(){ce.apply(this,arguments)};U(ow,ce);ow.EMPTY=ce.EMPTY;ow.create=ce.create;ow.prototype.notifyNext=function(a){this.destination.next(a)};ow.prototype.notifyError=function(a){this.destination.error(a)};
ow.prototype.notifyComplete=function(){this.destination.complete()};var pw=function(){ce.apply(this,arguments)};U(pw,ce);pw.EMPTY=ce.EMPTY;pw.create=ce.create;pw.prototype.notifyNext=function(a,b){this.destination.next(b)};pw.prototype.notifyError=function(a){this.destination.error(a)};pw.prototype.notifyComplete=function(){this.destination.complete()};
var Ulb={},Vlb=function(a,b){this.resultSelector=a;this.keys=b};Vlb.prototype.call=function(a,b){return b.subscribe(new qw(a,this.resultSelector,this.keys))};var qw=function(a,b,c){pw.call(this,a);this.resultSelector=b;this.keys=c;this.active=0;this.values=[];this.observables=[]};U(qw,pw);qw.EMPTY=pw.EMPTY;qw.create=pw.create;g=qw.prototype;g._next=function(a){this.values.push(Ulb);this.observables.push(a)};
g._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{this.toRespond=this.active=b;for(var c=0;c<b;c++)this.add(se(a[c],new nw(this,null,c)))}};g.notifyComplete=function(){0===--this.active&&this.destination.complete()};
g.notifyNext=function(a,b,c){var d=this.values,e=d[c];e=this.toRespond?e===Ulb?--this.toRespond:this.toRespond:0;d[c]=b;0===e&&(this.resultSelector?this._tryResultSelector(d):this.destination.next(this.keys?this.keys.reduce(function(f,h,k){return f[h]=d[k],f},{}):d.slice()))};g._tryResultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var vfa=function(a,b){b=void 0===b?Infinity:b;this.project=a;this.concurrent=b};vfa.prototype.call=function(a,b){return b.subscribe(new rw(a,this.project,this.concurrent))};var rw=function(a,b,c){c=void 0===c?Infinity:c;ow.call(this,a);this.destination=a;this.project=b;this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0};U(rw,ow);rw.EMPTY=ow.EMPTY;rw.create=ow.create;
rw.prototype._next=function(a){if(this.active<this.concurrent){var b=this.index++;try{var c=this.project(a,b)}catch(d){this.destination.error(d);return}this.active++;a=new mw(this);this.destination.add(a);se(c,a)}else this.buffer.push(a)};rw.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete();this.unsubscribe()};rw.prototype.notifyNext=function(a){this.destination.next(a)};
rw.prototype.notifyComplete=function(){var a=this.buffer;this.active--;0<a.length?this._next(a.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};
var xfa={now:function(){return(xfa.delegate||performance).now()},delegate:void 0};
var yfa=function(a){var b=requestAnimationFrame,c=cancelAnimationFrame;Wlb&&(b=Wlb.requestAnimationFrame,c=Wlb.cancelAnimationFrame);var d=b(function(e){c=void 0;a(e)});return new ae(function(){var e;return null==(e=c)?void 0:e(d)})},Wlb=void 0;
var Xlb=zfa();
var sw=function(){ae.call(this)};U(sw,ae);sw.EMPTY=ae.EMPTY;sw.prototype.schedule=function(){return this};
var tw=function(a,b){ae.call(this);this.scheduler=a;this.work=b;this.pending=!1};U(tw,sw);tw.EMPTY=sw.EMPTY;g=tw.prototype;g.schedule=function(a,b){b=void 0===b?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;null!=a&&(this.id=this.recycleAsyncId(c,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};g.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return setInterval(a.flush.bind(a,this),c)};
g.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&this.delay===c&&!1===this.pending)return b;clearInterval(b)};g.execute=function(a,b){if(this.closed)return Error("Ba");this.pending=!1;if(a=this._execute(a,b))return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};g._execute=function(a){var b=!1,c=void 0;try{this.work(a)}catch(d){b=!0,c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
g._unsubscribe=function(){var a=this.id,b=this.scheduler,c=b.actions,d=c.indexOf(this);this.state=this.work=null;this.pending=!1;this.scheduler=null;-1!==d&&c.splice(d,1);null!=a&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null};
var uw=function(a,b){b=void 0===b?Qlb:b;gw.call(this,a,function(){return uw.delegate&&uw.delegate!==c?uw.delegate.now():b()});var c=this;this.actions=[];this.active=!1;this.scheduled=void 0};U(uw,gw);uw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return uw.delegate&&uw.delegate!==this?uw.delegate.schedule(a,b,c):gw.prototype.schedule.call(this,a,b,c)};
uw.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c;}}};
var Ee=new uw(tw);
var Ylb=new fe(Ae);
var Ifa=function(a,b){this.predicate=a;this.thisArg=b};Ifa.prototype.call=function(a,b){return b.subscribe(new vw(a,this.predicate,this.thisArg))};var vw=function(a,b,c){ce.call(this,a);this.predicate=b;this.thisArg=c;this.count=0};U(vw,ce);vw.EMPTY=ce.EMPTY;vw.create=ce.create;vw.prototype._next=function(a){try{var b=this.predicate.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}b&&this.destination.next(a)};
var Zlb=function(){};Zlb.prototype.call=function(a,b){return b.subscribe(new ww(a))};var ww=function(a){pw.call(this,a);this.hasFirst=!1;this.observables=[];this.subscriptions=[]};U(ww,pw);ww.EMPTY=pw.EMPTY;ww.create=pw.create;g=ww.prototype;g._next=function(a){this.observables.push(a)};
g._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{for(var c=0;c<b&&!this.hasFirst;c++){var d=se(a[c],new nw(this,null,c));this.subscriptions&&this.subscriptions.push(d);this.add(d)}this.observables=null}};g.notifyNext=function(a,b,c){if(!this.hasFirst){this.hasFirst=!0;for(var d=0;d<this.subscriptions.length;d++)if(d!==c){var e=this.subscriptions[d];e.unsubscribe();this.remove(e)}this.subscriptions=null}this.destination.next(b)};
g.notifyComplete=function(a){this.hasFirst=!0;pw.prototype.notifyComplete.call(this,a)};g.notifyError=function(a){this.hasFirst=!0;pw.prototype.notifyError.call(this,a)};
var $lb=function(a){this.resultSelector=a};$lb.prototype.call=function(a,b){return b.subscribe(new xw(a,this.resultSelector))};var xw=function(a,b,c){void 0===c&&Object.create(null);ce.call(this,a);this.iterators=[];this.active=0;this.resultSelector=b};U(xw,ce);xw.EMPTY=ce.EMPTY;xw.create=ce.create;xw.prototype._next=function(a){var b=this.iterators;ke(a)?b.push(new yw(a)):"function"===typeof a[te]?b.push(new zw(a[te]())):b.push(new Aw(this.destination,this,a))};
xw.prototype._complete=function(){var a=this.iterators,b=a.length;this.unsubscribe();if(0===b)this.destination.complete();else{this.active=b;for(var c=0;c<b;c++){var d=a[c];d.stillUnsubscribed?this.destination.add(d.subscribe()):this.active--}}};xw.prototype._tryresultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var zw=function(a){this.iterator=a;this.nextResult=a.next()};zw.prototype.hasValue=function(){return!0};
zw.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};zw.prototype.hasCompleted=function(){var a=this.nextResult;return a&&!!a.done};var yw=function(a){this.array=a;this.length=this.index=0;this.length=a.length};yw.prototype[te]=function(){return this};yw.prototype.next=function(){var a=this.index++,b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};yw.prototype.hasValue=function(){return this.array.length>this.index};
yw.prototype.hasCompleted=function(){return this.array.length===this.index};var Aw=function(a,b,c){ow.call(this,a);this.parent=b;this.observable=c;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1};U(Aw,ow);Aw.EMPTY=ow.EMPTY;Aw.create=ow.create;Aw.prototype[te]=function(){return this};g=Aw.prototype;g.next=function(){var a=this.buffer;return 0===a.length&&this.isComplete?{value:null,done:!0}:{value:a.shift(),done:!1}};g.hasValue=function(){return 0<this.buffer.length};
g.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete};g.notifyComplete=function(){if(0<this.buffer.length){this.isComplete=!0;var a=this.parent;a.active--;0===a.active&&a.destination.complete()}else this.destination.complete()};
g.notifyNext=function(a){this.buffer.push(a);a:{a=this.parent;for(var b=a.iterators,c=b.length,d=a.destination,e=0;e<c;e++){var f=b[e];if("function"===typeof f.hasValue&&!f.hasValue())break a}e=!1;f=[];for(var h=0;h<c;h++){var k=b[h],q=k.next();k.hasCompleted()&&(e=!0);if(q.done){d.complete();break a}f.push(q.value)}a.resultSelector?a._tryresultSelector(f):d.next(f);e&&d.complete()}};g.subscribe=function(){return se(this.observable,new mw(this))};
var Bw=function(a,b,c){this.key=a;this.groupSubject=b;this.refCountSubscription=c};U(Bw,fe);Bw.create=fe.create;Bw.prototype._subscribe=function(a){var b=new ae,c=this.refCountSubscription,d=this.groupSubject;c&&!c.closed&&b.add(new Cw(c));b.add(d.subscribe(a));return b};var Cw=function(a){ae.call(this);this.parent=a;a.count++};U(Cw,ae);Cw.EMPTY=ae.EMPTY;
Cw.prototype.unsubscribe=function(){var a=this.parent;a.closed||this.closed||(ae.prototype.unsubscribe.call(this),--a.count,0===a.count&&a.attemptedToUnsubscribe&&a.unsubscribe())};
var Qfa=function(){function a(b){this.message="Timeout has occurred";this.name="TimeoutError";this.info=void 0===b?null:b;return this}a.prototype=Object.create(Error.prototype);return a}(),Pfa=function(a,b,c,d,e){this.first=a;this.each=b;this._with=c;this.scheduler=d;this.meta=e};Pfa.prototype.call=function(a,b){return b.subscribe(new Dw(a,this.first,this.each,this._with,this.scheduler,this.meta))};
var Dw=function(a,b,c,d,e,f){ow.call(this,a);this.each=c;this._with=d;this.scheduler=e;this.meta=f;this.seen=0;a=null!=b?"number"===typeof b?b:+b-e.now():c;amb(this,a)};U(Dw,ow);Dw.EMPTY=ow.EMPTY;Dw.create=ow.create;var amb=function(a,b){a._timerSubscription=a.scheduler.schedule(function(){var c=a.meta,d=a.seen,e=void 0===a.lastValue?null:a.lastValue;try{var f=a._with({meta:c,seen:d,lastValue:e})}catch(h){a.destination.error(h);return}a._unsubscribeAndRecycle();a.add(se(f,new mw(a)))},b);a.add(a._timerSubscription)};
Dw.prototype._next=function(a){var b=this.each,c;null==(c=this._timerSubscription)||c.unsubscribe();this.seen++;this.lastValue=a;null!=b&&amb(this,b);ow.prototype._next.call(this,a)};
var bmb=function(a,b){a=void 0===a?Ew:a;b=void 0===b?Infinity:b;uw.call(this,a,function(){return c.frame});var c=this;this.maxFrames=b;this.frame=0;this.index=-1};U(bmb,uw);bmb.prototype.flush=function(){for(var a=this.actions,b=this.maxFrames,c,d;(d=a[0])&&d.delay<=b&&!(a.shift(),this.frame=d.delay,c=d.execute(d.state,d.delay)););if(c){for(;d=a.shift();)d.unsubscribe();throw c;}};
var Ew=function(a,b,c){c=void 0===c?a.index+=1:c;tw.call(this,a,b);this.scheduler=a;this.work=b;this.index=c;this.active=!0;this.index=a.index=c};U(Ew,tw);Ew.EMPTY=tw.EMPTY;Ew.prototype.schedule=function(a,b){b=void 0===b?0:b;if(Number.isFinite(b)){if(!this.id)return tw.prototype.schedule.call(this,a,b);this.active=!1;var c=new Ew(this.scheduler,this.work);this.add(c);return c.schedule(a,b)}return ae.EMPTY};
Ew.prototype.requestAsyncId=function(a,b,c){this.delay=a.frame+(void 0===c?0:c);a=a.actions;a.push(this);a.sort(cmb);return!0};Ew.prototype.recycleAsyncId=function(){};Ew.prototype._execute=function(a,b){if(!0===this.active)return tw.prototype._execute.call(this,a,b)};var cmb=function(a,b){return a.delay===b.delay?a.index===b.index?0:a.index>b.index?1:-1:a.delay>b.delay?1:-1};
var Fw=function(a,b){tw.call(this,a,b);this.scheduler=a;this.work=b};U(Fw,tw);Fw.EMPTY=tw.EMPTY;Fw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return tw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=requestAnimationFrame(function(){return a.flush(void 0)}))};
Fw.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return tw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(cancelAnimationFrame(b),a.scheduled=void 0)};
var dmb=function(){uw.apply(this,arguments)};U(dmb,uw);dmb.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,d=-1;a=a||b.shift();var e=b.length;do if(c=a.execute(a.state,a.delay))break;while(++d<e&&(a=b.shift()));this.active=!1;if(c){for(;++d<e&&(a=b.shift());)a.unsubscribe();throw c;}};
var emb=new dmb(Fw);
var fmb=1,gmb,Rfa={},hmb=function(a){var b=fmb++;Rfa[b]=!0;gmb||(gmb=Promise.resolve());gmb.then(function(){return Sfa(b)&&a()});return b};
var Gw=function(a,b){tw.call(this,a,b);this.scheduler=a;this.work=b};U(Gw,tw);Gw.EMPTY=tw.EMPTY;Gw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return tw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=hmb(a.flush.bind(a,void 0)))};
Gw.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return tw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(Sfa(b),a.scheduled=void 0)};
var imb=function(){uw.apply(this,arguments)};U(imb,uw);imb.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,d=-1;a=a||b.shift();var e=b.length;do if(c=a.execute(a.state,a.delay))break;while(++d<e&&(a=b.shift()));this.active=!1;if(c){for(;++d<e&&(a=b.shift());)a.unsubscribe();throw c;}};
var jmb=new imb(Gw);
var Hw=function(a,b){tw.call(this,a,b);this.scheduler=a;this.work=b};U(Hw,tw);Hw.EMPTY=tw.EMPTY;Hw.prototype.schedule=function(a,b){b=void 0===b?0:b;if(0<b)return tw.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};Hw.prototype.execute=function(a,b){return 0<b||this.closed?tw.prototype.execute.call(this,a,b):this._execute(a,b)};
Hw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return null!==c&&0<c||null===c&&0<this.delay?tw.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};
var kmb=function(){uw.apply(this,arguments)};U(kmb,uw);
var lmb=new kmb(Hw);
var mmb=function(){function a(){this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}a.prototype=Object.create(Error.prototype);return a}();
var nmb=function(){function a(b){this.message=b;this.name="NotFoundError";return this}a.prototype=Object.create(Error.prototype);return a}();
var omb=function(){function a(b){this.message=b;this.name="SequenceError";return this}a.prototype=Object.create(Error.prototype);return a}();
var T={};T.Observable=fe;T.ConnectableObservable=iw;T.GroupedObservable=Bw;T.observable=ue;T.animationFrames=function(a){return a?zfa(a):Xlb};T.Subject=Se;T.BehaviorSubject=ew;T.ReplaySubject=Re;T.AsyncSubject=le;T.asap=jmb;T.asapScheduler=jmb;T.async=Ee;T.asyncScheduler=Ee;T.queue=lmb;T.queueScheduler=lmb;T.animationFrame=emb;T.animationFrameScheduler=emb;T.VirtualTimeScheduler=bmb;T.VirtualAction=Ew;T.Scheduler=gw;T.Subscription=ae;T.Subscriber=ce;T.Notification=Plb;
T.NotificationKind={NEXT:"N",ERROR:"E",COMPLETE:"C"};T.pipe=function(){return Vea(oc.apply(0,arguments))};T.noop=Ae;T.identity=de;T.isObservable=function(a){return!!a&&(a instanceof fe||"function"===typeof a.lift&&"function"===typeof a.subscribe)};T.lastValueFrom=function(a){return new Promise(function(b,c){var d=!1,e;a.subscribe({next:function(f){e=f;d=!0},error:c,complete:function(){d?b(e):c(new Ne)}})})};
T.firstValueFrom=function(a){return new Promise(function(b,c){var d=new ae;d.add(a.subscribe({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Ne)}}))})};T.ArgumentOutOfRangeError=mmb;T.EmptyError=Ne;T.NotFoundError=nmb;T.ObjectUnsubscribedError=cw;T.SequenceError=omb;T.TimeoutError=Qfa;T.UnsubscriptionError=be;T.bindCallback=efa;T.bindNodeCallback=hfa;
T.combineLatest=function(){var a=oc.apply(0,arguments),b=void 0,c=void 0,d=void 0;he(a[a.length-1])&&(c=a.pop());"function"===typeof a[a.length-1]&&(b=a.pop());if(1===a.length){var e=a[0];ke(e)&&(a=e);$d(e)&&Object.getPrototypeOf(e)===Object.prototype&&(d=Object.keys(e),a=d.map(function(f){return e[f]}))}return ie(ge(a,c),new Vlb(b,d))};T.concat=ye;T.defer=wfa;T.empty=function(a){return a?Yea(a):Be};
T.forkJoin=function(){var a=oc.apply(0,arguments);if(1===a.length){var b=a[0];if(ke(b))return ze(b,null);if($d(b)&&Object.getPrototypeOf(b)===Object.prototype)return a=Object.keys(b),ze(a.map(function(d){return b[d]}),a)}if("function"===typeof a[a.length-1]){var c=a.pop();a=1===a.length&&ke(a[0])?a[0]:a;return ze(a,null).pipe(C(function(d){return c.apply(null,u(d))}))}return ze(a,null)};T.from=ve;T.fromEvent=Afa;T.fromEventPattern=Cfa;
T.generate=function(a,b,c,d,e){if(1==arguments.length){var f=a.initialState;b=a.condition;c=a.iterate;var h=a.resultSelector||de;e=a.scheduler}else void 0===d||he(d)?(f=a,h=de,e=d):(f=a,h=d);return new fe(function(k){var q=f;if(e)return e.schedule(Dfa,0,{subscriber:k,iterate:c,condition:b,resultSelector:h,state:q});do{if(b){var w=void 0;try{w=b(q)}catch(y){k.error(y);break}if(!w){k.complete();break}}w=void 0;try{w=h(q)}catch(y){k.error(y);break}k.next(w);if(k.closed)break;try{q=c(q)}catch(y){k.error(y);
break}}while(1)})};T.iif=function(a,b){var c=(0,T.of)(!1);b=void 0===b?Be:b;c=void 0===c?Be:c;return wfa(function(){return a()?b:c})};T.interval=function(a,b){a=void 0===a?0:a;b=void 0===b?Ee:b;if(!Efa(a)||0>a)a=0;b&&"function"===typeof b.schedule||(b=Ee);return new fe(function(c){c.add(b.schedule(Ffa,a,{subscriber:c,counter:0,period:a}));return c})};
T.merge=function(){var a=oc.apply(0,arguments),b=Infinity,c=void 0,d=a[a.length-1];he(d)?(c=a.pop(),1<a.length&&"number"===typeof a[a.length-1]&&(b=a.pop())):"number"===typeof d&&(b=a.pop());return!c&&1===a.length&&a[0]instanceof fe?a[0]:xe(b)(ge(a,c))};T.never=function(){return Ylb};T.of=afa;T.onErrorResumeNext=Gfa;
T.pairs=function(a,b){return b?new fe(function(c){var d=Object.keys(a),e=new ae;e.add(b.schedule(Hfa,0,{keys:d,index:0,subscriber:c,subscription:e,obj:a}));return e}):new fe(function(c){for(var d=Object.keys(a),e=0;e<d.length&&!c.closed;e++){var f=d[e];a.hasOwnProperty(f)&&c.next([f,a[f]])}c.complete()})};T.partition=function(a,b,c){return[De(b,c)(new fe(pe(a))),De(Jfa(b,c))(new fe(pe(a)))]};
T.race=function(){var a=oc.apply(0,arguments);if(1===a.length)if(ke(a[0]))a=a[0];else return ve(a[0]);return ie(ge(a),new Zlb)};T.range=function(a,b,c){a=void 0===a?0:a;return new fe(function(d){void 0===b&&(b=a,a=0);var e=0,f=a;if(c)return c.schedule(Kfa,0,{index:e,count:b,start:a,subscriber:d});do{if(e++>=b){d.complete();break}d.next(f++);if(d.closed)break}while(1)})};T.throwError=function(a,b){return b?new fe(function(c){return b.schedule(bfa,0,{error:a,subscriber:c})}):new fe(function(c){return c.error(a)})};
T.timer=Nfa;T.using=function(a,b){return new fe(function(c){try{var d=a()}catch(h){c.error(h);return}try{var e=b(d)}catch(h){c.error(h);return}var f=(e?ve(e):Be).subscribe(c);return function(){f.unsubscribe();d&&d.unsubscribe()}})};T.zip=function(){var a=oc.apply(0,arguments),b=void 0;"function"===typeof a[a.length-1]&&(b=a.pop());return ie(ge(a),new $lb(b))};T.scheduled=ufa;T.EMPTY=Be;T.NEVER=Ylb;T.config=ee;
var Iw=function(a){a=void 0===a?!1:a;T.Subject.call(this);this.__isAsync=a};U(Iw,T.Subject);Iw.create=T.Subject.create;Iw.prototype.emit=function(a){T.Subject.prototype.next.call(this,a)};
Iw.prototype.subscribe=function(a,b,c){var d=a;b=b||function(){return null};if(a&&"object"===typeof a){var e;d=null==(e=a.next)?void 0:e.bind(a);var f;b=null==(f=a.error)?void 0:f.bind(a);var h;c=null==(h=a.complete)?void 0:h.bind(a)}this.__isAsync&&(b=Tfa(b),d&&(d=Tfa(d)),c&&(c=Tfa(c)));d=T.Subject.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof T.Subscription&&a.add(d);return d};
var ef=function(a){var b=void 0===a.enableLongStackTrace?!1:a.enableLongStackTrace,c=void 0===a.shouldCoalesceEventChangeDetection?!1:a.shouldCoalesceEventChangeDetection;a=void 0===a.shouldCoalesceRunChangeDetection?!1:a.shouldCoalesceRunChangeDetection;this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new Iw(!1);this.onMicrotaskEmpty=new Iw(!1);this.onStable=new Iw(!1);this.onError=new Iw(!1);if("undefined"==typeof Zone)throw Error("Da");Zone.assertZonePatched();
this._nesting=0;this._outer=this._inner=Zone.current;Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec));b&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec));this.shouldCoalesceEventChangeDetection=!a&&c;this.shouldCoalesceRunChangeDetection=a;this.lastRequestAnimationFrameId=-1;b=sd.requestAnimationFrame;c=sd.cancelAnimationFrame;"undefined"!==typeof Zone&&b&&c&&((c=b[Zone.__symbol__("OriginalDelegate")])&&(b=c),Zone.__symbol__("OriginalDelegate"));
this.nativeRequestAnimationFrame=b;Xfa(this)},Jw=function(){return"undefined"!==typeof Zone&&!0===Zone.current.get("isAngularZone")};ef.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};ef.prototype.runTask=function(a,b,c){var d=this._inner;a=d.scheduleEventTask("NgZoneEvent: undefined",a,pmb,Kea,Kea);try{return d.runTask(a,b,c)}finally{d.cancelTask(a)}};ef.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};ef.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var pmb={},df=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new Iw;this.onMicrotaskEmpty=new Iw;this.onStable=new Iw;this.onError=new Iw};df.prototype.run=function(a,b,c){return a.apply(b,c)};df.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};df.prototype.runOutsideAngular=function(a){return a()};df.prototype.runTask=function(a,b,c){return a.apply(b,c)};
var Kw=function(a){var b=this;this._ngZone=a;this._pendingCount=0;this._isZoneStable=!0;this._didWork=!1;this._callbacks=[];this.taskTrackingZone=null;this._watchAngularEvents();a.run(function(){b.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})};
Kw.prototype._watchAngularEvents=function(){var a=this;this._ngZone.onUnstable.subscribe({next:function(){a._didWork=!0;a._isZoneStable=!1}});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.subscribe({next:function(){if(Jw())throw Error("Fa");Rea(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};Kw.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
Kw.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())Rea(function(){for(;0!==a._callbacks.length;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb(a._didWork)}a._didWork=!1});else{var b=qmb(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0});this._didWork=!0}};
var qmb=function(a){return a.taskTrackingZone?a.taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};Kw.prototype.addCallback=function(a,b,c){var d=this,e=-1;b&&0<b&&(e=setTimeout(function(){d._callbacks=d._callbacks.filter(function(f){return f.timeoutId!==e});a(d._didWork,qmb(d))},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
Kw.prototype.whenStable=function(a,b,c){if(c&&!this.taskTrackingZone)throw Error("Ga");this.addCallback(a,b,c);this._runCallbacksIfReady()};Kw.prototype.findProviders=function(){return[]};Kw.\u0275fac=function(a){return new (a||Kw)(t(ef))};Kw.\u0275prov=ec({token:Kw,factory:Kw.\u0275fac});var Lw=function(){this._applications=new Map;rmb.addToWindow(this)};Lw.prototype.findTestabilityInTree=function(a,b){return rmb.findTestabilityInTree(this,a,void 0===b?!0:b)};
Lw.\u0275fac=function(a){return new (a||Lw)};Lw.\u0275prov=ec({token:Lw,factory:Lw.\u0275fac,providedIn:"platform"});var smb=function(){};smb.prototype.addToWindow=function(){};smb.prototype.findTestabilityInTree=function(){return null};var rmb=new smb;
var Yfa=function(a){this.durationSelector=a};Yfa.prototype.call=function(a,b){return b.subscribe(new Mw(a,this.durationSelector))};var Mw=function(a,b){ow.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.throttled=null};U(Mw,ow);Mw.EMPTY=ow.EMPTY;Mw.create=ow.create;
Mw.prototype._next=function(a){this.value=a;this.hasValue=!0;if(!this.throttled){try{var b=this.durationSelector;var c=b(a)}catch(d){return this.destination.error(d)}a=se(c,new mw(this));!a||a.closed?tmb(this):this.add(this.throttled=a)}};var tmb=function(a){var b=a.value,c=a.hasValue,d=a.throttled;d&&(a.remove(d),a.throttled=null,d.unsubscribe());c&&(a.value=null,a.hasValue=!1,a.destination.next(b))};Mw.prototype.notifyNext=function(){tmb(this)};Mw.prototype.notifyComplete=function(){tmb(this)};
var $fa=function(a){this.closingNotifier=a};$fa.prototype.call=function(a,b){return b.subscribe(new Nw(a,this.closingNotifier))};var Nw=function(a,b){ow.call(this,a);this.buffer=[];this.add(se(b,new mw(this)))};U(Nw,ow);Nw.EMPTY=ow.EMPTY;Nw.create=ow.create;Nw.prototype._next=function(a){this.buffer.push(a)};Nw.prototype.notifyNext=function(){var a=this.buffer;this.buffer=[];this.destination.next(a)};
var bga=function(a){this.selector=a};bga.prototype.call=function(a,b){return b.subscribe(new Ow(a,this.selector,this.caught))};var Ow=function(a,b,c){ow.call(this,a);this.selector=b;this.caught=c};U(Ow,ow);Ow.EMPTY=ow.EMPTY;Ow.create=ow.create;Ow.prototype.error=function(a){if(!this.isStopped){try{var b=this.selector(a,this.caught)}catch(c){ow.prototype.error.call(this,c);return}this._unsubscribeAndRecycle();a=new mw(this);this.add(a);se(b,a)}};
var dga=function(a){this.durationSelector=a};dga.prototype.call=function(a,b){return b.subscribe(new Pw(a,this.durationSelector))};var Pw=function(a,b){ow.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.durationSubscription=null};U(Pw,ow);Pw.EMPTY=ow.EMPTY;Pw.create=ow.create;g=Pw.prototype;g._next=function(a){try{var b=this.durationSelector.call(this,a);b&&this._tryNext(a,b)}catch(c){this.destination.error(c)}};g._complete=function(){umb(this);this.destination.complete()};
g._tryNext=function(a,b){var c=this.durationSubscription;this.value=a;this.hasValue=!0;c&&(c.unsubscribe(),this.remove(c));(c=se(b,new mw(this)))&&!c.closed&&this.add(this.durationSubscription=c)};g.notifyNext=function(){umb(this)};g.notifyComplete=function(){umb(this)};var umb=function(a){if(a.hasValue){var b=a.value,c=a.durationSubscription;c&&(a.durationSubscription=null,c.unsubscribe(),a.remove(c));a.value=null;a.hasValue=!1;ow.prototype._next.call(a,b)}};
var fga=function(a,b){this.dueTime=a;this.scheduler=b};fga.prototype.call=function(a,b){return b.subscribe(new Qw(a,this.dueTime,this.scheduler))};var Qw=function(a,b,c){ce.call(this,a);this.dueTime=b;this.scheduler=c;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1};U(Qw,ce);Qw.EMPTY=ce.EMPTY;Qw.create=ce.create;Qw.prototype._next=function(a){vmb(this);this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(hga,this.dueTime,this))};
Qw.prototype._complete=function(){gga(this);this.destination.complete()};var gga=function(a){vmb(a);if(a.hasValue){var b=a.lastValue;a.lastValue=null;a.hasValue=!1;a.destination.next(b)}},vmb=function(a){var b=a.debouncedSubscription;null!==b&&(a.remove(b),b.unsubscribe(),a.debouncedSubscription=null)};
var iga=function(a){this.defaultValue=a};iga.prototype.call=function(a,b){return b.subscribe(new Rw(a,this.defaultValue))};var Rw=function(a,b){ce.call(this,a);this.defaultValue=b;this.isEmpty=!0};U(Rw,ce);Rw.EMPTY=ce.EMPTY;Rw.create=ce.create;Rw.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};Rw.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};
var kga=function(a,b){this.delay=a;this.scheduler=b};kga.prototype.call=function(a,b){return b.subscribe(new Sw(a,this.delay,this.scheduler))};var Sw=function(a,b,c){ce.call(this,a);this.destination=a;this.delay=b;this.scheduler=c;this.queue=[];this.active=!1};U(Sw,ce);Sw.EMPTY=ce.EMPTY;Sw.create=ce.create;
var wmb=function(a){for(var b=a.source,c=b.queue,d=a.scheduler,e=a.destination;0<c.length&&0>=c[0].time-d.now();)e.next(c.shift().value);0<c.length?(b=Math.max(0,c[0].time-d.now()),this.schedule(a,b)):(b.isStopped?b.destination.complete():this.unsubscribe(),b.active=!1)};Sw.prototype._schedule=function(a){this.active=!0;var b=this.destination;b.add(a.schedule(wmb,this.delay,{source:this,destination:b,scheduler:a}))};
Sw.prototype._next=function(a){var b=this.scheduler;a=new xmb(b.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(b)};Sw.prototype._error=function(a){this.queue.length=0;this.destination.error(a);this.unsubscribe()};Sw.prototype._complete=function(){0===this.queue.length&&this.destination.complete();this.unsubscribe()};var xmb=function(a,b){this.time=a;this.value=b};
var lga=function(a){this.compare=a;this.keySelector=void 0};lga.prototype.call=function(a,b){return b.subscribe(new Tw(a,this.compare,this.keySelector))};var Tw=function(a,b,c){ce.call(this,a);this.keySelector=c;this.hasKey=!1;"function"===typeof b&&(this.compare=b)};U(Tw,ce);Tw.EMPTY=ce.EMPTY;Tw.create=ce.create;Tw.prototype.compare=function(a,b){return a===b};
Tw.prototype._next=function(a){try{var b=this.keySelector;var c=b?b(a):a}catch(e){return this.destination.error(e)}b=!1;if(this.hasKey)try{var d=this.compare;b=d(this.key,c)}catch(e){return this.destination.error(e)}else this.hasKey=!0;b||(this.key=c,this.destination.next(a))};
var mga=function(){this.count=1};mga.prototype.call=function(a,b){return b.subscribe(new Uw(a,this.count))};var Uw=function(a,b){ce.call(this,a);this.count=b;this._valueCount=0};U(Uw,ce);Uw.EMPTY=ce.EMPTY;Uw.create=ce.create;Uw.prototype._next=function(a){var b=this.count,c=++this._valueCount;c<=b&&(this.destination.next(a),c===b&&(this.destination.complete(),this.unsubscribe()))};
var oga=function(a){this.errorFactory=a};oga.prototype.call=function(a,b){return b.subscribe(new Vw(a,this.errorFactory))};var Vw=function(a,b){ce.call(this,a);this.errorFactory=b;this.hasValue=!1};U(Vw,ce);Vw.EMPTY=ce.EMPTY;Vw.create=ce.create;Vw.prototype._next=function(a){this.hasValue=!0;this.destination.next(a)};Vw.prototype._complete=function(){if(this.hasValue)return this.destination.complete();try{var a=this.errorFactory()}catch(b){a=b}this.destination.error(a)};
var qga=function(a){this.callback=a};qga.prototype.call=function(a,b){a=b.subscribe(a);a.add(this.callback);return a};
var sga=function(){};sga.prototype.call=function(a,b){return b.subscribe(new Ww(a))};var Ww=function(){ce.apply(this,arguments)};U(Ww,ce);Ww.EMPTY=ce.EMPTY;Ww.create=ce.create;Ww.prototype._next=function(){};
var uga=function(){this.total=1};uga.prototype.call=function(a,b){return b.subscribe(new Xw(a,this.total))};var Xw=function(a,b){ce.call(this,a);this.total=b;this.ring=[];this.count=0};U(Xw,ce);Xw.EMPTY=ce.EMPTY;Xw.create=ce.create;Xw.prototype._next=function(a){var b=this.ring,c=this.total,d=this.count++;b.length<c?b.push(a):b[d%c]=a};
Xw.prototype._complete=function(){var a=this.destination,b=this.count;if(0<b)for(var c=this.count>=this.total?this.total:this.count,d=this.ring,e=0;e<c;e++){var f=b++%c;a.next(d[f])}a.complete()};
var xga=function(a){this.value=a};xga.prototype.call=function(a,b){return b.subscribe(new Yw(a,this.value))};var Yw=function(a,b){ce.call(this,a);this.value=b};U(Yw,ce);Yw.EMPTY=ce.EMPTY;Yw.create=ce.create;Yw.prototype._next=function(){this.destination.next(this.value)};
var yga=function(a,b,c){this.accumulator=a;this.seed=b;this.hasSeed=void 0===c?!1:c};yga.prototype.call=function(a,b){return b.subscribe(new Zw(a,this.accumulator,this.seed,this.hasSeed))};var Zw=function(a,b,c,d){ce.call(this,a);this.accumulator=b;this._state=c;this._hasState=d;this.index=0};U(Zw,ce);Zw.EMPTY=ce.EMPTY;Zw.create=ce.create;
Zw.prototype._next=function(a){var b=this.destination;if(this._hasState){var c=this.index++;try{var d=this.accumulator(this._state,a,c)}catch(e){b.error(e);return}this._state=d;b.next(d)}else this._state=a,this._hasState=!0,b.next(a)};
var Ega=function(a){this.total=a};Ega.prototype.call=function(a,b){return b.subscribe(new $w(a,this.total))};var $w=function(a,b){ce.call(this,a);this.total=b;this.count=0};U($w,ce);$w.EMPTY=ce.EMPTY;$w.create=ce.create;$w.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};
var Fga=function(a){this.project=a};Fga.prototype.call=function(a,b){return b.subscribe(new ax(a,this.project))};var ax=function(a,b){ow.call(this,a);this.destination=a;this.project=b;this.index=0};U(ax,ow);ax.EMPTY=ow.EMPTY;ax.create=ow.create;g=ax.prototype;g._next=function(a){var b=this.index++;try{var c=this.project(a,b)}catch(d){this.destination.error(d);return}(a=this.innerSubscription)&&a.unsubscribe();a=new mw(this);this.destination.add(a);this.innerSubscription=a;se(c,a)};
g._complete=function(){var a=this.innerSubscription;a&&!a.closed||ow.prototype._complete.call(this);this.unsubscribe()};g._unsubscribe=function(){this.innerSubscription=void 0};g.notifyComplete=function(){this.innerSubscription=void 0;this.isStopped&&ow.prototype._complete.call(this)};g.notifyNext=function(a){this.destination.next(a)};
var Hga=function(a){this.notifier=a};Hga.prototype.call=function(a,b){a=new bx(a);var c=se(this.notifier,new mw(a));return c&&!a.notifierHasNotified?(a.add(c),b.subscribe(a)):a};var bx=function(a){ow.call(this,a);this.notifierHasNotified=!1};U(bx,ow);bx.EMPTY=ow.EMPTY;bx.create=ow.create;bx.prototype.notifyNext=function(){this.notifierHasNotified=!0;this.complete()};bx.prototype.notifyComplete=function(){};
var Iga=function(a,b){this.predicate=a;this.inclusive=b};Iga.prototype.call=function(a,b){return b.subscribe(new cx(a,this.predicate,this.inclusive))};var cx=function(a,b,c){ce.call(this,a);this.predicate=b;this.inclusive=c;this.index=0};U(cx,ce);cx.EMPTY=ce.EMPTY;cx.create=ce.create;cx.prototype._next=function(a){var b=this.destination;try{var c=this.predicate(a,this.index++)}catch(d){b.error(d);return}b=this.destination;c?b.next(a):(this.inclusive&&b.next(a),b.complete())};
var Kga=function(a,b){this.nextOrObserver=a;this.error=b;this.complete=void 0};Kga.prototype.call=function(a,b){return b.subscribe(new dx(a,this.nextOrObserver,this.error,this.complete))};var dx=function(a,b,c,d){ce.call(this,a);this._tapComplete=this._tapError=this._tapNext=Ae;this._tapError=c||Ae;this._tapComplete=d||Ae;Zd(b)?(this._context=this,this._tapNext=b):b&&(this._context=b,this._tapNext=b.next||Ae,this._tapError=b.error||Ae,this._tapComplete=b.complete||Ae)};U(dx,ce);dx.EMPTY=ce.EMPTY;
dx.create=ce.create;dx.prototype._next=function(a){try{this._tapNext.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.next(a)};dx.prototype._error=function(a){try{this._tapError.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.error(a)};dx.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(a){this.destination.error(a);return}return this.destination.complete()};
var Lga={leading:!0,trailing:!1},Mga=function(a,b,c){this.durationSelector=a;this.leading=b;this.trailing=c};Mga.prototype.call=function(a,b){return b.subscribe(new ex(a,this.durationSelector,this.leading,this.trailing))};var ex=function(a,b,c,d){ow.call(this,a);this.destination=a;this.durationSelector=b;this._leading=c;this._trailing=d;this._sendValue=null;this._hasValue=!1};U(ex,ow);ex.EMPTY=ow.EMPTY;ex.create=ow.create;
ex.prototype._next=function(a){this._hasValue=!0;this._sendValue=a;this._throttled||(this._leading?this.send():ymb(this,a))};ex.prototype.send=function(){var a=this._sendValue;this._hasValue&&(this.destination.next(a),ymb(this,a));this._hasValue=!1;this._sendValue=null};var ymb=function(a,b){try{var c=a.durationSelector(b)}catch(d){a.destination.error(d);return}a.add(a._throttled=se(c,new mw(a)))},zmb=function(a){var b=a._throttled,c=a._trailing;b&&b.unsubscribe();a._throttled=null;c&&a.send()};
ex.prototype.notifyNext=function(){zmb(this)};ex.prototype.notifyComplete=function(){zmb(this)};
var Oga=function(a,b){this.observables=a;this.project=b};Oga.prototype.call=function(a,b){return b.subscribe(new fx(a,this.observables,this.project))};var fx=function(a,b,c){pw.call(this,a);this.project=c;this.toRespond=[];a=b.length;this.values=Array(a);for(c=0;c<a;c++)this.toRespond.push(c);for(c=0;c<a;c++)this.add(se(b[c],new nw(this,void 0,c)))};U(fx,pw);fx.EMPTY=pw.EMPTY;fx.create=pw.create;
fx.prototype.notifyNext=function(a,b,c){this.values[c]=b;b=this.toRespond;0<b.length&&(c=b.indexOf(c),-1!==c&&b.splice(c,1))};fx.prototype.notifyComplete=function(){};fx.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(u(this.values)),this.project?this._tryProject(a):this.destination.next(a))};fx.prototype._tryProject=function(a){try{var b=this.project.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var af=null,Pga=new jd("AllowMultipleToken"),Wga=new jd("PlatformOnDestroy"),Amb=function(a,b){this.name=a;this.token=b},bf=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},Bmb=function(a,b,c){var d=Xga(c?c.ngZone:void 0,{ngZoneEventCoalescing:c&&c.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:c&&c.ngZoneRunCoalescing||!1}),e=[{provide:ef,useValue:d}];return d.run(function(){var f=cf({providers:e,parent:a.injector,name:b.moduleType.name}),h=b.create(f),k=
h.injector.get(Td,null);if(!k)throw new ic(402,"");d.runOutsideAngular(function(){var q=d.onError.subscribe({next:function(w){k.handleError(w)}});h.onDestroy(function(){ff(a._modules,h);q.unsubscribe()})});return Yga(k,d,function(){var q=h.injector.get(Uv);Jlb(q);return q.donePromise.then(function(){var w=h.injector.get(pi,"en-US")||"en-US";if(null==w)throw Error("ja`Expected localeId to be defined` [Expected=> null != "+(w+" <=Actual]"));a._moduleDoBootstrap(h);return h})})})},Dmb=function(){var a=
Cmb(),b=gx;var c=void 0===c?[]:c;var d=Zga({},c);Promise.resolve(new Tv(b)).then(function(e){return Bmb(a,e,d)})};bf.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(hx);if(0<a._bootstrapComponents.length)a._bootstrapComponents.forEach(function(c){return b.bootstrap(c)});else if(a.instance.ngDoBootstrap)a.instance.ngDoBootstrap(b);else throw new ic(403,"");this._modules.push(a)};bf.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
bf.prototype.destroy=function(){if(this._destroyed)throw new ic(404,"");this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a;null==(a=this._injector.get(Wga,null))||a();this._destroyed=!0};ki.Object.defineProperties(bf.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
bf.\u0275fac=function(a){return new (a||bf)(t(Hv))};bf.\u0275prov=ec({token:bf,factory:bf.\u0275fac,providedIn:"platform"});
var hx=function(a,b,c,d){var e=this;this._zone=a;this._injector=b;this._exceptionHandler=c;this._initStatus=d;this._bootstrapListeners=[];this._views=[];this._runningTick=!1;this._stable=!0;this._destroyed=!1;this._destroyListeners=[];this.componentTypes=[];this.components=[];this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){e._zone.run(function(){Emb(e)})}});this.isStable=(0,T.merge)(new T.Observable(function(f){e._stable=e._zone.isStable&&!e._zone.hasPendingMacrotasks&&
!e._zone.hasPendingMicrotasks;e._zone.runOutsideAngular(function(){f.next(e._stable);f.complete()})}),(new T.Observable(function(f){var h;e._zone.runOutsideAngular(function(){h=e._zone.onStable.subscribe(function(){if(Jw())throw Error("Fa");Rea(function(){e._stable||e._zone.hasPendingMacrotasks||e._zone.hasPendingMicrotasks||(e._stable=!0,f.next(!0))})})});var k=e._zone.onUnstable.subscribe(function(){if(!Jw())throw Error("Ea");e._stable&&(e._stable=!1,e._zone.runOutsideAngular(function(){f.next(!1)}))});
return function(){h.unsubscribe();k.unsubscribe()}})).pipe(Te()))};
hx.prototype.bootstrap=function(a,b){var c=this;if(!this._initStatus.done)throw new ic(405,"");a=a instanceof olb?a:Qv(this._injector.get(Jv),a);this.componentTypes.push(a.componentType);var d=a.isBoundToModule?void 0:this._injector.get(Kv),e=a.create(jlb,[],b||a.selector,d),f=e.location.nativeElement,h=(b=e.injector.get(Kw,null))&&e.injector.get(Lw);b&&h&&h._applications.set(f,b);e.onDestroy(function(){c.detachView(e.hostView);ff(c.components,e);h&&h._applications.delete(f)});this._loadComponent(e);
return e};var Emb=function(a){if(a._runningTick)throw new ic(101,"");try{a._runningTick=!0;for(var b=r(a._views),c=b.next();!c.done;c=b.next())c.value.detectChanges()}catch(d){a._zone.runOutsideAngular(function(){return a._exceptionHandler.handleError(d)})}finally{a._runningTick=!1}},Fmb=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new ic(902,"");b._appRef=a};g=hx.prototype;
g.detachView=function(a){ff(this._views,a);a._appRef=null;var b=a._lView;xd(b[11],2,a._lView[1].firstChild,b,null,null,!1)};g._loadComponent=function(a){Fmb(this,a.hostView);Emb(this);this.components.push(a);this._injector.get(Llb,[]).concat(this._bootstrapListeners).forEach(function(b){return b(a)})};
g.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}};g.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return ff(b._destroyListeners,a)}};
g.destroy=function(){if(this._destroyed)throw new ic(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};ki.Object.defineProperties(hx.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},viewCount:{configurable:!0,enumerable:!0,get:function(){return this._views.length}}});hx.\u0275fac=function(a){return new (a||hx)(t(ef),t(Hv),t(Td),t(Uv))};hx.\u0275prov=ec({token:hx,factory:hx.\u0275fac,providedIn:"root"});
var Gmb=new jd("AnalyzeForEntryComponents");
var hf=null;
var lha=0,mha=0,nha=0;
var bg=function(a){this._emitDistinctChangesOnly=a=void 0===a?!1:a;this.dirty=!0;this._results=[];this._changesDetected=!1;this._changes=null;this.length=0;this.last=this.first=void 0;var b=jf(),c=bg.prototype;c[b]||(c[b]=Mha)};g=bg.prototype;g.get=function(a){return this._results[a]};g.map=function(a){return this._results.map(a)};g.filter=function(a){return this._results.filter(a)};g.find=function(a){return this._results.find(a)};g.reduce=function(a,b){return this._results.reduce(a,b)};
g.forEach=function(a){this._results.forEach(a)};g.some=function(a){return this._results.some(a)};g.toArray=function(){return this._results.slice()};g.toString=function(){return this._results.toString()};
g.reset=function(a,b){this.dirty=!1;a=$ca(a);a:{var c=this._results;if(c.length!==a.length)b=!1;else{for(var d=0;d<c.length;d++){var e=c[d],f=a[d];b&&(e=b(e),f=b(f));if(f!==e){b=!1;break a}}b=!0}}if(this._changesDetected=!b)this._results=a,this.length=a.length,this.last=a[this.length-1],this.first=a[0]};var Xf=function(a){!a._changes||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.emit(a)};bg.prototype.setDirty=function(){this.dirty=!0};
bg.prototype.destroy=function(){this.changes.complete();this.changes.unsubscribe()};ki.Object.defineProperties(bg.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){return this._changes||(this._changes=new Iw)}}});Symbol.iterator;
var Vf=function(){};Vf.__NG_ELEMENT_ID__=Nha;var Tf=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};U(Tf,Vf);Tf.__NG_ELEMENT_ID__=Vf.__NG_ELEMENT_ID__;
Tf.prototype.createEmbeddedView=function(a,b){var c=this._declarationTContainer.tViews;b=Ld(this._declarationLView,c,a,16,null,c.declTNode,null,null,null,null,b||null);b[17]=this._declarationLView[this._declarationTContainer.index];var d=this._declarationLView[19];null!==d&&(b[19]=d.createEmbeddedView(c));Nd(c,b,a);return new hg(b)};
var Wf=function(){};Wf.__NG_ELEMENT_ID__=Pha;var Uf=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};U(Uf,Wf);Uf.__NG_ELEMENT_ID__=Wf.__NG_ELEMENT_ID__;g=Uf.prototype;g.clear=function(){for(;0<this.length;)this.remove(this.length-1)};g.get=function(a){var b=this._lContainer[8];return null!==b&&b[a]||null};g.createEmbeddedView=function(a,b,c){if("number"===typeof c)var d=c;else if(null!=c){d=c.index;var e=c.injector}a=a.createEmbeddedView(b||{},e);this.insert(a,d);return a};
g.createComponent=function(a,b,c){var d=a&&"function"!==typeof a;if(!d){var e=b||{};b=e.index;c=e.injector;var f=e.projectableNodes;e=e.environmentInjector||e.ngModuleRef}a=d?a:new Pv(a[vca]||null);c=c||this.parentInjector;e||null!=a.ngModule||(d=(d?c:this.parentInjector).get(Gv,null))&&(e=d);f=a.create(c,f,void 0,e);this.insert(f.hostView,b);return f};
g.insert=function(a,b){var c=a._lView,d=c[1];if(vc(c[3])){var e=this.indexOf(a);-1!==e?this.detach(e):(e=c[3],e=new Uf(e,e[6],e[3]),e.detach(e.indexOf(a)))}b=this._adjustIndex(b);e=this._lContainer;var f=10+b,h=e.length;0<b&&(e[f-1][4]=c);b<h-10?(c[4]=e[f],f=10+b,f>=e.length?e.push(c):e.splice(f,0,c)):(e.push(c),c[4]=null);c[3]=e;f=c[17];null!==f&&e!==f&&(h=f[9],c[16]!==c[3][3][16]&&(f[2]=!0),null===h?f[9]=[c]:h.push(c));f=c[19];null!==f&&Hmb(f,d);c[2]|=128;f=Jda(b,e);h=c[11];var k=Cda(h,e[7]);if(null!==
k){var q=e[6];c[0]=k;c[6]=q;xd(h,1,d.firstChild,c,k,f,!1)}if(a._appRef)throw new ic(902,"");a._attachedToViewContainer=!0;c=Qha(e);b>=c.length?c.push(a):c.splice(b,0,a);return a};g.move=function(a,b){return this.insert(a,b)};g.indexOf=function(a){var b=this._lContainer[8];return null!==b?b.indexOf(a):-1};g.remove=function(a){a=this._adjustIndex(a,-1);var b=Fda(this._lContainer,a);b&&(ed(Qha(this._lContainer),a),Hda(b[1],b))};
g.detach=function(a){a=this._adjustIndex(a,-1);var b=Fda(this._lContainer,a);return b&&null!=ed(Qha(this._lContainer),a)?new hg(b):null};g._adjustIndex=function(a,b){return null==a?this.length+(void 0===b?0:b):a};
ki.Object.defineProperties(Uf.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return od(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new bd(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=Sca(this._hostTNode,this._hostLView);if(-1!==a){var b=Sc(a,this._hostLView);return new bd(b[1].data[(a&32767)+8],b)}return new bd(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});
var dg=function(a){this.queryList=a;this.matches=null};dg.prototype.clone=function(){return new dg(this.queryList)};dg.prototype.setDirty=function(){this.queryList.setDirty()};var cg=function(a){this.queries=a=void 0===a?[]:a};cg.prototype.createEmbeddedView=function(a){var b=a.queries;if(null!==b){a=null!==a.contentQueries?a.contentQueries[0]:b.length;for(var c=[],d=0;d<a;d++)c.push(this.queries[b.queries[d].indexInDeclarationView].clone());return new cg(c)}return null};
cg.prototype.detachView=function(a){Hmb(this,a)};var Hmb=function(a,b){for(var c=0;c<a.queries.length;c++)null!==b.queries.queries[c].matches&&a.queries[c].setDirty()},Uha=function(a,b,c){this.predicate=a;this.flags=b;this.read=void 0===c?null:c},eg=function(a){this.queries=a=void 0===a?[]:a};g=eg.prototype;g.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};g.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
g.embeddedTView=function(a){for(var b=null,c=0;c<this.length;c++){var d=this.queries[c].embeddedTView(a,null!==b?b.length:0);d&&(d.indexInDeclarationView=c,null!==b?b.push(d):b=[d])}return null!==b?new eg(b):null};g.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};g.track=function(a){this.queries.push(a)};ki.Object.defineProperties(eg.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var fg=function(a,b){this.metadata=a;this.matches=null;this.indexInDeclarationView=-1;this.crossesNgTemplate=!1;this._appliesToNextNode=!0;this._declarationNodeIndex=void 0===b?-1:b};
fg.prototype.elementStart=function(a,b){if(Imb(this,b)){var c=this.metadata.predicate;if(Array.isArray(c))for(var d=0;d<c.length;d++){var e=c[d];a:{var f=b.localNames;if(null!==f)for(var h=0;h<f.length;h+=2)if(f[h]===e){f=f[h+1];break a}f=null}ix(this,a,b,f);ix(this,a,b,Zc(b,a,e,!1,!1))}else c===Vf?b.type&4&&ix(this,a,b,-1):ix(this,a,b,Zc(b,a,c,!1,!1))}};fg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
fg.prototype.template=function(a,b){this.elementStart(a,b)};fg.prototype.embeddedTView=function(a,b){return Imb(this,a)?(this.crossesNgTemplate=!0,jx(this,-a.index,b),new fg(this.metadata)):null};
var Imb=function(a,b){if(a._appliesToNextNode&&1!==(a.metadata.flags&1)){a=a._declarationNodeIndex;for(b=b.parent;null!==b&&b.type&8&&b.index!==a;)b=b.parent;return a===(null!==b?b.index:-1)}return a._appliesToNextNode},ix=function(a,b,c,d){if(null!==d){var e=a.metadata.read;null!==e?e===nd||e===Wf||e===Vf&&c.type&4?jx(a,c.index,-2):(b=Zc(c,b,e,!1,!1),null!==b&&jx(a,c.index,b)):jx(a,c.index,d)}},jx=function(a,b,c){null===a.matches?a.matches=[b,c]:a.matches.push(b,c)};
var kx=function(){};kx.\u0275fac=function(a){return new (a||kx)(t(hx))};kx.\u0275mod=rc({type:kx});kx.\u0275inj=fc({});
var lx=function(){};lx.__NG_ELEMENT_ID__=Wha;
var Jmb=function(){};Jmb.prototype.supports=function(a){return eha(a)};Jmb.prototype.create=function(a){return new mx(a)};var Kmb=function(a,b){return b},mx=function(a){this.length=0;this._identityChangesTail=this._identityChangesHead=this._removalsTail=this._removalsHead=this._movesTail=this._movesHead=this._additionsTail=this._additionsHead=this._itTail=this._itHead=this._previousItHead=this._unlinkedRecords=this._linkedRecords=null;this._trackByFn=a||Kmb};
mx.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)};var Lmb=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Xha(a,d,e)?c:a,h=Xha(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,null==f.previousIndex)d++;else{e||(e=[]);var q=h-d,w=k-d;if(q!=w){for(var y=0;y<q;y++){var E=y<e.length?e[y]:e[y]=0,I=E+y;w<=I&&I<q&&(e[y]=E+1)}e[f.previousIndex]=w-q}}h!==k&&b(f,h,k)}};
mx.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};mx.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};var Mmb=function(a,b){for(a=a._identityChangesHead;null!==a;a=a._nextIdentityChange)b(a)};g=mx.prototype;g.diff=function(a){null==a&&(a=[]);if(!eha(a))throw new ic(900,"");return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._itHead,d=!1;if(Array.isArray(a)){this.length=a.length;for(var e=0;e<this.length;e++){var f=a[e];var h=this._trackByFn(e,f);null!==c&&Object.is(c.trackById,h)?(d&&(c=this._verifyReinsertion(c,f,h,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,h,e),d=!0);c=c._next}}else{var k=0;fha(a,function(q){h=b._trackByFn(k,q);null!==c&&Object.is(c.trackById,h)?(d&&(c=b._verifyReinsertion(c,q,h,k)),Object.is(c.item,q)||b._addIdentityChange(c,
q)):(c=b._mismatch(c,q,h,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
g._mismatch=function(a,b,c,d){if(null===a)var e=this._itTail;else e=a._prev,this._remove(a);a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);null!==a?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=null===this._linkedRecords?null:this._linkedRecords.get(c,d),null!==a?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new Nmb(b,c),e,d));return a};
g._verifyReinsertion=function(a,b,c,d){b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);null!==b?a=this._reinsertAfter(b,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d));return a};
g._truncate=function(a){for(;null!==a;){var b=a._next;this._addToRemovals(this._unlink(a));a=b}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)};
g._reinsertAfter=function(a,b,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;null===d?this._removalsHead=e:d._nextRemoved=e;null===e?this._removalsTail=d:e._prevRemoved=d;this._insertAfter(a,b,c);this._addToMoves(a,c);return a};g._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
g._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};g._insertAfter=function(a,b,c){var d=null===b?this._itHead:b._next;a._next=d;a._prev=b;null===d?this._itTail=a:d._prev=a;null===b?this._itHead=a:b._next=a;null===this._linkedRecords&&(this._linkedRecords=new nx);this._linkedRecords.put(a);a.currentIndex=c;return a};g._remove=function(a){return this._addToRemovals(this._unlink(a))};
g._unlink=function(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;null===b?this._itHead=c:b._next=c;null===c?this._itTail=b:c._prev=b;return a};g._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a;return a};
g._addToRemovals=function(a){null===this._unlinkedRecords&&(this._unlinkedRecords=new nx);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};
g._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};ki.Object.defineProperties(mx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}});
var Nmb=function(a,b){this.item=a;this.trackById=b;this._nextIdentityChange=this._nextMoved=this._nextAdded=this._nextRemoved=this._prevRemoved=this._nextDup=this._prevDup=this._next=this._prev=this._nextPrevious=this.previousIndex=this.currentIndex=null},ox=function(){this._tail=this._head=null};ox.prototype.add=function(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)};
ox.prototype.get=function(a,b){var c;for(c=this._head;null!==c;c=c._nextDup)if((null===b||b<=c.currentIndex)&&Object.is(c.trackById,a))return c;return null};ox.prototype.remove=function(a){var b=a._prevDup;a=a._nextDup;null===b?this._head=a:b._nextDup=a;null===a?this._tail=b:a._prevDup=b;return null===this._head};var nx=function(){this.map=new Map};nx.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new ox,this.map.set(b,c));c.add(a)};
nx.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};nx.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};nx.prototype.clear=function(){this.map.clear()};ki.Object.defineProperties(nx.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return 0===this.map.size}}});
var Omb=function(){};Omb.prototype.supports=function(a){return a instanceof Map||dha(a)};Omb.prototype.create=function(){return new px};var px=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};px.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)};var Pmb=function(a,b){for(a=a._changesHead;null!==a;a=a._nextChanged)b(a)};
g=px.prototype;g.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};g.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};g.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||dha(a)))throw new ic(900,"");return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._mapHead;this._appendAfter=null;this._forEach(a,function(d,e){c&&c.key===e?(b._maybeAddToChanges(c,d),b._appendAfter=c,c=c._next):(d=b._getOrCreateRecordForKey(e,d),c=b._insertBeforeOrAppend(c,d))});if(c)for(c._prev&&(c._prev._next=null),a=this._removalsHead=c;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=
null;this._changesTail&&(this._changesTail._nextChanged=null);this._additionsTail&&(this._additionsTail._nextAdded=null);return this.isDirty};g._insertBeforeOrAppend=function(a,b){if(a){var c=a._prev;b._next=a;b._prev=c;a._prev=b;c&&(c._next=b);a===this._mapHead&&(this._mapHead=b);return this._appendAfter=a}this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b;this._appendAfter=b;return null};
g._getOrCreateRecordForKey=function(a,b){if(this._records.has(a)){a=this._records.get(a);this._maybeAddToChanges(a,b);b=a._prev;var c=a._next;b&&(b._next=c);c&&(c._prev=b);a._next=null;a._prev=null;return a}c=new Qmb(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};
g._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};g._addToAdditions=function(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};g._addToChanges=function(a){null===this._changesHead?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
g._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};ki.Object.defineProperties(px.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}});var Qmb=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};
var qx=function(a){this.factories=a};qx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(null!=b)return b;throw new ic(901,"");};qx.\u0275prov=ec({token:qx,providedIn:"root",factory:function(){return new qx([new Jmb])}});
var rx=function(a){this.factories=a};rx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new ic(901,"");};rx.\u0275prov=ec({token:rx,providedIn:"root",factory:function(){return new rx([new Omb])}});
var Rmb=function(){};
var Smb=Uga(null,"core",[]);
var sx=function(a,b){this._viewContainer=a;this._context=new Tmb;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
sx.prototype._updateView=function(){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)))};
ki.Object.defineProperties(sx.prototype,{ngIf:{configurable:!0,enumerable:!0,set:function(a){this._context.$implicit=this._context.ngIf=a;this._updateView()}},ngIfThen:{configurable:!0,enumerable:!0,set:function(a){Yha("ngIfThen",a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Yha("ngIfElse",a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});sx.\u0275fac=function(a){return new (a||sx)(F(Wf),F(Vf))};
sx.\u0275dir=v({type:sx,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var Tmb=function(){this.ngIf=this.$implicit=null};
var tx=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};tx.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};tx.prototype.registerOnTouched=function(a){this.onTouched=a};tx.prototype.registerOnChange=function(a){this.onChange=a};tx.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};tx.\u0275fac=function(a){return new (a||tx)(F(Mv),F(nd))};tx.\u0275dir=v({type:tx});
var Gg=function(){tx.apply(this,arguments)};U(Gg,tx);Gg.\u0275fac=function(){var a;return function(b){return(a||(a=cd(Gg)))(b||Gg)}}();Gg.\u0275dir=v({type:Gg,features:[gf]});var ux=new jd("NgValueAccessor");
var vx=function(a,b,c,d){this._iterableDiffers=a;this._keyValueDiffers=b;this._ngEl=c;this._renderer=d;this._keyValueDiffer=this._iterableDiffer=null;this._initialClasses=[];this._rawClass=null};g=vx.prototype;g.ngDoCheck=function(){if(this._iterableDiffer){var a=this._iterableDiffer.diff(this._rawClass);a&&this._applyIterableChanges(a)}else this._keyValueDiffer&&(a=this._keyValueDiffer.diff(this._rawClass))&&this._applyKeyValueChanges(a)};
g._applyKeyValueChanges=function(a){var b=this;a.forEachAddedItem(function(c){return b._toggleClass(c.key,c.currentValue)});Pmb(a,function(c){return b._toggleClass(c.key,c.currentValue)});a.forEachRemovedItem(function(c){c.previousValue&&b._toggleClass(c.key,!1)})};g._applyIterableChanges=function(a){var b=this;a.forEachAddedItem(function(c){if("string"===typeof c.item)b._toggleClass(c.item,!0);else throw Error("Ka`"+$b(c.item));});a.forEachRemovedItem(function(c){return b._toggleClass(c.item,!1)})};
g._applyClasses=function(a){var b=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(c){return b._toggleClass(c,!0)}):Object.keys(a).forEach(function(c){return b._toggleClass(c,!!a[c])}))};g._removeClasses=function(a){var b=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(c){return b._toggleClass(c,!1)}):Object.keys(a).forEach(function(c){return b._toggleClass(c,!1)}))};
g._toggleClass=function(a,b){var c=this;(a=a.trim())&&a.split(/\s+/g).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};
ki.Object.defineProperties(vx.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this._removeClasses(this._initialClasses);this._initialClasses="string"===typeof a?a.split(/\s+/):[];this._applyClasses(this._initialClasses);this._applyClasses(this._rawClass)}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this._removeClasses(this._rawClass);this._applyClasses(this._initialClasses);this._keyValueDiffer=this._iterableDiffer=null;if(this._rawClass="string"===typeof a?a.split(/\s+/):
a)eha(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create()}}});vx.\u0275fac=function(a){return new (a||vx)(F(qx),F(rx),F(nd),F(Mv))};vx.\u0275dir=v({type:vx,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}});
var Umb=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};ki.Object.defineProperties(Umb.prototype,{first:{configurable:!0,enumerable:!0,get:function(){return 0===this.index}},last:{configurable:!0,enumerable:!0,get:function(){return this.index===this.count-1}},even:{configurable:!0,enumerable:!0,get:function(){return 0===this.index%2}},odd:{configurable:!0,enumerable:!0,get:function(){return!this.even}}});
var wx=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};wx.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var a=this._ngForOf;!this._differ&&a&&(this._differ=this._differs.find(a).create(this.ngForTrackBy))}this._differ&&(a=this._differ.diff(this._ngForOf))&&this._applyChanges(a)};
wx.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;Lmb(a,function(h,k,q){null==h.previousIndex?c.createEmbeddedView(b._template,new Umb(h.item,b._ngForOf,-1,-1),null===q?void 0:q):null==q?c.remove(null===k?void 0:k):null!==k&&(k=c.get(k),c.move(k,q),k.context.$implicit=h.item)});for(var d=0,e=c.length;d<e;d++){var f=c.get(d).context;f.index=d;f.count=e;f.ngForOf=this._ngForOf}Mmb(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
ki.Object.defineProperties(wx.prototype,{ngForOf:{configurable:!0,enumerable:!0,set:function(a){this._ngForOf=a;this._ngForOfDirty=!0}},ngForTrackBy:{configurable:!0,enumerable:!0,set:function(a){this._trackByFn=a},get:function(){return this._trackByFn}},ngForTemplate:{configurable:!0,enumerable:!0,set:function(a){a&&(this._template=a)}}});wx.\u0275fac=function(a){return new (a||wx)(F(Wf),F(Vf),F(qx))};
wx.\u0275dir=v({type:wx,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});
var xx=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};xx.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};xx.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var yx=function(){this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};yx.prototype._addCase=function(){return this._caseCount++};
yx.prototype._addDefault=function(a){this._defaultViews||(this._defaultViews=[]);this._defaultViews.push(a)};yx.prototype._matchCase=function(a){a=a==this._ngSwitch;this._lastCasesMatched=this._lastCasesMatched||a;this._lastCaseCheckIndex++;this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1);return a};
yx.prototype._updateDefaultCases=function(a){if(this._defaultViews&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=0;b<this._defaultViews.length;b++){var c=this._defaultViews[b],d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};ki.Object.defineProperties(yx.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;0===this._caseCount&&this._updateDefaultCases(!0)}}});yx.\u0275fac=function(a){return new (a||yx)};
yx.\u0275dir=v({type:yx,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var zx=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new xx(a,b)};zx.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};zx.\u0275fac=function(a){return new (a||zx)(F(Wf),F(Vf),F(yx,9))};zx.\u0275dir=v({type:zx,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var Ax=function(a,b,c){c._addDefault(new xx(a,b))};Ax.\u0275fac=function(a){return new (a||Ax)(F(Wf),F(Vf),F(yx,9))};Ax.\u0275dir=v({type:Ax,selectors:[["","ngSwitchDefault",""]]});
var Bx=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};Bx.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};Bx.prototype._setStyle=function(a,b){var c=r(a.split("."));a=c.next().value;c=c.next().value;b=null!=b&&c?""+b+c:b;null!=b?this._renderer.setStyle(this._ngEl.nativeElement,a,b):this._renderer.removeStyle(this._ngEl.nativeElement,a)};
Bx.prototype._applyChanges=function(a){var b=this;a.forEachRemovedItem(function(c){return b._setStyle(c.key,null)});a.forEachAddedItem(function(c){return b._setStyle(c.key,c.currentValue)});Pmb(a,function(c){return b._setStyle(c.key,c.currentValue)})};ki.Object.defineProperties(Bx.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});Bx.\u0275fac=function(a){return new (a||Bx)(F(nd),F(rx),F(Mv))};
Bx.\u0275dir=v({type:Bx,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});
var Cx=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};
Cx.prototype.ngOnChanges=function(a){if(a.ngTemplateOutlet||a.ngTemplateOutletInjector)if(a=this._viewContainerRef,this._viewRef&&a.remove(a.indexOf(this._viewRef)),this.ngTemplateOutlet){var b=this.ngTemplateOutletInjector;this._viewRef=a.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext,b?{injector:b}:void 0)}else this._viewRef=null;else this._viewRef&&a.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)};
Cx.\u0275fac=function(a){return new (a||Cx)(F(Wf))};Cx.\u0275dir=v({type:Cx,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ac]});
var Dx=function(){};Dx.prototype.createSubscription=function(a,b){return a.subscribe({next:b,error:function(c){throw c;}})};Dx.prototype.dispose=function(a){a.unsubscribe()};Dx.prototype.onDestroy=function(a){a.unsubscribe()};var Ex=function(){};Ex.prototype.createSubscription=function(a,b){return a.then(b,function(c){throw c;})};Ex.prototype.dispose=function(){};Ex.prototype.onDestroy=function(){};
var Vmb=new Ex,Wmb=new Dx,Fx=function(a){this._ref=a;this._strategy=this._obj=this._subscription=this._latestValue=null};g=Fx.prototype;g.ngOnDestroy=function(){this._subscription&&this._dispose()};g.transform=function(a){return this._obj?a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue:(a&&this._subscribe(a),this._latestValue)};
g._subscribe=function(a){var b=this;this._obj=a;this._strategy=this._selectStrategy(a);this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)})};g._selectStrategy=function(a){if(Wd(a))return Vmb;if(Jea(a))return Wmb;throw og();};g._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};g._updateLatestValue=function(a,b){a===this._obj&&(this._latestValue=b,this._ref.markForCheck())};
Fx.\u0275fac=function(a){return new (a||Fx)(F(lx,16))};Fx.\u0275pipe=tc({name:"async",type:Fx,pure:!1});
var Gx=function(){};Gx.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw og();return a.toLowerCase()};Gx.\u0275fac=function(a){return new (a||Gx)};Gx.\u0275pipe=tc({name:"lowercase",type:Gx,pure:!0});
var Xmb=/(?:[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,Hx=
function(){};Hx.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw og();return a.replace(Xmb,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Hx.\u0275fac=function(a){return new (a||Hx)};Hx.\u0275pipe=tc({name:"titlecase",type:Hx,pure:!0});
var qia=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,vg={},hia=/((?:[^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]*)/,kia={};
var Ymb=new jd("DATE_PIPE_DEFAULT_TIMEZONE"),Ix=function(a,b){this.locale=a;this.defaultTimezone=b};Ix.prototype.transform=function(a,b,c,d){if(null==a||""===a||a!==a)return null;try{var e;return mia(a,void 0===b?"mediumDate":b,d||this.locale,null!=(e=null!=c?c:this.defaultTimezone)?e:void 0)}catch(f){throw og();}};Ix.\u0275fac=function(a){return new (a||Ix)(F(pi,16),F(Ymb,24))};Ix.\u0275pipe=tc({name:"date",type:Ix,pure:!0});
var Jx=function(a){this.differs=a;this.keyValues=[];this.compareFn=sia};Jx.prototype.transform=function(a,b){var c=this;b=void 0===b?sia:b;if(!a||!(a instanceof Map)&&"object"!==typeof a)return null;this.differ||(this.differ=this.differs.find(a).create());a=this.differ.diff(a);var d=b!==this.compareFn;a&&(this.keyValues=[],a.forEachItem(function(e){c.keyValues.push({key:e.key,value:e.currentValue})}));if(a||d)this.keyValues.sort(b),this.compareFn=b;return this.keyValues};
Jx.\u0275fac=function(a){return new (a||Jx)(F(rx,16))};Jx.\u0275pipe=tc({name:"keyvalue",type:Jx,pure:!1});
var via=/^(\d+)?\.((\d+)(-(\d+))?)?$/;
var Kx=function(a){this._locale=a};
Kx.prototype.transform=function(a,b,c){if(null==a||""===a||a!==a)return null;c=c||this._locale;try{if("string"!==typeof a||isNaN(Number(a)-parseFloat(a))){if("number"!==typeof a)throw Error("Ua`"+a);var d=a}else d=Number(a);a=d;var e=Xd(c)[14][0],f=ng(c,5);f=void 0===f?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var h=e.split(";"),k=h[0],q=h[1],w=-1!==k.indexOf(".")?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],y=w[0],E=w[1]||"";d.posPre=y.substring(0,y.indexOf("#"));for(e=0;e<E.length;e++){var I=E.charAt(e);"0"===I?d.minFrac=d.maxFrac=e+1:"#"===I?d.maxFrac=e+1:d.posSuf+=I}var N=y.split(",");d.gSize=N[1]?N[1].length:0;d.lgSize=N[2]||N[1]?(N[2]||N[1]).length:0;if(q){var L=k.length-d.posPre.length-d.posSuf.length,S=q.indexOf("#");d.negPre=q.substring(0,S).replace(/'/g,"");d.negSuf=q.slice(S+L).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return yia(a,d,c,b)}catch(Y){throw og();}};
Kx.\u0275fac=function(a){return new (a||Kx)(F(pi,16))};Kx.\u0275pipe=tc({name:"number",type:Kx,pure:!0});
var Lx=function(){};Lx.prototype.transform=function(a,b,c){if(null==a)return null;if(!this.supports(a))throw og();return a.slice(b,c)};Lx.prototype.supports=function(a){return"string"===typeof a||Array.isArray(a)};Lx.\u0275fac=function(a){return new (a||Lx)};Lx.\u0275pipe=tc({name:"slice",type:Lx,pure:!1});
var Mx=function(){};Mx.\u0275fac=function(a){return new (a||Mx)};Mx.\u0275mod=rc({type:Mx});Mx.\u0275inj=fc({});
var ii=new jd("DocumentToken");
var zh=null,Zmb=function(){};
var Nx=function(){};Nx.prototype.historyGo=function(){throw Error("Va");};Nx.\u0275fac=function(a){return new (a||Nx)};Nx.\u0275prov=ec({token:Nx,factory:function(){return t(Ox)},providedIn:"platform"});var $mb=new jd("Location Initialized"),Ox=function(a){this._doc=a;this._init()};U(Ox,Nx);Ox.prototype._init=function(){this.location=window.location;this._history=window.history};
Ox.prototype.onPopState=function(a){var b=anb(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};var bnb=function(a,b){var c=anb(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=Ox.prototype;g.pushState=function(a,b,c){window.history.pushState?this._history.pushState(a,b,c):this.location.hash=c};
g.replaceState=function(a,b,c){window.history.pushState?this._history.replaceState(a,b,c):this.location.hash=c};g.forward=function(){this._history.forward()};g.back=function(){this._history.back()};g.historyGo=function(a){this._history.go(void 0===a?0:a)};g.getState=function(){return this._history.state};
ki.Object.defineProperties(Ox.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return this.location.href}},protocol:{configurable:!0,enumerable:!0,get:function(){return this.location.protocol}},hostname:{configurable:!0,enumerable:!0,get:function(){return this.location.hostname}},port:{configurable:!0,enumerable:!0,get:function(){return this.location.port}},pathname:{configurable:!0,enumerable:!0,get:function(){return this.location.pathname},set:function(a){this.location.pathname=a}},
search:{configurable:!0,enumerable:!0,get:function(){return this.location.search}},hash:{configurable:!0,enumerable:!0,get:function(){return this.location.hash}}});Ox.\u0275fac=function(a){return new (a||Ox)(t(ii))};Ox.\u0275prov=ec({token:Ox,factory:function(){return new Ox(t(ii))},providedIn:"platform"});
var Px=function(){};Px.prototype.historyGo=function(){throw Error("Va");};Px.\u0275fac=function(a){return new (a||Px)};Px.\u0275prov=ec({token:Px,factory:function(){var a=t(ii).location;return new Qx(t(Nx),a&&a.origin||"")},providedIn:"root"});var Rx=new jd("appBaseHref"),Qx=function(a,b){this._platformLocation=a;this._removeListenerFns=[];null==b&&(b=zh.getBaseHref());if(null==b)throw Error("Wa");this._baseHref=b};U(Qx,Px);g=Qx.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),bnb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return zia(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+yg(this._platformLocation.search),c=this._platformLocation.hash;return c&&(void 0===a?0:a)?b+c:b};g.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+yg(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+yg(d)))};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};Qx.\u0275fac=function(a){return new (a||Qx)(t(Nx),t(Rx,8))};Qx.\u0275prov=ec({token:Qx,factory:Qx.\u0275fac});
var Sx=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];null!=b&&(this._baseHref=b)};U(Sx,Px);g=Sx.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),bnb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};
g.path=function(){var a=this._platformLocation.hash;null==a&&(a="#");return 0<a.length?a.substring(1):a};g.prepareExternalUrl=function(a){a=zia(this._baseHref,a);return 0<a.length?"#"+a:a};g.pushState=function(a,b,c,d){c=this.prepareExternalUrl(c+yg(d));0==c.length&&(c=this._platformLocation.pathname);this._platformLocation.pushState(a,b,c)};
g.replaceState=function(a,b,c,d){c=this.prepareExternalUrl(c+yg(d));0==c.length&&(c=this._platformLocation.pathname);this._platformLocation.replaceState(a,b,c)};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};Sx.\u0275fac=function(a){return new (a||Sx)(t(Nx),t(Rx,8))};Sx.\u0275prov=ec({token:Sx,factory:Sx.\u0275fac});
var Tx=function(a,b){var c=this;this._subject=new Iw;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._platformStrategy=a;a=this._platformStrategy.getBaseHref();this._platformLocation=b;this._baseHref=Aia(a.replace(/\/index.html$/,""));this._platformStrategy.onPopState(function(d){c._subject.emit({url:c.path(!0),pop:!0,state:d.state,type:d.type})})};g=Tx.prototype;g.ngOnDestroy=function(){var a;null==(a=this._urlChangeSubscription)||a.unsubscribe();this._urlChangeListeners=[]};
g.path=function(a){return this.normalize(this._platformStrategy.path(void 0===a?!1:a))};g.getState=function(){return this._platformLocation.getState()};g.normalize=function(a){var b=this._baseHref;a=a.replace(/\/index.html$/,"");return Aia(b&&a.startsWith(b)?a.substring(b.length):a)};g.prepareExternalUrl=function(a){a&&"/"!==a[0]&&(a="/"+a);return this._platformStrategy.prepareExternalUrl(a)};
g.go=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._platformStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+yg(b)),c)};g.replaceState=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._platformStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+yg(b)),c)};g.forward=function(){this._platformStrategy.forward()};g.back=function(){this._platformStrategy.back()};
g.historyGo=function(a){var b,c;null==(c=(b=this._platformStrategy).historyGo)||c.call(b,void 0===a?0:a)};g._notifyUrlChangeListeners=function(a,b){a=void 0===a?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};g.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b,complete:c})};Tx.\u0275fac=function(a){return new (a||Tx)(t(Px),t(Nx))};Tx.\u0275prov=ec({token:Tx,factory:function(){return new Tx(t(Px),t(Nx))},providedIn:"root"});
var cnb=function(){};cnb.\u0275prov=ec({token:cnb,providedIn:"root",factory:function(){return new dnb}});var dnb=function(){var a=t(ii),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}};dnb.prototype.setOffset=function(a){Array.isArray(a)?this.offset=function(){return a}:this.offset=a};dnb.prototype.getScrollPosition=function(){return Ux(this)?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]};
var enb=function(a,b){Ux(a)&&a.window.scrollTo(b[0],b[1])},Ux=function(a){try{return!!a.window&&!!a.window.scrollTo&&"pageXOffset"in a.window}catch(b){return!1}};
var fnb=function(){};
var gnb={provide:ux,useExisting:ac(function(){return Fg}),multi:!0},hnb=new jd("CompositionEventMode"),Fg=function(a,b,c){tx.call(this,a,b);this._compositionMode=c;this._composing=!1;null==this._compositionMode&&(this._compositionMode=!/android (\d+)/.test((zh?window.navigator.userAgent:"").toLowerCase()))};U(Fg,tx);Fg.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};Fg.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Fg.prototype._compositionStart=function(){this._composing=!0};Fg.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Fg.\u0275fac=function(a){return new (a||Fg)(F(Mv),F(nd),F(hnb,8))};
Fg.\u0275dir=v({type:Fg,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(a,b){a&1&&K("input",function(c){return b._handleInput(c.target.value)})("blur",function(){return b.onTouched()})("compositionstart",function(){return b._compositionStart()})("compositionend",
function(c){return b._compositionEnd(c.target.value)})},features:[Lf([gnb]),gf]});
var Vx=new jd("NgValidators"),Wx=new jd("NgAsyncValidators"),Xx=function(a){return Cia(a)};
var Yx=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=Yx.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Mia(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Oia(this._rawAsyncValidators)};g._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
g._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};g.reset=function(a){this.control&&this.control.reset(a)};g.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};g.getError=function(a,b){return this.control?this.control.getError(a,b):null};
ki.Object.defineProperties(Yx.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.value:null}},valid:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.valid:null}},invalid:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.invalid:null}},pending:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.pending:null}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.control?
this.control.disabled:null}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.enabled:null}},errors:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.errors:null}},pristine:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.pristine:null}},dirty:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.dirty:null}},touched:{configurable:!0,enumerable:!0,get:function(){return this.control?
this.control.touched:null}},status:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.status:null}},untouched:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.untouched:null}},statusChanges:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.statusChanges:null}},valueChanges:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.valueChanges:null}},path:{configurable:!0,enumerable:!0,get:function(){return null}},
validator:{configurable:!0,enumerable:!0,get:function(){return this._composedValidatorFn||null}},asyncValidator:{configurable:!0,enumerable:!0,get:function(){return this._composedAsyncValidatorFn||null}}});
var Zx=function(){Yx.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};U(Zx,Yx);
var ay=function(){Yx.apply(this,arguments)};U(ay,Yx);ki.Object.defineProperties(ay.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});
var inb=function(a){this._cd=a};
ki.Object.defineProperties(inb.prototype,{isTouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.touched)}},isUntouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.untouched)}},isPristine:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.pristine)}},isDirty:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==
(a=this._cd)?0:null==(b=a.control)?0:b.dirty)}},isValid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.valid)}},isInvalid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.invalid)}},isPending:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.pending)}},isSubmitted:{configurable:!0,enumerable:!0,get:function(){var a;return!(null==
(a=this._cd)||!a.submitted)}}});Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},{"[class.ng-submitted]":"isSubmitted"});var by=function(a){this._cd=a};U(by,inb);by.\u0275fac=function(a){return new (a||by)(F(Zx,2))};
by.\u0275dir=v({type:by,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&sf("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)},features:[gf]});var cy=function(a){this._cd=a};U(cy,inb);cy.\u0275fac=function(a){return new (a||cy)(F(ay,10))};
cy.\u0275dir=v({type:cy,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&sf("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)("ng-submitted",b.isSubmitted)},features:[gf]});
var dy=function(a,b){this._pendingTouched=this._hasOwnPendingAsyncValidator=this._pendingDirty=!1;this._onCollectionChange=function(){};this._parent=null;this.pristine=!0;this.touched=!1;this._onDisabledChange=[];this._rawValidators=a;this._rawAsyncValidators=b;this._composedValidatorFn=eja(this._rawValidators);this._composedAsyncValidatorFn=fja(this._rawAsyncValidators)},Wia=function(a,b){a._rawValidators=b;a._composedValidatorFn=eja(b)},Xia=function(a,b){a._rawAsyncValidators=b;a._composedAsyncValidatorFn=
fja(b)},jnb=function(a){a=a._rawValidators;return Array.isArray(a)?a.includes(Xx):a===Xx},Zia=function(a,b){b=void 0===b?{}:b;a.touched=!0;a._parent&&!b.onlySelf&&Zia(a._parent,b)},knb=function(a,b){b=void 0===b?{}:b;a.touched=!1;a._pendingTouched=!1;a._forEachChild(function(c){knb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b)},$ia=function(a,b){b=void 0===b?{}:b;a.pristine=!1;a._parent&&!b.onlySelf&&$ia(a._parent,b)},lnb=function(a,b){b=void 0===b?{}:b;a.pristine=!0;a._pendingDirty=
!1;a._forEachChild(function(c){lnb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b)};g=dy.prototype;g.disable=function(a){a=void 0===a?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="DISABLED";this.errors=null;this._forEachChild(function(c){c.disable(Object.assign({},a,{onlySelf:!0}))});this._updateValue();!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status));this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}));this._onDisabledChange.forEach(function(c){return c(!0)})};
g.enable=function(a){a=void 0===a?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="VALID";this._forEachChild(function(c){c.enable(Object.assign({},a,{onlySelf:!0}))});Eg(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}));this._onDisabledChange.forEach(function(c){return c(!1)})};g._updateAncestors=function(a){this._parent&&!a.onlySelf&&(Eg(this._parent,a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())};
g.setParent=function(a){this._parent=a};g.getRawValue=function(){return this.value};var Eg=function(a,b){b=void 0===b?{}:b;a._setInitialStatus();a._updateValue();a.enabled&&(a._cancelExistingSubscription(),a.errors=a._runValidator(),a.status=a._calculateStatus(),"VALID"!==a.status&&"PENDING"!==a.status||a._runAsyncValidator(b.emitEvent));!1!==b.emitEvent&&(a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&Eg(a._parent,b)};g=dy.prototype;
g._updateTreeValidity=function(a){a=void 0===a?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Eg(this,{onlySelf:!0,emitEvent:a.emitEvent})};g._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};g._runValidator=function(){return this.validator?this.validator(this):null};
g._runAsyncValidator=function(a){var b=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator=!0,this._asyncValidationSubscription=Hia(this.asyncValidator(this)).subscribe(function(c){b._hasOwnPendingAsyncValidator=!1;var d={emitEvent:a};d=void 0===d?{}:d;b.errors=c;b._updateControlsErrors(!1!==d.emitEvent)}))};g._cancelExistingSubscription=function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)};
g.get=function(a){if(null==a)return null;Array.isArray(a)||(a=a.split("."));return 0===a.length?null:a.reduce(function(b,c){return b&&b._find(c)},this)};g.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};g.hasError=function(a,b){return!!this.getError(a,b)};g._updateControlsErrors=function(a){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);this._parent&&this._parent._updateControlsErrors(a)};
g._initObservables=function(){this.valueChanges=new Iw;this.statusChanges=new Iw};g._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};g._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};g._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};
g._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};g._updatePristine=function(a){a=void 0===a?{}:a;this.pristine=!this._anyControlsDirty();this._parent&&!a.onlySelf&&this._parent._updatePristine(a)};g._updateTouched=function(a){a=void 0===a?{}:a;this.touched=this._anyControlsTouched();this._parent&&!a.onlySelf&&this._parent._updateTouched(a)};g._registerOnCollectionChange=function(a){this._onCollectionChange=a};
g._setUpdateStrategy=function(a){Hg(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)};g._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};g._find=function(){return null};
ki.Object.defineProperties(dy.prototype,{validator:{configurable:!0,enumerable:!0,get:function(){return this._composedValidatorFn},set:function(a){this._rawValidators=this._composedValidatorFn=a}},asyncValidator:{configurable:!0,enumerable:!0,get:function(){return this._composedAsyncValidatorFn},set:function(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}},parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},valid:{configurable:!0,enumerable:!0,get:function(){return"VALID"===
this.status}},invalid:{configurable:!0,enumerable:!0,get:function(){return"INVALID"===this.status}},pending:{configurable:!0,enumerable:!0,get:function(){return"PENDING"==this.status}},disabled:{configurable:!0,enumerable:!0,get:function(){return"DISABLED"===this.status}},enabled:{configurable:!0,enumerable:!0,get:function(){return"DISABLED"!==this.status}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},untouched:{configurable:!0,enumerable:!0,get:function(){return!this.touched}},
updateOn:{configurable:!0,enumerable:!0,get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},root:{configurable:!0,enumerable:!0,get:function(){for(var a=this;a._parent;)a=a._parent;return a}}});
var ey=function(a,b,c){var d=dy.call,e=dja(b);c=(Hg(b)?b.asyncValidators:c)||null;d.call(dy,this,e,c);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Eg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};U(ey,dy);var mnb=function(a,b,c){if(a.controls[b])return a.controls[b];a.controls[b]=c;c.setParent(a);c._registerOnCollectionChange(a._onCollectionChange);return c};g=ey.prototype;
g.addControl=function(a){var b=void 0===b?{}:b;mnb(this,a);Eg(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.removeControl=function(a){var b=void 0===b?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];Eg(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
g.setValue=function(a,b){var c=this;b=void 0===b?{}:b;gja(this,a);Object.keys(a).forEach(function(d){var e=c.controls;if(!Object.keys(e).length)throw new ic(1E3,"");if(!e[d])throw new ic(1001,"");c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});Eg(this,b)};g.reset=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;this._forEachChild(function(c,d){c.reset(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});this._updatePristine(b);this._updateTouched(b);Eg(this,b)};
g.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};g._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&Eg(this,{onlySelf:!0});return a};g._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};g._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};
g._updateValue=function(){this.value=this._reduceValue()};g._anyControls=function(a){for(var b=r(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};g._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};g._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};
g._allControlsDisabled=function(){for(var a=r(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return 0<Object.keys(this.controls).length||this.disabled};g._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};
var nnb={provide:ay,useExisting:ac(function(){return fy})},onb=Promise.resolve(null),fy=function(a,b){ay.call(this);this.submitted=!1;this._directives=new Set;this.ngSubmit=new Iw;this.form=new ey({},Mia(a),Oia(b))};U(fy,ay);g=fy.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};g.addControl=function(a){var b=this;onb.then(function(){var c=b._findContainer(a.path);a.control=mnb(c,a.name,a.control);Ag(a.control,a);Eg(a.control,{emitEvent:!1});b._directives.add(a)})};
g.removeControl=function(a){var b=this;onb.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};g.updateModel=function(a,b){var c=this;onb.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};g.onSubmit=function(a){this.submitted=!0;bja(this.form,this._directives);this.ngSubmit.emit(a);return!1};g.onReset=function(){this.resetForm()};g.resetForm=function(){this.form.reset(void 0);this.submitted=!1};
g._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)};g._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};ki.Object.defineProperties(fy.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}},controls:{configurable:!0,enumerable:!0,get:function(){return this.form.controls}}});
fy.\u0275fac=function(a){return new (a||fy)(F(Vx,10),F(Wx,10))};fy.\u0275dir=v({type:fy,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&K("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lf([nnb]),gf]});
var gy=function(a,b,c){a=void 0===a?null:a;var d=dy.call,e=dja(b);c=(Hg(b)?b.asyncValidators:c)||null;d.call(dy,this,e,c);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Eg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Hg(b)&&b.initialValueIsDefault&&(hja(a)?this.defaultValue=a.value:this.defaultValue=a)};U(gy,dy);g=gy.prototype;
g.setValue=function(a,b){var c=this;b=void 0===b?{}:b;this.value=this._pendingValue=a;this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(function(d){return d(c.value,!1!==b.emitViewToModelChange)});Eg(this,b)};g.reset=function(a,b){a=void 0===a?this.defaultValue:a;b=void 0===b?{}:b;this._applyFormState(a);lnb(this,b);knb(this,b);this.setValue(this.value,b);this._pendingChange=!1};g._updateValue=function(){};g._anyControls=function(){return!1};g._allControlsDisabled=function(){return this.disabled};
g.registerOnChange=function(a){this._onChange.push(a)};g._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);-1<a&&b.splice(a,1)};g._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);-1<a&&b.splice(a,1)};g._forEachChild=function(){};
g._syncPendingControls=function(){return"submit"===this.updateOn&&(this._pendingDirty&&$ia(this),this._pendingTouched&&Zia(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){hja(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};
var pnb={provide:Zx,useExisting:ac(function(){return hy})},qnb=Promise.resolve(null),hy=function(a,b,c,d,e){Zx.call(this);this._changeDetectorRef=e;this.control=new gy;this._registered=!1;this.update=new Iw;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=cja(d)};U(hy,Zx);g=hy.prototype;
g.ngOnChanges=function(a){this._checkForErrors();if(!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var b=a.name.previousValue;this.formDirective.removeControl({name:b,path:this._getPath(b)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a);aja(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};g._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)};g._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
g._setUpStandalone=function(){Ag(this.control,this);Eg(this.control,{emitEvent:!1})};g._checkForErrors=function(){this._isStandalone()||this._checkParentType();this._checkName()};g._checkParentType=function(){};g._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};g._updateValue=function(a){var b=this;qnb.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;null==(c=b._changeDetectorRef)||c.markForCheck()})};
g._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=0!==a&&ig(a);qnb.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;null==(d=b._changeDetectorRef)||d.markForCheck()})};g._getPath=function(a){return this._parent?Qia(a,this._parent):[a]};
ki.Object.defineProperties(hy.prototype,{path:{configurable:!0,enumerable:!0,get:function(){return this._getPath(this.name)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});hy.\u0275fac=function(a){return new (a||hy)(F(ay,9),F(Vx,10),F(Wx,10),F(ux,10),F(lx,8))};
hy.\u0275dir=v({type:hy,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Lf([pnb]),gf,Ac]});
var iy=function(){};iy.\u0275fac=function(a){return new (a||iy)};iy.\u0275dir=v({type:iy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});
var rnb={provide:ux,useExisting:ac(function(){return jy}),multi:!0},jy=function(){Gg.apply(this,arguments)};U(jy,Gg);jy.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};jy.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:parseFloat(b))}};jy.\u0275fac=function(){var a;return function(b){return(a||(a=cd(jy)))(b||jy)}}();
jy.\u0275dir=v({type:jy,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&K("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},features:[Lf([rnb]),gf]});
var snb={provide:ux,useExisting:ac(function(){return ky}),multi:!0},ly=function(){};ly.\u0275fac=function(a){return new (a||ly)};ly.\u0275mod=rc({type:ly});ly.\u0275inj=fc({});var my=function(){this._accessors=[]};my.prototype.add=function(a,b){this._accessors.push([a,b])};my.prototype.remove=function(a){for(var b=this._accessors.length-1;0<=b;--b)if(this._accessors[b][1]===a){this._accessors.splice(b,1);break}};
my.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};my.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};my.\u0275fac=function(a){return new (a||my)};my.\u0275prov=ec({token:my,factory:my.\u0275fac,providedIn:ly});var ky=function(a,b,c,d){Gg.call(this,a,b);this._registry=c;this._injector=d;this.onChange=function(){}};U(ky,Gg);g=ky.prototype;
g.ngOnInit=function(){this._control=this._injector.get(Zx);this._checkName();this._registry.add(this._control,this)};g.ngOnDestroy=function(){this._registry.remove(this)};g.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};g.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};g._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};
ky.\u0275fac=function(a){return new (a||ky)(F(Mv),F(nd),F(my),F(Hv))};ky.\u0275dir=v({type:ky,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&K("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Lf([snb]),gf]});
var tnb=new jd("NgModelWithFormControlWarning"),unb={provide:Zx,useExisting:ac(function(){return ny})},ny=function(a,b,c,d){Zx.call(this);this._ngModelWarningConfig=d;this.update=new Iw;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=cja(c)};U(ny,Zx);
ny.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Cg(b,this);Ag(this.form,this);Eg(this.form,{emitEvent:!1})}aja(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};ny.prototype.ngOnDestroy=function(){this.form&&Cg(this.form,this)};ny.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};ny.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
ki.Object.defineProperties(ny.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return[]}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}}});ny.\u0275fac=function(a){return new (a||ny)(F(Vx,10),F(Wx,10),F(ux,10),F(tnb,8))};
ny.\u0275dir=v({type:ny,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Lf([unb]),gf,Ac]});
var vnb={provide:ay,useExisting:ac(function(){return oy})},oy=function(a,b){ay.call(this);var c=this;this.validators=a;this.asyncValidators=b;this.submitted=!1;this._onCollectionChange=function(){return c._updateDomValue()};this.directives=[];this.form=null;this.ngSubmit=new Iw;this._setValidators(a);this._setAsyncValidators(b)};U(oy,ay);g=oy.prototype;g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};
g.ngOnDestroy=function(){this.form&&(Bg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);Ag(b,a);Eg(b,{emitEvent:!1});this.directives.push(a);return b};g.removeControl=function(a){Cg(a.control||null,a);var b=this.directives;a=b.indexOf(a);-1<a&&b.splice(a,1)};g.updateModel=function(a,b){this.form.get(a.path).setValue(b)};
g.onSubmit=function(a){this.submitted=!0;bja(this.form,this.directives);this.ngSubmit.emit(a);return!1};g.onReset=function(){this.resetForm()};g.resetForm=function(){this.form.reset(void 0);this.submitted=!1};g._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(Cg(c||null,b),d instanceof gy&&(Ag(d,b),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
g._setUpFormContainer=function(a){var b=this.form.get(a.path);Ria(b,a);Eg(b,{emitEvent:!1})};g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Bg(b,a)&&Eg(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){Ria(this.form,this);this._oldForm&&Bg(this._oldForm,this)};g._checkFormPresent=function(){};
ki.Object.defineProperties(oy.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}}});oy.\u0275fac=function(a){return new (a||oy)(F(Vx,10),F(Wx,10))};
oy.\u0275dir=v({type:oy,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&K("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lf([vnb]),gf,Ac]});
var wnb={provide:Zx,useExisting:ac(function(){return py})},py=function(a,b,c,d,e){Zx.call(this);this._ngModelWarningConfig=e;this._added=!1;this.update=new Iw;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=cja(d)};U(py,Zx);g=py.prototype;g.ngOnChanges=function(a){this._added||this._setUpControl();aja(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._checkParentType=function(){};g._setUpControl=function(){this._checkParentType();this.control=this.formDirective.addControl(this);this._added=!0};
ki.Object.defineProperties(py.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Qia(null==this.name?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});py.\u0275fac=function(a){return new (a||py)(F(ay,13),F(Vx,10),F(Wx,10),F(ux,10),F(tnb,8))};
py.\u0275dir=v({type:py,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Lf([wnb]),gf,Ac]});
var qy=function(){this._validator=Eia};qy.prototype.ngOnChanges=function(a){this.inputName in a&&(a=this.normalizeInput(a[this.inputName].currentValue),this._validator=(this._enabled=this.enabled(a))?this.createValidator(a):Eia,this._onChange&&this._onChange())};qy.prototype.validate=function(a){return this._validator(a)};qy.prototype.registerOnValidatorChange=function(a){this._onChange=a};qy.prototype.enabled=function(a){return null!=a};qy.\u0275fac=function(a){return new (a||qy)};
qy.\u0275dir=v({type:qy,features:[Ac]});var xnb={provide:Vx,useExisting:ac(function(){return ry}),multi:!0},ry=function(){qy.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return"number"===typeof a?a:parseFloat(a)};this.createValidator=function(a){return Bia(a)}};U(ry,qy);ry.\u0275fac=function(){var a;return function(b){return(a||(a=cd(ry)))(b||ry)}}();
ry.\u0275dir=v({type:ry,selectors:["input type number min  formControlName ".split(" "),"input type number min  formControl ".split(" "),"input type number min  ngModel ".split(" ")],hostVars:1,hostBindings:function(a,b){a&2&&nf("min",b._enabled?b.min:null)},inputs:{min:"min"},features:[Lf([xnb]),gf]});var ynb={provide:Vx,useExisting:ac(function(){return sy}),multi:!0},sy=function(){qy.apply(this,arguments);this.inputName="required";this.normalizeInput=ig;this.createValidator=function(){return Cia}};
U(sy,qy);sy.prototype.enabled=function(a){return a};sy.\u0275fac=function(){var a;return function(b){return(a||(a=cd(sy)))(b||sy)}}();sy.\u0275dir=v({type:sy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&nf("required",b._enabled?"":null)},inputs:{required:"required"},features:[Lf([ynb]),gf]});
var znb={provide:Vx,useExisting:ac(function(){return ty}),multi:!0},ty=function(){qy.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return"number"===typeof a?a:parseInt(a,10)};this.createValidator=function(a){return Dia(a)}};U(ty,qy);ty.\u0275fac=function(){var a;return function(b){return(a||(a=cd(ty)))(b||ty)}}();
ty.\u0275dir=v({type:ty,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&nf("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Lf([znb]),gf]});var Anb={provide:Vx,useExisting:ac(function(){return uy}),multi:!0},uy=function(){qy.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return Fia(a)}};
U(uy,qy);uy.\u0275fac=function(){var a;return function(b){return(a||(a=cd(uy)))(b||uy)}}();uy.\u0275dir=v({type:uy,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&nf("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},features:[Lf([Anb]),gf]});
var vy=function(){};vy.\u0275fac=function(a){return new (a||vy)};vy.\u0275mod=rc({type:vy});vy.\u0275inj=fc({imports:[[ly]]});
var wy=function(){};wy.\u0275fac=function(a){return new (a||wy)};wy.\u0275mod=rc({type:wy});wy.\u0275inj=fc({imports:[vy]});var xy=function(){};xy.\u0275fac=function(a){return new (a||xy)};xy.\u0275mod=rc({type:xy});xy.\u0275inj=fc({imports:[vy]});
var Ig,ija="color button checkbox date datetime-local email file hidden image month number password radio range reset search submit tel text time url week".split(" ");
var Jg;
var Mg,Lg;
var nja;
var Bnb;try{Bnb="undefined"!==typeof Intl&&Intl.v8BreakIterator}catch(a){Bnb=!1}
var yy=function(a){this.EDGE=(this.isBrowser=(this._platformId=a)?"browser"===this._platformId:"object"===typeof document&&!!document)&&/(edge)/i.test(navigator.userAgent);this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);this.BLINK=this.isBrowser&&!(!window.chrome&&!Bnb)&&"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};yy.\u0275fac=function(a){return new (a||yy)(t(Vv))};yy.\u0275prov=ec({token:yy,factory:yy.\u0275fac,providedIn:"root"});
var zy=function(a){this._platform=a};zy.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};zy.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||"function"===typeof a.getClientRects&&a.getClientRects().length)&&"visible"===getComputedStyle(a).visibility};
var Cnb=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(h){c=null}if(c&&(-1===qja(c)||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=qja(b);if(b.hasAttribute("contenteditable"))a=-1!==d;else{var e;if(!(e="iframe"===c||"object"===c)&&(e=a._platform.WEBKIT&&a._platform.IOS)){e=b.nodeName.toLowerCase();var f="input"===e&&b.type;e=!("text"===f||"password"===f||"select"===e||"textarea"===e)}a=e?!1:"audio"===
c?b.hasAttribute("controls")?-1!==d:!1:"video"===c?-1===d?!1:null!==d?!0:a._platform.FIREFOX||b.hasAttribute("controls"):0<=b.tabIndex}return a};zy.prototype.isFocusable=function(a){if("input"==a.nodeName.toLowerCase()&&"hidden"==a.type)var b=!1;else b=a.nodeName.toLowerCase(),b="input"===b||"select"===b||"button"===b||"textarea"===b||"a"==a.nodeName.toLowerCase()&&a.hasAttribute("href")||a.hasAttribute("contenteditable")||pja(a);return b&&!this.isDisabled(a)&&this.isVisible(a)};
zy.\u0275fac=function(a){return new (a||zy)(t(yy))};zy.\u0275prov=ec({token:zy,factory:zy.\u0275fac,providedIn:"root"});
var Cy=function(a,b,c,d,e){var f=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._hasAttached=!1;this.startAnchorListener=function(){return Dnb(f)};this.endAnchorListener=function(){return Ay(f)};this._enabled=!0;(void 0===e?0:e)||By(this)};
Cy.prototype.destroy=function(){var a=this._startAnchor,b=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove());b&&(b.removeEventListener("focus",this.endAnchorListener),b.remove());this._startAnchor=this._endAnchor=null;this._hasAttached=!1};
var By=function(a){a._hasAttached||(a._ngZone.runOutsideAngular(function(){a._startAnchor||(a._startAnchor=a._createAnchor(),a._startAnchor.addEventListener("focus",a.startAnchorListener));a._endAnchor||(a._endAnchor=a._createAnchor(),a._endAnchor.addEventListener("focus",a.endAnchorListener))}),a._element.parentNode&&(a._element.parentNode.insertBefore(a._startAnchor,a._element),a._element.parentNode.insertBefore(a._endAnchor,a._element.nextSibling),a._hasAttached=!0))},Dy=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(Enb(a))})})};
Cy.prototype._getRegionBoundary=function(a){var b=this._element.querySelectorAll("[cdk-focus-region-"+a+"], [cdkFocusRegion"+(a+"], [cdk-focus-")+(a+"]"));return"start"==a?b.length?b[0]:this._getFirstTabbableElement(this._element):b.length?b[b.length-1]:this._getLastTabbableElement(this._element)};
var Enb=function(a){var b=a._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(b){if(!a._checker.isFocusable(b))return a=a._getFirstTabbableElement(b),null==a||a.focus(void 0),!!a;b.focus(void 0);return!0}return Ay(a)},Ay=function(a){(a=a._getRegionBoundary("start"))&&a.focus(void 0);return!!a},Dnb=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=Cy.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&Cnb(this._checker,a))return a;a=a.children;for(var b=0;b<a.length;b++){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(a[b]):null;if(c)return c}return null};g._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&Cnb(this._checker,a))return a;a=a.children;for(var b=a.length-1;0<=b;b--){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(a[b]):null;if(c)return c}return null};
g._createAnchor=function(){var a=this._document.createElement("div");this._toggleAnchorTabIndex(this._enabled,a);a.classList.add("cdk-visually-hidden");a.classList.add("cdk-focus-trap-anchor");a.setAttribute("aria-hidden","true");return a};g._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var Fnb=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
Cy.prototype._executeOnStable=function(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe(Me()).subscribe(a)};ki.Object.defineProperties(Cy.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled=a;this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}}});var Ey=function(a,b,c){this._checker=a;this._ngZone=b;this._document=c};
Ey.prototype.create=function(a,b){return new Cy(a,this._checker,this._ngZone,this._document,void 0===b?!1:b)};Ey.\u0275fac=function(a){return new (a||Ey)(t(zy),t(ef),t(ii))};Ey.\u0275prov=ec({token:Ey,factory:Ey.\u0275fac,providedIn:"root"});var Fy=function(a,b){this._elementRef=a;this._focusTrapFactory=b;this._previouslyFocusedElement=null;this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)};g=Fy.prototype;
g.ngOnDestroy=function(){this.focusTrap.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){By(this.focusTrap);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap.hasAttached()||By(this.focusTrap)};g.ngOnChanges=function(a){(a=a.autoCapture)&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()};
g._captureFocus=function(){this._previouslyFocusedElement=Og();Dy(this.focusTrap)};ki.Object.defineProperties(Fy.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this.focusTrap.enabled},set:function(a){this.focusTrap.enabled=Rg(a)}},autoCapture:{configurable:!0,enumerable:!0,get:function(){return this._autoCapture},set:function(a){this._autoCapture=Rg(a)}}});Fy.\u0275fac=function(a){return new (a||Fy)(F(nd),F(Ey),F(ii))};
Fy.\u0275dir=v({type:Fy,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Ac]});
/*

 SPDX-License-Identifier: Apache-2.0
*/
var Yg={};
var Gy,Vg=function(){if(void 0===Gy){var a=null,b=ba.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Zhb,createScript:Zhb,createScriptURL:Zhb})}catch(c){ba.console&&ba.console.error(c.message)}Gy=a}else Gy=a}return Gy};
var oh=function(){},Xg=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};U(Xg,oh);Xg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml.toString()};
var th=function(){},$g=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};U($g,th);$g.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl.toString()};
var Hja="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
var Gnb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};
var jh=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===Hnb&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Inb};jh.prototype.implementsGoogStringTypedString=!0;jh.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var kh=function(a){return a instanceof jh&&a.constructor===jh&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Inb?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Ao=function(a){return new jh(Hnb,a)},Inb={},Hnb={};
var Hy=function(a,b){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=b===Jnb?a:""};g=Hy.prototype;g.implementsGoogStringTypedString=!0;g.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};g.implementsGoogI18nBidiDirectionalString=!0;g.getDirection=function(){return 1};g.toString=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+""};
var uh=function(a){return Uja(a).toString()},Uja=function(a){if(a instanceof Hy&&a.constructor===Hy)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;La(a);return"type_error:TrustedResourceUrl"},zo=function(a){return Knb(kh(a))},Jnb={},Knb=function(a){var b=Vg();a=b?b.createScriptURL(a):a;return new Hy(a,Jnb)};
var hh=function(a,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=b===Lnb?a:""};g=hh.prototype;g.implementsGoogStringTypedString=!0;g.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};g.implementsGoogI18nBidiDirectionalString=!0;g.getDirection=function(){return 1};g.toString=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};
var ih=function(a){if(a instanceof hh&&a.constructor===hh)return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;La(a);return"type_error:SafeUrl"},Mnb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Nnb=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(Mnb)?Iy(a):null},Onb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Rja=function(a){if(a instanceof hh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);return Onb.test(a)?Iy(a):Nnb(a)},Gj=
function(a,b){if(a instanceof hh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);if(b&&/^data:/i.test(a)&&(b=Nnb(a)||lh,b.getTypedStringValue()==a))return b;Onb.test(a)||(a="about:invalid#zClosurez");return Iy(a)},Lnb={},Iy=function(a){return new hh(a,Lnb)},lh=Iy("about:invalid#zClosurez");
var Pnb={},Jy=function(a,b){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=b===Pnb?a:"";this.implementsGoogStringTypedString=!0};Jy.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};Jy.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()};
var Qnb=function(a){if(a instanceof Jy&&a.constructor===Jy)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;La(a);return"type_error:SafeStyle"},Rnb=new Jy("",Pnb),Mja=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Lja=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Kja=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)",
"g"),Nja=/\/\*/;
var Snb={},Ky=function(a,b){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=b===Snb?a:"";this.implementsGoogStringTypedString=!0};Ky.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};Ky.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()};
var Tnb={},Ly=function(a,b,c){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=c===Tnb?a:"";this.dir_=b;this.implementsGoogStringTypedString=this.implementsGoogI18nBidiDirectionalString=!0};Ly.prototype.getDirection=function(){return this.dir_};Ly.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};Ly.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};
var ph=function(a){if(a instanceof Ly&&a.constructor===Ly)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;La(a);return"type_error:SafeHtml"},Nn=function(a){if(a instanceof Ly)return a;var b="object"==typeof a,c=null;b&&a.implementsGoogI18nBidiDirectionalString&&(c=a.getDirection());return Hj(hib(b&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a)),c)},My=function(a){if(a instanceof Ly)return a;a=Nn(a);var b=ph(a).toString().replace(/(\r\n|\r|\n)/g,"<br>");return Hj(b,a.getDirection())},
Pn=function(a,b,c){var d=String(a);if(!Unb.test(d))throw Error("Xa");if(d.toUpperCase()in Vnb)throw Error("Xa");a=String(a);d=c;c=null;var e="<"+a,f="";if(b)for(E in b)if(Object.prototype.hasOwnProperty.call(b,E)){if(!Unb.test(E))throw Error("Xa");var h=b[E];if(null!=h){var k=E;var q=h;if(q instanceof jh)q=kh(q);else if("style"==k.toLowerCase()){h=void 0;if(!Da(q))throw Error("Xa");if(!(q instanceof Jy)){var w="";for(h in q)if(Object.prototype.hasOwnProperty.call(q,h)){if(!/^[-_a-zA-Z0-9]+$/.test(h))throw Error("Za`"+
h);var y=q[h];null!=y&&(y=Array.isArray(y)?y.map(Qja).join(" "):Qja(y),w+=h+":"+y+";")}q=w?new Jy(w,Pnb):Rnb}q=Qnb(q)}else{if(/^on/i.test(k))throw Error("Xa");if(k.toLowerCase()in Wnb)if(q instanceof Hy)q=uh(q);else if(q instanceof hh)q=ih(q);else if("string"===typeof q)q=(Rja(q)||lh).getTypedStringValue();else throw Error("Xa");}q.implementsGoogStringTypedString&&(q=q.getTypedStringValue());k=k+'="'+hib(String(q))+'"';f+=" "+k}}var E=e+f;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===Gnb[a.toLowerCase()]?
E+=">":(c=Qn(d),E+=">"+ph(c).toString()+"</"+a+">",c=c.getDirection());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);return Hj(E,c)},Xnb=function(a){var b=Nn(ot),c=b.getDirection(),d=[],e=function(f){Array.isArray(f)?f.forEach(e):(f=Nn(f),d.push(ph(f).toString()),f=f.getDirection(),0==c?c=f:0!=f&&c!=f&&(c=null))};a.forEach(e);return Hj(d.join(ph(b).toString()),c)},Qn=function(a){return Xnb(Array.prototype.slice.call(arguments))},Hj=function(a,b){var c=Vg();a=c?c.createHTML(a):a;return new Ly(a,
b,Tnb)},Unb=/^[a-zA-Z0-9-]+$/,Wnb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Vnb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},ot=new Ly(ba.trustedTypes&&ba.trustedTypes.emptyHTML||"",0,Tnb);
var rh=function(){},mh=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};U(mh,rh);mh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var Xja=new mh("about:invalid#zTSz",Yg);
var Ynb="alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
var Vja=function(a){this.isValid=a},Wja=[wh("data"),wh("http"),wh("https"),wh("mailto"),wh("ftp"),new Vja(function(a){return/^[^:]*([/?#]|$)/.test(a)})];
var Znb=function(){};U(Znb,Zmb);
var Ny=function(){};U(Ny,Znb);var $nb=function(a,b,c){a.addEventListener(b,c,!1);return function(){a.removeEventListener(b,c,!1)}};Ny.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};Ny.prototype.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};Ny.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var anb=function(a,b){return"window"===b?window:"document"===b?a:"body"===b?a.body:null};
Ny.prototype.getBaseHref=function(){var a=(aob=aob||document.querySelector("base"))?aob.getAttribute("href"):null;null==a?a=null:(Oy=Oy||document.createElement("a"),Oy.setAttribute("href",a),a=Oy.pathname,a="/"===a.charAt(0)?a:"/"+a);return a};var aob=null,Oy;
new jd("TRANSITION_ID");
var bob=function(){};
bob.prototype.addToWindow=function(a){sd.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,void 0===c?!0:c);if(null==b)throw Error("cb");return b};sd.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};sd.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};sd.frameworkStabilizers||(sd.frameworkStabilizers=[]);sd.frameworkStabilizers.push(function(b){var c=sd.getAllAngularTestabilities(),d=c.length,e=!1,f=function(h){e=e||h;d--;
0==d&&b(e)};c.forEach(function(h){h.whenStable(f)})})};bob.prototype.findTestabilityInTree=function(a,b,c){if(null==b)return null;var d=a._applications.get(b)||null;if(null!=d)a=d;else{var e;c?e=b instanceof DocumentFragment?this.findTestabilityInTree(a,b.host,!0):this.findTestabilityInTree(a,b.parentElement,!0):e=null;a=e}return a};
var Py=function(){};Py.prototype.build=function(){return new XMLHttpRequest};Py.\u0275fac=function(a){return new (a||Py)};Py.\u0275prov=ec({token:Py,factory:Py.\u0275fac});
var Qy=new jd("EventManagerPlugins"),Ry=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){return d.manager=c});this._plugins=a.slice().reverse()};Ry.prototype.addEventListener=function(a,b,c){return this._findPluginFor(b).addEventListener(a,b,c)};Ry.prototype.addGlobalEventListener=function(a,b,c){return this._findPluginFor(b).addGlobalEventListener(a,b,c)};
Ry.prototype._findPluginFor=function(a){var b=this._eventNameToPlugin.get(a);if(b)return b;b=this._plugins;for(var c=0;c<b.length;c++){var d=b[c];if(d.supports(a))return this._eventNameToPlugin.set(a,d),d}throw Error("db`"+a);};Ry.\u0275fac=function(a){return new (a||Ry)(t(Qy),t(ef))};Ry.\u0275prov=ec({token:Ry,factory:Ry.\u0275fac});var cob=function(a){this._doc=a};
cob.prototype.addGlobalEventListener=function(a,b,c){a=anb(this._doc,a);if(!a)throw Error("eb`"+a+"`"+b);return this.addEventListener(a,b,c)};
var Sy=function(){this._stylesSet=new Set},dob=function(a,b){var c=new Set;b.forEach(function(d){a._stylesSet.has(d)||(a._stylesSet.add(d),c.add(d))});a.onStylesAdded(c)};Sy.prototype.onStylesAdded=function(){};Sy.\u0275fac=function(a){return new (a||Sy)};Sy.\u0275prov=ec({token:Sy,factory:Sy.\u0275fac});var Ty=function(a){this._stylesSet=new Set;this._doc=a;this._hostNodes=new Map;this._hostNodes.set(a.head,[])};U(Ty,Sy);
Ty.prototype._addStylesToHost=function(a,b,c){var d=this;a.forEach(function(e){var f=d._doc.createElement("style");f.textContent=e;c.push(b.appendChild(f))})};Ty.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c,d){b._addStylesToHost(a,d,c)})};Ty.prototype.ngOnDestroy=function(){this._hostNodes.forEach(function(a){return a.forEach(Yja)})};Ty.\u0275fac=function(a){return new (a||Ty)(t(ii))};Ty.\u0275prov=ec({token:Ty,factory:Ty.\u0275fac});
var eob={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/"},Zja=/%COMP%/g,Vy=function(a,b,c){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.rendererByCompId=new Map;this.defaultRenderer=new Uy(a)};
Vy.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;switch(b.encapsulation){case 0:var c=this.rendererByCompId.get(b.id);c||(c=new fob(this.eventManager,this.sharedStylesHost,b,this.appId),this.rendererByCompId.set(b.id,c));Uy.prototype.setAttribute.call(c,a,c.hostAttr,"");return c;case 1:case 3:return new gob(this.eventManager,this.sharedStylesHost,a,b);default:return this.rendererByCompId.has(b.id)||(a=Ah(b.id,b.styles,[]),dob(this.sharedStylesHost,a),this.rendererByCompId.set(b.id,
this.defaultRenderer)),this.defaultRenderer}};Vy.prototype.begin=function(){};Vy.prototype.end=function(){};Vy.\u0275fac=function(a){return new (a||Vy)(t(Ry),t(Ty),t(Klb))};Vy.\u0275prov=ec({token:Vy,factory:Vy.\u0275fac});var Uy=function(a){this.eventManager=a;this.data=Object.create(null);this.destroyNode=null};g=Uy.prototype;g.destroy=function(){};g.createElement=function(a,b){return b?document.createElementNS(eob[b]||b,a):document.createElement(a)};g.createComment=function(a){return document.createComment(a)};
g.createText=function(a){return document.createTextNode(a)};g.appendChild=function(a,b){("TEMPLATE"===a.tagName&&void 0!==a.content?a.content:a).appendChild(b)};g.insertBefore=function(a,b,c){a&&("TEMPLATE"===a.tagName&&void 0!==a.content?a.content:a).insertBefore(b,c)};g.removeChild=function(a,b){a&&a.removeChild(b)};g.selectRootElement=function(a,b){var c="string"===typeof a?document.querySelector(a):a;if(!c)throw Error("fb`"+a);b||(c.textContent="");return c};g.parentNode=function(a){return a.parentNode};
g.nextSibling=function(a){return a.nextSibling};g.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=eob[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};g.removeAttribute=function(a,b,c){if(c){var d=eob[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};g.addClass=function(a,b){a.classList.add(b)};g.removeClass=function(a,b){a.classList.remove(b)};g.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};
g.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};g.setProperty=function(a,b,c){a[b]=c};g.setValue=function(a,b){a.nodeValue=b};g.listen=function(a,b,c){return"string"===typeof a?this.eventManager.addGlobalEventListener(a,b,$ja(c)):this.eventManager.addEventListener(a,b,$ja(c))};
var fob=function(a,b,c,d){Uy.call(this,a);this.component=c;a=Ah(d+"-"+c.id,c.styles,[]);dob(b,a);this.contentAttr="_ngcontent-%COMP%".replace(Zja,d+"-"+c.id);this.hostAttr="_nghost-%COMP%".replace(Zja,d+"-"+c.id)};U(fob,Uy);fob.prototype.createElement=function(a,b){a=Uy.prototype.createElement.call(this,a,b);Uy.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};
var gob=function(a,b,c,d){Uy.call(this,a);this.sharedStylesHost=b;this.hostEl=c;this.shadowRoot=c.attachShadow({mode:"open"});a=this.sharedStylesHost;b=this.shadowRoot;c=[];a._addStylesToHost(a._stylesSet,b,c);a._hostNodes.set(b,c);d=Ah(d.id,d.styles,[]);for(a=0;a<d.length;a++)b=document.createElement("style"),b.textContent=d[a],this.shadowRoot.appendChild(b)};U(gob,Uy);var Wy=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=gob.prototype;
g.destroy=function(){var a=this.sharedStylesHost,b=this.shadowRoot,c=a._hostNodes.get(b);c&&c.forEach(Yja);a._hostNodes.delete(b)};g.appendChild=function(a,b){return Uy.prototype.appendChild.call(this,Wy(this,a),b)};g.insertBefore=function(a,b,c){return Uy.prototype.insertBefore.call(this,Wy(this,a),b,c)};g.removeChild=function(a,b){return Uy.prototype.removeChild.call(this,Wy(this,a),b)};g.parentNode=function(a){return Wy(this,Uy.prototype.parentNode.call(this,Wy(this,a)))};
var Xy=function(a){this._doc=a};U(Xy,cob);Xy.prototype.supports=function(){return!0};Xy.prototype.addEventListener=function(a,b,c){var d=this;a.addEventListener(b,c,!1);return function(){return d.removeEventListener(a,b,c)}};Xy.prototype.removeEventListener=function(a,b,c){return a.removeEventListener(b,c)};Xy.\u0275fac=function(a){return new (a||Xy)(t(ii))};Xy.\u0275prov=ec({token:Xy,factory:Xy.\u0275fac});
var hob=["alt","control","meta","shift"],bka={"\b":"Backspace","\t":"Tab","\u007f":"Delete","\u001b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},aka={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\u0090":"NumLock"},iob={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},
Yy=function(a){this._doc=a};U(Yy,cob);Yy.prototype.supports=function(a){return null!=job(a)};Yy.prototype.addEventListener=function(a,b,c){var d=job(b),e=kob(d.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return $nb(a,d.domEventName,e)})};
var job=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(0===b.length||"keydown"!==a&&"keyup"!==a)return null;var c=lob(b.pop()),d="";hob.forEach(function(e){var f=b.indexOf(e);-1<f&&(b.splice(f,1),d+=e+".")});d+=c;if(0!=b.length||0===c.length)return null;a={domEventName:a};a.fullKey=d;return a},mob=function(a){var b="",c=cka(a);c=c.toLowerCase();" "===c?c="space":"."===c&&(c="dot");hob.forEach(function(d){d!=c&&(0,iob[d])(a)&&(b+=d+".")});return b+=c},kob=function(a,b,c){return function(d){mob(d)===
a&&c.runGuarded(function(){return b(d)})}},lob=function(a){switch(a){case "esc":return"escape";default:return a}};Yy.\u0275fac=function(a){return new (a||Yy)(t(ii))};Yy.\u0275prov=ec({token:Yy,factory:Yy.\u0275fac});
var Cmb=Uga(Smb,"browser",[{provide:Vv,useValue:"browser"},{provide:Qga,useValue:function(){var a=new Ny;zh||(zh=a);rmb=new bob},multi:!0},{provide:ii,useFactory:function(){return Cca=document},deps:[]}]),nob=[{provide:Vga,useValue:"root"},{provide:Td,useFactory:function(){return new Td},deps:[]},{provide:Qy,useClass:Xy,multi:!0,deps:[ii,ef,Vv]},{provide:Qy,useClass:Yy,multi:!0,deps:[ii]},{provide:Vy,useClass:Vy,deps:[Ry,Ty,Klb]},{provide:Lv,useExisting:Vy},{provide:Sy,useExisting:Ty},{provide:Ty,
useClass:Ty,deps:[ii]},{provide:Kw,useClass:Kw,deps:[ef]},{provide:Ry,useClass:Ry,deps:[Qy,ef]},{provide:fnb,useClass:Py,deps:[]}],Zy=function(a){if(a)throw Error("gb");};Zy.\u0275fac=function(a){return new (a||Zy)(t(Zy,12))};Zy.\u0275mod=rc({type:Zy});Zy.\u0275inj=fc({providers:nob,imports:[Mx,kx]});
var $y=function(a){this._doc=a};$y.prototype.getTitle=function(){return this._doc.title};$y.prototype.setTitle=function(a){this._doc.title=a||""};$y.\u0275fac=function(a){return new (a||$y)(t(ii))};$y.\u0275prov=ec({token:$y,factory:function(a){var b=null;a?b=new a:b=new $y(t(ii));return b},providedIn:"root"});
new jd("HammerGestureConfig");new jd("HammerLoader");new Ev;new Ev;
var az=function(){};az.\u0275fac=function(a){return new (a||az)};az.\u0275prov=ec({token:az,factory:function(a){return a?new (a||az):t(bz)},providedIn:"root"});var bz=function(a){this._doc=a};U(bz,az);
bz.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case 0:return b;case 1:return Dd(b,"HTML")?Bd(b):eea(this._doc,String(b)).toString();case 2:return Dd(b,"Style")?Bd(b):b;case 3:if(Dd(b,"Script"))return Bd(b);throw Error("hb");case 4:return b instanceof Ad&&b.getTypeName(),Dd(b,"URL")?Bd(b):Ed(String(b));case 5:if(Dd(b,"ResourceURL"))return Bd(b);throw Error("ib");default:throw Error("jb`"+a);}};bz.prototype.bypassSecurityTrustHtml=function(a){return new qlb(a)};
bz.prototype.bypassSecurityTrustUrl=function(a){return new rlb(a)};bz.prototype.bypassSecurityTrustResourceUrl=function(a){return new slb(a)};bz.\u0275fac=function(a){return new (a||bz)(t(ii))};bz.\u0275prov=ec({token:bz,factory:function(a){a?a=new a:(a=t(Hv),a=new bz(a.get(ii)));return a},providedIn:"root"});
var cz=function(a){this.decorated=new bz(a)};U(cz,az);cz.prototype.sanitize=function(a,b){if(null==b)return null;if(b instanceof th||b instanceof rh||b instanceof oh){if(oob(b,a))return this.decorated.sanitize(a,pob(this,b));throw Error("kb`"+Clb[a]+"`"+b);}return this.decorated.sanitize(a,b)};cz.prototype.bypassSecurityTrustHtml=function(){throw Error("lb");};cz.prototype.bypassSecurityTrustUrl=function(){throw Error("lb");};
cz.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("lb");};var pob=function(a,b){if(null!=b){if(b instanceof oh)return a.decorated.bypassSecurityTrustHtml(uja(b));if(b instanceof rh)return a.decorated.bypassSecurityTrustUrl(nh(b));if(b instanceof th)return a.decorated.bypassSecurityTrustResourceUrl(xja(b))}return null},oob=function(a,b){switch(b){case 1:return a instanceof oh;case 4:return a instanceof rh||a instanceof th;case 5:return a instanceof th;case 3:return!1;default:return!1}};
cz.\u0275fac=function(a){return new (a||cz)(t(ii))};cz.\u0275prov=ec({token:cz,factory:cz.\u0275fac});
var dz=function(){};dz.\u0275fac=function(a){return new (a||dz)};dz.\u0275mod=rc({type:dz});dz.\u0275inj=fc({providers:[{provide:Ov,useExisting:az},{provide:az,useClass:cz}],imports:[Zy]});
var Bh=new Set(["true","1"]),Ch=new Set(["false","0"]);
var qob=function(){},rob=function(){};
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
 @param {function(): ?} cb
 @return {void}
*/
var Kh=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._finished=this._destroyed=this._started=!1;this._position=0;this.parentPlayer=null;this.totalTime=(void 0===a?0:a)+(void 0===b?0:b)};g=Kh.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.onStart=function(a){this._onStartFns.push(a)};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.hasStarted=function(){return this._started};g.init=function(){};g.play=function(){this.hasStarted()||(this._onStart(),sob(this));this._started=!0};var sob=function(a){Promise.resolve(null).then(function(){return a._onFinish()})};g=Kh.prototype;g._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};g.pause=function(){};g.restart=function(){};g.finish=function(){this._onFinish()};
g.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this._started=!1};g.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};g.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};g.triggerCallback=function(a){a="start"==a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};
var hka=function(a){var b=this;this._onDoneFns=[];this._onStartFns=[];this._destroyed=this._started=this._finished=!1;this._onDestroyFns=[];this.parentPlayer=null;this.totalTime=0;this.players=a;var c=0,d=0,e=0,f=this.players.length;0==f?Promise.resolve(null).then(function(){return b._onFinish()}):this.players.forEach(function(h){h.onDone(function(){++c==f&&b._onFinish()});h.onDestroy(function(){++d==f&&b._onDestroy()});h.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(h,
k){return Math.max(h,k.totalTime)},0)};g=hka.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this.players.forEach(function(a){return a.init()})};g.onStart=function(a){this._onStartFns.push(a)};g._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.hasStarted=function(){return this._started};g.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};g.pause=function(){this.players.forEach(function(a){return a.pause()})};g.restart=function(){this.players.forEach(function(a){return a.restart()})};g.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};g.destroy=function(){this._onDestroy()};
g._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(a){return a.destroy()}),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};g.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
g.getPosition=function(){var a=this.players.reduce(function(b,c){return null===b||c.totalTime>b.totalTime?c:b},null);return null!=a?a.getPosition():0};g.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};g.triggerCallback=function(a){a="start"==a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};
var ez=function(){return!1},tob=function(){return[]},oka=null;if(gka()||"undefined"!==typeof Element)"undefined"!==typeof window&&"undefined"!==typeof window.document?(oka=document.documentElement,ez=function(a,b){for(;b;){if(b===a)return!0;b=pka(b)}return!1}):ez=function(a,b){return a.contains(b)},tob=function(a,b,c){return c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[]};
var wka=RegExp("{{\\s*(.+?)\\s*}}","g"),xka=/-+([a-z0-9])/g;
var zka=RegExp("s*:selfs*,?","g"),uob=function(a){this._driver=a};g=uob.prototype;g.build=function(a,b){b=new vob(b);this._resetContextStyleTimingState(b);return Xh(this,Uh(a),b)};g._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
g.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],h=[];"@"==a.name.charAt(0)&&b.errors.push(new ic(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(0==k.type){var q=k.name;q.toString().split(/\s*,\s*/).forEach(function(w){k.name=w;f.push(c.visitState(k,b))});k.name=q}else 1==k.type?(q=c.visitTransition(k,b),d+=q.queryCount,e+=q.depCount,h.push(q)):b.errors.push(new ic(3007,!1))});return{type:7,name:a.name,states:f,transitions:h,queryCount:d,
depCount:e,options:null}};g.visitState=function(a,b){var c=this.visitStyle(a.styles,b),d=a.options&&a.options.params||null;if(c.containsDynamicStyles){var e=new Set,f=d||{};c.styles.forEach(function(h){h instanceof Map&&h.forEach(function(k){uka(k).forEach(function(q){f.hasOwnProperty(q)||e.add(q)})})});e.size&&(Wh(e.values()),b.errors.push(new ic(3008,!1)))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
g.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=Xh(this,Uh(a.animation),b);return{type:1,matchers:fka(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:Yh(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Xh(c,d,b)}),options:Yh(a.options)}};
g.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(h){b.currentTime=d;h=Xh(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:Yh(a.options)}};
g.visitAnimate=function(a,b){var c=Cka(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:Fh({});if(5==d.type)a=this.visitKeyframes(d,b);else{d=a.styles;a=!1;d||(a=!0,d={},c.easing&&(d.easing=c.easing),d=Fh(d));b.currentTime+=c.duration+c.delay;var e=this.visitStyle(d,b);e.isEmptyStep=a;a=e}b.currentAnimateTimings=null;return{type:4,timings:c,style:a,options:null}};g.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
g._makeStyleAst=function(a,b){var c=[],d=Array.isArray(a.styles)?a.styles:[a.styles];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,"string"===typeof e?"*"===e?c.push(e):b.errors.push(new ic(3002,!1)):c.push(rka(e));var f=!1,h=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(h=k.get("easing"),k.delete("easing")),!f)){k=r(k.values());for(var q=k.next();!q.done;q=k.next())if(0<=q.value.toString().indexOf("{{")){f=!0;break}}});return{type:6,styles:c,easing:h,offset:a.offset,
containsDynamicStyles:f,options:null}};g._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&0<e&&(e-=c.duration+c.delay);a.styles.forEach(function(f){"string"!==typeof f&&f.forEach(function(h,k){var q=b.collectedStyles.get(b.currentQuerySelector),w=q.get(k),y=!0;w&&(e!=d&&e>=w.startTime&&d<=w.endTime&&(b.errors.push(new ic(3010,!1)),y=!1),e=w.startTime);y&&q.set(k,{startTime:e,endTime:d});b.options&&vka(h,b.options,b.errors)})})};
g.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new ic(3011,!1)),d;var e=0,f=[],h=!1,k=!1,q=0,w=a.steps.map(function(S){S=c._makeStyleAst(S,b);var Y=null!=S.offset?S.offset:Bka(S.styles),ka=0;null!=Y&&(e++,ka=S.offset=Y);k=k||0>ka||1<ka;h=h||ka<q;q=ka;f.push(ka);return S});k&&b.errors.push(new ic(3012,!1));h&&b.errors.push(new ic(3200,!1));a=a.steps.length;var y=0;0<e&&e<a?b.errors.push(new ic(3202,!1)):0==e&&(y=1/(a-1));
var E=a-1,I=b.currentTime,N=b.currentAnimateTimings,L=N.duration;w.forEach(function(S,Y){Y=0<y?Y==E?1:y*Y:f[Y];var ka=Y*L;b.currentTime=I+N.delay+ka;N.duration=ka;c._validateStyleAst(S,b);S.offset=Y;d.styles.push(S)});return d};g.visitReference=function(a,b){return{type:8,animation:Xh(this,Uh(a.animation),b),options:Yh(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:Yh(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:Yh(a.options)}};
g.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=r(Aka(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;Nh(b.collectedStyles,b.currentQuerySelector,new Map);var h=Xh(this,Uh(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:h,originalSelector:a.selector,options:Yh(a.options)}};
g.visitStagger=function(a,b){b.currentQuery||b.errors.push(new ic(3013,!1));var c="full"===a.timings?{duration:0,delay:0,easing:"full"}:Ph(a.timings,b.errors,!0);return{type:12,animation:Xh(this,Uh(a.animation),b),timings:c,options:null}};var vob=function(a){this.errors=a;this.depCount=this.queryCount=0;this.currentAnimateTimings=this.currentQuerySelector=this.currentQuery=null;this.currentTime=0;this.collectedStyles=new Map;this.options=null};
var fz=function(){this._map=new Map};fz.prototype.get=function(a){return this._map.get(a)||[]};fz.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,u(b))};fz.prototype.has=function(a){return this._map.has(a)};fz.prototype.clear=function(){this._map.clear()};
var wob=RegExp(":enter","g"),xob=RegExp(":leave","g"),Eka=function(){};g=Eka.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,w){w=void 0===w?[]:w;q=q||new fz;a=new gz(a,b,q,d,e,w,[]);a.options=k;d=k.delay?Oh(k.delay):0;a.currentTimeline.delayNextStep(d);hz(a.currentTimeline,[f],null,a.errors,k);Xh(this,c,a);c=a.timelines.filter(function(E){return E.containsAnimation()});if(c.length&&h.size){for(f=c.length-1;0<=f;f--)if(e=c[f],e.element===b){var y=e;break}y&&y._currentEmptyStepKeyframe===y._currentKeyframe&&hz(y,[h],null,a.errors,k)}return c.length?c.map(function(E){return E.buildKeyframes()}):
[Dka(b,[],[],[],0,d,"",!1)]};g.visitTrigger=function(){};g.visitState=function(){};g.visitTransition=function(){};g.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=iz(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&jz(b,c)}b.previousNode=a};g.visitAnimateRef=function(a,b){var c=iz(b,a.options);jz(c);this.visitReference(a.animation,c);jz(b,c.currentTimeline.currentTime);b.previousNode=a};
g._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=null!=c.duration?Oh(c.duration):null,f=null!=c.delay?Oh(c.delay):null;0!==e&&a.forEach(function(h){var k={duration:null!=e?e:h.duration,delay:b.currentTimeline.currentTime+(null!=f?f:0)+h.delay,easing:""};h=new kz(b._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,k,h.stretchStartingKeyframe);b.timelines.push(h);d=Math.max(d,k.duration+k.delay)});return d};
g.visitReference=function(a,b){yob(b,a.options,!0);Xh(this,a.animation,b);b.previousNode=a};g.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=iz(b,f),jz(e),null!=f.delay&&(6==e.previousNode.type&&(lz(e.currentTimeline),e.previousNode=mz),e.delayNextStep(Oh(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return Xh(c,h,e)}),nz(e.currentTimeline),e.subContextCount>d&&jz(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Oh(a.options.delay):0;a.steps.forEach(function(h){var k=iz(b,a.options);f&&k.delayNextStep(f);Xh(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return zob(b.currentTimeline,h)});jz(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?Vh(a,b.params,b.errors):a,Ph(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
g.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(oz(b.currentTimeline,b.currentTimeline.duration+c.delay),lz(d));var e=a.style;5==e.type?this.visitKeyframes(e,b):(oz(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),nz(d));b.currentAnimateTimings=null;b.previousNode=a};
g.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&0<c._currentKeyframe.size&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=r(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else hz(c,a.styles,d,b.errors,b.options);b.previousNode=
a};g.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=iz(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){oz(f,(h.offset||0)*e);hz(f,h.styles,h.easing,b.errors,b.options);nz(f)});zob(b.currentTimeline,f);jz(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Oh(e.delay):0;f&&(6===b.previousNode.type||0==d&&0<b.currentTimeline._currentKeyframe.size)&&(lz(b.currentTimeline),b.previousNode=mz);var h=d;d=Aob(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,w){b.currentQueryIndex=w;w=iz(b,a.options,q);f&&w.delayNextStep(f);q===b.element&&(k=w.currentTimeline);Xh(c,a.animation,w);nz(w.currentTimeline);
h=Math.max(h,w.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;jz(b,h);k&&(zob(b.currentTimeline,k),lz(b.currentTimeline));b.previousNode=a};
g.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),h=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(0>e.duration?"reverse":e.easing){case "reverse":f=h-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;Xh(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var mz={},gz=function(a,b,c,d,e,f,h,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=h;this.currentAnimateTimings=this.parentContext=null;this.previousNode=mz;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new pz(this._driver,b,0);h.push(this.currentTimeline)},yob=function(a,b,c){if(b){var d=a.options;null!=b.duration&&(d.duration=
Oh(b.duration));null!=b.delay&&(d.delay=Oh(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(h){c&&f.hasOwnProperty(h)||(f[h]=Vh(e[h],f,a.errors))})}}};gz.prototype._copyOptions=function(){var a={};if(this.options){var b=this.options.params;if(b){var c=a.params={};Object.keys(b).forEach(function(d){c[d]=b[d]})}}return a};
var iz=function(a,b,c){b=void 0===b?null:b;c=c||a.element;c=new gz(a._driver,c,a.subInstructions,a._enterClassName,a._leaveClassName,a.errors,a.timelines,a.currentTimeline.fork(c,0));c.previousNode=a.previousNode;c.currentAnimateTimings=a.currentAnimateTimings;c.options=a._copyOptions();yob(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},jz=function(a,b){a.previousNode=mz;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};gz.prototype.delayNextStep=function(a){0<a&&this.currentTimeline.delayNextStep(a)};var Aob=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);0<b.length&&(b=b.replace(wob,"."+a._enterClassName),b=b.replace(xob,"."+a._leaveClassName),a=a._driver.query(a.element,b,1!=c),0!==c&&(a=0>c?a.slice(a.length+c,a.length):a.slice(0,c)),h.push.apply(h,u(a)));e||0!=h.length||f.push(new ic(3014,!1));return h};
ki.Object.defineProperties(gz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var pz=function(a,b,c,d){this._driver=a;this.element=b;this.startTime=c;this._elementTimelineStylesLookup=d;this.duration=0;this._previousKeyframe=new Map;this._currentKeyframe=new Map;this._keyframes=new Map;this._styleSummary=new Map;this._localTimelineStyles=new Map;this._pendingStyles=new Map;this._backFill=new Map;this._currentEmptyStepKeyframe=null;this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map);this._globalTimelineStyles=this._elementTimelineStylesLookup.get(b);
this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(b,this._localTimelineStyles));this._loadKeyframe()};pz.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return 0<this._currentKeyframe.size;default:return!0}};pz.prototype.delayNextStep=function(a){var b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(oz(this,this.currentTime+a),b&&lz(this)):this.startTime+=a};
pz.prototype.fork=function(a,b){nz(this);return new pz(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};pz.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe);this._currentKeyframe=this._keyframes.get(this.duration);this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))};var oz=function(a,b){nz(a);a.duration=b;a._loadKeyframe()};
pz.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
var hz=function(a,b,c,d,e){c&&a._previousKeyframe.set("easing",c);c=e&&e.params||{};b=Hka(b,a._globalTimelineStyles);b=r(b);for(e=b.next();!e.done;e=b.next()){var f=r(e.value);e=f.next().value;f=f.next().value;f=Vh(f,c,d);a._pendingStyles.set(e,f);a._localTimelineStyles.has(e)||a._backFill.set(e,a._globalTimelineStyles.get(e)||"*");a._updateStyle(e,f)}},nz=function(a){0!=a._pendingStyles.size&&(a._pendingStyles.forEach(function(b,c){a._currentKeyframe.set(c,b)}),a._pendingStyles.clear(),a._localTimelineStyles.forEach(function(b,
c){a._currentKeyframe.has(c)||a._currentKeyframe.set(c,b)}))},lz=function(a){for(var b=r(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},zob=function(a,b){b._styleSummary.forEach(function(c,d){var e=a._styleSummary.get(d);(!e||c.time>e.time)&&a._updateStyle(d,c.value)})};
pz.prototype.buildKeyframes=function(){var a=this;nz(this);var b=new Set,c=new Set,d=1===this._keyframes.size&&0===this.duration,e=[];this._keyframes.forEach(function(w,y){w=Rh(w,new Map,a._backFill);w.forEach(function(E,I){"!"===E?b.add(I):"*"===E&&c.add(I)});d||w.set("offset",y/a.duration);e.push(w)});var f=b.size?Wh(b.values()):[],h=c.size?Wh(c.values()):[];if(d){var k=e[0],q=new Map(k);k.set("offset",0);q.set("offset",1);e=[k,q]}return Dka(this.element,e,f,h,this.duration,this.startTime,this.easing,
!1)};ki.Object.defineProperties(pz.prototype,{currentTime:{configurable:!0,enumerable:!0,get:function(){return this.startTime+this.duration}},properties:{configurable:!0,enumerable:!0,get:function(){var a=[],b;for(b in this._currentKeyframe)a.push(b);return a}}});var kz=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;pz.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=h;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
U(kz,pz);kz.prototype.containsAnimation=function(){return 1<this.keyframes.length};
kz.prototype.buildKeyframes=function(){var a=this.keyframes,b=this.timings,c=b.delay,d=b.duration,e=b.easing;if(this._stretchStartingKeyframe&&c){b=[];e=d+c;var f=c/e,h=Rh(a[0]);h.set("offset",0);b.push(h);h=Rh(a[0]);h.set("offset",Gka(f));b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=Rh(a[h]),q=k.get("offset");k.set("offset",Gka((c+q*d)/e));b.push(k)}d=e;c=0;e="";a=b}return Dka(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};
var Bob=function(){};
var Cob=new Set("width height minWidth minHeight maxWidth maxHeight left top bottom right fontSize outlineWidth outlineOffset paddingTop paddingLeft paddingBottom paddingRight marginTop marginLeft marginBottom marginRight borderRadius borderWidth borderTopWidth borderLeftWidth borderRightWidth borderBottomWidth textIndent perspective".split(" ")),Dob=function(){};U(Dob,Bob);
var ika=function(a,b,c){var d="",e=b.toString().trim();Cob.has(a)&&0!==b&&"0"!==b&&("number"===typeof b?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&0==a[1].length&&c.push(new ic(3005,!1)));return e+d};
var qz=function(){};g=qz.prototype;g.containsElement=function(a,b){return ez(a,b)};g.getParentElement=function(a){return pka(a)};g.query=function(a,b,c){return tob(a,b,c)};g.computeStyle=function(a,b,c){return c||""};g.animate=function(a,b,c,d){return new Kh(c,d)};qz.\u0275fac=function(a){return new (a||qz)};qz.\u0275prov=ec({token:qz,factory:qz.\u0275fac});var Eob=function(){};
var Fob={},Zh=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};Zh.prototype.match=function(a,b,c,d){return Jka(this.ast.matchers,a,b,c,d)};Zh.prototype.buildStyles=function(a,b,c){var d=this._stateStyles.get("*");void 0!==a&&(d=this._stateStyles.get(null==a?void 0:a.toString())||d);return d?d.buildStyles(b,c):new Map};
Zh.prototype.build=function(a,b,c,d,e,f,h,k,q,w){var y=[],E=this.ast.options&&this.ast.options.params||Fob;h=this.buildStyles(c,h&&h.params||Fob,y);var I=k&&k.params||Fob;k=this.buildStyles(d,I,y);var N=new Set,L=new Map,S=new Map,Y="void"===d,ka;E={params:Kka(I,E),delay:null==(ka=this.ast.options)?void 0:ka.delay};a=w?[]:Fka(a,b,this.ast.animation,e,f,h,k,E,q,y);var ha=0;a.forEach(function(ya){ha=Math.max(ya.duration+ya.delay,ha)});if(y.length)return Ika(b,this._triggerName,c,d,Y,h,k,[],[],L,S,ha,
y);a.forEach(function(ya){var Ha=ya.element,Ja=Nh(L,Ha,new Set);ya.preStyleProps.forEach(function(Ma){return Ja.add(Ma)});var Ka=Nh(S,Ha,new Set);ya.postStyleProps.forEach(function(Ma){return Ka.add(Ma)});Ha!==b&&N.add(Ha)});y=Wh(N.values());return Ika(b,this._triggerName,c,d,Y,h,k,a,y,L,S,ha)};var Gob=function(a,b){this.styles=a;this.defaultParams=b};
Gob.prototype.buildStyles=function(a,b){var c=new Map,d=Qh(this.defaultParams);Object.keys(a).forEach(function(e){var f=a[e];null!==f&&(d[e]=f)});this.styles.styles.forEach(function(e){"string"!==typeof e&&e.forEach(function(f,h){f&&(f=Vh(f,d,b));h=Mh(h);f=ika(h,f,b);c.set(h,f)})});return c};
var Hob=function(a,b,c){var d=this;this.name=a;this.ast=b;this._normalizer=c;this.transitionFactories=[];this.states=new Map;b.states.forEach(function(e){d.states.set(e.name,new Gob(e.style,e.options&&e.options.params||{}))});Mka(this.states,"true","1");Mka(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new Zh(a,e,d.states))});this.fallbackTransition=Lka(a,this.states)},Iob=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};
var Job=new fz,Kob=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=Kob.prototype;g.register=function(a,b){var c=[];b=(new uob(this._driver)).build(b,c,[]);if(c.length)throw new ic(3503,!1);this._animations.set(a,b)};g._buildPlayer=function(a,b,c){var d=a.element;b=jka(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
g.create=function(a,b,c){var d=this;c=void 0===c?{}:c;var e=[],f=this._animations.get(a),h=new Map;f?(b=Fka(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,Job,e),b.forEach(function(k){var q=Nh(h,k.element,new Map);k.postStyleProps.forEach(function(w){return q.set(w,null)})})):(e.push(new ic(3300,!1)),b=[]);if(e.length)throw new ic(3504,!1);h.forEach(function(k,q){k.forEach(function(w,y){k.set(y,d._driver.computeStyle(q,y,"*"))})});e=b.map(function(k){var q=h.get(k.element);return d._buildPlayer(k,
new Map,q)});e=Lh(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};g.destroy=function(a){var b=this._getPlayer(a);b.destroy();this._playersById.delete(a);a=this.players.indexOf(b);0<=a&&this.players.splice(a,1)};g._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new ic(3301,!1);return a};g.listen=function(a,b,c,d){b=mka(b,"","","");lka(this._getPlayer(a),c,b,d);return function(){}};
g.command=function(a,b,c,d){if("register"==c)this.register(a,d[0]);else if("create"==c)this.create(a,b,d[0]||{});else switch(b=this._getPlayer(a),c){case "play":b.play();break;case "pause":b.pause();break;case "reset":b.reset();break;case "restart":b.restart();break;case "finish":b.finish();break;case "init":b.init();break;case "setPosition":b.setPosition(parseFloat(d[0]));break;case "destroy":this.destroy(a)}};
var Lob=[],Mob={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Oka={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},rz=function(a,b){this.namespaceId=void 0===b?"":b;var c=(b=a&&a.hasOwnProperty("value"))?a.value:a;this.value=null!=c?c:null;b?(a=Qh(a),delete a.value,this.options=a):this.options={};this.options.params||(this.options.params={})},Nob=function(a,b){var c=b.params;if(c){var d=a.options.params;Object.keys(c).forEach(function(e){null==
d[e]&&(d[e]=c[e])})}};ki.Object.defineProperties(rz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var Oob=new rz("void"),sz=function(a,b,c){this.id=a;this.hostElement=b;this._engine=c;this.players=[];this._triggers=new Map;this._queue=[];this._elementListeners=new Map;this._hostClassName="ng-tns-"+a;ai(b,this._hostClassName)};g=sz.prototype;
g.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new ic(3302,!1);if(null==c||0==c.length)throw new ic(3303,!1);if("start"!=c&&"done"!=c)throw new ic(3400,!1);var f=Nh(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=Nh(this._engine.statesByElement,a,new Map);k.has(b)||(ai(a,"ng-trigger"),ai(a,"ng-trigger-"+b),k.set(b,Oob));return function(){tz(e._engine,function(){var q=f.indexOf(h);0<=q&&f.splice(q,1);e._triggers.has(b)||k.delete(b)})}};
g.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};g._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new ic(3401,!1);return a};
g.trigger=function(a,b,c,d){var e=this;d=void 0===d?!0:d;var f=this._getTrigger(b),h=new uz(this.id,b,a),k=this._engine.statesByElement.get(a);k||(ai(a,"ng-trigger"),ai(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),w=new rz(c,this.id);c&&c.hasOwnProperty("value")||!q||Nob(w,q.options);k.set(b,w);q||(q=Oob);if("void"!==w.value&&q.value===w.value){if(!Uka(q.params,w.params)){d=[];var y=f.fallbackTransition.buildStyles(q.value,q.params,d),E=f.fallbackTransition.buildStyles(w.value,
w.params,d);d.length?this._engine.reportError(d):tz(this._engine,function(){Th(a,y);Sh(a,E)})}}else{c=Nh(this._engine.playersByElement,a,[]);c.forEach(function(N){N.namespaceId==e.id&&N.triggerName==b&&N.queued&&N.destroy()});k=Iob(f,q.value,w.value,a,w.params);var I=!1;if(!k){if(!d)return;k=f.fallbackTransition;I=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:q,toState:w,player:h,isFallbackTransition:I});I||(ai(a,"ng-animate-queued"),h.onStart(function(){bi(a,
"ng-animate-queued")}));h.onDone(function(){var N=e.players.indexOf(h);0<=N&&e.players.splice(N,1);if(N=e._engine.playersByElement.get(a)){var L=N.indexOf(h);0<=L&&N.splice(L,1)}});this.players.push(h);c.push(h);return h}};g.deregister=function(a){var b=this;this._triggers.delete(a);this._engine.statesByElement.forEach(function(c){return c.delete(a)});this._elementListeners.forEach(function(c,d){b._elementListeners.set(d,c.filter(function(e){return e.name!=a}))})};
var vz=function(a,b){a._engine.statesByElement.delete(b);a._elementListeners.delete(b);var c=a._engine.playersByElement.get(b);c&&(c.forEach(function(d){return d.destroy()}),a._engine.playersByElement.delete(b))};
sz.prototype._signalRemovalForInnerTriggers=function(a,b){var c=this,d=this._engine.driver.query(a,".ng-trigger",!0);d.forEach(function(e){if(!e.__ng_removed){var f=Pob(c._engine,e);f.size?f.forEach(function(h){return Qob(h,e,b,!1,!0)}):vz(c,e)}});Rob(this._engine,function(){return d.forEach(function(e){return vz(c,e)})})};
var Qob=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,w){h.set(w,q.value);a._triggers.has(w)&&(q=a.trigger(b,w,"void",e))&&k.push(q)});if(k.length){Sob(a._engine,a.id,b,!0,c,h);if(d)Lh(k).onDone(function(){return ci(a._engine,b)});return!0}}return!1},Tob=function(a,b){var c=a._elementListeners.get(b),d=a._engine.statesByElement.get(b);if(c&&d){var e=new Set;c.forEach(function(f){f=f.name;if(!e.has(f)){e.add(f);var h=a._triggers.get(f).fallbackTransition,
k=d.get(f)||Oob,q=new rz("void"),w=new uz(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:w,isFallbackTransition:!0})}})}};
sz.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!Qob(this,a,b,!0)){var e=!1;if(d.totalAnimations){var f=d.players.length?d.playersByQueriedElement.get(a):[];if(f&&f.length)e=!0;else for(f=a;f=f.parentNode;)if(d.statesByElement.get(f)){e=!0;break}}Tob(this,a);e?Sob(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==Mob||(tz(d,function(){return vz(c,a)}),Uob(d,a),d._onRemovalComplete(a,b)))}};
sz.prototype.insertNode=function(a){ai(a,this._hostClassName)};
var Vob=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,h=a._elementListeners.get(f);h&&h.forEach(function(k){if(k.name==d.triggerName){var q=mka(f,d.triggerName,d.fromState.value,d.toState.value);q._data=b;lka(d.player,k.phase,q,k.callback)}});e.markedForDestroy?tz(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,h=e.transition.ast.depCount;return 0==f||0==h?f-h:a._engine.driver.containsElement(d.element,
e.element)?1:-1})};sz.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var wz=function(a,b,c){this.bodyNode=a;this.driver=b;this._normalizer=c;this.players=[];this.newHostElements=new Map;this.playersByElement=new Map;this.playersByQueriedElement=new Map;this.statesByElement=new Map;this.disabledNodes=new Set;this.totalQueuedPlayers=this.totalAnimations=0;this._namespaceLookup={};this._namespaceList=[];this._flushFns=[];this._whenQuietFns=[];this.namespacesByHostElement=new Map;this.collectedEnterElements=[];this.collectedLeaveElements=[];this.onRemovalComplete=function(){}};
g=wz.prototype;g._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};g._balanceNamespaceList=function(a,b){var c=this._namespaceList,d=this.namespacesByHostElement;if(0<=c.length-1){for(var e=!1,f=this.driver.getParentElement(b);f;){var h=d.get(f);if(h){e=c.indexOf(h);c.splice(e+1,0,a);e=!0;break}f=this.driver.getParentElement(f)}e||c.unshift(a)}else c.push(a);d.set(b,a);return a};
g.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new sz(a,b,this),this.bodyNode&&this.driver.containsElement(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};g.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
g.destroy=function(a,b){var c=this;if(a){var d=this._fetchNamespace(a);tz(this,function(){c.namespacesByHostElement.delete(d.hostElement);delete c._namespaceLookup[a];var e=c._namespaceList.indexOf(d);0<=e&&c._namespaceList.splice(e,1)});Rob(this,function(){return d.destroy(b)})}};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var Pob=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=r(b.values());for(var d=b.next();!d.done;d=b.next())d=d.value,d.namespaceId&&(d=a._fetchNamespace(d.namespaceId))&&c.add(d)}return c};wz.prototype.trigger=function(a,b,c,d){return $h(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
wz.prototype.insertNode=function(a,b,c,d){if($h(b)){var e=b.__ng_removed;e&&e.setForRemoval&&(e.setForRemoval=!1,e.setForMove=!0,e=this.collectedLeaveElements.indexOf(b),0<=e&&this.collectedLeaveElements.splice(e,1));a&&(a=this._fetchNamespace(a))&&a.insertNode(b,c);d&&this.collectedEnterElements.push(b)}};var Wob=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),ai(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),bi(b,"ng-animate-disabled"))};
wz.prototype.removeNode=function(a,b,c,d){if($h(b)){var e=a?this._fetchNamespace(a):null;e?e.removeNode(b,d):Sob(this,a,b,!1,d);c&&(c=this.namespacesByHostElement.get(b))&&c.id!==a&&c.removeNode(b,d)}else this._onRemovalComplete(b,d)};var Sob=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};
wz.prototype.listen=function(a,b,c,d,e){return $h(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};wz.prototype._buildInstruction=function(a,b,c,d,e){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,c,d,a.fromState.options,a.toState.options,b,e)};
var Uob=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return Xob(a,d)});0!=a.playersByQueriedElement.size&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return Yob(a,d)}))},Xob=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},Yob=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},ci=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
Mob;if(c.namespaceId){Uob(a,b);var d=a._fetchNamespace(c.namespaceId);d&&vz(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;(null==(e=b.classList)?0:e.contains("ng-animate-disabled"))&&Wob(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){Wob(a,f,!1)})};
wz.prototype.flush=function(a){var b=this;a=void 0===a?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,h){return b._balanceNamespaceList(f,h)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)ai(this.collectedEnterElements[d],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){d=[];try{c=this._flushAnimations(d,
a)}finally{for(a=0;a<d.length;a++)d[a]()}}else for(a=0;a<this.collectedLeaveElements.length;a++)ci(this,this.collectedLeaveElements[a]);this.totalQueuedPlayers=0;this.collectedEnterElements.length=0;this.collectedLeaveElements.length=0;this._flushFns.forEach(function(f){return f()});this._flushFns=[];if(this._whenQuietFns.length){var e=this._whenQuietFns;this._whenQuietFns=[];if(c.length)Lh(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
wz.prototype.reportError=function(){throw new ic(3402,!1);};
wz.prototype._flushAnimations=function(a,b){var c=this,d=new fz,e=[],f=new Map,h=[],k=new Map,q=new Map,w=new Map,y=new Set;this.disabledNodes.forEach(function(Sa){y.add(Sa);Sa=c.driver.query(Sa,".ng-animate-queued",!0);for(var ub=0;ub<Sa.length;ub++)y.add(Sa[ub])});var E=this.bodyNode,I=Array.from(this.statesByElement.keys()),N=Qka(I,this.collectedEnterElements),L=new Map,S=0;N.forEach(function(Sa,ub){var cb="ng-enter"+S++;L.set(ub,cb);Sa.forEach(function(xb){return ai(xb,cb)})});for(var Y=[],ka=
new Set,ha=new Set,ya=0;ya<this.collectedLeaveElements.length;ya++){var Ha=this.collectedLeaveElements[ya],Ja=Ha.__ng_removed;Ja&&Ja.setForRemoval&&(Y.push(Ha),ka.add(Ha),Ja.hasAnimation?this.driver.query(Ha,".ng-star-inserted",!0).forEach(function(Sa){return ka.add(Sa)}):ha.add(Ha))}var Ka=new Map,Ma=Qka(I,Array.from(ka));Ma.forEach(function(Sa,ub){var cb="ng-leave"+S++;Ka.set(ub,cb);Sa.forEach(function(xb){return ai(xb,cb)})});a.push(function(){N.forEach(function(Sa,ub){var cb=L.get(ub);Sa.forEach(function(xb){return bi(xb,
cb)})});Ma.forEach(function(Sa,ub){var cb=Ka.get(ub);Sa.forEach(function(xb){return bi(xb,cb)})});Y.forEach(function(Sa){ci(c,Sa)})});var hb=[],fb=[];for(a=this._namespaceList.length-1;0<=a;a--)Vob(this._namespaceList[a],b).forEach(function(Sa){var ub=Sa.player,cb=Sa.element;hb.push(ub);if(c.collectedEnterElements.length){var xb=cb.__ng_removed;if(xb&&xb.setForMove){if(xb.previousTriggersValues&&xb.previousTriggersValues.has(Sa.triggerName)){xb=xb.previousTriggersValues.get(Sa.triggerName);var Hb=
c.statesByElement.get(Sa.element);if(Hb&&Hb.has(Sa.triggerName)){var cc=Hb.get(Sa.triggerName);cc.value=xb;Hb.set(Sa.triggerName,cc)}}ub.destroy();return}}xb=!E||!c.driver.containsElement(E,cb);Hb=Ka.get(cb);cc=L.get(cb);var zc=c._buildInstruction(Sa,d,cc,Hb,xb);if(zc.errors&&zc.errors.length)fb.push(zc);else if(xb)ub.onStart(function(){return Th(cb,zc.fromStyles)}),ub.onDestroy(function(){return Sh(cb,zc.toStyles)}),e.push(ub);else if(Sa.isFallbackTransition)ub.onStart(function(){return Th(cb,zc.fromStyles)}),
ub.onDestroy(function(){return Sh(cb,zc.toStyles)}),e.push(ub);else{var qe=[];zc.timelines.forEach(function(fd){fd.stretchStartingKeyframe=!0;c.disabledNodes.has(fd.element)||qe.push(fd)});zc.timelines=qe;d.append(cb,zc.timelines);h.push({instruction:zc,player:ub,element:cb});zc.queriedElements.forEach(function(fd){return Nh(k,fd,[]).push(ub)});zc.preStyleProps.forEach(function(fd,Cd){if(fd.size){var Wg=q.get(Cd);Wg||q.set(Cd,Wg=new Set);fd.forEach(function(tK,Nl){return Wg.add(Nl)})}});zc.postStyleProps.forEach(function(fd,
Cd){var Wg=w.get(Cd);Wg||w.set(Cd,Wg=new Set);fd.forEach(function(tK,Nl){return Wg.add(Nl)})})}});if(fb.length){var Lb=[];fb.forEach(function(){Lb.push(new ic(3505,!1))});hb.forEach(function(Sa){return Sa.destroy()});this.reportError(Lb)}var ta=new Map,Aa=new Map;h.forEach(function(Sa){var ub=Sa.element;d.has(ub)&&(Aa.set(ub,ub),c._beforeAnimationBuild(Sa.player.namespaceId,Sa.instruction,ta))});e.forEach(function(Sa){var ub=Sa.element;c._getPreviousPlayers(ub,!1,Sa.namespaceId,Sa.triggerName,null).forEach(function(cb){Nh(ta,
ub,[]).push(cb);cb.destroy()})});var xa=Y.filter(function(Sa){return Vka(Sa,q,w)}),Xa=new Map;Pka(Xa,this.driver,ha,w,"*").forEach(function(Sa){Vka(Sa,q,w)&&xa.push(Sa)});var eb=new Map;N.forEach(function(Sa){Pka(eb,c.driver,new Set(Sa),q,"!")});xa.forEach(function(Sa){var ub=Xa.get(Sa),cb=eb.get(Sa),xb,Hb;Xa.set(Sa,new Map([].concat(u(Array.from(null!=(xb=null==ub?void 0:ub.entries())?xb:[])),u(Array.from(null!=(Hb=null==cb?void 0:cb.entries())?Hb:[])))))});var yc=[],Ua=[],bb={};h.forEach(function(Sa){var ub=
Sa.element,cb=Sa.player,xb=Sa.instruction;if(d.has(ub))if(y.has(ub))cb.onDestroy(function(){return Sh(ub,xb.toStyles)}),cb.disabled=!0,cb.totalTime=xb.totalTime,e.push(cb);else{var Hb=bb;if(1<Aa.size){Sa=ub;for(var cc=[];Sa=Sa.parentNode;){var zc=Aa.get(Sa);if(zc){Hb=zc;break}cc.push(Sa)}cc.forEach(function(qe){return Aa.set(qe,Hb)})}Sa=c._buildAnimation(cb.namespaceId,xb,ta,f,eb,Xa);Zob(cb,Sa);Hb===bb?yc.push(cb):((Sa=c.playersByElement.get(Hb))&&Sa.length&&(cb.parentPlayer=Lh(Sa)),e.push(cb))}else Th(ub,
xb.fromStyles),cb.onDestroy(function(){return Sh(ub,xb.toStyles)}),Ua.push(cb),y.has(ub)&&e.push(cb)});Ua.forEach(function(Sa){var ub=f.get(Sa.element);ub&&ub.length&&(ub=Lh(ub),Zob(Sa,ub))});e.forEach(function(Sa){Sa.parentPlayer?$ob(Sa,Sa.parentPlayer):Sa.destroy()});for(b=0;b<Y.length;b++)if(ha=Y[b],a=ha.__ng_removed,bi(ha,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((I=k.get(ha))&&I.length&&a.push.apply(a,u(I)),I=this.driver.query(ha,".ng-animating",!0),ya=0;ya<I.length;ya++)(Ha=k.get(I[ya]))&&
Ha.length&&a.push.apply(a,u(Ha));a=a.filter(function(Sa){return!Sa.destroyed});a.length?Rka(this,ha,a):ci(this,ha)}Y.length=0;yc.forEach(function(Sa){c.players.push(Sa);Sa.onDone(function(){Sa.destroy();var ub=c.players.indexOf(Sa);c.players.splice(ub,1)});Sa.play()});return yc};var tz=function(a,b){a._flushFns.push(b)},Rob=function(a,b){a._whenQuietFns.push(b)};
wz.prototype._getPreviousPlayers=function(a,b,c,d,e){var f=[];if(b)(e=this.playersByQueriedElement.get(a))&&(f=e);else if(a=this.playersByElement.get(a)){var h=!e||"void"==e;a.forEach(function(k){k.queued||(h||k.triggerName==d)&&f.push(k)})}if(c||d)f=f.filter(function(k){return c&&c!=k.namespaceId||d&&d!=k.triggerName?!1:!0});return f};
wz.prototype._beforeAnimationBuild=function(a,b,c){var d=b.triggerName,e=b.element;a=b.isRemovalTransition?void 0:a;d=b.isRemovalTransition?void 0:d;for(var f={},h=r(b.timelines),k=h.next();!k.done;f={$jscomp$loop$prop$players$1609:f.$jscomp$loop$prop$players$1609},k=h.next()){k=k.value.element;var q=k!==e;f.$jscomp$loop$prop$players$1609=Nh(c,k,[]);this._getPreviousPlayers(k,q,a,d,b.toState).forEach(function(w){return function(y){var E=y._player;E.beforeDestroy&&E.beforeDestroy();y.destroy();w.$jscomp$loop$prop$players$1609.push(y)}}(f))}Th(e,
b.fromStyles)};
wz.prototype._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,w=[],y=new Set,E=new Set,I=b.timelines.map(function(L){var S=L.element;y.add(S);var Y=S.__ng_removed;if(Y&&Y.removedBeforeQueried)return new Kh(L.duration,L.delay);Y=S!==q;var ka=Tka((c.get(S)||Lob).map(function(Ha){return Ha._player})).filter(function(Ha){return Ha.element?Ha.element===S:!1}),ha=e.get(S),ya=f.get(S);ha=jka(L.keyframes,ha,ya);ka=h._buildPlayer(L,ha,ka);L.subTimeline&&d&&E.add(S);Y&&(L=new uz(a,
k,S),Zob(L,ka),w.push(L));return ka});w.forEach(function(L){Nh(h.playersByQueriedElement,L.element,[]).push(L);L.onDone(function(){var S=h.playersByQueriedElement,Y=L.element,ka=S.get(Y);if(ka){if(ka.length){var ha=ka.indexOf(L);ka.splice(ha,1)}0==ka.length&&S.delete(Y)}return ka})});y.forEach(function(L){return ai(L,"ng-animating")});var N=Lh(I);N.onDestroy(function(){y.forEach(function(L){return bi(L,"ng-animating")});Sh(q,b.toStyles)});E.forEach(function(L){Nh(d,L,[]).push(N)});return N};
wz.prototype._buildPlayer=function(a,b,c){return 0<b.length?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Kh(a.duration,a.delay)};
var uz=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Kh;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.disabled=this.markedForDestroy=this.destroyed=!1;this.queued=!0;this.totalTime=0},Zob=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return lka(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},$ob=function(a,b){var c=
a._player;if(c.triggerCallback)b.onStart(function(){return c.triggerCallback("start")});b.onDone(function(){return a.finish()});b.onDestroy(function(){return a.destroy()})};g=uz.prototype;g._queueEvent=function(a,b){Nh(this._queuedCallbacks,a,[]).push(b)};g.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};g.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};g.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};
g.init=function(){this._player.init()};g.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};g.play=function(){!this.queued&&this._player.play()};g.pause=function(){!this.queued&&this._player.pause()};g.restart=function(){!this.queued&&this._player.restart()};g.finish=function(){this._player.finish()};g.destroy=function(){this.destroyed=!0;this._player.destroy()};g.reset=function(){!this.queued&&this._player.reset()};g.setPosition=function(a){this.queued||this._player.setPosition(a)};
g.getPosition=function(){return this.queued?0:this._player.getPosition()};g.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};
var xz=function(a,b,c){var d=this;this.bodyNode=a;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new wz(a,b,c);this._timelineEngine=new Kob(a,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=xz.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new uob(this._driver)).build(e,c,[]);if(c.length)throw new ic(3404,!1);c=new Hob(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};g.register=function(a,b){this._transitionEngine.register(a,b)};g.destroy=function(a,b){this._transitionEngine.destroy(a,b)};g.disableAnimations=function(a,b){Wob(this._transitionEngine,a,b)};
g.process=function(a,b,c,d){"@"==c.charAt(0)?(c=r(nka(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};g.listen=function(a,b,c,d,e){return"@"==c.charAt(0)?(c=r(nka(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};g.flush=function(a){this._transitionEngine.flush(void 0===a?-1:a)};ki.Object.defineProperties(xz.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}});
var di=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=apb.get(a);d||apb.set(a,d=new Map);this._initialStyles=d};di.prototype.start=function(){1>this._state&&(this._startStyles&&Sh(this._element,this._startStyles,this._initialStyles),this._state=1)};di.prototype.finish=function(){this.start();2>this._state&&(Sh(this._element,this._initialStyles),this._endStyles&&(Sh(this._element,this._endStyles),this._endStyles=null),this._state=1)};
di.prototype.destroy=function(){this.finish();3>this._state&&(apb.delete(this._element),this._startStyles&&(Th(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Th(this._element,this._endStyles),this._endStyles=null),Sh(this._element,this._initialStyles),this._state=3)};var apb=new WeakMap;
var yz=function(a,b,c,d){this.element=a;this.keyframes=b;this.options=c;this._specialStyles=d;this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._destroyed=this._started=this._finished=this._initialized=!1;this.time=0;this.parentPlayer=null;this.currentSnapshot=new Map;this._duration=c.duration;this._delay=c.delay||0;this.time=this._duration+this._delay};g=yz.prototype;
g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this._buildPlayer();this._preparePlayerBeforeStart()};g._buildPlayer=function(){var a=this;if(!this._initialized){this._initialized=!0;var b=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,b,this.options);this._finalKeyframe=b.length?b[b.length-1]:new Map;this.domPlayer.addEventListener("finish",function(){return a._onFinish()})}};
g._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()};g._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};g._triggerWebAnimation=function(a,b,c){return a.animate(this._convertKeyframesToObject(b),c)};g.onStart=function(a){this._onStartFns.push(a)};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.play=function(){this._buildPlayer();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start());this.domPlayer.play()};g.pause=function(){this.init();this.domPlayer.pause()};g.finish=function(){this.init();this._specialStyles&&this._specialStyles.finish();this._onFinish();this.domPlayer.finish()};g.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1};
g._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()};g.restart=function(){this.reset();this.play()};g.hasStarted=function(){return this._started};g.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.setPosition=function(a){void 0===this.domPlayer&&this.init();this.domPlayer.currentTime=a*this.time};
g.getPosition=function(){return this.domPlayer.currentTime/this.time};g.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){if("offset"!==d){var e=b.set,f;a._finished?f=c:f=window.getComputedStyle(a.element)[d];e.call(b,d,f)}});this.currentSnapshot=b};g.triggerCallback=function(a){a="start"===a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};
ki.Object.defineProperties(yz.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});
var bpb=function(){};g=bpb.prototype;g.containsElement=function(a,b){return ez(a,b)};g.getParentElement=function(a){return pka(a)};g.query=function(a,b,c){return tob(a,b,c)};g.computeStyle=function(a,b){return window.getComputedStyle(a)[b]};
g.animate=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h={duration:c,delay:d,fill:0==d?"both":"forwards"};e&&(h.easing=e);var k=new Map;e=f.filter(function(w){return w instanceof yz});0!==c&&0!==d||e.forEach(function(w){w.currentSnapshot.forEach(function(y,E){return k.set(E,y)})});var q=ska(b).map(function(w){return Rh(w)});q=yka(a,q,k);b=Xka(a,q);return new yz(a,q,h,b)};
var zz=function(a,b){this._nextAnimationId=0;this._renderer=a.createRenderer(b.body,{id:"0",encapsulation:2,styles:[],data:{animation:[]}})};U(zz,qob);zz.prototype.build=function(a){var b=this._nextAnimationId.toString();this._nextAnimationId++;a=[Array.isArray(a)?{type:2,steps:a,options:null}:a];this._renderer.setProperty(null,"@@"+b+":register",a);return new cpb(b,this._renderer)};zz.\u0275fac=function(a){return new (a||zz)(t(Lv),t(ii))};zz.\u0275prov=ec({token:zz,factory:zz.\u0275fac});
var cpb=function(a,b){this._id=a;this._renderer=b};U(cpb,rob);cpb.prototype.create=function(a,b){return new dpb(this._id,a,b||{},this._renderer)};var dpb=function(a,b,c,d){this.id=a;this.element=b;this._renderer=d;this.parentPlayer=null;this._started=!1;this.totalTime=0;this._command("create",c)};g=dpb.prototype;g._listen=function(a,b){return this._renderer.listen(this.element,"@@"+this.id+":"+a,b)};
g._command=function(a){return this._renderer.setProperty(this.element,"@@"+this.id+":"+a,oc.apply(1,arguments))};g.onDone=function(a){this._listen("done",a)};g.onStart=function(a){this._listen("start",a)};g.onDestroy=function(a){this._listen("destroy",a)};g.init=function(){this._command("init")};g.hasStarted=function(){return this._started};g.play=function(){this._command("play");this._started=!0};g.pause=function(){this._command("pause")};g.restart=function(){this._command("restart")};g.finish=function(){this._command("finish")};
g.destroy=function(){this._command("destroy")};g.reset=function(){this._command("reset");this._started=!1};g.setPosition=function(a){this._command("setPosition",a)};g.getPosition=function(){var a,b;return null!=(b=null==(a=this._renderer.engine.players[+this.id])?void 0:a.getPosition())?b:0};
var Az=function(a,b,c){this.delegate=a;this.engine=b;this._zone=c;this._currentId=0;this._microtaskId=1;this._animationCallbacksBuffer=[];this._rendererCache=new Map;this._cdRecurDepth=0;this.promise=Promise.resolve(0);b.onRemovalComplete=function(d,e){var f=null==e?void 0:e.parentNode(d);f&&e.removeChild(f,d)}};
Az.prototype.createRenderer=function(a,b){var c=this,d=this.delegate.createRenderer(a,b);if(!(a&&b&&b.data&&b.data.animation))return b=this._rendererCache.get(d),b||(b=new Bz("",d,this.engine),this._rendererCache.set(d,b)),b;var e=b.id,f=b.id+"-"+this._currentId;this._currentId++;this.engine.register(f,a);var h=function(k){Array.isArray(k)?k.forEach(h):c.engine.registerTrigger(e,f,a,k.name,k)};b.data.animation.forEach(h);return new Cz(this,f,d,this.engine)};
Az.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};Az.prototype._scheduleCountTask=function(){var a=this;this.promise.then(function(){a._microtaskId++})};
var epb=function(a,b,c,d){0<=b&&b<a._microtaskId?a._zone.run(function(){return c(d)}):(0==a._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(e){var f=r(e);e=f.next().value;f=f.next().value;e(f)});a._animationCallbacksBuffer=[]})}),a._animationCallbacksBuffer.push([c,d]))};
Az.prototype.end=function(){var a=this;this._cdRecurDepth--;0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){a._scheduleCountTask();a.engine.flush(a._microtaskId)});this.delegate.end&&this.delegate.end()};Az.\u0275fac=function(a){return new (a||Az)(t(Lv),t(xz),t(ef))};Az.\u0275prov=ec({token:Az,factory:Az.\u0275fac});var Bz=function(a,b,c){this.namespaceId=a;this.delegate=b;this.engine=c;this.destroyNode=this.delegate.destroyNode?function(d){return b.destroyNode(d)}:null};g=Bz.prototype;
g.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate);this.delegate.destroy()};g.createElement=function(a,b){return this.delegate.createElement(a,b)};g.createComment=function(a){return this.delegate.createComment(a)};g.createText=function(a){return this.delegate.createText(a)};g.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};
g.insertBefore=function(a,b,c,d){d=void 0===d?!0:d;this.delegate.insertBefore(a,b,c);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,d)};g.removeChild=function(a,b,c){this.engine._transitionEngine.removeNode(this.namespaceId,b,c||!1,this.delegate)};g.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};g.parentNode=function(a){return this.delegate.parentNode(a)};g.nextSibling=function(a){return this.delegate.nextSibling(a)};
g.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};g.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};g.addClass=function(a,b){this.delegate.addClass(a,b)};g.removeClass=function(a,b){this.delegate.removeClass(a,b)};g.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};g.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};
g.setProperty=function(a,b,c){"@"==b.charAt(0)&&"@.disabled"==b?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};g.setValue=function(a,b){this.delegate.setValue(a,b)};g.listen=function(a,b,c){return this.delegate.listen(a,b,c)};g.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};ki.Object.defineProperties(Bz.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});
var Cz=function(a,b,c,d){Bz.call(this,b,c,d);this.factory=a;this.namespaceId=b};U(Cz,Bz);Cz.prototype.setProperty=function(a,b,c){"@"==b.charAt(0)?"."==b.charAt(1)&&"@.disabled"==b?this.disableAnimations(a,void 0===c?!0:!!c):this.engine.process(this.namespaceId,a,b.slice(1),c):this.delegate.setProperty(a,b,c)};
Cz.prototype.listen=function(a,b,c){var d=this;if("@"==b.charAt(0)){a=Yka(a);b=b.slice(1);var e="";"@"!=b.charAt(0)&&(e=r(Zka(b)),b=e.next().value,e=e.next().value);return this.engine.listen(this.namespaceId,a,b,e,function(f){epb(d.factory,f._data||-1,c,f)})}return this.delegate.listen(a,b,c)};
var Dz=function(a,b,c){xz.call(this,a.body,b,c)};U(Dz,xz);Dz.prototype.ngOnDestroy=function(){this.flush()};Dz.\u0275fac=function(a){return new (a||Dz)(t(ii),t(Eob),t(Bob))};Dz.\u0275prov=ec({token:Dz,factory:Dz.\u0275fac});var fpb=[{provide:qob,useClass:zz},{provide:Bob,useFactory:function(){return new Dob}},{provide:xz,useClass:Dz},{provide:Lv,useFactory:function(a,b,c){return new Az(a,b,c)},deps:[Vy,xz,ef]}],gpb=[{provide:Eob,useFactory:function(){return new bpb}},{provide:Wv,useValue:"BrowserAnimations"}].concat(u(fpb));
[{provide:Eob,useClass:qz},{provide:Wv,useValue:"NoopAnimations"}].concat(u(fpb));
var Ez=function(){};Ez.\u0275fac=function(a){return new (a||Ez)};Ez.\u0275mod=rc({type:Ez});Ez.\u0275inj=fc({providers:gpb,imports:[dz]});
var hpb=new jd("cdk-input-modality-detector-options"),ipb={ignoreKeys:[18,17,224,91,16]},Fz=Kg({passive:!0,capture:!0}),Gz=function(a,b,c,d){var e=this;this._platform=a;this._mostRecentTarget=null;this._modality=new T.BehaviorSubject(null);this._lastTouchMs=0;this._onKeydown=function(f){var h,k;(null==(h=e._options)?0:null==(k=h.ignoreKeys)?0:k.some(function(q){return q===f.keyCode}))||(e._modality.next("keyboard"),e._mostRecentTarget=Pg(f))};this._onMousedown=function(f){650>Date.now()-e._lastTouchMs||
(e._modality.next(ei(f)?"keyboard":"mouse"),e._mostRecentTarget=Pg(f))};this._onTouchstart=function(f){fi(f)?e._modality.next("keyboard"):(e._lastTouchMs=Date.now(),e._modality.next("touch"),e._mostRecentTarget=Pg(f))};this._options=Object.assign({},ipb,d);this.modalityDetected=this._modality.pipe(Ve(1));this.modalityDetected.pipe(Le());a.isBrowser&&b.runOutsideAngular(function(){c.addEventListener("keydown",e._onKeydown,Fz);c.addEventListener("mousedown",e._onMousedown,Fz);c.addEventListener("touchstart",
e._onTouchstart,Fz)})};Gz.prototype.ngOnDestroy=function(){this._modality.complete();this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fz),document.removeEventListener("mousedown",this._onMousedown,Fz),document.removeEventListener("touchstart",this._onTouchstart,Fz))};Gz.\u0275fac=function(a){return new (a||Gz)(t(yy),t(ef),t(ii),t(hpb,8))};Gz.\u0275prov=ec({token:Gz,factory:Gz.\u0275fac,providedIn:"root"});
var jpb=new jd("cdk-focus-monitor-default-options"),Hz=Kg({passive:!0,capture:!0}),Iz=function(a,b,c,d,e){var f=this;this._ngZone=a;this._platform=b;this._inputModalityDetector=c;this._origin=null;this._originFromTouchInteraction=this._windowFocused=!1;this._elementInfo=new Map;this._monitoredElementCount=0;this._rootNodeFocusListenerCount=new Map;this._windowFocusListener=function(){f._windowFocused=!0;f._windowFocusTimeoutId=window.setTimeout(function(){return f._windowFocused=!1})};this._stopInputModalityDetector=
new T.Subject;this._rootNodeFocusAndBlurListener=function(h){for(var k=Pg(h),q="focus"===h.type?f._onFocus:f._onBlur;k;k=k.parentElement)q.call(f,h,k)};this._document=d;this._detectionMode=(null==e?void 0:e.detectionMode)||0};
Iz.prototype.monitor=function(a,b){b=void 0===b?!1:b;a=Tg(a);if(!this._platform.isBrowser||1!==a.nodeType)return(0,T.of)(null);var c=Ng(a)||this._getDocument(),d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new T.Subject,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};
Iz.prototype.stopMonitoring=function(a){a=Tg(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};var Jz=function(a,b,c,d){b=Tg(b);b===a._getDocument().activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=r(e);e=f.next().value;f=f.next().value;return a._originChanged(e,c,f)}):(a._setOrigin(c),"function"===typeof b.focus&&b.focus(d))};g=Iz.prototype;
g.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};g._getDocument=function(){return this._document||document};g._getWindow=function(){return this._getDocument().defaultView||window};g._getFocusOrigin=function(a){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(a)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"};
g._shouldBeAttributedToTouch=function(a){return 1===this._detectionMode||!(null==a||!a.contains(this._inputModalityDetector._mostRecentTarget))};g._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused","touch"===b);a.classList.toggle("cdk-keyboard-focused","keyboard"===b);a.classList.toggle("cdk-mouse-focused","mouse"===b);a.classList.toggle("cdk-program-focused","program"===b)};
g._setOrigin=function(a,b){var c=this;b=void 0===b?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction="touch"===a&&b;0===c._detectionMode&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};g._onFocus=function(a,b){var c=this._elementInfo.get(b);a=Pg(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
g._onBlur=function(a,b){var c=this._elementInfo.get(b);!c||c.checkChildren&&a.relatedTarget instanceof Node&&b.contains(a.relatedTarget)||(this._setClasses(b),this._emitOrigin(c,null))};g._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
g._registerGlobalListeners=function(a){var b=this;if(this._platform.isBrowser){var c=a.rootNode;(a=this._rootNodeFocusListenerCount.get(c)||0)||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",b._rootNodeFocusAndBlurListener,Hz);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,Hz)});this._rootNodeFocusListenerCount.set(c,a+1);1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(Ye(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
g._removeGlobalListeners=function(a){a=a.rootNode;if(this._rootNodeFocusListenerCount.has(a)){var b=this._rootNodeFocusListenerCount.get(a);1<b?this._rootNodeFocusListenerCount.set(a,b-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hz),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hz),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};g._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};g._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};Iz.\u0275fac=function(a){return new (a||Iz)(t(ef),t(yy),t(Gz),t(ii,8),t(jpb,8))};Iz.\u0275prov=ec({token:Iz,factory:Iz.\u0275fac,providedIn:"root"});
var Kz=function(a,b){this._elementRef=a;this._focusMonitor=b;this.cdkFocusChange=new Iw};Kz.prototype.ngAfterViewInit=function(){var a=this,b=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(b,1===b.nodeType&&b.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return a.cdkFocusChange.emit(c)})};Kz.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
Kz.\u0275fac=function(a){return new (a||Kz)(F(nd),F(Iz))};Kz.\u0275dir=v({type:Kz,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}});
var Lz=function(a,b){this._platform=a;this._document=b},kpb=function(a){if(!a._platform.isBrowser)return 0;var b=a._document.createElement("div");b.style.backgroundColor="rgb(1,2,3)";b.style.position="absolute";a._document.body.appendChild(b);a=(a=a._document.defaultView||window)&&a.getComputedStyle?a.getComputedStyle(b):null;a=(a&&a.backgroundColor||"").replace(/ /g,"");b.remove();switch(a){case "rgb(0,0,0)":return 2;case "rgb(255,255,255)":return 1}return 0};
Lz.prototype._applyBodyHighContrastModeCssClasses=function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var a=this._document.body.classList;a.remove("cdk-high-contrast-active","cdk-high-contrast-black-on-white","cdk-high-contrast-white-on-black");this._hasCheckedHighContrastMode=!0;var b=kpb(this);1===b?a.add("cdk-high-contrast-active","cdk-high-contrast-black-on-white"):2===b&&a.add("cdk-high-contrast-active","cdk-high-contrast-white-on-black")}};
Lz.\u0275fac=function(a){return new (a||Lz)(t(yy),t(ii))};Lz.\u0275prov=ec({token:Lz,factory:Lz.\u0275fac,providedIn:"root"});
var lpb=new jd("liveAnnouncerElement",{providedIn:"root",factory:$ka}),mpb=new jd("LIVE_ANNOUNCER_DEFAULT_OPTIONS");
var Mz=function(){};Mz.prototype.create=function(a){return"undefined"===typeof MutationObserver?null:new MutationObserver(a)};Mz.\u0275fac=function(a){return new (a||Mz)};Mz.\u0275prov=ec({token:Mz,factory:Mz.\u0275fac,providedIn:"root"});var Nz=function(a){this._mutationObserverFactory=a;this._observedElements=new Map};g=Nz.prototype;g.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
g.observe=function(a){var b=this,c=Tg(a);return new T.Observable(function(d){var e=b._observeElement(c).subscribe(d);return function(){e.unsubscribe();b._unobserveElement(c)}})};g._observeElement=function(a){if(this._observedElements.has(a))this._observedElements.get(a).count++;else{var b=new T.Subject,c=this._mutationObserverFactory.create(function(d){return b.next(d)});c&&c.observe(a,{characterData:!0,childList:!0,subtree:!0});this._observedElements.set(a,{observer:c,stream:b,count:1})}return this._observedElements.get(a).stream};
g._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};g._cleanupObserver=function(a){if(this._observedElements.has(a)){var b=this._observedElements.get(a),c=b.observer;b=b.stream;c&&c.disconnect();b.complete();this._observedElements.delete(a)}};Nz.\u0275fac=function(a){return new (a||Nz)(t(Mz))};Nz.\u0275prov=ec({token:Nz,factory:Nz.\u0275fac,providedIn:"root"});
var Oz=function(a,b,c){this._contentObserver=a;this._elementRef=b;this._ngZone=c;this.event=new Iw;this._disabled=!1;this._currentSubscription=null};Oz.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};Oz.prototype.ngOnDestroy=function(){this._unsubscribe()};
Oz.prototype._subscribe=function(){var a=this;this._unsubscribe();var b=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){a._currentSubscription=(a.debounce?b.pipe(Je(a.debounce)):b).subscribe(a.event)})};Oz.prototype._unsubscribe=function(){var a;null==(a=this._currentSubscription)||a.unsubscribe()};
ki.Object.defineProperties(Oz.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Rg(a))?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=Ug(a);this._subscribe()}}});Oz.\u0275fac=function(a){return new (a||Oz)(F(Nz),F(nd),F(ef))};
Oz.\u0275dir=v({type:Oz,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var Pz=function(){};Pz.\u0275fac=function(a){return new (a||Pz)};Pz.\u0275mod=rc({type:Pz});Pz.\u0275inj=fc({providers:[Mz]});
var Qz=function(a,b,c,d){this._ngZone=b;this._defaultOptions=d;this._document=c;this._liveElement=a||this._createLiveElement()};
Qz.prototype.announce=function(a){var b=oc.apply(1,arguments),c=this,d=this._defaultOptions;if(1===b.length&&"number"===typeof b[0])var e=b[0];else{b=r(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");null==e&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=new Promise(function(h){return c._currentResolve=h}));
clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){c._liveElement.textContent=a;"number"===typeof e&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));c._currentResolve();c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};Qz.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
Qz.prototype.ngOnDestroy=function(){clearTimeout(this._previousTimeout);var a;null==(a=this._liveElement)||a.remove();this._liveElement=null;var b;null==(b=this._currentResolve)||b.call(this);this._currentPromise=this._currentResolve=void 0};
Qz.prototype._createLiveElement=function(){for(var a=this._document.getElementsByClassName("cdk-live-announcer-element"),b=this._document.createElement("div"),c=0;c<a.length;c++)a[c].remove();b.classList.add("cdk-live-announcer-element");b.classList.add("cdk-visually-hidden");b.setAttribute("aria-atomic","true");b.setAttribute("aria-live","polite");this._document.body.appendChild(b);return b};Qz.\u0275fac=function(a){return new (a||Qz)(t(lpb,8),t(ef),t(ii),t(mpb,8))};
Qz.\u0275prov=ec({token:Qz,factory:Qz.\u0275fac,providedIn:"root"});
var Rz=function(a){a._applyBodyHighContrastModeCssClasses()};Rz.\u0275fac=function(a){return new (a||Rz)(t(Lz))};Rz.\u0275mod=rc({type:Rz});Rz.\u0275inj=fc({imports:[[Pz]]});
var dla=0,Sz=function(a,b){this._platform=b;this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+dla++;this._document=a},npb=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=cla(c,d);"string"!==typeof c?(ela(c),a._messageRegistry.set(e,{messageElement:c,referenceCount:0})):a._messageRegistry.has(e)||a._createMessageElement(c,d);a._isElementDescribedByMessage(b,e)||a._addMessageReference(b,e)}},opb=function(a,b,c,d){if(c&&a._isElementNode(b)){d=cla(c,d);a._isElementDescribedByMessage(b,
d)&&a._removeMessageReference(b,d);"string"===typeof c&&(b=a._messageRegistry.get(d))&&0===b.referenceCount&&a._deleteMessageElement(d);var e;0===(null==(e=a._messagesContainer)?void 0:e.childNodes.length)&&(a._messagesContainer.remove(),a._messagesContainer=null)}};g=Sz.prototype;
g.ngOnDestroy=function(){for(var a=this._document.querySelectorAll('[cdk-describedby-host="'+this._id+'"]'),b=0;b<a.length;b++)this._removeCdkDescribedByReferenceIds(a[b]),a[b].removeAttribute("cdk-describedby-host");var c;null==(c=this._messagesContainer)||c.remove();this._messagesContainer=null;this._messageRegistry.clear()};
g._createMessageElement=function(a,b){var c=this._document.createElement("div");ela(c);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(cla(a,b),{messageElement:c,referenceCount:0})};g._deleteMessageElement=function(a){var b,c;null==(b=this._messageRegistry.get(a))||null==(c=b.messageElement)||c.remove();this._messageRegistry.delete(a)};
g._createMessagesContainer=function(){if(!this._messagesContainer){for(var a=this._document.querySelectorAll('.cdk-describedby-message-container[platform="server"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.style.visibility="hidden";a.classList.add("cdk-describedby-message-container");a.classList.add("cdk-visually-hidden");this._platform&&!this._platform.isBrowser&&a.setAttribute("platform","server");this._document.body.appendChild(a);this._messagesContainer=a}};
g._removeCdkDescribedByReferenceIds=function(a){var b=hi(a).filter(function(c){return 0!=c.indexOf("cdk-describedby-message")});a.setAttribute("aria-describedby",b.join(" "))};g._addMessageReference=function(a,b){b=this._messageRegistry.get(b);ala(a,b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};g._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;bla(a,b.messageElement.id);a.removeAttribute("cdk-describedby-host")};
g._isElementDescribedByMessage=function(a,b){a=hi(a);b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&-1!=a.indexOf(b)};g._canBeDescribed=function(a,b){if(!this._isElementNode(a))return!1;if(b&&"object"===typeof b)return!0;b=null==b?"":b.trim();a=a.getAttribute("aria-label");return b?!a||a.trim()!==b:!1};g._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};Sz.\u0275fac=function(a){return new (a||Sz)(t(ii),t(yy))};
Sz.\u0275prov=ec({token:Sz,factory:Sz.\u0275fac,providedIn:"root"});
var Tz=function(a,b,c,d,e,f,h){Cy.call(this,a,b,c,d,h.defer);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};U(Tz,Cy);Tz.prototype.destroy=function(){this._focusTrapManager.deregister(this);Cy.prototype.destroy.call(this)};Tz.prototype._enable=function(){this._inertStrategy.preventFocus(this);Fnb(this,!0)};Tz.prototype._disable=function(){this._inertStrategy.allowFocus(this);Fnb(this,!1)};
ki.Object.defineProperties(Tz.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){(this._enabled=a)?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}}});
var Uz=function(){this._listener=null};Uz.prototype.preventFocus=function(a){var b=this;this._listener&&a._document.removeEventListener("focus",this._listener,!0);this._listener=function(c){return b._trapFocus(a,c)};a._ngZone.runOutsideAngular(function(){a._document.addEventListener("focus",b._listener,!0)})};Uz.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
Uz.prototype._trapFocus=function(a,b){b=b.target;var c=a._element,d;!b||c.contains(b)||(null==(d=b.closest)?0:d.call(b,"div.cdk-overlay-pane"))||setTimeout(function(){a.enabled&&!c.contains(a._document.activeElement)&&Ay(a)})};
var ppb=new jd("FOCUS_TRAP_INERT_STRATEGY");
var Vz=function(){this._focusTrapStack=[]};Vz.prototype.register=function(a){var b=this._focusTrapStack=this._focusTrapStack.filter(function(c){return c!==a});b.length&&b[b.length-1]._disable();b.push(a);a._enable()};Vz.prototype.deregister=function(a){a._disable();var b=this._focusTrapStack;a=b.indexOf(a);-1!==a&&(b.splice(a,1),b.length&&b[b.length-1]._enable())};Vz.\u0275fac=function(a){return new (a||Vz)};Vz.\u0275prov=ec({token:Vz,factory:Vz.\u0275fac,providedIn:"root"});
var Wz=function(a,b,c,d,e){this._checker=a;this._ngZone=b;this._focusTrapManager=c;this._document=d;this._inertStrategy=e||new Uz};Wz.prototype.create=function(a,b){b=void 0===b?{defer:!1}:b;var c;"boolean"===typeof b?c={defer:b}:c=b;return new Tz(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c)};Wz.\u0275fac=function(a){return new (a||Wz)(t(zy),t(ef),t(Vz),t(ii),t(ppb,8))};Wz.\u0275prov=ec({token:Wz,factory:Wz.\u0275fac,providedIn:"root"});
var Xz=function(a){var b=this;this._items=a;this._activeItemIndex=-1;this._activeItem=null;this._wrap=!1;this._letterKeyStream=new T.Subject;this._typeaheadSubscription=T.Subscription.EMPTY;this._vertical=!0;this._allowedModifierKeys=[];this._homeAndEnd=!1;this._skipPredicateFn=function(c){return c.disabled};this._pressedLetters=[];this.tabOut=new T.Subject;this.change=new T.Subject;a instanceof bg&&a.changes.subscribe(function(c){b._activeItem&&(c=c.toArray().indexOf(b._activeItem),-1<c&&c!==b._activeItemIndex&&
(b._activeItemIndex=c))})},qpb=function(a,b){a._skipPredicateFn=b;return a},Yz=function(a){a._wrap=!0;return a},Zz=function(a){a._vertical=!0;return a},$z=function(a,b){a._horizontal=b;return a},rpb=function(a){a._allowedModifierKeys=["shiftKey"];return a},aA=function(a,b){b=void 0===b?200:b;a._typeaheadSubscription.unsubscribe();a._typeaheadSubscription=a._letterKeyStream.pipe(Ze(function(c){return a._pressedLetters.push(c)}),Je(b),De(function(){return 0<a._pressedLetters.length}),C(function(){return a._pressedLetters.join("")})).subscribe(function(c){for(var d=
a._getItemsArray(),e=1;e<d.length+1;e++){var f=(a._activeItemIndex+e)%d.length,h=d[f];if(!a._skipPredicateFn(h)&&0===h.getLabel().toUpperCase().trim().indexOf(c)){a.setActiveItem(f);break}}a._pressedLetters=[]});return a},bA=function(a){a._homeAndEnd=!0;return a};Xz.prototype.setActiveItem=function(a){var b=this._activeItem;cA(this,a);this._activeItem!==b&&this.change.next(this._activeItemIndex)};
Xz.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(e){return!a[e]||-1<b._allowedModifierKeys.indexOf(e)});switch(c){case 9:this.tabOut.next();return;case 40:if(this._vertical&&d){this.setNextItemActive();break}else return;case 38:if(this._vertical&&d){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&d){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&
d){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&d){dA(this);break}else return;case 35:if(this._homeAndEnd&&d){eA(this);break}else return;default:if(d||gi(a,"shiftKey"))a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(65<=c&&90>=c||48<=c&&57>=c)&&this._letterKeyStream.next(String.fromCharCode(c));return}this._pressedLetters=[];a.preventDefault()};
var dA=function(a){a._setActiveItemByIndex(0,1)},eA=function(a){a._setActiveItemByIndex(a._items.length-1,-1)};Xz.prototype.setNextItemActive=function(){0>this._activeItemIndex?dA(this):this._setActiveItemByDelta(1)};Xz.prototype.setPreviousItemActive=function(){0>this._activeItemIndex&&this._wrap?eA(this):this._setActiveItemByDelta(-1)};var cA=function(a,b){var c=a._getItemsArray();b="number"===typeof b?b:c.indexOf(b);c=c[b];a._activeItem=null==c?null:c;a._activeItemIndex=b};g=Xz.prototype;
g._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};g._setActiveInWrapMode=function(a){for(var b=this._getItemsArray(),c=1;c<=b.length;c++){var d=(this._activeItemIndex+a*c+b.length)%b.length;if(!this._skipPredicateFn(b[d])){this.setActiveItem(d);break}}};g._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)};
g._setActiveItemByIndex=function(a,b){var c=this._getItemsArray();if(c[a]){for(;this._skipPredicateFn(c[a]);)if(a+=b,!c[a])return;this.setActiveItem(a)}};g._getItemsArray=function(){return this._items instanceof bg?this._items.toArray():this._items};ki.Object.defineProperties(Xz.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem}}});
var fA=function(){Xz.apply(this,arguments)};U(fA,Xz);fA.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();Xz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};
var gA=function(){Xz.apply(this,arguments);this._origin="program"};U(gA,Xz);gA.prototype.setActiveItem=function(a){Xz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};
var spb=new jd("cdk-dir-doc",{providedIn:"root",factory:fla});
var tpb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,hA=function(a){this.value="ltr";this.change=new Iw;if(a){var b=a.documentElement?a.documentElement.dir:null;b=(a.body?a.body.dir:null)||b||"ltr";b=(null==b?void 0:b.toLowerCase())||"";var c;this.value="auto"===b&&"undefined"!==typeof navigator&&(null==(c=navigator)?0:c.language)?tpb.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}};hA.prototype.ngOnDestroy=function(){this.change.complete()};
hA.\u0275fac=function(a){return new (a||hA)(t(spb,8))};hA.\u0275prov=ec({token:hA,factory:hA.\u0275fac,providedIn:"root"});
var iA=function(){};iA.\u0275fac=function(a){return new (a||iA)};iA.\u0275mod=rc({type:iA});iA.\u0275inj=fc({});
var jA=function(a){this._attachedOverlays=[];this._document=a};jA.prototype.ngOnDestroy=function(){this.detach()};jA.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};jA.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);-1<a&&this._attachedOverlays.splice(a,1);0===this._attachedOverlays.length&&this.detach()};jA.\u0275fac=function(a){return new (a||jA)(t(ii))};jA.\u0275prov=ec({token:jA,factory:jA.\u0275fac,providedIn:"root"});
var kA=function(a,b){jA.call(this,a);var c=this;this._ngZone=b;this._keydownListener=function(d){for(var e=c._attachedOverlays,f={},h=e.length-1;-1<h;f={$jscomp$loop$prop$keydownEvents$1611:f.$jscomp$loop$prop$keydownEvents$1611},h--)if(0<e[h]._keydownEvents.observers.length){f.$jscomp$loop$prop$keydownEvents$1611=e[h]._keydownEvents;c._ngZone?c._ngZone.run(function(k){return function(){return k.$jscomp$loop$prop$keydownEvents$1611.next(d)}}(f)):f.$jscomp$loop$prop$keydownEvents$1611.next(d);break}}};
U(kA,jA);kA.prototype.add=function(a){var b=this;jA.prototype.add.call(this,a);this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return b._document.body.addEventListener("keydown",b._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)};kA.prototype.detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)};
kA.\u0275fac=function(a){return new (a||kA)(t(ii),t(ef,8))};kA.\u0275prov=ec({token:kA,factory:kA.\u0275fac,providedIn:"root"});
var lA=function(a,b,c){jA.call(this,a);var d=this;this._platform=b;this._ngZone=c;this._cursorStyleIsSet=!1;this._pointerDownListener=function(e){d._pointerDownEventTarget=Pg(e)};this._clickListener=function(e){var f=Pg(e),h="click"===e.type&&d._pointerDownEventTarget?d._pointerDownEventTarget:f;d._pointerDownEventTarget=null;for(var k=d._attachedOverlays.slice(),q={},w=k.length-1;-1<w;q={$jscomp$loop$prop$outsidePointerEvents$1613:q.$jscomp$loop$prop$outsidePointerEvents$1613},w--){var y=k[w];if(!(1>
y._outsidePointerEvents.observers.length)&&y.hasAttached()){if(y.overlayElement.contains(f)||y.overlayElement.contains(h))break;q.$jscomp$loop$prop$outsidePointerEvents$1613=y._outsidePointerEvents;d._ngZone?d._ngZone.run(function(E){return function(){return E.$jscomp$loop$prop$outsidePointerEvents$1613.next(e)}}(q)):q.$jscomp$loop$prop$outsidePointerEvents$1613.next(e)}}}};U(lA,jA);
lA.prototype.add=function(a){var b=this;jA.prototype.add.call(this,a);if(!this._isAttached){var c=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return b._addEventListeners(c)}):this._addEventListeners(c);this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor="pointer",this._cursorStyleIsSet=!0);this._isAttached=!0}};
lA.prototype.detach=function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0);a.removeEventListener("click",this._clickListener,!0);a.removeEventListener("auxclick",this._clickListener,!0);a.removeEventListener("contextmenu",this._clickListener,!0);this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1);this._isAttached=!1}};
lA.prototype._addEventListeners=function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0);a.addEventListener("click",this._clickListener,!0);a.addEventListener("auxclick",this._clickListener,!0);a.addEventListener("contextmenu",this._clickListener,!0)};lA.\u0275fac=function(a){return new (a||lA)(t(ii),t(yy),t(ef,8))};lA.\u0275prov=ec({token:lA,factory:lA.\u0275fac,providedIn:"root"});
var mA=function(a,b){this._platform=b;this._document=a};mA.prototype.ngOnDestroy=function(){var a;null==(a=this._containerElement)||a.remove()};var nA=function(a){a._containerElement||a._createContainer();return a._containerElement};
mA.prototype._createContainer=function(){if(this._platform.isBrowser||oja())for(var a=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.classList.add("cdk-overlay-container");oja()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
mA.\u0275fac=function(a){return new (a||mA)(t(ii),t(yy))};mA.\u0275prov=ec({token:mA,factory:mA.\u0275fac,providedIn:"root"});
var upb=lja(),oA=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};oA.prototype.attach=function(){};
oA.prototype.enable=function(){if(this._canBeEnabled()){var a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition();this._previousHTMLStyles.left=a.style.left||"";this._previousHTMLStyles.top=a.style.top||"";a.style.left=Sg(-this._previousScrollPosition.left);a.style.top=Sg(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
oA.prototype.disable=function(){if(this._isEnabled){var a=this._document.documentElement,b=a.style,c=this._document.body.style,d=b.scrollBehavior||"",e=c.scrollBehavior||"";this._isEnabled=!1;b.left=this._previousHTMLStyles.left;b.top=this._previousHTMLStyles.top;a.classList.remove("cdk-global-scrollblock");upb&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);upb&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
oA.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var a=this._document.body,b=this._viewportRuler.getViewportSize();return a.scrollHeight>b.height||a.scrollWidth>b.width};
var pA=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._ngZone=b;this._viewportRuler=c;this._config=d;this._scrollSubscription=null;this._detach=function(){e.disable();e._overlayRef.hasAttached()&&e._ngZone.run(function(){return e._overlayRef.detach()})}};pA.prototype.attach=function(a){this._overlayRef=a};
pA.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&1<this._config.threshold?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=b.subscribe(function(){var c=a._viewportRuler.getViewportScrollPosition().top;Math.abs(c-a._initialScrollPosition)>a._config.threshold?a._detach():a._overlayRef.updatePosition()})):this._scrollSubscription=b.subscribe(this._detach)}};
pA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};pA.prototype.detach=function(){this.disable();this._overlayRef=null};
var qA=function(){};qA.prototype.enable=function(){};qA.prototype.disable=function(){};qA.prototype.attach=function(){};
var rA=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};rA.prototype.attach=function(a){this._overlayRef=a};
rA.prototype.enable=function(){var a=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){a._overlayRef.updatePosition();if(a._config&&a._config.autoClose){var b=a._overlayRef.overlayElement.getBoundingClientRect(),c=a._viewportRuler.getViewportSize(),d=c.width;c=c.height;gla(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
rA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};rA.prototype.detach=function(){this.disable();this._overlayRef=null};
new jd("VIRTUAL_SCROLL_STRATEGY");
var sA=function(a,b,c){this._ngZone=a;this._platform=b;this._scrolled=new T.Subject;this._globalSubscription=null;this._scrolledCount=0;this.scrollContainers=new Map;this._document=c};sA.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};sA.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
sA.prototype.scrolled=function(a){var b=this;a=void 0===a?20:a;return this._platform.isBrowser?new T.Observable(function(c){b._globalSubscription||b._addGlobalListener();var d=0<a?b._scrolled.pipe(He(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;b._scrolledCount||b._removeGlobalListener()}}):(0,T.of)()};
sA.prototype.ngOnDestroy=function(){var a=this;this._removeGlobalListener();this.scrollContainers.forEach(function(b,c){return a.deregister(c)});this._scrolled.complete()};var vpb=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};sA.prototype._getWindow=function(){return this._document.defaultView||window};
sA.prototype._scrollableContainsElement=function(a,b){b=Tg(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};sA.prototype._addGlobalListener=function(){var a=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return(0,T.fromEvent)(a._getWindow().document,"scroll").subscribe(function(){return a._scrolled.next()})})};
sA.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)};sA.\u0275fac=function(a){return new (a||sA)(t(ef),t(yy),t(ii,8))};sA.\u0275prov=ec({token:sA,factory:sA.\u0275fac,providedIn:"root"});
var tA=function(a,b,c,d){var e=this;this.elementRef=a;this.scrollDispatcher=b;this.ngZone=c;this.dir=d;this._destroyed=new T.Subject;this._elementScrolled=new T.Observable(function(f){return e.ngZone.runOutsideAngular(function(){return(0,T.fromEvent)(e.elementRef.nativeElement,"scroll").pipe(Ye(e._destroyed)).subscribe(f)})})};tA.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)};tA.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
tA.prototype.scrollTo=function(a){var b=this.elementRef.nativeElement,c=this.dir&&"rtl"==this.dir.value;null==a.left&&(a.left=c?a.end:a.start);null==a.right&&(a.right=c?a.start:a.end);null!=a.bottom&&(a.top=b.scrollHeight-b.clientHeight-a.bottom);c&&0!=mja()?(null!=a.left&&(a.right=b.scrollWidth-b.clientWidth-a.left),2==mja()?a.left=a.right:1==mja()&&(a.left=a.right?-a.right:a.right)):null!=a.right&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
tA.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;lja()?b.scrollTo(a):(null!=a.top&&(b.scrollTop=a.top),null!=a.left&&(b.scrollLeft=a.left))};tA.\u0275fac=function(a){return new (a||tA)(F(nd),F(sA),F(ef),F(hA,8))};tA.\u0275dir=v({type:tA,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});
var wpb=function(){},xpb=function(a,b,c,d){Lmb(a,function(e,f,h){if(null==e.previousIndex){var k=c(e,f,h);k=b.createEmbeddedView(k.templateRef,k.context,k.index);f=1}else null==h?(b.remove(f),f=3):(k=b.get(f),b.move(k,h),f=2);if(d){var q;d({context:null==(q=k)?void 0:q.context,operation:f,record:e})}})};wpb.prototype.detach=function(){};
var uA=function(a,b,c){var d=this;a=void 0===a?!1:a;c=void 0===c?!0:c;this._multiple=a;this._emitChanges=c;this._selection=new Set;this._deselectedToEmit=[];this._selectedToEmit=[];this.changed=new T.Subject;b&&b.length&&(a?b.forEach(function(e){return d._markSelected(e)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=uA.prototype;g.select=function(){var a=this;oc.apply(0,arguments).forEach(function(b){return a._markSelected(b)});this._emitChangeEvent()};
g.deselect=function(){var a=this;oc.apply(0,arguments).forEach(function(b){return a._unmarkSelected(b)});this._emitChangeEvent()};g.toggle=function(a){this.isSelected(a)?this.deselect(a):this.select(a)};g.clear=function(){this._unmarkAll();this._emitChangeEvent()};g.isSelected=function(a){return this._selection.has(a)};g.isEmpty=function(){return 0===this._selection.size};g.hasValue=function(){return!this.isEmpty()};g.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
g._emitChangeEvent=function(){this._selected=null;if(this._selectedToEmit.length||this._deselectedToEmit.length)this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]};g._markSelected=function(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
g._unmarkSelected=function(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};g._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};g._verifyValueAssignment=function(){};ki.Object.defineProperties(uA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});
var vA=function(){this._listeners=[]};vA.prototype.notify=function(a,b){for(var c=r(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};vA.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};vA.prototype.ngOnDestroy=function(){this._listeners=[]};vA.\u0275fac=function(a){return new (a||vA)};vA.\u0275prov=ec({token:vA,factory:vA.\u0275fac,providedIn:"root"});
var ypb=new jd("_ViewRepeater");
var wA=function(a,b,c){var d=this;this._platform=a;this._change=new T.Subject;this._changeListener=function(e){d._change.next(e)};this._document=c;b.runOutsideAngular(function(){if(a.isBrowser){var e=d._getWindow();e.addEventListener("resize",d._changeListener);e.addEventListener("orientationchange",d._changeListener)}d.change().subscribe(function(){return d._viewportSize=null})})};g=wA.prototype;
g.ngOnDestroy=function(){if(this._platform.isBrowser){var a=this._getWindow();a.removeEventListener("resize",this._changeListener);a.removeEventListener("orientationchange",this._changeListener)}this._change.complete()};g.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
g.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var a=this._document,b=this._getWindow(),c=a.documentElement,d=c.getBoundingClientRect();return{top:-d.top||a.body.scrollTop||b.scrollY||c.scrollTop||0,left:-d.left||a.body.scrollLeft||b.scrollX||c.scrollLeft||0}};g.change=function(a){a=void 0===a?20:a;return 0<a?this._change.pipe(He(a)):this._change};g._getWindow=function(){return this._document.defaultView||window};
g._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};wA.\u0275fac=function(a){return new (a||wA)(t(yy),t(ef),t(ii,8))};wA.\u0275prov=ec({token:wA,factory:wA.\u0275fac,providedIn:"root"});
var xA=function(){};xA.\u0275fac=function(a){return new (a||xA)};xA.\u0275mod=rc({type:xA});xA.\u0275inj=fc({});var yA=function(){};yA.\u0275fac=function(a){return new (a||yA)};yA.\u0275mod=rc({type:yA});yA.\u0275inj=fc({imports:[[iA,xA],iA,xA]});
var zA=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this.noop=function(){return new qA};this.close=function(f){return new pA(e._scrollDispatcher,e._ngZone,e._viewportRuler,f)};this.block=function(){return new oA(e._viewportRuler,e._document)};this.reposition=function(f){return new rA(e._scrollDispatcher,e._viewportRuler,e._ngZone,f)};this._document=d};zA.\u0275fac=function(a){return new (a||zA)(t(sA),t(wA),t(ef),t(ii))};
zA.\u0275prov=ec({token:zA,factory:zA.\u0275fac,providedIn:"root"});
var AA=function(a){this.scrollStrategy=new qA;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,void 0!==a[c]&&(this[c]=a[c])}};
var BA=function(a,b,c,d,e,f,h,k,q,w){var y=this;w=void 0===w?!1:w;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=h;this._location=k;this._outsideClickDispatcher=q;this._animationsDisabled=w;this._backdropElement=null;this._backdropClick=new T.Subject;this._attachments=new T.Subject;this._detachments=new T.Subject;this._locationChanges=T.Subscription.EMPTY;this._backdropClickHandler=function(E){return y._backdropClick.next(E)};
this._backdropTransitionendHandler=function(E){y._disposeBackdrop(E.target)};this._keydownEvents=new T.Subject;this._outsidePointerEvents=new T.Subject;d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};g=BA.prototype;
g.attach=function(a){var b=this;a=this._portalOutlet.attach(a);!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(Me()).subscribe(function(){b.hasAttached()&&b.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(function(){return b.dispose()}));this._outsideClickDispatcher.add(this);return a};
g.detach=function(){if(this.hasAttached()){zpb(this);this._togglePointerEvents(!1);this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach();this._scrollStrategy&&this._scrollStrategy.disable();var a=this._portalOutlet.detach();this._detachments.next();this._keyboardDispatcher.remove(this);this._detachContentWhenStable();this._locationChanges.unsubscribe();this._outsideClickDispatcher.remove(this);return a}};
g.dispose=function(){var a=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);var b;null==(b=this._host)||b.remove();this._previousHostParent=
this._pane=this._host=null;a&&this._detachments.next();this._detachments.complete()};g.hasAttached=function(){return this._portalOutlet.hasAttached()};g.backdropClick=function(){return this._backdropClick};g.attachments=function(){return this._attachments};g.keydownEvents=function(){return this._keydownEvents};g.getConfig=function(){return this._config};g.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};
var Apb=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};g=BA.prototype;g.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};g.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};g.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};
g.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};g.getDirection=function(){var a=this._config.direction;return a?"string"===typeof a?a:a.value:"ltr"};g._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())};
g._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=Sg(this._config.width);a.height=Sg(this._config.height);a.minWidth=Sg(this._config.minWidth);a.minHeight=Sg(this._config.minHeight);a.maxWidth=Sg(this._config.maxWidth);a.maxHeight=Sg(this._config.maxHeight)}};g._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
g._attachBackdrop=function(){var a=this;this._backdropElement=this._document.createElement("div");this._backdropElement.classList.add("cdk-overlay-backdrop");this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation");this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0);this._host.parentElement.insertBefore(this._backdropElement,this._host);this._backdropElement.addEventListener("click",this._backdropClickHandler);
this._animationsDisabled||"undefined"===typeof requestAnimationFrame?this._backdropElement.classList.add("cdk-overlay-backdrop-showing"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a._backdropElement&&a._backdropElement.classList.add("cdk-overlay-backdrop-showing")})})};g._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var zpb=function(a){var b=a._backdropElement;b&&(a._animationsDisabled?a._disposeBackdrop(b):(b.classList.remove("cdk-overlay-backdrop-showing"),a._ngZone.runOutsideAngular(function(){b.addEventListener("transitionend",a._backdropTransitionendHandler)}),b.style.pointerEvents="none",a._backdropTimeout=a._ngZone.runOutsideAngular(function(){return setTimeout(function(){a._disposeBackdrop(b)},500)})))};
BA.prototype._toggleClasses=function(a,b,c){b=Qg(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,u(b)):a.classList.remove.apply(a.classList,u(b)))};
BA.prototype._detachContentWhenStable=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._ngZone.onStable.pipe(Ye((0,T.merge)(a._attachments,a._detachments))).subscribe(function(){a._pane&&a._host&&0!==a._pane.children.length||(a._pane&&a._config.panelClass&&a._toggleClasses(a._pane,a._config.panelClass,!1),a._host&&a._host.parentElement&&(a._previousHostParent=a._host.parentElement,a._host.remove()),b.unsubscribe())})})};
BA.prototype._disposeScrollStrategy=function(){var a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())};BA.prototype._disposeBackdrop=function(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null));this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)};
ki.Object.defineProperties(BA.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});
var Bpb=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};
var jla=/([A-Za-z%]+)$/,CA=function(a,b,c,d,e){this._viewportRuler=b;this._document=c;this._platform=d;this._overlayContainer=e;this._lastBoundingBoxSize={width:0,height:0};this._isPushed=!1;this._canPush=!0;this._growAfterOpen=!1;this._hasFlexibleDimensions=!0;this._positionLocked=!1;this._viewportMargin=0;this._scrollables=[];this._preferredPositions=[];this._positionChanges=new T.Subject;this._resizeSubscription=T.Subscription.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};CA.prototype.attach=function(a){var b=this;a.hostElement.classList.add("cdk-overlay-connected-position-bounding-box");this._overlayRef=a;this._boundingBox=a.hostElement;this._pane=a.overlayElement;this._isDisposed=!1;this._isInitialRender=!0;this._lastPosition=null;this._resizeSubscription.unsubscribe();this._resizeSubscription=this._viewportRuler.change().subscribe(function(){b._isInitialRender=!0;b.apply()})};
CA.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)Cpb(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=nA(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,h=r(this._preferredPositions),k=h.next();!k.done;k=h.next()){k=k.value;var q=this._getOriginPoint(a,d,k),w=this._getOverlayPoint(q,b,k),y=this._getOverlayFit(w,b,c,k);if(y.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(y,w,c))e.push({position:k,origin:q,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(q,k)});else if(!f||f.overlayFit.visibleArea<y.visibleArea)f={overlayFit:y,
overlayPoint:w,originPoint:q,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=r(e);for(c=e.next();!c.done;c=e.next())c=c.value,d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1),d>b&&(b=d,a=c);this._isPushed=!1;this._applyPosition(a.position,a.origin)}else this._canPush&&(this._isPushed=!0),this._applyPosition(f.position,f.originPoint)}};CA.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
CA.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&ji(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)};
var Cpb=function(a){if(!a._isDisposed&&a._platform.isBrowser){var b=a._lastPosition;if(b){a._originRect=a._getOriginRect();a._overlayRect=a._pane.getBoundingClientRect();a._viewportRect=a._getNarrowedViewportRect();a._containerRect=nA(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},Dpb=function(a,b){a._scrollables=b;return a},DA=function(a,b){a._preferredPositions=b;-1===b.indexOf(a._lastPosition)&&(a._lastPosition=
null);return a},EA=function(a,b){a._viewportMargin=b;return a},FA=function(a,b){a._hasFlexibleDimensions=void 0===b?!0:b;return a},Epb=function(a,b){a._growAfterOpen=void 0===b?!0:b;return a},GA=function(a,b){a._canPush=void 0===b?!0:b;return a},HA=function(a,b){a._positionLocked=void 0===b?!0:b;return a};CA.prototype.setOrigin=function(a){this._origin=a;return this};var Fpb=function(a,b){a._transformOriginSelector=b;return a};g=CA.prototype;
g._getOriginPoint=function(a,b,c){if("center"==c.originX)var d=a.left+a.width/2;else{d=this._isRtl()?a.right:a.left;var e=this._isRtl()?a.left:a.right;d="start"==c.originX?d:e}0>b.left&&(d-=b.left);a="center"==c.originY?a.top+a.height/2:"top"==c.originY?a.top:a.bottom;0>b.top&&(a-=b.top);return{x:d,y:a}};
g._getOverlayPoint=function(a,b,c){var d="center"==c.overlayX?-b.width/2:"start"===c.overlayX?this._isRtl()?-b.width:0:this._isRtl()?0:-b.width;return{x:a.x+d,y:a.y+("center"==c.overlayY?-b.height/2:"top"==c.overlayY?0:-b.height)}};
g._getOverlayFit=function(a,b,c,d){b=lla(b);var e=a.x;a=a.y;var f=this._getOffset(d,"x");d=this._getOffset(d,"y");f&&(e+=f);d&&(a+=d);d=-a;a=a+b.height-c.height;c=this._subtractOverflows(b.width,-e,e+b.width-c.width);e=this._subtractOverflows(b.height,d,a);d=c*e;return{visibleArea:d,isCompletelyWithinViewport:b.width*b.height===d,fitsInViewportVertically:e===b.height,fitsInViewportHorizontally:c==b.width}};
g._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=kla(this._overlayRef.getConfig().minHeight);var e=kla(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||null!=e&&e<=c;return(a.fitsInViewportVertically||null!=b&&b<=d)&&c}return!1};
g._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=lla(b);var d=this._viewportRect,e=Math.max(a.x+b.width-d.width,0),f=Math.max(a.y+b.height-d.height,0),h=Math.max(d.top-c.top-a.y,0),k=Math.max(d.left-c.left-a.x,0);e=b.width<=d.width?k||-e:a.x<this._viewportMargin?d.left-c.left-a.x:0;c=b.height<=d.height?h||-f:a.y<this._viewportMargin?d.top-c.top-a.y:0;this._previousPushAmount={x:e,y:c};
return{x:a.x+e,y:a.y+c}};g._applyPosition=function(a,b){this._setTransformOrigin(a);this._setOverlayElementStyles(b,a);this._setBoundingBoxStyles(b,a);a.panelClass&&this._addPanelClasses(a.panelClass);this._lastPosition=a;this._positionChanges.observers.length&&(b=this._getScrollVisibility(),this._positionChanges.next(new Bpb(a,b)));this._isInitialRender=!1};
g._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a="center"===a.overlayX?"center":this._isRtl()?"start"===a.overlayX?"right":"left":"start"===a.overlayX?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
g._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if("top"===b.overlayY){var e=a.y;var f=c.height-e+this._viewportMargin}else if("bottom"===b.overlayY){var h=c.height-a.y+2*this._viewportMargin;f=c.height-h+this._viewportMargin}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=2*e;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k="start"===b.overlayX&&!d||"end"===b.overlayX&&d;if("end"===b.overlayX&&!d||"start"===
b.overlayX&&d){var q=c.width-a.x+this._viewportMargin;b=a.x-this._viewportMargin}else if(k){var w=a.x;b=c.right-a.x}else w=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=2*w,w=a.x-w,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(w=a.x-c/2);return{top:e,left:w,bottom:h,right:q,width:b,height:f}};
g._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.height=Sg(a.height);c.top=Sg(a.top);c.bottom=Sg(a.bottom);
c.width=Sg(a.width);c.left=Sg(a.left);c.right=Sg(a.right);c.alignItems="center"===b.overlayX?"center":"end"===b.overlayX?"flex-end":"flex-start";c.justifyContent="center"===b.overlayY?"center":"bottom"===b.overlayY?"flex-end":"flex-start";d&&(c.maxHeight=Sg(d));e&&(c.maxWidth=Sg(e))}this._lastBoundingBoxSize=a;ji(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){ji(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){ji(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
g._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var h=this._viewportRuler.getViewportScrollPosition();ji(c,this._getExactOverlayY(b,a,h));ji(c,this._getExactOverlayX(b,a,h))}else c.position="static";a="";h=this._getOffset(b,"x");b=this._getOffset(b,"y");h&&(a+="translateX("+h+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=Sg(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Sg(f.maxWidth):e&&(c.maxWidth=""));ji(this._pane.style,c)};g._getExactOverlayY=function(a,b,c){var d={top:"",bottom:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));"bottom"===a.overlayY?d.bottom=this._document.documentElement.clientHeight-(b.y+this._overlayRect.height)+"px":d.top=Sg(b.y);return d};
g._getExactOverlayX=function(a,b,c){var d={left:"",right:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));"right"===(this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left")?d.right=this._document.documentElement.clientWidth-(b.x+this._overlayRect.width)+"px":d.left=Sg(b.x);return d};
g._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:hla(a,c),isOriginOutsideView:gla(a,c),isOverlayClipped:hla(b,c),isOverlayOutsideView:gla(b,c)}};g._subtractOverflows=function(a){return oc.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
g._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+a-this._viewportMargin,bottom:c.top+b-this._viewportMargin,width:a-2*this._viewportMargin,height:b-2*this._viewportMargin}};g._isRtl=function(){return"rtl"===this._overlayRef.getDirection()};
g._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};g._getOffset=function(a,b){return"x"===b?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY};g._validatePositions=function(){};g._addPanelClasses=function(a){var b=this;this._pane&&Qg(a).forEach(function(c){""!==c&&-1===b._appliedPanelClasses.indexOf(c)&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
g._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};g._getOriginRect=function(){var a=this._origin;if(a instanceof nd)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();var b=a.width||0,c=a.height||0;return{top:a.y,bottom:a.y+c,left:a.x,right:a.x+b,height:c,width:b}};
ki.Object.defineProperties(CA.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});
var Gpb=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=Gpb.prototype;g.attach=function(a){var b=a.getConfig();this._overlayRef=a;this._width&&!b.width&&a.updateSize({width:this._width});this._height&&!b.height&&a.updateSize({height:this._height});a.hostElement.classList.add("cdk-global-overlay-wrapper");this._isDisposed=!1};
g.top=function(a){this._bottomOffset="";this._topOffset=void 0===a?"":a;this._alignItems="flex-start";return this};g.left=function(a){this._xOffset=void 0===a?"":a;this._xPosition="left";return this};g.bottom=function(a){this._topOffset="";this._bottomOffset=void 0===a?"":a;this._alignItems="flex-end";return this};g.right=function(a){this._xOffset=void 0===a?"":a;this._xPosition="right";return this};g.start=function(a){this._xOffset=void 0===a?"":a;this._xPosition="start";return this};
g.end=function(a){this._xOffset=void 0===a?"":a;this._xPosition="end";return this};g.width=function(a){a=void 0===a?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};g.height=function(a){a=void 0===a?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};
g.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),d=c.width,e=c.height,f=c.maxWidth;c=c.maxHeight;d=("100%"===d||"100vw"===d)&&(!f||"100%"===f||"100vw"===f);e=("100%"===e||"100vh"===e)&&(!c||"100%"===c||"100vh"===c);f=this._xPosition;c=this._xOffset;var h="rtl"===this._overlayRef.getConfig().direction,k="",q="",w="";if(d)w="flex-start";else if("center"===f)w="center",
h?q=c:k=c;else if(h)if("left"===f||"end"===f)w="flex-end",k=c;else{if("right"===f||"start"===f)w="flex-start",q=c}else if("left"===f||"start"===f)w="flex-start",k=c;else if("right"===f||"end"===f)w="flex-end",q=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":q;b.justifyContent=w;b.alignItems=e?"flex-start":this._alignItems}};
g.dispose=function(){if(!this._isDisposed&&this._overlayRef){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement,c=b.style;b.classList.remove("cdk-global-overlay-wrapper");c.justifyContent=c.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="";this._overlayRef=null;this._isDisposed=!0}};
var IA=function(a,b,c,d){this._viewportRuler=a;this._document=b;this._platform=c;this._overlayContainer=d};IA.prototype.global=function(){return new Gpb};var JA=function(a,b){return new CA(b,a._viewportRuler,a._document,a._platform,a._overlayContainer)};IA.\u0275fac=function(a){return new (a||IA)(t(wA),t(ii),t(yy),t(mA))};IA.\u0275prov=ec({token:IA,factory:IA.\u0275fac,providedIn:"root"});
var KA=function(){};KA.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};KA.prototype.detach=function(){var a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())};ki.Object.defineProperties(KA.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return null!=this._attachedHost}}});var LA=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.componentFactoryResolver=d};U(LA,KA);
var MA=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};U(MA,KA);MA.prototype.attach=function(a,b){this.context=b=void 0===b?this.context:b;return KA.prototype.attach.call(this,a)};MA.prototype.detach=function(){this.context=void 0;return KA.prototype.detach.call(this)};ki.Object.defineProperties(MA.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var NA=function(){this._isDisposed=!1};g=NA.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof LA)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof MA)return this._attachedPortal=a,this.attachTemplatePortal(a)};g.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};g.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
g.setDisposeFn=function(a){this._disposeFn=a};g._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};
var OA=function(a,b,c,d,e){this._isDisposed=!1;this.outletElement=a;this._componentFactoryResolver=b;this._appRef=c;this._defaultInjector=d;this._document=e};U(OA,NA);
OA.prototype.attachComponentPortal=function(a){var b=this,c=Qv(a.componentFactoryResolver||this._componentFactoryResolver,a.component);if(a.viewContainerRef){var d=a.viewContainerRef.createComponent(c,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector);this.setDisposeFn(function(){return d.destroy()})}else d=c.create(a.injector||this._defaultInjector||jlb),Fmb(this._appRef,d.hostView),this.setDisposeFn(function(){0<b._appRef.viewCount&&b._appRef.detachView(d.hostView);d.destroy()});
this.outletElement.appendChild(this._getComponentRootNode(d));this._attachedPortal=a;return d};OA.prototype.attachTemplatePortal=function(a){var b=this,c=a.viewContainerRef,d=c.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});d.rootNodes.forEach(function(e){return b.outletElement.appendChild(e)});d.detectChanges();this.setDisposeFn(function(){var e=c.indexOf(d);-1!==e&&c.remove(e)});this._attachedPortal=a;return d};OA.prototype.dispose=function(){NA.prototype.dispose.call(this);this.outletElement.remove()};
OA.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};
var PA=function(a,b,c){this._isDisposed=!1;this._componentFactoryResolver=a;this._viewContainerRef=b;this._isInitialized=!1;this.attached=new Iw;this._document=c};U(PA,NA);g=PA.prototype;g.ngOnInit=function(){this._isInitialized=!0};g.ngOnDestroy=function(){NA.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
g.attachComponentPortal=function(a){a._attachedHost=this;var b=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,c=Qv(a.componentFactoryResolver||this._componentFactoryResolver,a.component),d=b.createComponent(c,b.length,a.injector||b.injector);b!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]);NA.prototype.setDisposeFn.call(this,function(){return d.destroy()});this._attachedPortal=a;this._attachedRef=d;this.attached.emit(d);return d};
g.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});NA.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};g._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
ki.Object.defineProperties(PA.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&NA.prototype.detach.call(this),a&&NA.prototype.attach.call(this,a),this._attachedPortal=a||null}}});PA.\u0275fac=function(a){return new (a||PA)(F(Jv),F(Wf),F(ii))};
PA.\u0275dir=v({type:PA,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[gf]});var QA=function(){};QA.\u0275fac=function(a){return new (a||QA)};QA.\u0275mod=rc({type:QA});QA.\u0275inj=fc({});
var Hpb=0,RA=function(a,b,c,d,e,f,h,k,q,w,y,E){this.scrollStrategies=a;this._overlayContainer=b;this._componentFactoryResolver=c;this._positionBuilder=d;this._keyboardDispatcher=e;this._injector=f;this._ngZone=h;this._document=k;this._directionality=q;this._location=w;this._outsideClickDispatcher=y;this._animationsModuleType=E};g=RA.prototype;
g.create=function(a){var b=this._createHostElement(),c=this._createPaneElement(b),d=this._createPortalOutlet(c);a=new AA(a);a.direction=a.direction||this._directionality.value;return new BA(d,b,c,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)};g.position=function(){return this._positionBuilder};
g._createPaneElement=function(a){var b=this._document.createElement("div");b.id="cdk-overlay-"+Hpb++;b.classList.add("cdk-overlay-pane");a.appendChild(b);return b};g._createHostElement=function(){var a=this._document.createElement("div");nA(this._overlayContainer).appendChild(a);return a};g._createPortalOutlet=function(a){this._appRef||(this._appRef=this._injector.get(hx));return new OA(a,this._componentFactoryResolver,this._appRef,this._injector,this._document)};
RA.\u0275fac=function(a){return new (a||RA)(t(zA),t(mA),t(Jv),t(IA),t(kA),t(Hv),t(ef),t(ii),t(hA),t(Tx),t(lA),t(Wv,8))};RA.\u0275prov=ec({token:RA,factory:RA.\u0275fac});
var Ipb=[{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"}],Jpb=new jd("cdk-connected-overlay-scroll-strategy"),SA=function(a){this.elementRef=a};SA.\u0275fac=function(a){return new (a||SA)(F(nd))};
SA.\u0275dir=v({type:SA,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var TA=function(a,b,c,d,e){this._overlay=a;this._dir=e;this._push=this._flexibleDimensions=this._growAfterOpen=this._lockPosition=this._hasBackdrop=!1;this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=T.Subscription.EMPTY;this.viewportMargin=0;this.disableClose=this.open=!1;this.backdropClick=new Iw;this.positionChange=new Iw;this.attach=new Iw;this.detach=new Iw;this.overlayKeydown=new Iw;this.overlayOutsideClick=new Iw;this._templatePortal=new MA(b,
c);this._scrollStrategyFactory=d;this.scrollStrategy=this._scrollStrategyFactory()};g=TA.prototype;g.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();this._overlayRef&&this._overlayRef.dispose()};
g.ngOnChanges=function(a){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),a.origin&&this.open&&this._position.apply());a.open&&(this.open?this._attachOverlay():this._detachOverlay())};
g._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=Ipb);var b=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=b.attachments().subscribe(function(){return a.attach.emit()});this._detachSubscription=b._detachments.subscribe(function(){return a.detach.emit()});b.keydownEvents().subscribe(function(c){a.overlayKeydown.next(c);27!==c.keyCode||a.disableClose||gi(c)||(c.preventDefault(),a._detachOverlay())});this._overlayRef._outsidePointerEvents.subscribe(function(c){a.overlayOutsideClick.next(c)})};
g._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new AA({direction:this._dir,positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});if(this.width||0===this.width)a.width=this.width;if(this.height||0===this.height)a.height=this.height;if(this.minWidth||0===this.minWidth)a.minWidth=this.minWidth;if(this.minHeight||0===this.minHeight)a.minHeight=this.minHeight;this.backdropClass&&(a.backdropClass=this.backdropClass);
this.panelClass&&(a.panelClass=this.panelClass);return a};
g._updatePositionStrategy=function(a){var b=this,c=this.positions.map(function(d){return{originX:d.originX,originY:d.originY,overlayX:d.overlayX,overlayY:d.overlayY,offsetX:d.offsetX||b.offsetX,offsetY:d.offsetY||b.offsetY,panelClass:d.panelClass||void 0}});return Fpb(HA(EA(Epb(GA(FA(DA(a.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=JA(this._overlay.position(),this._getFlexibleConnectedPositionStrategyOrigin());this._updatePositionStrategy(a);return a};g._getFlexibleConnectedPositionStrategyOrigin=function(){return this.origin instanceof SA?this.origin.elementRef:this.origin};
g._attachOverlay=function(){var a=this;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(function(b){a.backdropClick.emit(b)}):this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();0<this.positionChange.observers.length&&(this._positionSubscription=this._position.positionChanges.pipe(Jga(function(){return 0<
a.positionChange.observers.length})).subscribe(function(b){a.positionChange.emit(b);0===a.positionChange.observers.length&&a._positionSubscription.unsubscribe()}))};g._detachOverlay=function(){this._overlayRef&&this._overlayRef.detach();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe()};
ki.Object.defineProperties(TA.prototype,{offsetX:{configurable:!0,enumerable:!0,get:function(){return this._offsetX},set:function(a){this._offsetX=a;this._position&&this._updatePositionStrategy(this._position)}},offsetY:{configurable:!0,enumerable:!0,get:function(){return this._offsetY},set:function(a){this._offsetY=a;this._position&&this._updatePositionStrategy(this._position)}},hasBackdrop:{configurable:!0,enumerable:!0,get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=
Rg(a)}},lockPosition:{configurable:!0,enumerable:!0,get:function(){return this._lockPosition},set:function(a){this._lockPosition=Rg(a)}},flexibleDimensions:{configurable:!0,enumerable:!0,get:function(){return this._flexibleDimensions},set:function(a){this._flexibleDimensions=Rg(a)}},growAfterOpen:{configurable:!0,enumerable:!0,get:function(){return this._growAfterOpen},set:function(a){this._growAfterOpen=Rg(a)}},push:{configurable:!0,enumerable:!0,get:function(){return this._push},set:function(a){this._push=
Rg(a)}},overlayRef:{configurable:!0,enumerable:!0,get:function(){return this._overlayRef}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir?this._dir.value:"ltr"}}});TA.\u0275fac=function(a){return new (a||TA)(F(RA),F(Vf),F(Wf),F(Jpb),F(hA,8))};
TA.\u0275dir=v({type:TA,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:[Ac]});var Kpb={provide:Jpb,deps:[RA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};
var UA=function(){};UA.\u0275fac=function(a){return new (a||UA)};UA.\u0275mod=rc({type:UA});UA.\u0275inj=fc({providers:[RA,Kpb],imports:[[iA,QA,yA],yA]});
var Lpb=new jd("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),VA=function(a,b,c){this._sanityChecks=b;this._document=c;this._hasDoneGlobalChecks=!1;a._applyBodyHighContrastModeCssClasses();this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)};VA.prototype._checkIsEnabled=function(a){return oja()?!1:"boolean"===typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[a]};VA.\u0275fac=function(a){return new (a||VA)(t(Lz),t(Lpb,8),t(ii))};VA.\u0275mod=rc({type:VA});
VA.\u0275inj=fc({imports:[[iA],iA]});
var Mpb=new jd("MAT_DATE_LOCALE",{providedIn:"root",factory:ola}),WA=function(){this.localeChanges=this._localeChanges=new T.Subject},XA=function(a,b){return a.isDateInstance(b)&&a.isValid(b)?b:null};WA.prototype.deserialize=function(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()};WA.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var YA=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};
WA.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!YA(this,a,b):c==d}return a==b};var ZA=function(a,b,c,d){return c&&0>YA(a,b,c)?c:d&&0<YA(a,b,d)?d:b};
var $A=new jd("mat-date-formats");
var Npb=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,aB=function(a){WA.call(this);WA.prototype.setLocale.call(this,a)};U(aB,WA);g=aB.prototype;g.getYear=function(a){return a.getFullYear()};g.getMonth=function(a){return a.getMonth()};g.getDate=function(a){return a.getDate()};g.getDayOfWeek=function(a){return a.getDay()};
g.getMonthNames=function(a){var b=this,c=new Intl.DateTimeFormat(this.locale,{month:a,timeZone:"utc"});return pla(12,function(d){return b._format(c,new Date(2017,d,1))})};g.getDateNames=function(){var a=this,b=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pla(31,function(c){return a._format(b,new Date(2017,0,c+1))})};
g.getDayOfWeekNames=function(a){var b=this,c=new Intl.DateTimeFormat(this.locale,{weekday:a,timeZone:"utc"});return pla(7,function(d){return b._format(c,new Date(2017,0,d+1))})};g.getYearName=function(a){var b=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(b,a)};g.getFirstDayOfWeek=function(){return 0};g.getNumDaysInMonth=function(a){return this.getDate(this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+1,0))};g.clone=function(a){return new Date(a.getTime())};
g.createDate=function(a,b,c){a=this._createDateWithOverflow(a,b,c);a.getMonth();return a};g.today=function(){return new Date};g.parse=function(a){return"number"==typeof a?new Date(a):a?new Date(Date.parse(a)):null};g.format=function(a,b){if(!this.isValid(a))throw Error("mb");b=new Intl.DateTimeFormat(this.locale,Object.assign({},b,{timeZone:"utc"}));return this._format(b,a)};g.addCalendarYears=function(a,b){return this.addCalendarMonths(a,12*b)};
g.addCalendarMonths=function(a,b){var c=this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+b,this.getDate(a));this.getMonth(c)!=((this.getMonth(a)+b)%12+12)%12&&(c=this._createDateWithOverflow(this.getYear(c),this.getMonth(c),0));return c};g.addCalendarDays=function(a,b){return this._createDateWithOverflow(this.getYear(a),this.getMonth(a),this.getDate(a)+b)};
g.deserialize=function(a){if("string"===typeof a){if(!a)return null;if(Npb.test(a)){var b=new Date(a);if(this.isValid(b))return b}}return WA.prototype.deserialize.call(this,a)};g.isDateInstance=function(a){return a instanceof Date};g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new Date(NaN)};g._createDateWithOverflow=function(a,b,c){var d=new Date;d.setFullYear(a,b,c);d.setHours(0,0,0,0);return d};g._2digit=function(a){return("00"+a).slice(-2)};
g._format=function(a,b){var c=new Date;c.setUTCFullYear(b.getFullYear(),b.getMonth(),b.getDate());c.setUTCHours(b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds());return a.format(c)};aB.\u0275fac=function(a){return new (a||aB)(t(Mpb,8),t(yy))};aB.\u0275prov=ec({token:aB,factory:aB.\u0275fac});
var bB=function(){};bB.\u0275fac=function(a){return new (a||bB)};bB.\u0275mod=rc({type:bB});bB.\u0275inj=fc({providers:[{provide:WA,useClass:aB}]});var cB=function(){};cB.\u0275fac=function(a){return new (a||cB)};cB.\u0275mod=rc({type:cB});
cB.\u0275inj=fc({providers:[{provide:$A,useValue:{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"}}}}],imports:[[bB]]});
var dB=function(){};dB.\u0275fac=function(a){return new (a||dB)};dB.\u0275prov=ec({token:dB,factory:dB.\u0275fac,providedIn:"root"});
new jd("MAT_HAMMER_OPTIONS");
var eB=function(){};eB.\u0275fac=function(a){return new (a||eB)};eB.\u0275dir=v({type:eB,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var fB=function(){};fB.\u0275fac=function(a){return new (a||fB)};fB.\u0275mod=rc({type:fB});fB.\u0275inj=fc({imports:[[VA],VA]});
var Opb=new jd("MAT_OPTION_PARENT_COMPONENT");
ni(function(){});var Ppb=new jd("MatOptgroup");
var Qpb=function(a,b,c,d){d=void 0===d?!1:d;this._renderer=a;this.element=b;this.config=c;this._animationForciblyDisabledThroughCss=d;this.state=3};
var Rpb={enterDuration:225,exitDuration:150},Spb=Kg({passive:!0}),Tpb=["mousedown","touchstart"],Upb=["mouseup","mouseleave","touchend","touchcancel"],gB=function(a,b,c,d){this._target=a;this._ngZone=b;this._isPointerDown=!1;this._activeRipples=new Map;this._pointerUpEventsRegistered=!1;d.isBrowser&&(this._containerElement=Tg(c))},hB=function(a,b,c,d){d=void 0===d?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},Rpb,d.animation);d.centered&&
(b=e.left+e.width/2,c=e.top+e.height/2);var h=d.radius||rla(b,c,e);b-=e.left;e=c-e.top;c=f.enterDuration;var k=document.createElement("div");k.classList.add("mat-ripple-element");k.style.left=b-h+"px";k.style.top=e-h+"px";k.style.height=2*h+"px";k.style.width=2*h+"px";null!=d.color&&(k.style.backgroundColor=d.color);k.style.transitionDuration=c+"ms";a._containerElement.appendChild(k);h=window.getComputedStyle(k);b=h.transitionDuration;h="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b;var q=
new Qpb(a,k,d,h);k.style.transform="scale3d(1, 1, 1)";q.state=0;d.persistent||(a._mostRecentTransientRipple=q);var w=null;h||!c&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var y=function(){return a._finishRippleTransition(q)},E=function(){return a._destroyRipple(q)};k.addEventListener("transitionend",y);k.addEventListener("transitioncancel",E);w={onTransitionEnd:y,onTransitionCancel:E}});a._activeRipples.set(q,w);!h&&c||a._finishRippleTransition(q);return q},Vpb=function(a,b){if(2!==
b.state&&3!==b.state){var c=b.element,d=Object.assign({},Rpb,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};gB.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||Vpb(a._renderer,a)})};var Wpb=function(a,b){(b=Tg(b))&&b!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=b,a._registerEvents(Tpb))};
g=gB.prototype;g.handleEvent=function(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._registerEvents(Upb),this._pointerUpEventsRegistered=!0)};g._finishRippleTransition=function(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)};
g._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||Vpb(a._renderer,a)};
g._destroyRipple=function(a){var b,c=null!=(b=this._activeRipples.get(a))?b:null;this._activeRipples.delete(a);this._activeRipples.size||(this._containerRect=null);a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null);a.state=3;null!==c&&(a.element.removeEventListener("transitionend",c.onTransitionEnd),a.element.removeEventListener("transitioncancel",c.onTransitionCancel));a.element.remove()};
g._onMousedown=function(a){var b=ei(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,hB(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!fi(a)){this._lastTouchStartEvent=Date.now();this._isPointerDown=!0;a=a.changedTouches;for(var b=0;b<a.length;b++)hB(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)}};
g._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(function(a){var b=1===a.state||a.config.terminateOnPointerUp&&0===a.state;!a.config.persistent&&b&&Vpb(a._renderer,a)}))};g._registerEvents=function(a){var b=this;this._ngZone.runOutsideAngular(function(){a.forEach(function(c){b._triggerElement.addEventListener(c,b,Spb)})})};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this;this._triggerElement&&(Tpb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Spb)}),this._pointerUpEventsRegistered&&Upb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Spb)}))};
var Xpb=new jd("mat-ripple-global-options"),iB=function(a,b,c,d,e){this._elementRef=a;this._animationMode=e;this.radius=0;this._isInitialized=this._disabled=!1;this._globalOptions=d||{};this._rippleRenderer=new gB(this,b,a,c)};g=iB.prototype;g.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};g.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};g.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};
g._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&Wpb(this._rippleRenderer,this.trigger)};g.launch=function(a,b,c){return"number"===typeof a?hB(this._rippleRenderer,a,void 0===b?0:b,Object.assign({},this.rippleConfig,c)):hB(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
ki.Object.defineProperties(iB.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){a&&this.fadeOutAllNonPersistent();this._disabled=a;this._setupTriggerEventsIfEnabled()}},trigger:{configurable:!0,enumerable:!0,get:function(){return this._trigger||this._elementRef.nativeElement},set:function(a){this._trigger=a;this._setupTriggerEventsIfEnabled()}},rippleConfig:{configurable:!0,enumerable:!0,get:function(){return{centered:this.centered,radius:this.radius,
color:this.color,animation:Object.assign({},this._globalOptions.animation,"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||!!this._globalOptions.disabled}}});iB.\u0275fac=function(a){return new (a||iB)(F(nd),F(ef),F(yy),F(Xpb,8),F(Wv,8))};
iB.\u0275dir=v({type:iB,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&sf("mat-ripple-unbounded",b.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"]});
var jB=function(a){this._animationMode=a;this.state="unchecked";this.disabled=!1};jB.\u0275fac=function(a){return new (a||jB)(F(Wv,8))};
jB.\u0275cmp=v({type:jB,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(a,b){a&2&&sf("mat-pseudo-checkbox-indeterminate","indeterminate"===b.state)("mat-pseudo-checkbox-checked","checked"===b.state)("mat-pseudo-checkbox-disabled",b.disabled)("_mat-animation-noopable","NoopAnimations"===b._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(){},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});
var Ypb=0,Zpb=function(a,b){this.source=a;this.isUserInput=void 0===b?!1:b},kB=function(a,b,c,d){this._element=a;this._changeDetectorRef=b;this._parent=c;this.group=d;this._disabled=this._active=this._selected=!1;this._mostRecentViewValue="";this.id="mat-option-"+Ypb++;this.onSelectionChange=new Iw;this._stateChanges=new T.Subject};g=kB.prototype;g.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())};
g.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())};g.focus=function(a,b){var c=this._getHostElement();"function"===typeof c.focus&&c.focus(b)};g.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};g.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};g.getLabel=function(){return this.viewValue};
g._handleKeydown=function(a){13!==a.keyCode&&32!==a.keyCode||gi(a)||(this._selectViaInteraction(),a.preventDefault())};g._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};g._getAriaSelected=function(){return this.selected||(this.multiple?!1:null)};g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._element.nativeElement};
g.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue=a,this._stateChanges.next())}};g.ngOnDestroy=function(){this._stateChanges.complete()};g._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new Zpb(this,void 0===a?!1:a))};
ki.Object.defineProperties(kB.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._parent&&this._parent.multiple}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.group&&this.group.disabled||this._disabled},set:function(a){this._disabled=Rg(a)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return!(!this._parent||!this._parent.disableRipple)}},active:{configurable:!0,
enumerable:!0,get:function(){return this._active}},viewValue:{configurable:!0,enumerable:!0,get:function(){return(this._getHostElement().textContent||"").trim()}}});kB.\u0275fac=function(){wf()};kB.\u0275dir=v({type:kB,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var lB=function(a,b,c,d){kB.call(this,a,b,c,d)};U(lB,kB);lB.\u0275dir=kB.\u0275dir;lB.\u0275fac=function(a){return new (a||lB)(F(nd),F(lx),F(Opb,8),F(Ppb,8))};
lB.\u0275cmp=v({type:lB,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(a,b){a&1&&K("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Af("id",b.id),nf("tabindex",b._getTabIndex())("aria-selected",b._getAriaSelected())("aria-disabled",b.disabled.toString()),sf("mat-selected",b.selected)("mat-option-multiple",b.multiple)("mat-active",b.active)("mat-option-disabled",
b.disabled))},exportAs:["matOption"],features:[gf],ngContentSelectors:["*"],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(a,b){a&1&&(Cf(),O(0,sla,1,2,"mat-pseudo-checkbox",0),G(1,"span",1),Df(2),H(),O(3,tla,2,1,"span",
2),J(4,"div",3));a&2&&(D("ngIf",b.multiple),B(3),D("ngIf",b.group&&b.group._inert),B(1),D("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[iB,sx,jB],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;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});
var mB=function(){};mB.\u0275fac=function(a){return new (a||mB)};mB.\u0275mod=rc({type:mB});mB.\u0275inj=fc({imports:[[VA],VA]});
var nB=function(){};nB.\u0275fac=function(a){return new (a||nB)};nB.\u0275mod=rc({type:nB});nB.\u0275inj=fc({imports:[[VA]]});
var oB=function(){};oB.\u0275fac=function(a){return new (a||oB)};oB.\u0275mod=rc({type:oB});oB.\u0275inj=fc({imports:[[mB,Mx,VA,nB]]});
/*

 Copyright Google Inc. All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
var $pb=["mat-button",""],aqb=["*"],bqb=function(){return".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;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;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;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;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"},
cqb="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),dqb=li(ni(mi(function(a){this._elementRef=a}))),pB=function(a,b,c){var d=dqb.call(this,a)||this;d._focusMonitor=b;d._animationMode=c;d.isRoundButton=d._hasHostAttributes("mat-fab","mat-mini-fab");d.isIconButton=d._hasHostAttributes("mat-icon-button");for(var e=r(cqb),f=e.next();!f.done;f=e.next())f=f.value,d._hasHostAttributes(f)&&d._getHostElement().classList.add(f);a.nativeElement.classList.add("mat-button-base");
d.isRoundButton&&(d.color="accent");return d};U(pB,dqb);g=pB.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?Jz(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};g._getHostElement=function(){return this._elementRef.nativeElement};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};
g._hasHostAttributes=function(){var a=this;return oc.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};pB.\u0275fac=function(a){return new (a||pB)(F(nd),F(Iz),F(Wv,8))};
pB.\u0275cmp=v({type:pB,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(a,b){a&1&&Zf(iB,5);if(a&2){var c;Yf(c=ag())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(a,b){a&2&&(nf("disabled",b.disabled||null),sf("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[gf],attrs:$pb,ngContentSelectors:aqb,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(a,b){a&1&&(Cf(),G(0,"span",0),Df(1),H(),J(2,"span",1)(3,"span",2));a&2&&(B(2),sf("mat-button-ripple-round",b.isRoundButton||b.isIconButton),D("matRippleDisabled",
b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[iB],styles:[bqb()],encapsulation:2,changeDetection:0});var qB=function(a,b,c,d){var e=pB.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};U(qB,pB);
qB.prototype.ngAfterViewInit=function(){var a=this;pB.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};qB.prototype.ngOnDestroy=function(){pB.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
qB.\u0275fac=function(a){return new (a||qB)(F(Iz),F(nd),F(Wv,8),F(ef,8))};
qB.\u0275cmp=v({type:qB,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(a,b){a&2&&(nf("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString()),sf("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",b.disabled))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[gf],attrs:$pb,ngContentSelectors:aqb,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(a,b){a&1&&(Cf(),G(0,"span",0),Df(1),H(),J(2,"span",1)(3,"span",2));a&2&&(B(2),sf("mat-button-ripple-round",b.isRoundButton||b.isIconButton),
D("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[iB],styles:[bqb()],encapsulation:2,changeDetection:0});
var rB=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new T.Subject;this.selection=a};rB.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};rB.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};rB.prototype._isValidDateInstance=function(a){return this._adapter.isDateInstance(a)&&this._adapter.isValid(a)};rB.\u0275fac=function(){wf()};
rB.\u0275prov=ec({token:rB,factory:rB.\u0275fac});var sB=function(a){rB.call(this,null,a)};U(sB,rB);sB.prototype.add=function(a){rB.prototype.updateSelection.call(this,a,this)};sB.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)};sB.prototype.isComplete=function(){return null!=this.selection};sB.prototype.clone=function(){var a=new sB(this._adapter);a.updateSelection(this.selection,this);return a};sB.\u0275fac=function(a){return new (a||sB)(t(WA))};
sB.\u0275prov=ec({token:sB,factory:sB.\u0275fac});var eqb={provide:rB,deps:[[new Ev,new Fv,rB],WA],useFactory:function(a,b){return a||new sB(b)}};new Ev;new Fv;
var tB=function(){this.changes=new T.Subject};tB.\u0275fac=function(a){return new (a||tB)};tB.\u0275prov=ec({token:tB,factory:tB.\u0275fac,providedIn:"root"});
var fqb=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;this.value=a;this.displayValue=b;this.ariaLabel=c;this.enabled=d;this.cssClasses=e;this.compareValue=void 0===f?a:f;this.rawValue=h},uB=function(a,b){var c=this;this._elementRef=a;this._ngZone=b;this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new Iw;this.previewChange=new Iw;this.activeDateChange=new Iw;this._enterHandler=
function(d){if(c._skipNextFocus&&"focus"===d.type)c._skipNextFocus=!1;else if(d.target&&c.isRange){var e=c._getCellFromElement(d.target);e&&c._ngZone.run(function(){return c.previewChange.emit({value:e.enabled?e:null,event:d})})}};this._leaveHandler=function(d){null!==c.previewEnd&&c.isRange&&d.target&&c._getCellFromElement(d.target)&&c._ngZone.run(function(){return c.previewChange.emit({value:null,event:d})})};b.runOutsideAngular(function(){var d=a.nativeElement;d.addEventListener("mouseenter",c._enterHandler,
!0);d.addEventListener("focus",c._enterHandler,!0);d.addEventListener("mouseleave",c._leaveHandler,!0);d.addEventListener("blur",c._leaveHandler,!0)})};g=uB.prototype;g.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};g._cellClicked=function(a,b){a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};g._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};
g._isSelected=function(a){return this.startValue===a||this.endValue===a};g.ngOnChanges=function(a){var b=a.numCols,c=this.rows,d=this.numCols;if(a.rows||b)this._firstRowOffset=c&&c.length&&c[0].length?d-c[0].length:0;if(a.cellAspectRatio||b||!this._cellPadding)this._cellPadding=50*this.cellAspectRatio/d+"%";if(b||!this._cellWidth)this._cellWidth=100/d+"%"};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;a.removeEventListener("mouseenter",this._enterHandler,!0);a.removeEventListener("focus",this._enterHandler,!0);a.removeEventListener("mouseleave",this._leaveHandler,!0);a.removeEventListener("blur",this._leaveHandler,!0)};g._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};
g._focusActiveCell=function(a){var b=this;a=void 0===a?!0:a;this._ngZone.runOutsideAngular(function(){b._ngZone.onStable.pipe(Me()).subscribe(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})})})};g._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};g._isRangeStart=function(a){return Ala(a,this.startValue,this.endValue)};
g._isRangeEnd=function(a){return Bla(a,this.startValue,this.endValue)};g._isInRange=function(a){return Cla(a,this.startValue,this.endValue,this.isRange)};g._isComparisonStart=function(a){return Ala(a,this.comparisonStart,this.comparisonEnd)};g._isComparisonBridgeStart=function(a,b,c){if(!this._isComparisonStart(a)||this._isRangeStart(a)||!this._isInRange(a))return!1;a=this.rows[b][c-1];a||(a=(b=this.rows[b-1])&&b[b.length-1]);return a&&!this._isRangeEnd(a.compareValue)};
g._isComparisonBridgeEnd=function(a,b,c){if(!this._isComparisonEnd(a)||this._isRangeEnd(a)||!this._isInRange(a))return!1;a=this.rows[b][c+1];a||(a=(b=this.rows[b+1])&&b[0]);return a&&!this._isRangeStart(a.compareValue)};g._isComparisonEnd=function(a){return Bla(a,this.comparisonStart,this.comparisonEnd)};g._isInComparisonRange=function(a){return Cla(a,this.comparisonStart,this.comparisonEnd,this.isRange)};g._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};
g._isPreviewStart=function(a){return Ala(a,this.previewStart,this.previewEnd)};g._isPreviewEnd=function(a){return Bla(a,this.previewStart,this.previewEnd)};g._isInPreview=function(a){return Cla(a,this.previewStart,this.previewEnd,this.isRange)};g._getCellFromElement=function(a){if("TD"===a.nodeName)var b=a;else"TD"===a.parentNode.nodeName&&(b=a.parentNode);return b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)?this.rows[parseInt(a)][parseInt(b)]:null};
uB.\u0275fac=function(a){return new (a||uB)(F(nd),F(ef))};
uB.\u0275cmp=v({type:uB,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",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[Ac],attrs:["mat-calendar-body",""],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","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,b){a&1&&(O(0,wla,3,6,"tr",0),O(1,zla,3,2,"tr",1));a&2&&(D("ngIf",b._firstRowOffset<b.labelMinRequiredCells),B(1),D("ngForOf",b.rows))},dependencies:[vx,wx,sx],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.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});
var gqb=new jd("MAT_DATE_RANGE_SELECTION_STRATEGY");new Ev;new Fv;
var vB=function(a,b,c,d,e){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rangeStrategy=e;this._rerenderSubscription=T.Subscription.EMPTY;this.selectedChange=new Iw;this._userSelection=new Iw;this.activeDateChange=new Iw;this._activeDate=this._dateAdapter.today()};g=vB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(function(){return a._init()})};
g.ngOnChanges=function(a){(a=a.comparisonStart||a.comparisonEnd)&&!a.firstChange&&this._setRanges(this.selected)};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};g._dateSelected=function(a){var b=a.value,c=this._getDateFromDayOfMonth(b),d;(d=this._getDateInCurrentMonth(this._selected))===b&&d===b||this.selectedChange.emit(c);this._userSelection.emit({value:c,event:a.event});this._previewStart=this._previewEnd=null;this._changeDetectorRef.markForCheck()};
g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);YA(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-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=a.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,
1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:null==this._previewEnd||gi(a)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:a}),a.preventDefault(),a.stopPropagation());return;default:return}YA(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){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();var a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=
(7+this._dateAdapter.getDayOfWeek(a)-this._dateAdapter.getFirstDayOfWeek())%7;this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._previewChanged=function(a){var b=a.event;a=a.value;this._rangeStrategy&&(b=this._rangeStrategy.createPreview(a?a.rawValue:null,this.selected,b),this._previewStart=this._getCellCompareValue(b.start),this._previewEnd=this._getCellCompareValue(b.end),this._changeDetectorRef.detectChanges())};g._getDateFromDayOfMonth=function(a){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
g._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=this._dateAdapter.getDayOfWeekNames("narrow"),c=this._dateAdapter.getDayOfWeekNames("long").map(function(d,e){return{long:d,narrow:b[e]}});this._weekdays=c.slice(a).concat(c.slice(0,a))};
g._createWeekCells=function(){var a=this._dateAdapter.getNumDaysInMonth(this.activeDate),b=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,d=this._firstWeekOffset;c<a;c++,d++){7==d&&(this._weeks.push([]),d=0);var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),c+1),f=this._shouldEnableDate(e),h=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),k=this.dateClass?this.dateClass(e,"month"):void 0;this._weeks[this._weeks.length-
1].push(new fqb(c+1,b[c],h,f,k,this._getCellCompareValue(e),e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||0<=YA(this._dateAdapter,a,this.minDate))&&(!this.maxDate||0>=YA(this._dateAdapter,a,this.maxDate))&&(!this.dateFilter||this.dateFilter(a))};g._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};
g._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};g._getCellCompareValue=function(a){if(a){var b=this._dateAdapter.getYear(a),c=this._dateAdapter.getMonth(a);a=this._dateAdapter.getDate(a);return(new Date(b,c,a)).getTime()}return null};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};
g._setRanges=function(a){this._rangeStart=this._rangeEnd=this._getCellCompareValue(a);this._isRange=!1;this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart);this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)};g._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};
ki.Object.defineProperties(vB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=XA(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=ZA(this._dateAdapter,a,this.minDate,this.maxDate);this._hasSameMonthAndYear(b,this._activeDate)||this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=XA(this._dateAdapter,
this._dateAdapter.deserialize(a));this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}}});vB.\u0275fac=function(a){return new (a||vB)(F(lx),F($A,8),F(WA,8),F(hA,8),F(gqb,8))};
vB.\u0275cmp=v({type:vB,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&Zf(uB,5);if(a&2){var c;Yf(c=ag())&&(b._matCalendarBody=c.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:[Ac],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","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],
["aria-hidden","true"]],template:function(a,b){a&1&&(G(0,"table",0)(1,"thead",1)(2,"tr"),O(3,Dla,5,2,"th",2),H(),G(4,"tr"),J(5,"th",3),H()(),G(6,"tbody",4),K("selectedValueChange",function(c){return b._dateSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("previewChange",function(c){return b._previewChanged(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),H()());a&2&&(B(3),D("ngForOf",b._weekdays),
B(3),D("label",b._monthLabel)("rows",b._weeks)("todayValue",b._todayDate)("startValue",b._rangeStart)("endValue",b._rangeEnd)("comparisonStart",b._comparisonRangeStart)("comparisonEnd",b._comparisonRangeEnd)("previewStart",b._previewStart)("previewEnd",b._previewEnd)("isRange",b._isRange)("labelMinRequiredCells",3)("activeCell",b._dateAdapter.getDate(b.activeDate)-1))},dependencies:[wx,uB],encapsulation:2,changeDetection:0});
var wB=function(a,b,c){this._changeDetectorRef=a;this._dateAdapter=b;this._dir=c;this._rerenderSubscription=T.Subscription.EMPTY;this.selectedChange=new Iw;this.yearSelected=new Iw;this.activeDateChange=new Iw;this._activeDate=this._dateAdapter.today()};g=wB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._init=function(){var a=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var b=this._dateAdapter.getYear(this._activeDate)-qi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var c=0,d=[];24>c;c++)d.push(b+c),4==d.length&&(this._years.push(d.map(function(e){return a._createCellForYear(e)})),d=[]);this._changeDetectorRef.markForCheck()};
g._yearSelected=function(a){var b=a.value;a=this._dateAdapter.createDate(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);YA(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-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,
-qi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-qi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}YA(this._dateAdapter,
b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:a}),this._selectionKeyPressed=!1};g._getActiveCell=function(){return qi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};
g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};g._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate),c=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(a,b,1));return this._dateAdapter.createDate(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};
g._createCellForYear=function(a){var b=this._dateAdapter.createDate(a,0,1),c=this._dateAdapter.getYearName(b);b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new fqb(a,c,c,this._shouldEnableYear(a),b)};
g._shouldEnableYear=function(a){if(void 0===a||null===a||this.maxDate&&a>this._dateAdapter.getYear(this.maxDate)||this.minDate&&a<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var b=this._dateAdapter.createDate(a,0,1);this._dateAdapter.getYear(b)==a;b=this._dateAdapter.addCalendarDays(b,1))if(this.dateFilter(b))return!0;return!1};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};
g._setSelectedYear=function(a){this._selectedYear=null;a&&(this._selectedYear=this._dateAdapter.getYear(a))};
ki.Object.defineProperties(wB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=XA(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=ZA(this._dateAdapter,a,this.minDate,this.maxDate);Fla(this._dateAdapter,b,this._activeDate,this.minDate,this.maxDate)||this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=
XA(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}}});wB.\u0275fac=function(a){return new (a||wB)(F(lx),F(WA,8),F(hA,8))};
wB.\u0275cmp=v({type:wB,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&Zf(uB,5);if(a&2){var c;Yf(c=ag())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden",
"true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,b){a&1&&(G(0,"table",0)(1,"thead",1)(2,"tr"),J(3,"th",2),H()(),G(4,"tbody",3),K("selectedValueChange",function(c){return b._yearSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",
function(c){return b._handleCalendarBodyKeydown(c)}),H()());a&2&&(B(4),D("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[uB],encapsulation:2,changeDetection:0});
var xB=function(a,b,c,d){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rerenderSubscription=T.Subscription.EMPTY;this.selectedChange=new Iw;this.monthSelected=new Iw;this.activeDateChange=new Iw;this._activeDate=this._dateAdapter.today()};g=xB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._monthSelected=function(a){a=a.value;var b=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);YA(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,c?-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,a.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}YA(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),
this._focusActiveCellAfterViewChecked());a.preventDefault()};g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today());this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var b=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(c){return c.map(function(d){return a._createCellForMonth(d,b[d])})});this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};
g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};g._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};
g._getDateFromMonth=function(a){var b=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);b=this._dateAdapter.getNumDaysInMonth(b);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
g._createCellForMonth=function(a,b){var c=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1),d=this._dateAdapter.format(c,this._dateFormats.display.monthYearA11yLabel);c=this.dateClass?this.dateClass(c,"year"):void 0;return new fqb(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
g._shouldEnableMonth=function(a){var b=this._dateAdapter.getYear(this.activeDate);if(void 0===a||null===a||this._isYearAndMonthAfterMaxDate(b,a)||this._isYearAndMonthBeforeMinDate(b,a))return!1;if(!this.dateFilter)return!0;for(b=this._dateAdapter.createDate(b,a,1);this._dateAdapter.getMonth(b)==a;b=this._dateAdapter.addCalendarDays(b,1))if(this.dateFilter(b))return!0;return!1};
g._isYearAndMonthAfterMaxDate=function(a,b){if(this.maxDate){var c=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return a>c||a===c&&b>d}return!1};g._isYearAndMonthBeforeMinDate=function(a,b){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return a<c||a===c&&b<d}return!1};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};g._setSelectedMonth=function(a){this._selectedMonth=this._getMonthInCurrentYear(a)};
ki.Object.defineProperties(xB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=XA(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=ZA(this._dateAdapter,a,this.minDate,this.maxDate);this._dateAdapter.getYear(b)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=
XA(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}}});xB.\u0275fac=function(a){return new (a||xB)(F(lx),F($A,8),F(WA,8),F(hA,8))};
xB.\u0275cmp=v({type:xB,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&Zf(uB,5);if(a&2){var c;Yf(c=ag())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",
1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,b){a&1&&(G(0,"table",0)(1,"thead",1)(2,"tr"),J(3,"th",2),H()(),G(4,"tbody",3),K("selectedValueChange",function(c){return b._monthSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",
function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),H()());a&2&&(B(4),D("label",b._yearLabel)("rows",b._months)("todayValue",b._todayMonth)("startValue",b._selectedMonth)("endValue",b._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._dateAdapter.getMonth(b.activeDate)))},dependencies:[uB],encapsulation:2,changeDetection:0});
var hqb=0,yB=function(a,b,c,d,e){this._intl=a;this.calendar=b;this._dateAdapter=c;this._dateFormats=d;this._buttonDescriptionId="mat-calendar-button-"+hqb++;this.calendar.stateChanges.subscribe(function(){return e.markForCheck()})};
yB.prototype._isSameView=function(a,b){return"month"==this.calendar.currentView?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b)&&this._dateAdapter.getMonth(a)==this._dateAdapter.getMonth(b):"year"==this.calendar.currentView?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b):Fla(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
ki.Object.defineProperties(yB.prototype,{periodButtonText:{configurable:!0,enumerable:!0,get:function(){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);var a=this._dateAdapter.getYear(this.calendar.activeDate)-qi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),
b=a+24-1;a=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1));b=this._dateAdapter.getYearName(this._dateAdapter.createDate(b,0,1));return a+" \u2013 "+b}},periodButtonLabel:{configurable:!0,enumerable:!0,get:function(){return"month"==this.calendar.currentView?"Choose month and year":"Choose date"}},prevButtonLabel:{configurable:!0,enumerable:!0,get:function(){return{month:"Previous month",year:"Previous year","multi-year":"Previous 24 years"}[this.calendar.currentView]}},nextButtonLabel:{configurable:!0,
enumerable:!0,get:function(){return{month:"Next month",year:"Next year","multi-year":"Next 24 years"}[this.calendar.currentView]}}});yB.\u0275fac=function(a){return new (a||yB)(F(tB),F(ac(function(){return zB})),F(WA,8),F($A,8),F(lx))};
yB.\u0275cmp=v({type:yB,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","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(a,b){a&1&&(Cf(),G(0,"div",0)(1,"div",1)(2,"button",2),K("click",function(){b.calendar.currentView="month"==b.calendar.currentView?"multi-year":"month"}),G(3,"span"),P(4),H(),Lc(),G(5,"svg",3),J(6,"polygon",4),H()(),Mc(),J(7,"div",5),Df(8),G(9,"button",6),K("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?b._dateAdapter.addCalendarMonths(b.calendar.activeDate,-1):b._dateAdapter.addCalendarYears(b.calendar.activeDate,
"year"==b.calendar.currentView?-1:-24)}),H(),G(10,"button",7),K("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?b._dateAdapter.addCalendarMonths(b.calendar.activeDate,1):b._dateAdapter.addCalendarYears(b.calendar.activeDate,"year"==b.calendar.currentView?1:24)}),H()()());a&2&&(B(2),nf("aria-label",b.periodButtonLabel)("aria-describedby",b._buttonDescriptionId),B(1),nf("id",b._buttonDescriptionId),B(1),Jf(b.periodButtonText),B(1),sf("mat-calendar-invert","month"!==b.calendar.currentView),
B(4),D("disabled",!(b.calendar.minDate?!b.calendar.minDate||!b._isSameView(b.calendar.activeDate,b.calendar.minDate):1)),nf("aria-label",b.prevButtonLabel),B(1),D("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),nf("aria-label",b.nextButtonLabel))},dependencies:[pB],encapsulation:2,changeDetection:0});
var zB=function(a,b,c,d){var e=this;this._dateAdapter=b;this._dateFormats=c;this._changeDetectorRef=d;this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new Iw;this.yearSelected=new Iw;this.monthSelected=new Iw;this.viewChanged=new Iw(!0);this._userSelection=new Iw;this.stateChanges=new T.Subject;this._intlChanges=a.changes.subscribe(function(){d.markForCheck();e.stateChanges.next()})};g=zB.prototype;
g.ngAfterContentInit=function(){this._calendarHeaderPortal=new LA(this.headerComponent||yB);this.activeDate=this.startAt||this._dateAdapter.today();this._currentView=this.startView};g.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};g.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
g.ngOnChanges=function(a){var b=a.minDate&&!this._dateAdapter.sameDate(a.minDate.previousValue,a.minDate.currentValue)?a.minDate:void 0,c=a.maxDate&&!this._dateAdapter.sameDate(a.maxDate.previousValue,a.maxDate.currentValue)?a.maxDate:void 0;(a=b||c||a.dateFilter)&&!a.firstChange&&(a=this._getCurrentViewComponent())&&(this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
g._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};g._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};g._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};g._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};g._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
ki.Object.defineProperties(zB.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=XA(this._dateAdapter,this._dateAdapter.deserialize(a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=ZA(this._dateAdapter,a,this.minDate,this.maxDate);this.stateChanges.next();this._changeDetectorRef.markForCheck()}},currentView:{configurable:!0,enumerable:!0,get:function(){return this._currentView},set:function(a){var b=
this._currentView!==a?a:null;this._currentView=a;this._moveFocusOnNextTick=!0;this._changeDetectorRef.markForCheck();b&&this.viewChanged.emit(b)}}});zB.\u0275fac=function(a){return new (a||zB)(F(tB),F(WA,8),F($A,8),F(lx))};
zB.\u0275cmp=v({type:zB,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(Zf(vB,5),Zf(xB,5),Zf(wB,5));if(a&2){var c;Yf(c=ag())&&(b.monthView=c.first);Yf(c=ag())&&(b.yearView=c.first);Yf(c=ag())&&(b.multiYearView=c.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:[Lf([eqb]),Ac],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(a,b){a&1&&(O(0,Gla,0,0,"ng-template",0),G(1,"div",1),O(2,Hla,1,8,"mat-month-view",2),O(3,Ila,1,6,"mat-year-view",3),O(4,Jla,1,6,"mat-multi-year-view",4),H());a&2&&(D("cdkPortalOutlet",b._calendarHeaderPortal),B(1),D("ngSwitch",b.currentView),B(1),D("ngSwitchCase","month"),B(1),D("ngSwitchCase","year"),B(1),D("ngSwitchCase",
"multi-year"))},dependencies:[yx,zx,Kz,PA,vB,xB,wB],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});
var iqb=0,AB=function(a,b,c){var d=this;c=void 0===c?"mat-dialog-"+iqb++:c;this._overlayRef=a;this._containerInstance=b;this.id=c;this.disableClose=this._containerInstance._config.disableClose;this._afterOpened=new T.Subject;this._afterClosed=new T.Subject;this._beforeClosed=new T.Subject;this._state=0;b._id=c;b._animationStateChanged.pipe(De(function(e){return"opened"===e.state}),Me()).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});b._animationStateChanged.pipe(De(function(e){return"closed"===
e.state}),Me()).subscribe(function(){clearTimeout(d._closeFallbackTimeout);d._finishDialogClose()});a._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._afterClosed.next(d._result);d._afterClosed.complete();d.componentInstance=null;d._overlayRef.dispose()});a.keydownEvents().pipe(De(function(e){return 27===e.keyCode&&!d.disableClose&&!gi(e)})).subscribe(function(e){e.preventDefault();Kla(d,"keyboard")});a.backdropClick().subscribe(function(){d.disableClose?
d._containerInstance._recaptureFocus():Kla(d,"mouse")})};g=AB.prototype;g.close=function(a){var b=this;this._result=a;this._containerInstance._animationStateChanged.pipe(De(function(c){return"closing"===c.state}),Me()).subscribe(function(c){b._beforeClosed.next(a);b._beforeClosed.complete();zpb(b._overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},c.totalTime+100)});this._state=1;this._containerInstance._startExitAnimation()};g.afterOpened=function(){return this._afterOpened};
g.backdropClick=function(){return this._overlayRef.backdropClick()};g.keydownEvents=function(){return this._overlayRef.keydownEvents()};g.updatePosition=function(a){var b=this._getPositionStrategy();a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):(b.left(""),b._xPosition="center");a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):(b.top(""),b._alignItems="center");this._overlayRef.updatePosition()};
g.updateSize=function(a,b){this._overlayRef.updateSize({width:void 0===a?"":a,height:void 0===b?"":b});this._overlayRef.updatePosition();return this};g.addPanelClass=function(a){this._overlayRef.addPanelClass(a)};g.removePanelClass=function(a){this._overlayRef.removePanelClass(a)};g.getState=function(){return this._state};g._finishDialogClose=function(){this._state=2;this._overlayRef.dispose()};g._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy};
var BB={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},jqb=Dh("dialogContainer",[Gh("void, exit",Fh({opacity:0,transform:"scale(0.7)"})),Gh("enter",Fh({transform:"none"})),Hh("* => enter",{type:3,steps:[Eh("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fh({transform:"none",opacity:1})),Jh("@*",Ih())],options:null},BB),Hh("* => void, * => exit",{type:3,steps:[Eh("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fh({opacity:0})),Jh("@*",Ih())],options:null},
BB)]);
var CB=function(){this.role="dialog";this.panelClass="";this.hasBackdrop=!0;this.backdropClass="";this.disableClose=!1;this.height=this.width="";this.maxWidth="80vw";this.ariaLabel=this.ariaLabelledBy=this.ariaDescribedBy=this.data=null;this.autoFocus="first-tabbable";this.closeOnNavigation=this.delayFocusTrap=this.restoreFocus=!0;this.enterAnimationDuration=BB.params.enterAnimationDuration;this.exitAnimationDuration=BB.params.exitAnimationDuration};
var DB=function(a,b,c,d,e,f,h,k){this._isDisposed=!1;this._elementRef=a;this._focusTrapFactory=b;this._changeDetectorRef=c;this._config=e;this._interactivityChecker=f;this._ngZone=h;this._focusMonitor=k;this._animationStateChanged=new Iw;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=null;this._ariaLabelledBy=e.ariaLabelledBy||null;this._document=d};U(DB,NA);g=DB.prototype;
g._initializeWithAttachedContent=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement);this._document&&(this._elementFocusedBeforeDialogWasOpened=Og());this._config.delayFocusTrap||this._trapFocus()};g.attachComponentPortal=function(a){return this._portalOutlet.attachComponentPortal(a)};g.attachTemplatePortal=function(a){return this._portalOutlet.attachTemplatePortal(a)};g._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
g._forceFocus=function(a,b){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var c=function(){a.removeEventListener("blur",c);a.removeEventListener("mousedown",c);a.removeAttribute("tabindex")};a.addEventListener("blur",c);a.addEventListener("mousedown",c)}));a.focus(b)};g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
g._trapFocus=function(){var a=this,b=this._elementRef.nativeElement;switch(this._config.autoFocus){case !1:case "dialog":this._containsFocus()||b.focus();break;case !0:case "first-tabbable":Dy(this._focusTrap).then(function(c){c||a._focusDialogContainer()});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}};
g._restoreFocus=function(){var a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"===typeof a.focus){var b=Og(),c=this._elementRef.nativeElement;if(!b||b===this._document.body||b===c||c.contains(b))this._focusMonitor?(Jz(this._focusMonitor,a,this._closeInteractionType),this._closeInteractionType=null):a.focus()}this._focusTrap&&this._focusTrap.destroy()};g._focusDialogContainer=function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()};
g._containsFocus=function(){var a=this._elementRef.nativeElement,b=Og();return a===b||a.contains(b)};g._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};DB.\u0275fac=function(a){return new (a||DB)(F(nd),F(Ey),F(lx),F(ii,8),F(CB),F(zy),F(ef),F(Iz))};DB.\u0275dir=v({type:DB,viewQuery:function(a,b){a&1&&Zf(PA,7);if(a&2){var c;Yf(c=ag())&&(b._portalOutlet=c.first)}},features:[gf]});
var EB=function(){DB.apply(this,arguments);this._state="enter"};U(EB,DB);EB.\u0275dir=DB.\u0275dir;EB.prototype._onAnimationDone=function(a){var b=a.toState;a=a.totalTime;"enter"===b?this._openAnimationDone(a):"exit"===b&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:a}))};
EB.prototype._onAnimationStart=function(a){var b=a.toState;a=a.totalTime;"enter"===b?this._animationStateChanged.next({state:"opening",totalTime:a}):("exit"===b||"void"===b)&&this._animationStateChanged.next({state:"closing",totalTime:a})};EB.prototype._startExitAnimation=function(){this._state="exit";this._changeDetectorRef.markForCheck()};
EB.prototype._getAnimationState=function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||BB.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||BB.params.exitAnimationDuration}}};EB.\u0275fac=function(){var a;return function(b){return(a||(a=cd(EB)))(b||EB)}}();
EB.\u0275cmp=v({type:EB,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(a,b){a&1&&wha("@dialogContainer.start",function(c){return b._onAnimationStart(c)})("@dialogContainer.done",function(c){return b._onAnimationDone(c)});a&2&&(Af("id",b._id),nf("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledBy)("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||
null),Bf("@dialogContainer",b._getAnimationState()))},features:[gf],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&O(0,Lla,0,0,"ng-template",0)},dependencies:[PA],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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:[jqb]}});
var FB=new jd("MatDialogData"),kqb=new jd("mat-dialog-default-options"),lqb=new jd("mat-dialog-scroll-strategy"),mqb={provide:lqb,deps:[RA],useFactory:function(a){return function(){return a.scrollStrategies.block()}}},GB=function(a,b,c,d,e,f,h,k,q){var w=this;this._overlay=a;this._injector=b;this._defaultOptions=c;this._parentDialog=d;this._overlayContainer=e;this._dialogRefConstructor=h;this._dialogContainerType=k;this._dialogDataToken=q;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=
new T.Subject;this._afterOpenedAtThisLevel=new T.Subject;this._ariaHiddenElements=new Map;(0,T.defer)(function(){return w.openDialogs.length?w._getAfterAllClosed():w._getAfterAllClosed().pipe(We(void 0))});this._scrollStrategy=f};GB.prototype._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
GB.prototype.open=function(a,b){var c=this;b=Mla(b,this._defaultOptions||new CB);b.id&&nqb(this,b.id);var d=this._createOverlay(b),e=this._attachDialogContainer(d,b),f=this._attachDialogContent(a,e,d,b);this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology();this.openDialogs.push(f);f._afterClosed.subscribe(function(){return c._removeOpenDialog(f)});this.afterOpened.next(f);e._initializeWithAttachedContent();return f};
var nqb=function(a,b){a.openDialogs.find(function(c){return c.id===b})};g=GB.prototype;g.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};g._createOverlay=function(a){a=this._getOverlayConfig(a);return this._overlay.create(a)};
g._getOverlayConfig=function(a){var b=new AA({positionStrategy:this._overlay.position().global(),scrollStrategy:a.scrollStrategy||this._scrollStrategy(),panelClass:a.panelClass,hasBackdrop:a.hasBackdrop,direction:a.direction,minWidth:a.minWidth,minHeight:a.minHeight,maxWidth:a.maxWidth,maxHeight:a.maxHeight,disposeOnNavigation:a.closeOnNavigation});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
g._attachDialogContainer=function(a,b){var c,d,e=null!=(d=b.injector)?d:null==(c=b.viewContainerRef)?void 0:c.injector;c=cf({parent:e||this._injector,providers:[{provide:CB,useValue:b}]});return a.attach(new LA(this._dialogContainerType,b.viewContainerRef,c,b.componentFactoryResolver)).instance};
g._attachDialogContent=function(a,b,c,d){c=new this._dialogRefConstructor(c,b,d.id);var e=this._createInjector(d,c,b);a instanceof Vf?b.attachTemplatePortal(new MA(a,null,{$implicit:d.data,dialogRef:c},e)):(a=b.attachComponentPortal(new LA(a,d.viewContainerRef,e,d.componentFactoryResolver)),c.componentInstance=a.instance);c.updateSize(d.width,d.height).updatePosition(d.position);return c};
g._createInjector=function(a,b,c){var d=a&&a.viewContainerRef&&a.viewContainerRef.injector;b=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:b}];!a.direction||d&&d.get(hA,null,8)||b.push({provide:hA,useValue:{value:a.direction,change:(0,T.of)()}});return cf({parent:d||this._injector,providers:b})};
g._removeOpenDialog=function(a){a=this.openDialogs.indexOf(a);-1<a&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(b,c){b?c.setAttribute("aria-hidden",b):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))};
g._hideNonDialogContentFromAssistiveTechnology=function(){var a=nA(this._overlayContainer);if(a.parentElement)for(var b=a.parentElement.children,c=b.length-1;-1<c;c--){var d=b[c];d===a||"SCRIPT"===d.nodeName||"STYLE"===d.nodeName||d.hasAttribute("aria-live")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};g._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
ki.Object.defineProperties(GB.prototype,{openDialogs:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},afterOpened:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}});GB.\u0275fac=function(){wf()};GB.\u0275dir=v({type:GB});var HB=function(a,b,c,d,e,f,h,k){GB.call(this,a,b,d,f,h,e,AB,EB,FB,k)};U(HB,GB);HB.\u0275dir=GB.\u0275dir;
HB.\u0275fac=function(a){return new (a||HB)(t(RA),t(Hv),t(Tx,8),t(kqb,8),t(lqb),t(HB,12),t(mA),t(Wv,8))};HB.\u0275prov=ec({token:HB,factory:HB.\u0275fac});
var oqb=0,IB=function(a,b,c){this.dialogRef=a;this._elementRef=b;this._dialog=c;this.type="button"};IB.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Nla(this._elementRef,this._dialog.openDialogs))};IB.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};IB.prototype._onButtonClick=function(a){Kla(this.dialogRef,0===a.screenX&&0===a.screenY?"keyboard":"mouse",this.dialogResult)};
IB.\u0275fac=function(a){return new (a||IB)(F(AB,8),F(nd),F(HB))};IB.\u0275dir=v({type:IB,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&K("click",function(c){return b._onButtonClick(c)});a&2&&nf("aria-label",b.ariaLabel||null)("type",b.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ac]});
var JB=function(a,b,c){this._dialogRef=a;this._elementRef=b;this._dialog=c;this.id="mat-dialog-title-"+oqb++};JB.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=Nla(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){var b=a._dialogRef._containerInstance;b&&!b._ariaLabelledBy&&(b._ariaLabelledBy=a.id)})};JB.\u0275fac=function(a){return new (a||JB)(F(AB,8),F(nd),F(HB))};
JB.\u0275dir=v({type:JB,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(a,b){a&2&&Af("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var KB=function(){};KB.\u0275fac=function(a){return new (a||KB)};KB.\u0275dir=v({type:KB,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var LB=function(){this.align="start"};
LB.\u0275fac=function(a){return new (a||LB)};LB.\u0275dir=v({type:LB,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(a,b){a&2&&sf("mat-dialog-actions-align-center","center"===b.align)("mat-dialog-actions-align-end","end"===b.align)},inputs:{align:"align"}});
var MB=function(){};MB.\u0275fac=function(a){return new (a||MB)};MB.\u0275mod=rc({type:MB});MB.\u0275inj=fc({providers:[HB,mqb],imports:[[UA,QA,VA],VA]});
var pqb=Kg({passive:!0}),NB=function(a,b){this._platform=a;this._ngZone=b;this._monitoredElements=new Map};
NB.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return T.EMPTY;var c=Tg(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new T.Subject,e=function(f){"cdk-text-field-autofill-start"!==f.animationName||c.classList.contains("cdk-text-field-autofilled")?"cdk-text-field-autofill-end"===f.animationName&&c.classList.contains("cdk-text-field-autofilled")&&(c.classList.remove("cdk-text-field-autofilled"),b._ngZone.run(function(){return d.next({target:f.target,isAutofilled:!1})})):
(c.classList.add("cdk-text-field-autofilled"),b._ngZone.run(function(){return d.next({target:f.target,isAutofilled:!0})}))};this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",e,pqb);c.classList.add("cdk-text-field-autofill-monitored")});this._monitoredElements.set(c,{subject:d,unlisten:function(){c.removeEventListener("animationstart",e,pqb)}});return d};
NB.prototype.stopMonitoring=function(a){a=Tg(a);var b=this._monitoredElements.get(a);b&&(b.unlisten(),b.subject.complete(),a.classList.remove("cdk-text-field-autofill-monitored"),a.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(a))};NB.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};NB.\u0275fac=function(a){return new (a||NB)(t(yy),t(ef))};NB.\u0275prov=ec({token:NB,factory:NB.\u0275fac,providedIn:"root"});
var OB=function(a,b,c,d){var e=this;this._elementRef=a;this._platform=b;this._ngZone=c;this._destroyed=new T.Subject;this._enabled=!0;this._previousMinRows=-1;this._isViewInited=!1;this._handleFocusEvent=function(f){e._hasFocus="focus"===f.type};this._document=d;this._textareaElement=this._elementRef.nativeElement};g=OB.prototype;g._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};
g._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,PB(this),this._ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a._getWindow(),"resize").pipe(He(16),Ye(a._destroyed)).subscribe(function(){return PB(a,!0)});a._textareaElement.addEventListener("focus",a._handleFocusEvent);a._textareaElement.addEventListener("blur",a._handleFocusEvent)}),this._isViewInited=!0,PB(this,!0))};
g.ngOnDestroy=function(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent);this._textareaElement.removeEventListener("blur",this._handleFocusEvent);this._destroyed.next();this._destroyed.complete()};
g._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var a=this._textareaElement.cloneNode(!1);a.rows=1;a.style.position="absolute";a.style.visibility="hidden";a.style.border="none";a.style.padding="0";a.style.height="";a.style.minHeight="";a.style.maxHeight="";a.style.overflow="hidden";this._textareaElement.parentNode.appendChild(a);this._cachedLineHeight=a.clientHeight;a.remove();this._setMinHeight();this._setMaxHeight()}};
g._measureScrollHeight=function(){var a=this._textareaElement,b=a.style.marginBottom||"",c=this._platform.FIREFOX,d=c&&this._hasFocus;c=c?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(a.style.marginBottom=a.clientHeight+"px");a.classList.add(c);var e=a.scrollHeight-4;a.classList.remove(c);d&&(a.style.marginBottom=b);return e};
g._cacheTextareaPlaceholderHeight=function(){if(this._isViewInited&&void 0==this._cachedPlaceholderHeight)if(this.placeholder){var a=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder;this._cachedPlaceholderHeight=this._measureScrollHeight();this._textareaElement.value=a}else this._cachedPlaceholderHeight=0};g.ngDoCheck=function(){this._platform.isBrowser&&PB(this)};
var PB=function(a,b){b=void 0===b?!1:b;if(a._enabled&&(a._cacheTextareaLineHeight(),a._cacheTextareaPlaceholderHeight(),a._cachedLineHeight)){var c=a._elementRef.nativeElement,d=c.value;if(b||a._minRows!==a._previousMinRows||d!==a._previousValue)b=a._measureScrollHeight(),c.style.height=Math.max(b,a._cachedPlaceholderHeight||0)+"px",a._ngZone.runOutsideAngular(function(){"undefined"!==typeof requestAnimationFrame?requestAnimationFrame(function(){return a._scrollToCaretPosition(c)}):setTimeout(function(){return a._scrollToCaretPosition(c)})}),
a._previousValue=d,a._previousMinRows=a._minRows}};g=OB.prototype;g.reset=function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)};g._noopInputHandler=function(){};g._getDocument=function(){return this._document||document};g._getWindow=function(){return this._getDocument().defaultView||window};g._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&a.setSelectionRange(b,c)};
ki.Object.defineProperties(OB.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=Ug(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=Ug(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){a=Rg(a);this._enabled!==a&&((this._enabled=a)?PB(this,!0):this.reset())}},placeholder:{configurable:!0,
enumerable:!0,get:function(){return this._textareaElement.placeholder},set:function(a){this._cachedPlaceholderHeight=void 0;a?this._textareaElement.setAttribute("placeholder",a):this._textareaElement.removeAttribute("placeholder");this._cacheTextareaPlaceholderHeight()}}});OB.\u0275fac=function(a){return new (a||OB)(F(nd),F(yy),F(ef),F(ii,8))};
OB.\u0275dir=v({type:OB,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&K("input",function(){})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});
var QB=function(){};QB.\u0275fac=function(a){return new (a||QB)};QB.\u0275mod=rc({type:QB});QB.\u0275inj=fc({});
var qqb=0,rqb=new jd("MatError"),RB=function(a,b){this.id="mat-error-"+qqb++;a||b.nativeElement.setAttribute("aria-live","polite")};RB.\u0275fac=function(a){return new (a||RB)(Xc("aria-live"),F(nd))};RB.\u0275dir=v({type:RB,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(a,b){a&2&&nf("id",b.id)},inputs:{id:"id"},features:[Lf([{provide:rqb,useExisting:RB}])]});
var sqb=Dh("transitionMessages",[Gh("enter",Fh({opacity:1,transform:"translateY(0%)"})),Hh("void => enter",[Fh({opacity:0,transform:"translateY(-5px)"}),Eh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var SB=function(){};SB.\u0275fac=function(a){return new (a||SB)};SB.\u0275dir=v({type:SB});
var tqb=0,uqb=new jd("MatHint"),TB=function(){this.align="start";this.id="mat-hint-"+tqb++};TB.\u0275fac=function(a){return new (a||TB)};TB.\u0275dir=v({type:TB,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(a,b){a&2&&(nf("id",b.id)("align",null),sf("mat-form-field-hint-end","end"===b.align))},inputs:{align:"align",id:"id"},features:[Lf([{provide:uqb,useExisting:TB}])]});
var UB=function(){};UB.\u0275fac=function(a){return new (a||UB)};UB.\u0275dir=v({type:UB,selectors:[["mat-label"]]});
var VB=function(){};VB.\u0275fac=function(a){return new (a||VB)};VB.\u0275dir=v({type:VB,selectors:[["mat-placeholder"]]});
var vqb=new jd("MatPrefix");
var wqb=new jd("MatSuffix");
var xqb=["connectionContainer"],yqb=["inputContainer"],zqb=["label"],Aqb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Bqb=0,Cqb=li(function(a){this._elementRef=a},"primary"),Dqb=new jd("MAT_FORM_FIELD_DEFAULT_OPTIONS"),WB=new jd("MatFormField"),XB=function(a,b,c,d,e,f,h){a=Cqb.call(this,a)||this;a._changeDetectorRef=b;a._dir=c;a._defaults=d;a._platform=e;a._ngZone=f;a._outlineGapCalculationNeededImmediately=
!1;a._outlineGapCalculationNeededOnStable=!1;a._destroyed=new T.Subject;a._hideRequiredMarker=!1;a._showAlwaysAnimate=!1;a._subscriptAnimationState="";a._hintLabel="";a._hintLabelId="mat-hint-"+Bqb++;a._labelId="mat-form-field-label-"+Bqb++;a.floatLabel=a._getDefaultFloatLabelState();a._animationsEnabled="NoopAnimations"!==h;a.appearance=(null==d?void 0:d.appearance)||"legacy";d&&(a._hideRequiredMarker=!!d.hideRequiredMarker,d.color&&(a.color=a.defaultColor=d.color));return a};U(XB,Cqb);g=XB.prototype;
g._shouldAlwaysFloat=function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate};g._canLabelFloat=function(){return"never"!==this.floatLabel};g.getLabelId=function(){return this._hasFloatingLabel()?this._labelId:null};
g.ngAfterContentInit=function(){var a=this,b=this._control;b.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+b.controlType);b.stateChanges.pipe(We(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});b.ngControl&&b.ngControl.valueChanges&&b.ngControl.valueChanges.pipe(Ye(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(Ye(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&
ri(a)})});(0,T.merge)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0;a._changeDetectorRef.markForCheck()});this._hintChildren.changes.pipe(We(null)).subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.pipe(We(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._dir&&this._dir.change.pipe(Ye(this._destroyed)).subscribe(function(){"function"===
typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return ri(a)})}):ri(a)})};g.ngAfterContentChecked=function(){this._outlineGapCalculationNeededImmediately&&ri(this)};g.ngAfterViewInit=function(){this._subscriptAnimationState="enter";this._changeDetectorRef.detectChanges()};g.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};g._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};
g._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)};g._hasLabel=function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)};g._shouldLabelFloat=function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())};g._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()};
g._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()};g._getDisplayedMessages=function(){return this._errorChildren&&0<this._errorChildren.length&&this._control.errorState?"error":"hint"};
g._animateAndLockLabel=function(){var a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,T.fromEvent)(this._label.nativeElement,"transitionend").pipe(Me()).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())};g._validatePlaceholders=function(){};g._processHints=function(){this._syncDescribedByIds()};g._validateHints=function(){};
g._getDefaultFloatLabelState=function(){return this._defaults&&this._defaults.floatLabel||"auto"};
g._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&"string"===typeof this._control.userAriaDescribedBy&&a.push.apply(a,u(this._control.userAriaDescribedBy.split(" ")));if("hint"===this._getDisplayedMessages()){var b=this._hintChildren?this._hintChildren.find(function(d){return"start"===d.align}):null,c=this._hintChildren?this._hintChildren.find(function(d){return"end"===d.align}):null;b?a.push(b.id):this._hintLabel&&a.push(this._hintLabelId);c&&a.push(c.id)}else this._errorChildren&&
a.push.apply(a,u(this._errorChildren.map(function(d){return d.id})));this._control.setDescribedByIds(a)}};g._validateControlChild=function(){};
var ri=function(a){var b=a._label?a._label.nativeElement:null,c=a._connectionContainerRef.nativeElement;if("outline"===a.appearance&&a._platform.isBrowser)if(b&&b.children.length&&b.textContent.trim())if(a._isAttachedToDOM()){var d=0,e=0,f=c.querySelectorAll(".mat-form-field-outline-start"),h=c.querySelectorAll(".mat-form-field-outline-gap");if(a._label&&a._label.nativeElement.children.length){d=c.getBoundingClientRect();if(0===d.width&&0===d.height){a._outlineGapCalculationNeededOnStable=!0;a._outlineGapCalculationNeededImmediately=
!1;return}d=a._getStartEnd(d);e=b.children;c=a._getStartEnd(e[0].getBoundingClientRect());for(var k=b=0;k<e.length;k++)b+=e[k].offsetWidth;d=Math.abs(c-d)-5;e=0<b?.75*b+10:0}for(b=0;b<f.length;b++)f[b].style.width=d+"px";for(f=0;f<h.length;f++)h[f].style.width=e+"px";a._outlineGapCalculationNeededOnStable=a._outlineGapCalculationNeededImmediately=!1}else a._outlineGapCalculationNeededImmediately=!0;else for(a=c.querySelectorAll(".mat-form-field-outline-start, .mat-form-field-outline-gap"),h=0;h<a.length;h++)a[h].style.width=
"0"};XB.prototype._getStartEnd=function(a){return this._dir&&"rtl"===this._dir.value?a.right:a.left};XB.prototype._isAttachedToDOM=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
ki.Object.defineProperties(XB.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b=this._appearance,c;this._appearance=a||(null==(c=this._defaults)?void 0:c.appearance)||"legacy";"outline"===this._appearance&&b!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Rg(a)}},hintLabel:{configurable:!0,
enumerable:!0,get:function(){return this._hintLabel},set:function(a){this._hintLabel=a;this._processHints()}},floatLabel:{configurable:!0,enumerable:!0,get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},_control:{configurable:!0,enumerable:!0,get:function(){return this._explicitFormFieldControl||this._controlNonStatic||
this._controlStatic},set:function(a){this._explicitFormFieldControl=a}}});XB.\u0275fac=function(a){return new (a||XB)(F(nd),F(lx),F(hA,8),F(Dqb,8),F(yy),F(ef),F(Wv,8))};
XB.\u0275cmp=v({type:XB,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&($f(c,SB,5),$f(c,SB,7),$f(c,UB,5),$f(c,UB,7),$f(c,VB,5),$f(c,rqb,5),$f(c,uqb,5),$f(c,vqb,5),$f(c,wqb,5));if(a&2){var d;Yf(d=ag())&&(b._controlNonStatic=d.first);Yf(d=ag())&&(b._controlStatic=d.first);Yf(d=ag())&&(b._labelChildNonStatic=d.first);Yf(d=ag())&&(b._labelChildStatic=d.first);Yf(d=ag())&&(b._placeholderChild=d.first);Yf(d=ag())&&(b._errorChildren=d);Yf(d=ag())&&(b._hintChildren=d);Yf(d=ag())&&(b._prefixChildren=
d);Yf(d=ag())&&(b._suffixChildren=d)}},viewQuery:function(a,b){a&1&&(Zf(xqb,7),Zf(yqb,5),Zf(zqb,5));if(a&2){var c;Yf(c=ag())&&(b._connectionContainerRef=c.first);Yf(c=ag())&&(b._inputContainerRef=c.first);Yf(c=ag())&&(b._label=c.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(a,b){a&2&&sf("mat-form-field-appearance-standard","standard"==b.appearance)("mat-form-field-appearance-fill","fill"==b.appearance)("mat-form-field-appearance-outline","outline"==b.appearance)("mat-form-field-appearance-legacy",
"legacy"==b.appearance)("mat-form-field-invalid",b._control.errorState)("mat-form-field-can-float",b._canLabelFloat())("mat-form-field-should-float",b._shouldLabelFloat())("mat-form-field-has-label",b._hasFloatingLabel())("mat-form-field-hide-placeholder",b._hideControlPlaceholder())("mat-form-field-disabled",b._control.disabled)("mat-form-field-autofilled",b._control.autofilled)("mat-focused",b._control.focused)("ng-untouched",b._shouldForward("untouched"))("ng-touched",b._shouldForward("touched"))("ng-pristine",
b._shouldForward("pristine"))("ng-dirty",b._shouldForward("dirty"))("ng-valid",b._shouldForward("valid"))("ng-invalid",b._shouldForward("invalid"))("ng-pending",b._shouldForward("pending"))("_mat-animation-noopable",!b._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[Lf([{provide:WB,useExisting:XB}]),gf],ngContentSelectors:"* [matPrefix] mat-placeholder mat-label [matSuffix] mat-error mat-hint:not([align='end']) mat-hint[align='end']".split(" "),
decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",
4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled",
"id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(a,b){a&1&&(Cf(Aqb),G(0,"div",0)(1,"div",
1,2),K("click",function(c){return b._control.onContainerClick&&b._control.onContainerClick(c)}),O(3,Ola,9,0,"ng-container",3),O(4,Pla,2,1,"div",4),G(5,"div",5,6),Df(7),G(8,"span",7),O(9,Tla,5,16,"label",8),H()(),O(10,Ula,2,0,"div",9),H(),O(11,Vla,2,4,"div",10),G(12,"div",11),O(13,Wla,2,1,"div",12),O(14,Yla,5,2,"div",13),H()());a&2&&(B(3),D("ngIf","outline"==b.appearance),B(1),D("ngIf",b._prefixChildren.length),B(5),D("ngIf",b._hasFloatingLabel()),B(1),D("ngIf",b._suffixChildren.length),B(1),D("ngIf",
"outline"!=b.appearance),B(1),D("ngSwitch",b._getDisplayedMessages()),B(1),D("ngSwitchCase","error"),B(1),D("ngSwitchCase","hint"))},dependencies:[sx,yx,zx,Oz],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",
'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n',
'.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',
".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",
".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",
".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],
encapsulation:2,data:{animation:[sqb]},changeDetection:0});
var YB=function(){};YB.\u0275fac=function(a){return new (a||YB)};YB.\u0275mod=rc({type:YB});YB.\u0275inj=fc({imports:[[Mx,VA,Pz],VA]});
var Eqb=new jd("MAT_INPUT_VALUE_ACCESSOR");
var Fqb="button checkbox file hidden image radio range reset submit".split(" "),Gqb=0,Hqb=mla(function(a,b,c,d){this._defaultErrorStateMatcher=a;this._parentForm=b;this._parentFormGroup=c;this.ngControl=d;this.stateChanges=new T.Subject}),ZB=function(a,b,c,d,e,f,h,k,q,w){var y=Hqb.call(this,f,d,e,c)||this;y._elementRef=a;y._platform=b;y._autofillMonitor=k;y._formField=w;y._uid="mat-input-"+Gqb++;y.focused=!1;y.stateChanges=new T.Subject;y.controlType="mat-input";y.autofilled=!1;y._disabled=!1;y._type=
"text";y._readonly=!1;y._neverEmptyInputTypes="date datetime datetime-local month time week".split(" ").filter(function(I){return jja().has(I)});y._iOSKeyupListener=function(I){I=I.target;I.value||0!==I.selectionStart||0!==I.selectionEnd||(I.setSelectionRange(1,1),I.setSelectionRange(0,0))};c=y._elementRef.nativeElement;var E=c.nodeName.toLowerCase();y._inputValueAccessor=h||c;y._previousNativeValue=y.value;y.id=y.id;b.IOS&&q.runOutsideAngular(function(){a.nativeElement.addEventListener("keyup",y._iOSKeyupListener)});
y._isServer=!y._platform.isBrowser;y._isNativeSelect="select"===E;y._isTextarea="textarea"===E;y._isInFormField=!!w;y._isNativeSelect&&(y.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select");return y};U(ZB,Hqb);g=ZB.prototype;g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};g.ngOnChanges=function(){this.stateChanges.next()};
g.ngOnDestroy=function(){this.stateChanges.complete();this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)};g.ngDoCheck=function(){this.ngControl&&this.updateErrorState();this._dirtyCheckNativeValue();this._dirtyCheckPlaceholder()};g.focus=function(a){this._elementRef.nativeElement.focus(a)};g._focusChanged=function(a){a!==this.focused&&(this.focused=a,this.stateChanges.next())};
g._onInput=function(){};g._dirtyCheckPlaceholder=function(){var a=this._formField,b,c=!a||"legacy"!==a.appearance||(null==(b=a._hasLabel)?0:b.call(a))?this.placeholder:null;c!==this._previousPlaceholder&&(a=this._elementRef.nativeElement,(this._previousPlaceholder=c)?a.setAttribute("placeholder",c):a.removeAttribute("placeholder"))};g._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};
g._validateType=function(){Fqb.indexOf(this._type)};g._isNeverEmpty=function(){return-1<this._neverEmptyInputTypes.indexOf(this._type)};g._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};g.onContainerClick=function(){this.focused||this.focus()};
g._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||1<a.size)};
ki.Object.defineProperties(ZB.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(a){this._disabled=Rg(a);this.focused&&(this.focused=!1,this.stateChanges.next())}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=a||this._uid}},required:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return null!=(d=null!=(c=this._required)?c:
null==(a=this.ngControl)?void 0:null==(b=a.control)?void 0:jnb(b))?d:!1},set:function(a){this._required=Rg(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&jja().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},value:{configurable:!0,enumerable:!0,get:function(){return this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._inputValueAccessor.value=a,this.stateChanges.next())}},
readonly:{configurable:!0,enumerable:!0,get:function(){return this._readonly},set:function(a){this._readonly=Rg(a)}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,b=a.options[0];return this.focused||a.multiple||!this.empty||!!(-1<a.selectedIndex&&b&&b.label)}return this.focused||
!this.empty}}});ZB.\u0275fac=function(a){return new (a||ZB)(F(nd),F(yy),F(Zx,10),F(fy,8),F(oy,8),F(dB),F(Eqb,10),F(NB),F(ef),F(WB,8))};
ZB.\u0275dir=v({type:ZB,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(a,b){a&1&&K("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(Af("disabled",b.disabled)("required",b.required),nf("id",b.id)("data-placeholder",
b.placeholder)("name",b.name||null)("readonly",b.readonly&&!b._isNativeSelect||null)("aria-invalid",b.empty&&b.required?null:b.errorState)("aria-required",b.required),sf("mat-input-server",b._isServer)("mat-native-select-inline",b._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:[Lf([{provide:SB,useExisting:ZB}]),gf,Ac]});
var $B=function(){};$B.\u0275fac=function(a){return new (a||$B)};$B.\u0275mod=rc({type:$B});$B.\u0275inj=fc({providers:[dB],imports:[[QB,YB,VA],QB,YB]});
var Iqb={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},aC=Iqb;aC=Iqb;
var bC=function(a){return function(){return a}},cC=function(){},iaa=function(a){return a},cDa=function(){var a=bDa;return function(){return!a.apply(this,arguments)}},dC=function(a,b){var c=0;return function(d){ba.clearTimeout(c);var e=arguments;c=ba.setTimeout(function(){a.apply(void 0,e)},b)}},Jqb=function(a){var b=0,c=!1,d=[],e=function(){b=0;c&&(c=!1,f())},f=function(){b=ba.setTimeout(e,10);var h=d;d=[];a.apply(void 0,h)};return function(h){d=arguments;b?c=!0:f()}};
var Kqb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=ph(ot);return!b.parentElement}),Yo=function(a,b){if(Kqb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=ph(b)},Lqb=function(a,b){b=b instanceof hh?b:Gj(b);a.action=ih(b)},Nqb=function(a,b){var c=Mqb(a.ownerDocument&&a.ownerDocument.defaultView);
c&&a.setAttribute("nonce",c);a.src=Uja(b)},Xna=function(a,b,c,d){a=a instanceof hh?a:Gj(a);b=b||ba;c=c instanceof jh?kh(c):c||"";return void 0!==d?b.open(ih(a),c,d):b.open(ih(a),c)},Oqb=/^[\w+/_-]+[=]{0,2}$/,Mqb=function(a){a=(a||ba).document;return a.querySelector?(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Oqb.test(a)?a:"":""};
var Pqb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},eC=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},Ij=function(a){return a=hib(a)},Qqb=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a},cSa=function(a,b,c){return a.replace(new RegExp(On(b),"g"),c.replace(/\$/g,
"$$$$"))},On=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},fC=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},gC=function(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");-1===c&&(c=a.length);var d="-"===a[0]?"-":"";d&&(a=a.substring(1));return d+fC("0",Math.max(0,b-c))+a},Ui=function(a){return null==a?"":String(a)},hC=function(){return Math.floor(2147483648*Math.random()).toString(36)+
Math.abs(Math.floor(2147483648*Math.random())^Xt()).toString(36)},iC=function(a){var b=Number(a);return 0==b&&Vi(a)?NaN:b},Kk=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},Ki=function(a){isFinite(a)&&(a=String(a));return"string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},Rqb=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
var Sqb=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),Tqb=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,Uqb=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,Vqb=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31},Wqb=function(a){var b=new Date(Xt()),c;if(c=a.getDate()==b.getDate())if(b=b||new Date(Xt()),c=a.getMonth()==b.getMonth())b=b||new Date(Xt()),c=a.getFullYear()==b.getFullYear();
return c},Xqb=function(a,b,c,d,e){a=new Date(a,b,c);d=void 0!==d?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+864E5*((d-e+7)%7-b)},no=function(a,b,c,d,e,f){"string"===typeof a?(this.years="y"==a?b:0,this.months="m"==a?b:0,this.days="d"==a?b:0,this.hours="h"==a?b:0,this.minutes="n"==a?b:0,this.seconds="s"==a?b:0):(this.years=a||0,this.months=b||0,this.days=c||0,this.hours=d||0,this.minutes=e||0,this.seconds=f||0)};
no.prototype.toIsoString=function(a){var b=Math.min(this.years,this.months,this.days,this.hours,this.minutes,this.seconds),c=Math.max(this.years,this.months,this.days,this.hours,this.minutes,this.seconds);if(0>b&&0<c)return null;if(!a&&0==b&&0==c)return"PT0S";c=[];0>b&&c.push("-");c.push("P");(this.years||a)&&c.push(Math.abs(this.years)+"Y");(this.months||a)&&c.push(Math.abs(this.months)+"M");(this.days||a)&&c.push(Math.abs(this.days)+"D");if(this.hours||this.minutes||this.seconds||a)c.push("T"),
(this.hours||a)&&c.push(Math.abs(this.hours)+"H"),(this.minutes||a)&&c.push(Math.abs(this.minutes)+"M"),(this.seconds||a)&&c.push(Math.abs(this.seconds)+"S");return c.join("")};no.prototype.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.hours==this.hours&&a.minutes==this.minutes&&a.seconds==this.seconds};no.prototype.clone=function(){return new no(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
no.prototype.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.hours+=a.hours;this.minutes+=a.minutes;this.seconds+=a.seconds};
var Ji=function(a,b,c){"number"===typeof a?(this.date=Yqb(a,b||0,c||1),jC(this,c||1)):Da(a)?(this.date=Yqb(a.getFullYear(),a.getMonth(),a.getDate()),jC(this,a.getDate())):(this.date=new Date(Xt()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),jC(this,a))},Yqb=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};g=Ji.prototype;g.firstDayOfWeek_=aC.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=aC.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new Ji(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};g.getFullYear=function(){return this.date.getFullYear()};g.getYear=function(){return this.getFullYear()};g.getMonth=function(){return this.date.getMonth()};g.getDate=function(){return this.date.getDate()};g.getTime=function(){return this.date.getTime()};g.getDay=function(){return this.date.getDay()};
g.getUTCFullYear=function(){return this.date.getUTCFullYear()};g.getUTCMonth=function(){return this.date.getUTCMonth()};g.getUTCDate=function(){return this.date.getUTCDate()};g.getUTCDay=function(){return this.date.getDay()};g.getUTCHours=function(){return this.date.getUTCHours()};g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};g.setFullYear=function(a){this.date.setFullYear(a)};g.setYear=function(a){this.setFullYear(a)};g.setMonth=function(a){this.date.setMonth(a)};g.setDate=function(a){this.date.setDate(a)};g.setTime=function(a){this.date.setTime(a)};g.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};g.setUTCMonth=function(a){this.date.setUTCMonth(a)};g.setUTCDate=function(a){this.date.setUTCDate(a)};
g.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+12*a.years,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(Vqb(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=0<=c&&99>=c?-1900:0,c=new Date(c,this.getMonth(),this.getDate(),12),a=new Date(c.getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),jC(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+gC(Math.abs(b),c?6:4),gC(this.getMonth()+1,2),gC(this.getDate(),2)].join(a?"-":"")};g.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};g.toString=function(){return this.toIsoString()};var jC=function(a,b){a.getDate()!=b&&(b=a.getDate()<b?1:-1,a.date.setUTCHours(a.date.getUTCHours()+b))};Ji.prototype.valueOf=function(){return this.date.valueOf()};
var kC=function(a,b,c,d,e,f,h){this.date="number"===typeof a?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a&&a.getTime?a.getTime():Xt())};Zt(kC,Ji);g=kC.prototype;g.getHours=function(){return this.date.getHours()};g.getMinutes=function(){return this.date.getMinutes()};g.getSeconds=function(){return this.date.getSeconds()};g.getMilliseconds=function(){return this.date.getMilliseconds()};g.getUTCDay=function(){return this.date.getUTCDay()};g.getUTCHours=function(){return this.date.getUTCHours()};
g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getUTCSeconds=function(){return this.date.getUTCSeconds()};g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};g.setHours=function(a){this.date.setHours(a)};g.setMinutes=function(a){this.date.setMinutes(a)};g.setSeconds=function(a){this.date.setSeconds(a)};g.setMilliseconds=function(a){this.date.setMilliseconds(a)};g.setUTCHours=function(a){this.date.setUTCHours(a)};g.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
g.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};g.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};g.add=function(a){Ji.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
g.toIsoString=function(a){var b=Ji.prototype.toIsoString.call(this,a);return a?b+"T"+gC(this.getHours(),2)+":"+gC(this.getMinutes(),2)+":"+gC(this.getSeconds(),2):b+"T"+gC(this.getHours(),2)+gC(this.getMinutes(),2)+gC(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new kC(this.date);a.firstDayOfWeek_=this.getFirstDayOfWeek();a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
var Zqb=function(){},mo=function(a){if("number"==typeof a){var b=new Zqb;b.standardOffset_=a;var c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",gC(c,2));c=d.join("")}b.timeZoneId_=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=$qb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new Zqb;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},$qb=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(gC(Math.floor(a/60)%100,2),":",gC(a%60,2));return b.join("")},lC=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c<a.transitions_.length&&b>=a.transitions_[c];)c+=2;return 0==c?0:a.transitions_[c-1]};
Zqb.prototype.getOffset=function(a){a=this.standardOffset_-lC(this,a);return-1440===a?0:a};
var ti=function(a){this.patternParts_=[];this.dateTimeSymbols_=aC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)},arb=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEabBhKHcLQdmsvVwzZ]+/],mC=function(a){return a.getHours?a.getHours():0};
ti.prototype.applyPattern_=function(a){for(brb&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<arb.length;++c){var d=a.match(arb[c]);if(d){var e=d[0];a=a.substring(e.length);0==c&&("''"==e?e="'":(e=e.substring(1,"'"==d[1]?e.length-1:e.length),e=e.replace(/''/g,"'")));this.patternParts_.push({text:e,type:c});break}}if(b===a)throw Error("nb`"+a);}};
ti.prototype.format=function(a,b){if(!a)throw Error("ob");var c=b?6E4*(a.getTimezoneOffset()-b.getOffset(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));c=[];for(var f=0;f<this.patternParts_.length;++f){var h=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(crb(this,h,a,d,e,b)):c.push(h)}return c.join("")};
ti.prototype.applyStandardPattern_=function(a){if(4>a)var b=this.dateTimeSymbols_.DATEFORMATS[a];else if(8>a)b=this.dateTimeSymbols_.TIMEFORMATS[a-4];else if(12>a)b=this.dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.dateTimeSymbols_.TIMEFORMATS[a-8]);else{this.applyStandardPattern_(10);return}this.applyPattern_(b)};
var oC=function(a,b){return nC(b,a.dateTimeSymbols_)},brb=!1,nC=function(a,b){a=String(a);b=b||aC;if(void 0===b.ZERODIGIT)return a;for(var c=[],d=0;d<a.length;d++){var e=a.charCodeAt(d);c.push(48<=e&&57>=e?String.fromCharCode(b.ZERODIGIT+e-48):a.charAt(d))}return c.join("")},pC=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("pb");},crb=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=h?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];
case "y":return c=d.getFullYear(),0>c&&(c=-c),2==h&&(c%=100),oC(a,gC(c,h));case "Y":return c=d.getMonth(),e=d.getDate(),c=Xqb(d.getFullYear(),c,e,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),oC(a,gC(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:a=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:a=a.dateTimeSymbols_.MONTHS[c];break a;case 3:a=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:a=oC(a,gC(c+1,h))}return a;
case "k":return pC(e),oC(a,gC(mC(e)||24,h));case "S":return oC(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(3<h?gC(0,h-3):""));case "E":return c=d.getDay(),4<=h?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return pC(e),h=mC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "b":return pC(e),h=mC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "B":return pC(e),h=mC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "h":return pC(e),oC(a,gC(mC(e)%12||12,
h));case "K":return pC(e),oC(a,gC(mC(e)%12,h));case "H":return pC(e),oC(a,gC(mC(e),h));case "c":a:switch(c=d.getDay(),h){case 5:a=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:a=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:a=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:a=oC(a,gC(c,1))}return a;case "L":a:switch(c=d.getMonth(),h){case 5:a=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:a=a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:a=
a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:a=oC(a,gC(c+1,h))}return a;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return oC(a,gC(d.getDate(),h));case "m":return pC(e),oC(a,gC(e.getMinutes(),h));case "s":return pC(e),oC(a,gC(e.getSeconds(),h));case "v":return a=f||mo(c.getTimezoneOffset()),a.timeZoneId_;case "V":return a=f||mo(c.getTimezoneOffset()),2>=h?a.timeZoneId_:0<lC(a,c)?void 0!==a.tzNamesExt_.DST_GENERIC_LOCATION?
a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:void 0!==a.tzNamesExt_.STD_GENERIC_LOCATION?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=e.getMonth(),d=e.getDate(),c=Xqb(e.getFullYear(),c,d,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),oC(a,gC(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||mo(c.getTimezoneOffset()),4>h?a.tzNames_[0<lC(a,
c)?2:0]:a.tzNames_[0<lC(a,c)?3:1];case "Z":return d=f||mo(c.getTimezoneOffset()),4>h?(a=-d.getOffset(c),h=[0>a?"-":"+"],a=Math.abs(a),h.push(gC(Math.floor(a/60)%100,2),gC(a%60,2)),a=h.join("")):a=oC(a,$qb(d.getOffset(c))),a;default:return""}};
var si=function(a,b,c){this.dialogRef=a;this.dateAdapter=c;this.minDate=this.getDate(b.minDate);this.inputDate=this.getDate(b.initialDate);this.initialTime=b.initialTime;this.hideTimePicker=!!b.hideTimePicker;this.timeFormControl=new gy(b.initialTime,{validators:[Xx,this.dateTimeMustBeInTheFuture.bind(this)]});this.dateAdapter.setLocale(navigator.languages&&navigator.languages[0]||"en-US")};si.prototype.onSaveClick=function(){var a=drb(this.inputDate,this.timeFormControl.value).getTime();this.dialogRef.close(a)};
si.prototype.dateTimeMustBeInTheFuture=function(a){var b=new Date;return drb(this.inputDate,a.value)<=b?(a={},a.dateTimeMustBeInTheFuture=!0,a):null};var drb=function(a,b){var c=r(b.split(":"));b=c.next().value;c=c.next().value;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))};si.prototype.getDate=function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getMilliseconds())};
ki.Object.defineProperties(si.prototype,{hasRequiredError:{configurable:!0,enumerable:!0,get:function(){return this.timeFormControl.hasError("required")}},hasDatetimeNotInTheFutureError:{configurable:!0,enumerable:!0,get:function(){return this.timeFormControl.hasError("dateTimeMustBeInTheFuture")}},hasFormError:{configurable:!0,enumerable:!0,get:function(){return this.hasRequiredError||this.hasDatetimeNotInTheFutureError}},formErrorMessage:{configurable:!0,enumerable:!0,get:function(){return this.hasRequiredError?
"Time is required":this.hasDatetimeNotInTheFutureError?"Time must be in the future":""}}});si.\u0275fac=function(a){return new (a||si)(F(AB),F(FB),F(WA))};
si.\u0275cmp=v({type:si,selectors:[["datetime-picker-dialog"]],decls:12,vars:7,consts:[["cdkTrapFocus","",1,"dialog_container"],["mat-dialog-title","",1,"title"],[1,"calendar",3,"startAt","selected","minDate","selectedChange"],["cdkFocusInitial","","type","time","matInput","","class","time-input gmat-body-2","required","",3,"formControl",4,"ngIf"],["class","time-error gmat-body2",4,"ngIf"],[1,"dialog-buttons"],["mat-button","",1,"cancel-button","gmat-button",3,"click"],["mat-button","",1,"save-button",
"gmat-button",3,"disabled","click"],["cdkFocusInitial","","type","time","matInput","","required","",1,"time-input","gmat-body-2",3,"formControl"],[1,"time-error","gmat-body2"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"h4",1),P(2),H(),G(3,"mat-dialog-content")(4,"mat-calendar",2),K("selectedChange",function(c){return b.inputDate=c})("selectedChange",function(){if(!b.hideTimePicker){var c=new Date;!Wqb(b.inputDate)&&b.timeFormControl.pristine&&b.timeFormControl.setValue(b.initialTime);if(Wqb(b.inputDate)&&
drb(b.inputDate,b.timeFormControl.value)<=c){23===c.getHours()?c.setMinutes(59):c.setHours(c.getHours()+1);var d=new ti("HH:mm");b.timeFormControl.setValue(d.format(c))}}Eg(b.timeFormControl)}),H(),O(5,Zla,1,1,"input",3),O(6,$la,2,1,"mat-error",4),H(),G(7,"mat-dialog-actions",5)(8,"button",6),K("click",function(){b.dialogRef.close()}),P(9,"Cancel"),H(),G(10,"button",7),K("click",function(){return b.onSaveClick()}),P(11," Save "),H()()());a&2&&(B(2),Jf(b.hideTimePicker?"Pick date":"Pick date & time"),
B(2),D("startAt",b.inputDate)("selected",b.inputDate)("minDate",b.minDate),B(1),D("ngIf",!b.hideTimePicker),B(1),D("ngIf",b.hasFormError),B(4),D("disabled",b.hasFormError))},dependencies:[sx,Fg,by,sy,pB,zB,JB,KB,LB,RB,ZB,ny,Fy],styles:[".dark-mode,   :root{--g3c-shared-default-surface:var(--default-surface,#fff);--g3c-shared-hairline:var(--hairline,#dadce0);--g3c-shared-default-text:var(--default-text,#202124);--g3c-shared-primary-default:var(--primary-default,#1a73e8)}  .dark-mode{--g3c-shared-default-surface:var(--default-surface,#28292c);--g3c-shared-hairline:var(--hairline,#5f6368);--g3c-shared-default-text:var(--default-text,#e8eaed);--g3c-shared-primary-default:var(--primary-default,#8ab4f8)}.calendar[_ngcontent-%COMP%]{height:460px}.time-input[_ngcontent-%COMP%]{background:var(--g3c-shared-default-surface);border:1px solid var(--g3c-shared-hairline);border-radius:4px;box-sizing:border-box;color:var(--g3c-shared-default-text);font-size:14px;height:36px;padding:8px;width:120px}.time-input[_ngcontent-%COMP%]:focus{border:2px solid var(--g3c-shared-primary-default);outline:none}input[type=time][_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.time-error[_ngcontent-%COMP%]{margin-left:6px}.dialog-buttons[_ngcontent-%COMP%]{align-content:center;align-items:center;justify-content:flex-end}.time-input[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;pointer-events:none}"],
changeDetection:0});
var erb={TASK_STATUS_UNSPECIFIED:0,PINNED:1,SNOOZED:2,ARCHIVED:3,MUTED:5,INCOMING:6,0:"TASK_STATUS_UNSPECIFIED",1:"PINNED",2:"SNOOZED",3:"ARCHIVED",5:"MUTED",6:"INCOMING"},frb={G3C_WIDGET_LOADED:"loaded",G3C_WIDGET_MENU_OPENED:"menuOpened",G3C_WIDGET_TASK_ADDED_TO_G3C:"taskAddedToG3c",G3C_WIDGET_TASK_PINNED:"taskPinned",G3C_WIDGET_TASK_SNOOZED:"taskSnoozed",G3C_WIDGET_TASK_ARCHIVED:"taskArchived",G3C_WIDGET_TASK_MUTED:"taskMuted",G3C_WIDGET_TASK_MOVED_TO_INBOX:"taskMovedToInbox",G3C_WIDGET_OPEN_IN_G3C_CLICKED:"openInG3cClicked",
G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_SHOWN:"featureTooltipWithoutTaskActionsShown",G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_ACKED:"featureTooltipWithoutTaskActionsAcked",G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_SHOWN:"featureTooltipWithTaskActionsShown",G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_ACKED:"featureTooltipWithTaskActionsAcked"},grb={G3C_WIDGET_WITHOUT_TASK_ACTIONS:"g3cWidgetWithoutTaskActions",G3C_WIDGET_WITH_TASK_ACTIONS:"g3cWidgetWithTaskActions"};
var hrb={TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_LEFT:2,BOTTOM_RIGHT:3,LEFT_TOP:4,LEFT_BOTTOM:5,RIGHT_TOP:6,RIGHT_BOTTOM:7,0:"TOP_LEFT",1:"TOP_RIGHT",2:"BOTTOM_LEFT",3:"BOTTOM_RIGHT",4:"LEFT_TOP",5:"LEFT_BOTTOM",6:"RIGHT_TOP",7:"RIGHT_BOTTOM"};
var qC=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new Iw;this.action=new Iw;this.pointerPosition=2;this.color="blue";this.actionBtnText="";this.Position=hrb;this.width=272;this.previouslyFocusedElement=null;this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement,{defer:!0});this.dismissIfEscape=function(e){"Escape"===e.key&&d.dismissTooltip()};this.setPreviouslyFocusedElement=function(){var e=d.document.activeElement;null!=e&&
e.closest("onedev-feature-tooltip-body")||(d.previouslyFocusedElement=d.document.activeElement)};this.document.addEventListener("keydown",this.dismissIfEscape);this.document.addEventListener("focusin",this.setPreviouslyFocusedElement)};qC.prototype.ngAfterContentInit=function(){By(this.focusTrap);this.setPreviouslyFocusedElement();Dy(this.focusTrap)};
qC.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
qC.prototype.dismissTooltip=function(){this.dismiss.next();this.previouslyFocusedElement&&"focus"in this.previouslyFocusedElement&&this.previouslyFocusedElement.focus({preventScroll:!0});this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement)};ki.Object.defineProperties(qC.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+64*a}}});
qC.\u0275fac=function(a){return new (a||qC)(F(ii),F(Wz),F(nd))};
qC.\u0275cmp=v({type:qC,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&sf("pointer-top-left",b.pointerPosition===b.Position.TOP_LEFT)("pointer-top-right",b.pointerPosition===b.Position.TOP_RIGHT)("pointer-bottom-left",b.pointerPosition===b.Position.BOTTOM_LEFT)("pointer-bottom-right",b.pointerPosition===b.Position.BOTTOM_RIGHT)("pointer-left-top",b.pointerPosition===b.Position.LEFT_TOP)("pointer-left-bottom",b.pointerPosition===b.Position.LEFT_BOTTOM)("pointer-right-top",
b.pointerPosition===b.Position.RIGHT_TOP)("pointer-right-bottom",b.pointerPosition===b.Position.RIGHT_BOTTOM)},inputs:{pointerPosition:"pointerPosition",widthOffset:"widthOffset",color:"color",actionBtnText:"actionBtnText"},outputs:{dismiss:"dismiss",action:"action"},features:[Lf([{provide:ppb,useValue:{preventFocus:function(){},allowFocus:function(){}}},Wz])],ngContentSelectors:["*"],decls:8,vars:5,consts:[["cdkTrapFocus","","role","dialog","aria-modal","true","aria-label","Feature Tooltip",1,"tooltip-body",
"gmat-body-2",3,"ngClass"],[1,"pointer-container"],[1,"pointer"],[1,"button-row"],["class","action-button","mat-button","",3,"click",4,"ngIf"],["cdkFocusInitial","","mat-flat-button","",1,"close-button",3,"color","click"],["mat-button","",1,"action-button",3,"click"]],template:function(a,b){a&1&&(Cf(),G(0,"div",0)(1,"div",1),J(2,"div",2),H(),Df(3),G(4,"div",3),O(5,dma,2,1,"button",4),G(6,"button",5),K("click",function(){return b.dismissTooltip()}),P(7," Got it "),H()()());a&2&&(rf("width",b.width,
"px"),D("ngClass",b.color),B(5),D("ngIf",b.actionBtnText),B(1),D("color","white"===b.color?"primary":""))},dependencies:[Fy,vx,sx,pB],styles:[".overlay-container{overflow:hidden}.dark-mode,:root{--tooltip-white-bg:var(--surface-default,#fff);--tooltip-blue-bg:var(--blue-700,#1967d2);--tooltip-white-text:var(--grey-800,#3c4043);--tooltip-blue-text:var(--text-inverse,#fff);--tooltip-shadow-color:rgba(0,0,0,0.2)}.dark-mode{--tooltip-white-bg:var(--surface-default,#28292c);--tooltip-blue-bg:var(--blue-300,#8ab4f8);--tooltip-white-text:var(--grey-300,#dadce0);--tooltip-blue-text:var(--text-inverse,#000);--tooltip-shadow-color:rgba(0,0,0,0.5)}.tooltip-body{padding:24px;border-radius:8px;color:var(--tooltip-text);background-color:var(--tooltip-bg);position:relative;--pointer-edge-offset:24px;--pointer-width:18px;--pointer-height:12px;--pointer-container-height:30px;--pointer-container-width:calc(2*var(--pointer-edge-offset) + var(--pointer-width));--pointer-adjustment:-9px;box-shadow:0 1px 3px 0 var(--tooltip-shadow-color),0 4px 8px 3px var(--tooltip-shadow-color)}.tooltip-body.blue{--tooltip-text:var(--tooltip-blue-text);--tooltip-bg:var(--tooltip-blue-bg)}.tooltip-body.white{--tooltip-text:var(--tooltip-white-text);--tooltip-bg:var(--tooltip-white-bg)}.tooltip-body .button-row{margin-top:16px;text-align:right}.tooltip-body .button-row>button{height:36px}.tooltip-body .button-row .close-button{color:var(--tooltip-bg);margin-left:16px;width:88px}.tooltip-body .button-row .action-button{padding-left:8px;padding-right:8px}.tooltip-body .pointer-container{position:absolute;overflow:hidden;pointer-events:none}.tooltip-body .pointer-container .pointer{width:16px;height:16px;position:absolute;background-color:var(--tooltip-bg)}.tooltip-body .tooltip-title{margin:0 4px 0 0}.pointer-bottom-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-left .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-left .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-left .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-left .pointer-container{left:0}.pointer-bottom-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-right .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-right .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-right .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-right .pointer-container{right:0}.pointer-top-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-left .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-left .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-left .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-left .pointer-container{left:0}.pointer-top-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-right .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-right .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-right .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-right .pointer-container{right:0}.pointer-left-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-top .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-top .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-top .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-top .pointer-container{top:0}.pointer-left-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-bottom .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-bottom .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-bottom .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-bottom .pointer-container{bottom:0}.pointer-right-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-top .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-top .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-top .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-top .pointer-container{top:0}.pointer-right-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-bottom .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-bottom .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-bottom .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-bottom .pointer-container{bottom:0}"],
encapsulation:2,changeDetection:0});
var rC=function(){};rC.\u0275fac=function(a){return new (a||rC)};rC.\u0275mod=rc({type:rC});rC.\u0275inj=fc({});
var sC=function(){this.anchorMap=new Map},tC=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new T.ReplaySubject(1),destroyed$:new T.Subject,dismissTooltip$:new T.Subject};a.anchorMap.set(b,c);return c},irb=function(a,b,c){tC(a,b).created$.next(c)},jrb=function(a,b){tC(a,b).destroyed$.next();tC(a,b).created$.next(void 0)};sC.prototype.dismissTooltip=function(a){tC(this,a).dismissTooltip$.next()};sC.\u0275fac=function(a){return new (a||sC)};
sC.\u0275prov=ec({token:sC,factory:sC.\u0275fac,providedIn:rC});
var krb={pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},lrb=[{pointerPosition:2,connectedPosition:{originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-33}},{pointerPosition:3,connectedPosition:{originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:33}},{pointerPosition:0,connectedPosition:{originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-33}},{pointerPosition:1,connectedPosition:{originX:"center",
originY:"bottom",overlayX:"end",overlayY:"top",offsetX:33}}],mrb=[{pointerPosition:2,connectedPosition:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-12}},{pointerPosition:3,connectedPosition:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:12}},krb,{pointerPosition:1,connectedPosition:{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}],nrb=[{pointerPosition:6,connectedPosition:{originX:"start",originY:"center",overlayX:"end",
overlayY:"top",offsetY:-33}},{pointerPosition:7,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",offsetY:33}},{pointerPosition:4,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"top",offsetY:-33}},{pointerPosition:5,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",offsetY:33}}],orb=[{pointerPosition:6,connectedPosition:{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetY:-12}},{pointerPosition:7,
connectedPosition:{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetY:12}},{pointerPosition:4,connectedPosition:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:-12}},{pointerPosition:5,connectedPosition:{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetY:12}}];
var uC=function(){};uC.\u0275fac=function(a){return new (a||uC)};uC.\u0275mod=rc({type:uC});uC.\u0275inj=fc({});
var vC=function(){},qrb=function(a,b){return prb(a,b).map(function(c){return c.connectedPosition})},rrb=function(a,b,c){a=prb(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("qb`"+JSON.stringify(c));return a.pointerPosition},prb=function(a,b){b=srb(b).filter(function(c){return!a.includes(c)});return a.concat(b)},srb=function(a){var b,c=null==a?void 0:null==(b=a.nativeElement)?void 0:b.clientWidth,d;a=null==a?void 0:null==(d=a.nativeElement)?void 0:d.clientHeight;return(void 0!==
c&&60>c?lrb:mrb).concat(void 0!==a&&60>a?nrb:orb)};vC.\u0275fac=function(a){return new (a||vC)};vC.\u0275prov=ec({token:vC,factory:vC.\u0275fac,providedIn:uC});
var trb=["template"],wC=function(a,b,c,d,e){var f=this;this.anchorService=a;this.overlay=b;this.containerRef=c;this.ngZone=d;this.changeDetectorRef=e;this.open$=new T.Subject;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnText="";this.dismiss=new Iw;this.beforeShown=new Iw;this.action=new Iw;this.pointerPosition=0;this.destroyed$=new T.ReplaySubject;this.init$=new T.ReplaySubject;this.savedAnchorStyles={zIndex:"",position:""};this.hideFeatureTooltip=
function(){f.overlayRef&&f.hasBackdrop&&f.anchor&&(f.anchor.nativeElement.style.position=f.savedAnchorStyles.position,f.anchor.nativeElement.style.zIndex=f.savedAnchorStyles.zIndex);var h;null==(h=f.overlayRef)||h.dispose();f.overlayRef=void 0}};wC.prototype.ngOnChanges=function(a){if(a.customPositions){var b;null==(b=this.overlayRef)||Apb(b,urb(this))}};
wC.prototype.ngOnInit=function(){var a=tC(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;vrb(this,a.created$);b.pipe(Ye(this.destroyed$)).subscribe(this.hideFeatureTooltip);wrb(this,c)};wC.prototype.ngAfterViewInit=function(){this.init$.next()};wC.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var vrb=function(a,b){a.open$.pipe(Gga(a.init$),Ze(function(){a.beforeShown.emit()}),Xe(function(){return b.pipe(Ye(a.dismiss))}),Ye(a.destroyed$),De(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.anchor=c;c=c.nativeElement;if(a.hasBackdrop){var d=c.style,e=d.position;a.savedAnchorStyles={zIndex:d.zIndex,position:e};if("static"===e||""===e)c.style.position="relative";c.style.zIndex="1001"}a.overlayRef=a.overlay.create({positionStrategy:urb(a),scrollStrategy:a.getScrollStrategy(),
minWidth:"fit-content",hasBackdrop:a.hasBackdrop});var f;null==(f=a.overlayRef)||f.attach(new MA(a.templateRef,a.containerRef))})},wrb=function(a,b){b.pipe(Ye(a.destroyed$),De(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};wC.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};
wC.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("rb");return DA(JA(this.overlay.position(),this.anchor),qrb(this.customPositions,this.anchor))};var urb=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=rrb(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};wC.prototype.isVisible=function(){return!!this.overlayRef};
wC.\u0275fac=function(a){return new (a||wC)(F(sC),F(RA),F(Wf),F(ef),F(lx),F(vC))};
wC.\u0275cmp=v({type:wC,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&Zf(trb,5);if(a&2){var c;Yf(c=ag())&&(b.templateRef=c.first)}},inputs:{tooltipId:"tooltipId",open$:"open$",customPositions:"customPositions",widthOffset:"widthOffset",color:"color",hasBackdrop:"hasBackdrop",actionBtnText:"actionBtnText"},outputs:{dismiss:"dismiss",beforeShown:"beforeShown",action:"action"},features:[Ac],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",""],[3,"actionBtnText","color",
"pointerPosition","widthOffset","action","dismiss"]],template:function(a){a&1&&(Cf(),O(0,ema,2,4,"ng-template",null,0,gg))},dependencies:[qC],encapsulation:2,changeDetection:0});
var xC=function(){};xC.\u0275fac=function(a){return new (a||xC)};xC.\u0275mod=rc({type:xC});xC.\u0275inj=fc({});
var yC=function(){};yC.\u0275fac=function(a){return new (a||yC)};yC.\u0275mod=rc({type:yC});yC.\u0275inj=fc({imports:[[xC]]});
var zC=function(){};zC.prototype.getValue=function(a){a=window.localStorage.getItem(a);return(0,T.of)(a?JSON.parse(a):null)};zC.prototype.getValues=function(a){return(0,T.of)(a.reduce(function(b,c){var d=b.set;var e=(e=window.localStorage.getItem(c))?JSON.parse(e):null;return d.call(b,c,e)},new Map))};zC.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));return(0,T.of)(void 0)};zC.\u0275fac=function(a){return new (a||zC)};
zC.\u0275prov=ec({token:zC,factory:zC.\u0275fac,providedIn:xC});
var xrb=function(a){this.cellValue_=a};
var AC=function(a,b,c){this.metricName_=a;this.cellType_=b;this.fields_=c||[];this.cellMap_=new Map};g=AC.prototype;g.addCell=function(a){var b=oc.apply(1,arguments),c=this.getCells(b);c?c.push(new xrb(a)):this.setCell(a,b)};g.setCell=function(a){this.cellMap_.set(this.getKey_(oc.apply(1,arguments)),[new xrb(a)])};g.getCells=function(){var a=this.getKey_(oc.apply(0,arguments));return this.cellMap_.has(a)?this.cellMap_.get(a):void 0};
g.getCell=function(){var a=this.getCells(oc.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap_.clear()};g.getKey_=function(){var a=oc.apply(0,arguments);return a?a.join(","):"key"};
var BC=function(a,b){AC.call(this,a,3,b)};U(BC,AC);BC.prototype.incrementCounter=function(){this.incrementCounterBy(1,oc.apply(0,arguments))};BC.prototype.incrementCounterBy=function(a){var b=oc.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue_);this.setCell(c+a,b)};
var CC=function(a,b){AC.call(this,a,2,b)};U(CC,AC);CC.prototype.record=function(a){this.addCell(a,oc.apply(1,arguments))};
var DC=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};DC.prototype.disposed_=!1;DC.prototype.isDisposed=function(){return this.disposed_};DC.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};var EC=function(a,b){b=Wt(ui,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};DC.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
var FC=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};FC.prototype.stopPropagation=function(){this.propagationStopped_=!0};FC.prototype.preventDefault=function(){this.defaultPrevented=!0};
var GC=[],HC=[],yrb=!1,IC=function(a){GC[GC.length]=a;if(yrb)for(var b=0;b<HC.length;b++)a(Vt(HC[b].wrap,HC[b]))};
var zrb=function(a){var b=ba.onerror;ba.onerror=function(c,d,e,f,h){b&&b(c,d,e,f,h);a({message:c,fileName:d,line:e,lineNumber:e,col:f,error:h});return!1}},Brb=function(a){var b=Ko("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||
a.sourceURL||ba.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Arb(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,JC[c])c=JC[c];else{c=String(c);if(!JC[c]){var f=/function\s+([^\(]+)/m.exec(c);JC[c]=f?f[1]:"[Anonymous]"}c=JC[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&
Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}},Arb=function(a,b){b||(b={});b[Crb(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Crb(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Arb(a,b));return c},Crb=function(a){var b="";
"function"===typeof a.toString&&(b=""+a);return b+a.stack},JC={};
var Drb=function(){if(!ba.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{ba.addEventListener("test",function(){},b),ba.removeEventListener("test",function(){},b)}catch(c){}return a}();
var KC=function(a,b){FC.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.event_=null;a&&this.init(a,b)};Zt(KC,FC);var Erb={2:"touch",3:"pen",4:"mouse"};
KC.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?eu&&(mib(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=fu||void 0!==a.offsetX?
a.offsetX:a.layerX,this.offsetY=fu||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?
a.pointerType:Erb[a.pointerType]||"";this.state=a.state;this.event_=a;a.defaultPrevented&&KC.superClass_.preventDefault.call(this)};KC.prototype.stopPropagation=function(){KC.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};KC.prototype.preventDefault=function(){KC.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};
var Frb="closure_listenable_"+(1E6*Math.random()|0),LC=function(a){return!(!a||!a[Frb])};
var Grb=0;
var Hrb=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++Grb;this.removed=this.callOnce=!1},MC=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};
var NC=function(a){this.src=a;this.listeners={};this.typeCount_=0};NC.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var h=Irb(a,b,d,e);-1<h?(b=a[h],c||(b.callOnce=!1)):(b=new Hrb(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
NC.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Irb(e,b,c,d);return-1<b?(MC(e[b]),va(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var Jrb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=wa(a.listeners[c],b);d&&(MC(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d};
NC.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,MC(d[e]);delete this.listeners[c];this.typeCount_--}return b};NC.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Irb(a,b,c,d));return-1<e?a[e]:null};
NC.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return zja(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var Irb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1};
var Krb="closure_lm_"+(1E6*Math.random()|0),Lrb={},Mrb=0,Po=function(a,b,c,d,e){if(d&&d.once)return OC(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Po(a,b[f],c,d,e);return null}c=PC(c);return LC(a)?a.listen(b,c,Da(d)?!!d.capture:!!d,e):Nrb(a,b,c,!1,d,e)},Nrb=function(a,b,c,d,e,f){if(!b)throw Error("sb");var h=Da(e)?!!e.capture:!!e,k=QC(a);k||(a[Krb]=k=new NC(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=Orb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Drb||(e=h),void 0===e&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Prb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("tb");Mrb++;return c},Orb=function(){var a=Qrb,b=function(c){return a.call(b.src,b.listener,c)};return b},OC=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)OC(a,b[f],c,d,e);return null}c=PC(c);return LC(a)?a.listenOnce(b,c,Da(d)?!!d.capture:!!d,e):Nrb(a,b,c,!0,d,e)},RC=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)RC(a,b[f],c,d,e);else d=Da(d)?!!d.capture:!!d,c=PC(c),LC(a)?a.unlisten(b,c,d,e):a&&(a=QC(a))&&(b=a.getListener(b,c,d,e))&&SC(b)},SC=function(a){if("number"===typeof a||!a||a.removed)return!1;var b=a.src;if(LC(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Prb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Mrb--;(c=QC(b))?(Jrb(c,a),0==c.typeCount_&&(c.src=null,b[Krb]=null)):MC(a);
return!0},Prb=function(a){return a in Lrb?Lrb[a]:Lrb[a]="on"+a},Qrb=function(a,b){if(a.removed)a=!0;else{b=new KC(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&SC(a);a=c.call(d,b)}return a},QC=function(a){a=a[Krb];return a instanceof NC?a:null},Rrb="__closure_events_fn_"+(1E9*Math.random()>>>0),PC=function(a){if("function"===typeof a)return a;a[Rrb]||(a[Rrb]=function(b){return a.handleEvent(b)});return a[Rrb]};IC(function(a){Qrb=a(Qrb)});
var Oo=function(){DC.call(this);this.eventTargetListeners_=new NC(this);this.actualEventTarget_=this;this.parentEventTarget_=null};Zt(Oo,DC);Oo.prototype[Frb]=!0;g=Oo.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){Po(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){RC(this,a,b,c,d)};
g.dispatchEvent=function(a){var b,c=this.getParentEventTarget();if(c)for(b=[];c;c=c.getParentEventTarget())b.push(c);c=this.actualEventTarget_;var d=a.type||a;if("string"===typeof a)a=new FC(a,c);else if(a instanceof FC)a.target=a.target||c;else{var e=a;a=new FC(d,c);Ija(a,e)}e=!0;if(b)for(var f=b.length-1;!a.propagationStopped_&&0<=f;f--){var h=a.currentTarget=b[f];e=h.fireListeners(d,!0,a)&&e}a.propagationStopped_||(h=a.currentTarget=c,e=h.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=h.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)h=a.currentTarget=b[f],e=h.fireListeners(d,!1,a)&&e;return e};g.disposeInternal=function(){Oo.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};g.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};g.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
g.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};g.unlistenByKey=function(a){return Jrb(this.eventTargetListeners_,a)};g.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0)};
g.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var h=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=!1!==h.call(k,c)&&d}}return d&&!c.defaultPrevented};g.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
g.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(void 0!==a?String(a):void 0,b)};
var TC=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};TC.prototype.get=function(){if(0<this.occupants_){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a};TC.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};
try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Srb=cu||fu;
var Trb=function(a,b){return a+Math.random()*(b-a)};
var Rq=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};Rq.prototype.clone=function(){return new Rq(this.x,this.y)};Rq.prototype.equals=function(a){return a instanceof Rq&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Sq=function(a,b){return new Rq(a.x-b.x,a.y-b.y)};g=Rq.prototype;g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.translate=function(a,b){a instanceof Rq?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),"number"===typeof b&&(this.y+=b));return this};g.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};
var UC=function(a,b){this.width=a;this.height=b},USa=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=UC.prototype;g.clone=function(){return new UC(this.width,this.height)};g.area=function(){return this.width*this.height};g.aspectRatio=function(){return this.width/this.height};g.isEmpty=function(){return!this.area()};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};
var Xo=function(a){return a?new VC(WC(a)):$hb||($hb=new VC)},XC=function(a,b){return"string"===typeof b?a.getElementById(b):b},YC=function(a,b){return(b||document).getElementsByTagName(String(a))},Vrb=function(a,b){ch(b,function(c,d){c&&"object"==typeof c&&c.implementsGoogStringTypedString&&(c=c.getTypedStringValue());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Urb.hasOwnProperty(d)?a.setAttribute(Urb[d],c):Mi(d,"aria-")||Mi(d,"data-")?a.setAttribute(d,c):a[d]=c})},
Urb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},$C=function(a){a=(a||window).document;a=ZC(a)?a.documentElement:a.body;return new UC(a.clientWidth,a.clientHeight)},bD=function(a){var b=aD(a);a=a.parentWindow||a.defaultView;return cu&&iu("10")&&a.pageYOffset!=b.scrollTop?new Rq(b.scrollLeft,b.scrollTop):new Rq(a.pageXOffset||
b.scrollLeft,a.pageYOffset||b.scrollTop)},aD=function(a){return a.scrollingElement?a.scrollingElement:!fu&&ZC(a)?a.documentElement:a.body||a.documentElement},cD=function(a){return a?a.parentWindow||a.defaultView:window},Xrb=function(a,b,c){return Wrb(document,arguments)},Wrb=function(a,b){var c=b[1],d=Fj(a,String(b[0]));c&&("string"===typeof c?d.className=c:Array.isArray(c)?d.className=c.join(" "):Vrb(d,c));2<b.length&&Yrb(a,d,b,2);return d},Yrb=function(a,b,c,d){function e(k){k&&b.appendChild("string"===
typeof k?a.createTextNode(k):k)}for(;d<c.length;d++){var f=c[d];if(!Ca(f)||Da(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(Da(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}qa(h?Ba(f):f,e)}}},Fj=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},ZC=function(a){return"CSS1Compat"==a.compatMode},Zrb=function(a,b){Yrb(WC(a),a,arguments,
1)},dD=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},eD=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},fD=function(a){return Da(a)&&1==a.nodeType},iTa=function(a){var b;if(Srb&&!(cu&&iu("9")&&!iu("10")&&ba.SVGElement&&a instanceof ba.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return fD(b)?b:null},OHa=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&
16);for(;b&&a!=b;)b=b.parentNode;return b==a},WC=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},gD=function(a){return a.contentDocument||a.contentWindow.document},hD=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else dD(a),a.appendChild(WC(a).createTextNode(String(b)))},$rb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,
OBJECT:1},asb={IMG:" ",BR:"\n"},bsb=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a},csb=function(a,b,c){if(!(a.nodeName in $rb))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in asb)b.push(asb[a.nodeName]);else for(a=a.firstChild;a;)csb(a,b,c),a=a.nextSibling},aSa=function(){var a=cD();return void 0!==a.devicePixelRatio?a.devicePixelRatio:a.matchMedia?iD(3)||iD(2)||iD(1.5)||iD(1)||.75:1},iD=function(a){return cD().matchMedia("(min-resolution: "+
a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+96*a+"dpi)").matches?a:0},VC=function(a){this.document_=a||ba.document||document};g=VC.prototype;g.getDomHelper=Xo;g.getElement=function(a){return XC(this.document_,a)};g.$=VC.prototype.getElement;g.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
g.getElementsByTagNameAndClass=function(a,b,c){c=c||this.document_;a=a&&"*"!=a?String(a).toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))b=c.querySelectorAll(a+(b?"."+b:""));else if(b&&c.getElementsByClassName)if(c=c.getElementsByClassName(b),a){for(var d={},e=0,f=0,h;h=c[f];f++)a==h.nodeName&&(d[e++]=h);d.length=e;b=d}else b=c;else if(c=c.getElementsByTagName(a||"*"),b){d={};for(f=e=0;h=c[f];f++)a=h.className,"function"==typeof a.split&&sa(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;
b=d}else b=c;return b};g.$$=VC.prototype.getElementsByTagNameAndClass;g.setProperties=Vrb;g.getViewportSize=function(){return $C(this.getWindow())};g.createDom=function(a,b,c){return Wrb(this.document_,arguments)};g.createElement=function(a){return Fj(this.document_,a)};g.createTextNode=function(a){return this.document_.createTextNode(String(a))};g.getWindow=function(){var a=this.document_;return a.parentWindow||a.defaultView};g.appendChild=function(a,b){a.appendChild(b)};g.append=Zrb;
g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};g.removeChildren=dD;g.removeNode=eD;
g.getChildren=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};g.isElement=fD;g.getParentElement=iTa;g.contains=OHa;
g.isFocusable=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!a.hasAttribute("tabindex")||bsb(a)):b=a.hasAttribute("tabindex")&&bsb(a);if(b&&cu){var c;"function"!==typeof a.getBoundingClientRect||cu&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
var dsb,esb=function(){var a=ba.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!ea("Presto")&&(a=function(){var e=Fj(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),k="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Vt(function(q){if(("*"==k||q.origin==k)&&q.data==h)this.port1.onmessage()},
this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,k)}}});if("undefined"!==typeof a&&!baa()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cb;c.cb=null;e()}};return function(e){d.next={cb:e};d=d.next;b.port2.postMessage(0)}}return function(e){ba.setTimeout(e,0)}},fsb=iaa;IC(function(a){fsb=a});
var gsb=function(){this.workTail_=this.workHead_=null};gsb.prototype.add=function(a,b){var c=hsb.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};gsb.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};var hsb=new TC(function(){return new isb},function(a){return a.reset()}),isb=function(){this.next=this.scope=this.fn=null};
isb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};isb.prototype.reset=function(){this.next=this.scope=this.fn=null};
var kD=function(a,b){jD||jsb();ksb||(jD(),ksb=!0);lsb.add(a,b)},jD,jsb=function(){if(ba.Promise&&ba.Promise.resolve){var a=ba.Promise.resolve(void 0);jD=function(){a.then(msb)}}else jD=function(){var b=msb;b=fsb(b);"function"!==typeof ba.setImmediate||ba.Window&&ba.Window.prototype&&!ea("Edge")&&ba.Window.prototype.setImmediate==ba.setImmediate?(dsb||(dsb=esb()),dsb(b)):ba.setImmediate(b)}},ksb=!1,lsb=new gsb,msb=function(){for(var a;a=lsb.remove();){try{a.fn.call(a.scope)}catch(b){$a(b)}hsb.put(a)}ksb=
!1};
var nsb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var mD=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=cC)try{var b=this;a.call(void 0,function(c){lD(b,2,c)},function(c){lD(b,3,c)})}catch(c){lD(this,3,c)}},osb=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};osb.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var psb=new TC(function(){return new osb},function(a){a.reset()}),qsb=function(a,b,c){var d=psb.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},nD=function(a){if(a instanceof mD)return a;var b=new mD(cC);lD(b,2,a);return b},rsb=function(a){return new mD(function(b,c){c(a)})},tsb=function(a,b,c){ssb(a,b,c,null)||kD(Wt(b,a))},usb=function(a){return new mD(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],tsb(e,b,c)})},vsb=function(a){return new mD(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(w,y){d--;e[w]=y;0==d&&b(e)},h=function(w){c(w)},k=0,q;k<a.length;k++)q=a[k],tsb(q,Wt(f,k),h);else b(e)})},wsb=function(a){return new mD(function(b,c){var d=a.length,e=[];if(d)for(var f=function(w){b(w)},h=function(w,y){d--;e[w]=y;0==d&&c(e)},k=0,q;k<a.length;k++)q=a[k],tsb(q,f,Wt(h,k));else b(void 0)})},ysb=function(){var a,b,c=new mD(function(d,e){a=d;b=e});return new xsb(c,a,b)};
mD.prototype.then=function(a,b,c){return zsb(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};mD.prototype.$goog_Thenable=!0;var Bsb=function(a,b){b=qsb(b,b);b.always=!0;Asb(a,b);return a};mD.prototype.thenCatch=function(a,b){return zsb(this,null,a,b)};mD.prototype.catch=mD.prototype.thenCatch;mD.prototype.cancel=function(a){if(0==this.state_){var b=new oD(a);kD(function(){Csb(this,b)},this)}};
var Csb=function(a,b){if(0==a.state_)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,f=null,h=c.callbackEntries_;h&&(h.always||(d++,h.child==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.state_&&1==d?Csb(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):Dsb(c),Esb(c,e,3,b)))}a.parent_=null}else lD(a,3,b)},Asb=function(a,b){a.callbackEntries_||2!=a.state_&&3!=a.state_||Fsb(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},zsb=function(a,b,c,d){var e=qsb(null,null,null);e.child=new mD(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(w){h(w)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);void 0===q&&k instanceof oD?h(k):f(q)}catch(w){h(w)}}:h});e.child.parent_=a;Asb(a,e);return e.child};mD.prototype.unblockAndFulfill_=function(a){this.state_=0;lD(this,2,a)};mD.prototype.unblockAndReject_=function(a){this.state_=0;lD(this,3,a)};
var lD=function(a,b,c){0==a.state_&&(a===c&&(b=3,c=new TypeError("ub")),a.state_=1,ssb(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,Fsb(a),3!=b||c instanceof oD||Gsb(a,c)))},ssb=function(a,b,c,d){if(a instanceof mD)return Asb(a,qsb(b||cC,c||null,d)),!0;if(nsb(a))return a.then(b,c,d),!0;if(Da(a))try{var e=a.then;if("function"===typeof e)return Hsb(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Hsb=function(a,b,c,d,e){var f=!1,h=function(q){f||(f=!0,
c.call(e,q))},k=function(q){f||(f=!0,d.call(e,q))};try{b.call(a,h,k)}catch(q){k(q)}},Fsb=function(a){a.executing_||(a.executing_=!0,kD(a.executeCallbacks_,a))},Dsb=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};mD.prototype.executeCallbacks_=function(){for(var a;a=Dsb(this);)Esb(this,a,this.state_,this.result_);this.executing_=!1};
var Esb=function(a,b,c,d){if(3==c&&b.onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,Isb(b,c,d);else try{b.always?b.onFulfilled.call(b.context):Isb(b,c,d)}catch(e){Jsb.call(null,e)}psb.put(b)},Isb=function(a,b,c){2==b?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},Gsb=function(a,b){a.hadUnhandledRejection_=!0;kD(function(){a.hadUnhandledRejection_&&Jsb.call(null,b)})},Jsb=$a,oD=function(a){aa.call(this,
a);this.reportErrorToServer=!1};Zt(oD,aa);oD.prototype.name="cancel";var xsb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
var pD=function(a,b){Oo.call(this);this.interval_=a||1;this.timerObject_=b||ba;this.boundTick_=Vt(this.tick_,this);this.last_=Xt()};Zt(pD,Oo);g=pD.prototype;g.enabled=!1;g.timer_=null;g.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
g.tick_=function(){if(this.enabled){var a=Xt()-this.last_;0<a&&a<.8*this.interval_?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};g.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Xt())};
g.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};g.disposeInternal=function(){pD.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var qD=function(a,b,c){if("function"===typeof a)c&&(a=Vt(a,c));else if(a&&"function"==typeof a.handleEvent)a=Vt(a.handleEvent,a);else throw Error("vb");return 2147483647<Number(b)?-1:ba.setTimeout(a,b||0)},rD=function(a){ba.clearTimeout(a)},Ksb=function(a,b){var c=null;return(new mD(function(d,e){c=qD(function(){d(b)},a);-1==c&&e(Error("wb"))})).thenCatch(function(d){rD(c);throw d;})};
var Lsb=function(a){this.streamzLogger_=a;this.metricMap=new Map;this.disabledMetrics_=new Set;this.invocationCount=0;this.flushInterval=3E4;this.flushTimer=new pD(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this)},Msb=function(a){a.flushTimer.enabled||a.flushTimer.start();a.invocationCount++;100<=a.invocationCount&&a.snapshotAndFlush()};g=Lsb.prototype;
g.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(u(a)).filter(function(b){return b.cellMap_.size});a.length&&this.streamzLogger_.flush(a,!1);Nsb(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=oc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new BC(a,b))};g.addNewEventMetric=function(a){var b=oc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new CC(a,b))};
g.getMetric=function(a){return this.disabledMetrics_.has(a)?void 0:this.metricMap.get(a)};g.incrementCounter=function(a){this.incrementCounterBy.apply(this,[a,1].concat(u(oc.apply(1,arguments))))};g.incrementCounterBy=function(a,b){var c=oc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof BC&&(d.incrementCounterBy(b,c),Msb(this))};g.record=function(a,b){var c=oc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof CC&&(d.record(b,c),Msb(this))};var Nsb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
var Osb=function(a){this.metricName_="/client_streamz/one_developer_workflow/events/usage";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"name"},{field_type:3,field_name:"source"},{field_type:1,field_name:"state"})};Osb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Osb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Psb=function(a){this.metricName_="/client_streamz/one_developer_workflow/events/performance";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"name"})};Psb.prototype.record=function(a,b,c){this.streamzService_.record(this.metricName_,a,b,c)};Psb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Qsb=function(a){this.metricName_="/client_streamz/one_developer_workflow/rpc/request_count";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"method_id"})};Qsb.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};Qsb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Rsb=function(a){this.metricName_="/client_streamz/one_developer_workflow/rpc/error_count";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"method_id"},{field_type:2,field_name:"code"})};Rsb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Rsb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Tsb=function(a){Z.call(this,a,-1,Ssb)};U(Tsb,Z);var sD=function(a){Z.call(this,a)};U(sD,Z);sD.prototype.getCount=function(){return p(this,2)};sD.prototype.setCount=function(a){l(this,2,a)};var Ssb=[1];Tsb.prototype.toObject=function(){return Usb(void 0,this)};var Usb=function(a,b){if(null!=b){var c={entryList:Bb(rb(b,sD,1),Vsb,a)};a&&(c.$jspbMessageInstance=b);return c}};sD.prototype.toObject=function(){return Vsb(void 0,this)};
var Vsb=function(a,b){if(null!=b){var c={valueOrBucket:n(tu(b,1)),count:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var tD=function(a){Z.call(this,a,-1,Wsb)};U(tD,Z);var uD=function(a){Z.call(this,a)};U(uD,Z);uD.prototype.getMobile=function(){return wl(this,vD,1,Xsb)};var vD=function(a){Z.call(this,a)};U(vD,Z);vD.prototype.getAppName=function(){return p(this,1)};var wD=function(a){Z.call(this,a)};U(wD,Z);wD.prototype.getAppName=function(){return p(this,1)};wD.prototype.getExperimentId=function(){return p(this,3)};var xD=function(a){Z.call(this,a,-1,Ysb)};U(xD,Z);var yD=function(a){Z.call(this,a)};U(yD,Z);
yD.prototype.getValueCase=function(){return pb(this,zD)};var AD=function(a){Z.call(this,a)};U(AD,Z);AD.prototype.getValueCase=function(){return pb(this,BD)};var Wsb=[3,6,4];tD.prototype.toObject=function(){return Zsb(void 0,this)};var Zsb=function(a,b){if(null!=b){var c={streamzName:n(p(b,1)),hashedStreamzName:n(p(b,5)),rootSpec:$sb(a,m(b,uD,2)),fieldNameList:n(jb(b,3)),hashedFieldNameList:n(jb(b,6)),incList:Bb(rb(b,xD,4),atb,a)};a&&(c.$jspbMessageInstance=b);return c}},Xsb=[1,2];
uD.prototype.toObject=function(){return $sb(void 0,this)};var $sb=function(a,b){if(null!=b){var c={mobile:btb(a,b.getMobile()),mobileExp:ctb(a,wl(b,wD,2,Xsb))};a&&(c.$jspbMessageInstance=b);return c}};vD.prototype.toObject=function(){return btb(void 0,this)};var btb=function(a,b){if(null!=b){var c={appName:n(p(b,1)),appVersion:n(p(b,2)),useMobilespec:n(Ro(b,3))};a&&(c.$jspbMessageInstance=b);return c}};wD.prototype.toObject=function(){return ctb(void 0,this)};
var ctb=function(a,b){if(null!=b){var c={appName:n(p(b,1)),appVersion:n(p(b,2)),experimentId:n(p(b,3)),useMobilespec:n(Ro(b,4))};a&&(c.$jspbMessageInstance=b);return c}},Ysb=[1];xD.prototype.toObject=function(){return atb(void 0,this)};var atb=function(a,b){if(null!=b){var c={fieldList:Bb(rb(b,yD,1),dtb,a),incBy:etb(a,m(b,AD,2))};a&&(c.$jspbMessageInstance=b);return c}},zD=[1,2,3];yD.prototype.toObject=function(){return dtb(void 0,this)};
var dtb=function(a,b){if(null!=b){var c={strVal:n(Or(b,1,zD)),intVal:n(Or(b,2,zD)),boolVal:n(Ro(b,qb(b,zD,3)))};a&&(c.$jspbMessageInstance=b);return c}},BD=[1,2,3];AD.prototype.toObject=function(){return etb(void 0,this)};var etb=function(a,b){if(null!=b){var c={int64Val:n(Or(b,1,BD)),doubleVal:n(tu(b,qb(b,BD,2))),histogramVal:Usb(a,wl(b,Tsb,3,BD))};a&&(c.$jspbMessageInstance=b);return c}};
var CD=function(a){Z.call(this,a)};U(CD,Z);CD.prototype.getKey=function(){return p(this,1)};CD.prototype.hasKey=function(){return cj(this,1)};CD.prototype.toObject=function(){return ftb(this)};var ftb=function(a){if(null!=a)return{key:n(p(a,1))}};
var htb=function(a){Z.call(this,a,-1,gtb)};U(htb,Z);var gtb=[1];htb.prototype.toObject=function(){var a=null!=this?{batchList:Bb(rb(this,tD,1),Zsb),slicerMetadata:ftb(m(this,CD,2))}:void 0;return a};
var itb=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("xb`"+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==
c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("yb`"+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
var ktb=function(a,b,c){var d=String(ba.location.href);return d&&a&&b?[b,jtb(itb(d),a,c||null)].join(" "):null},jtb=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],qa(d,function(k){e.push(k)}),ltb(e.join(" "));var f=[],h=[];qa(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];qa(d,function(k){e.push(k)});a=ltb(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},ltb=function(a){var b=
gma();b.update(a);return b.digestString().toLowerCase()};
var mtb={};
var DD=function(){this.document_=document||{cookie:""}};g=DD.prototype;g.isEnabled=function(){if(!ba.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("zb`"+a);if(/[;\r\n]/.test(b))throw Error("Ab`"+b);void 0===k&&(k=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";k=0>k?"":0==k?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*k)).toUTCString();this.document_.cookie=a+"="+b+c+h+k+d+(null!=e?";samesite="+e:"")};
g.get=function(a,b){for(var c=a+"=",d=(this.document_.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Qi(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};g.getKeys=function(){return ED(this).keys};g.getValues=function(){return ED(this).values};g.isEmpty=function(){return!this.document_.cookie};
g.getCount=function(){return this.document_.cookie?(this.document_.cookie||"").split(";").length:0};g.containsKey=function(a){return void 0!==this.get(a)};g.containsValue=function(a){for(var b=ED(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=ED(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var ED=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Qi(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
var ntb=function(a){return!!mtb.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)},otb=function(a,b,c,d){(a=ba[a])||(a=(new DD).get(b));return a?ktb(a,c,d):null},Mo=function(a,b){b=void 0===b?!1:b;var c=itb(String(ba.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=ba.__SAPISID||ba.__APISID||ba.__3PSAPISID||ba.__OVERRIDE_SID;ntb(e)&&(f=f||ba.__1PSAPISID);if(f)e=!0;else{var h=new DD;f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("SID");ntb(e)&&(f=f||h.get("__Secure-1PAPISID"));
e=!!f}e&&(e=(c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:"))?ba.__SAPISID:ba.__APISID,e||(e=new DD,e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?ktb(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&ntb(b)&&((b=otb("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=otb("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a)));return 0==d.length?null:d.join(" ")};
var FD=function(a){Z.call(this,a,-1,ptb)};U(FD,Z);var ptb=[2];FD.prototype.toObject=function(){return qtb(void 0,this)};var qtb=function(a,b){if(null!=b){var c={clearBlob:Eb(uu(b,1)),clearBlobJs:n(p(b,4)),encryptedBlobList:Eb(kb(b,2,Za)),usersMatch:n(Ro(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var GD=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a};GD.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};GD.prototype.getValue=function(){return this.currValue_};
var rtb=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},stb=function(a){try{return ba.JSON.parse(a)}catch(b){}a=String(a);if(rtb(a))try{return eval("("+a+")")}catch(b){}throw Error("Bb`"+a);},HD=function(a,b){return(new ttb(b)).serialize(a)},ttb=function(a){this.replacer_=
a};ttb.prototype.serialize=function(a){var b=[];utb(this,a,b);return b.join("")};
var utb=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],utb(a,a.replacer_?a.replacer_.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),vtb(d,c),c.push(":"),utb(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":vtb(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Cb`"+typeof b);}}},wtb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},xtb=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,vtb=function(a,b){b.push('"',a.replace(xtb,
function(c){var d=wtb[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),wtb[c]=d);return d}),'"')};
var ytb=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
var ID=function(){};ID.prototype.cachedOptions_=null;ID.prototype.getOptions=function(){return this.cachedOptions_||(this.cachedOptions_=this.internalGetOptions())};
var ztb,JD=function(){};Zt(JD,ID);JD.prototype.createInstance=function(){var a=Atb(this);return a?new ActiveXObject(a):new XMLHttpRequest};JD.prototype.internalGetOptions=function(){var a={};Atb(this)&&(a[0]=!0,a[1]=!0);return a};
var Atb=function(a){if(!a.ieProgId_&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.ieProgId_=d}catch(e){}}throw Error("Db");}return a.ieProgId_};ztb=new JD;
var Btb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ctb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}},Dtb=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+
1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]},Etb=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Etb(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))},Ftb=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Etb(a[b],a[b+1],c);return c.join("&")},Gtb=function(a){var b=[],c;for(c in a)Etb(c,a[c],b);return b.join("&")},KD=function(a,b){var c=2==arguments.length?Ftb(arguments[1],0):Ftb(arguments,
1);return Dtb(a,c)},lta=function(a,b){b=Gtb(b);return Dtb(a,b)},LD=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";return Dtb(a,b+c)},Htb=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1},Itb=/#|$/,Jtb=function(a,b){var c=a.search(Itb),d=Htb(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,
-1!==e?e:0).replace(/\+/g," "))},Ktb=/[?&]($|#)/;
var MD=function(a){Oo.call(this);this.headers=new Map;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhrOptions_=this.xhr_=null;this.lastUri_="";this.lastErrorCode_=0;this.lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_="";this.useXhr2Timeout_=this.withCredentials_=!1;this.trustToken_=null};Zt(MD,Oo);
var Ltb=/^https?$/i,Mtb=["POST","PUT"],Ntb=[],vi=function(a,b,c,d,e,f,h){var k=new MD;Ntb.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));h&&(k.withCredentials_=h);k.send(a,c,d,e);return k};MD.prototype.cleanupSend_=function(){this.dispose();wa(Ntb,this)};MD.prototype.setTrustToken=function(a){this.trustToken_=a};
MD.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("Eb`"+this.lastUri_+"`"+a);b=b?b.toUpperCase():"GET";this.lastUri_=a;this.lastError_="";this.lastErrorCode_=0;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.createXhr();this.xhrOptions_=this.xmlHttpFactory_?this.xmlHttpFactory_.getOptions():ztb.getOptions();this.xhr_.onreadystatechange=Vt(this.onReadyStateChange_,this);try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(h){this.error_(5,h);return}a=c||"";c=
new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Fb`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=ba.FormData&&a instanceof ba.FormData;!sa(Mtb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=r(c);for(d=
b.next();!d.done;d=b.next())c=r(d.value),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(h){}try{Otb(this),0<this.timeoutInterval_&&((this.useXhr2Timeout_=Ptb(this.xhr_))?(this.xhr_.timeout=
this.timeoutInterval_,this.xhr_.ontimeout=Vt(this.timeout_,this)):this.timeoutId_=qD(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};var Ptb=function(a){return cu&&iu(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};MD.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():ztb.createInstance()};
MD.prototype.timeout_=function(){"undefined"!=typeof Ut&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};MD.prototype.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;Qtb(this);ND(this)};var Qtb=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
MD.prototype.abort=function(a){this.xhr_&&this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ND(this))};MD.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),ND(this,!0));MD.superClass_.disposeInternal.call(this)};
MD.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Rtb(this);else this.onReadyStateChangeEntryPoint_()};MD.prototype.onReadyStateChangeEntryPoint_=function(){Rtb(this)};
var Rtb=function(a){if(a.active_&&"undefined"!=typeof Ut&&(!a.xhrOptions_[1]||4!=a.getReadyState()||2!=a.getStatus()))if(a.inSend_&&4==a.getReadyState())qD(a.onReadyStateChange_,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.lastErrorCode_=6;try{var b=2<a.getReadyState()?a.xhr_.statusText:""}catch(c){b=""}a.lastError_=b+" ["+a.getStatus()+"]";Qtb(a)}}finally{ND(a)}}},ND=function(a,b){if(a.xhr_){Otb(a);
var c=a.xhr_,d=a.xhrOptions_[0]?function(){}:null;a.xhr_=null;a.xhrOptions_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}},Otb=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);a.timeoutId_&&(rD(a.timeoutId_),a.timeoutId_=null)};g=MD.prototype;g.isActive=function(){return!!this.xhr_};g.isComplete=function(){return 4==this.getReadyState()};
g.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(a=0===a)a=String(this.lastUri_).match(Btb)[1]||null,!a&&ba.self&&ba.self.location&&(a=ba.self.location.protocol.slice(0,-1)),a=!Ltb.test(a?a.toLowerCase():"");b=a}return b};g.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};g.getStatus=function(){try{return 2<this.getReadyState()?this.xhr_.status:-1}catch(a){return-1}};
g.getLastUri=function(){return String(this.lastUri_)};g.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};g.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));a:{a=b;if(ba.JSON)try{var c=ba.JSON.parse(a);break a}catch(d){}c=stb(a)}return c}};
var Stb=function(a){try{if(!a.xhr_)return null;if("response"in a.xhr_)return a.xhr_.response;switch(a.responseType_){case "":case "text":return a.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.xhr_)return a.xhr_.mozResponseArrayBuffer}return null}catch(b){return null}};g=MD.prototype;g.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),null===a?void 0:a};
g.getAllResponseHeaders=function(){return this.xhr_&&2<=this.getReadyState()?this.xhr_.getAllResponseHeaders()||"":""};g.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!Vi(b[c])){var d=Rqb(b[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=a[e]||[];a[e]=f;f.push(d)}}return yja(a,function(h){return h.join(", ")})};g.getLastErrorCode=function(){return this.lastErrorCode_};
g.getLastError=function(){return"string"===typeof this.lastError_?this.lastError_:String(this.lastError_)};IC(function(a){MD.prototype.onReadyStateChangeEntryPoint_=a(MD.prototype.onReadyStateChangeEntryPoint_)});
var OD=function(a){Z.call(this,a)};U(OD,Z);var Ttb=function(a){Z.call(this,a)};U(Ttb,Z);OD.prototype.toObject=function(){return Utb(this)};var Utb=function(a){if(null!=a)return{buildVersion:n(p(a,1)),buildType:n(p(a,4)),omahaChannel:n(p(a,5)),battlestarClientType:n(p(a,2)),graphicsCapabilities:Vtb(m(a,Ttb,3)),battlestarMachineTier:n(p(a,6))}};Ttb.prototype.toObject=function(){return Vtb(this)};var Vtb=function(a){if(null!=a)return{guestAngle:n(Ro(a,1))}};
var PD=function(a){Z.call(this,a)};U(PD,Z);PD.prototype.getClientType=function(){return p(this,1)};PD.prototype.setClientType=function(a){return l(this,1,a)};PD.prototype.setBuildLabel=function(a){l(this,2,a)};PD.prototype.toObject=function(){return Wtb(this)};var Wtb=function(a){if(null!=a)return{clientType:n(p(a,1)),buildLabel:n(p(a,2)),birdsongBuildLabel:n(p(a,3))}};
var QD=function(a){Z.call(this,a)};U(QD,Z);QD.prototype.getLocale=function(){return p(this,1)};QD.prototype.setLocale=function(a){return l(this,1,a)};QD.prototype.toObject=function(){return Xtb(this)};var Xtb=function(a){if(null!=a)return{locale:n(p(a,1)),browser:n(p(a,2)),browserVersion:n(p(a,3)),flashVersion:n(p(a,4))}};
var Ytb=function(a){Z.call(this,a)};U(Ytb,Z);g=Ytb.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getLoggingId=function(){return p(this,2)};g.setLoggingId=function(a){l(this,2,a)};g.toObject=function(){return Ztb(this)};
var Ztb=function(a){if(null!=a)return{clientId:n(p(a,1)),loggingId:n(p(a,2)),os:n(p(a,3)),osMajorVersion:n(p(a,4)),osFullVersion:n(p(a,5)),applicationBuild:n(p(a,6)),country:n(p(a,7)),applicationBuildCl:n(p(a,8)),clearcutVersion:n(p(a,9))}};
var RD=function(a){Z.call(this,a)};U(RD,Z);RD.prototype.toObject=function(){return $tb(this)};var $tb=function(a){if(null!=a)return{buildVersion:n(p(a,1)),driveDesktopClientType:n(p(a,2))}};
var SD=function(a){Z.call(this,a)};U(SD,Z);SD.prototype.toObject=function(){return aub(this)};var aub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),g1DesktopClientType:n(p(a,2))}};
var TD=function(a){Z.call(this,a)};U(TD,Z);TD.prototype.getLocale=function(){return p(this,11)};TD.prototype.setLocale=function(a){return l(this,11,a)};TD.prototype.toObject=function(){return bub(this)};
var bub=function(a){if(null!=a)return{deviceId:n(p(a,9)),deviceModel:n(p(a,1)),appVersion:n(p(a,2)),acpVersion:n(p(a,16)),opalVersion:n(p(a,18)),virtualReleaseChannel:n(p(a,17)),manufacturer:n(p(a,3)),productName:n(p(a,4)),factoryCountry:n(p(a,5)),buildType:n(p(a,6)),systemBuild:n(p(a,7)),backendType:n(p(a,8)),locale:n(p(a,11)),onDeviceAssistantEnabled:n(Ro(a,12)),surfaceType:n(p(a,13)),osType:n(p(a,14)),optedInMetricsLogging:n(Ro(a,15))}};
var UD=function(a){Z.call(this,a)};U(UD,Z);UD.prototype.getLocale=function(){return p(this,5)};UD.prototype.setLocale=function(a){return l(this,5,a)};UD.prototype.setBuildLabel=function(a){l(this,7,a)};var VD=function(a){Z.call(this,a,-1,cub)};U(VD,Z);VD.prototype.getMobile=function(){return Ro(this,2)};var WD=function(a){Z.call(this,a)};U(WD,Z);WD.prototype.getVersion=function(){return p(this,2)};WD.prototype.setVersion=function(a){return l(this,2,a)};UD.prototype.toObject=function(){return dub(this)};
var dub=function(a){if(null!=a)return{os:n(p(a,1)),osVersion:n(p(a,2)),deviceType:n(p(a,3)),country:n(p(a,4)),locale:n(p(a,5)),osType:n(p(a,6)),buildLabel:n(p(a,7)),continent:n(p(a,8)),clientHints:eub(m(a,VD,9))}},cub=[1];VD.prototype.toObject=function(){return eub(this)};var eub=function(a){if(null!=a)return{uaListList:Bb(rb(a,WD,1),fub),mobile:n(Ro(a,2)),platform:n(p(a,3)),platformVersion:n(p(a,4)),architecture:n(p(a,5)),model:n(p(a,6)),uaFullVersion:n(p(a,7)),bitness:n(p(a,8))}};
WD.prototype.toObject=function(){return fub(void 0,this)};var fub=function(a,b){if(null!=b){var c={brand:n(p(b,1)),version:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var XD=function(a){Z.call(this,a)};U(XD,Z);XD.prototype.getLocale=function(){return p(this,5)};XD.prototype.setLocale=function(a){return l(this,5,a)};XD.prototype.toObject=function(){return gub(this)};var gub=function(a){if(null!=a)return{appVersion:n(p(a,1)),coreAppVersion:n(p(a,3)),deviceModel:n(p(a,2)),mccMnc:n(p(a,4)),locale:n(p(a,5))}};
var hub=function(a){Z.call(this,a)};U(hub,Z);hub.prototype.toObject=function(){return iub(this)};var iub=function(a){if(null!=a)return{osMajorVersion:n(p(a,1)),osFullVersion:n(p(a,2)),applicationBuild:n(p(a,3)),country:n(p(a,4)),applicationBuildCl:n(p(a,5)),clearcutVersion:n(p(a,6)),applicationBundleId:n(p(a,7))}};
var YD=function(a){Z.call(this,a)};U(YD,Z);YD.prototype.getAppId=function(){return p(this,3)};YD.prototype.setAppId=function(a){l(this,3,a)};YD.prototype.toObject=function(){return jub(this)};var jub=function(a){if(null!=a)return{deviceId:n(p(a,1)),os:n(p(a,2)),appId:n(p(a,3)),appVersion:n(p(a,4)),mccMnc:n(p(a,5))}};
var kub=function(a){Z.call(this,a)};U(kub,Z);g=kub.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getLoggingId=function(){return p(this,7)};g.setLoggingId=function(a){l(this,7,a)};g.toObject=function(){return lub(this)};var lub=function(a){if(null!=a)return{clientId:n(p(a,1)),loggingId:n(p(a,7)),make:n(p(a,3)),model:n(p(a,4)),applicationBuild:n(p(a,5)),platformVersion:n(p(a,6)),country:n(p(a,8))}};
var ZD=function(a){Z.call(this,a)};U(ZD,Z);ZD.prototype.getBattlestarClientInfo=function(){return wl(this,OD,1,mub)};ZD.prototype.getDriveDesktopClientInfo=function(){return wl(this,RD,2,mub)};ZD.prototype.getG1DesktopClientInfo=function(){return wl(this,SD,3,mub)};var mub=[1,2,3];ZD.prototype.toObject=function(){return nub(this)};var nub=function(a){if(null!=a)return{battlestarClientInfo:Utb(a.getBattlestarClientInfo()),driveDesktopClientInfo:$tb(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:aub(a.getG1DesktopClientInfo())}};
var oub=function(a){Z.call(this,a)};U(oub,Z);oub.prototype.toObject=function(){return pub(this)};var pub=function(a){if(null!=a)return{machineClass:n(p(a,1))}};
var qub=function(a){Z.call(this,a)};U(qub,Z);qub.prototype.toObject=function(){return rub(this)};var rub=function(a){if(null!=a)return{vrClientType:n(p(a,1)),sdkVersion:n(p(a,2)),fingerprint:n(p(a,3)),gvrVersion:n(p(a,4)),manufacturer:n(p(a,5)),model:n(p(a,6)),language:n(p(a,7)),country:n(p(a,8)),unityVersion:n(p(a,9)),unitySdkVersion:n(p(a,10))}};
var $D=function(a){Z.call(this,a)};U($D,Z);$D.prototype.setBuildLabel=function(a){l(this,1,a)};$D.prototype.getEnvironment=function(){return p(this,3)};$D.prototype.setEnvironment=function(a){return l(this,3,a)};$D.prototype.toObject=function(){return sub(this)};
var sub=function(a){if(null!=a)return{buildLabel:n(p(a,1)),deploymentType:n(p(a,2)),environment:n(p(a,3)),location:n(p(a,4)),machine:n(p(a,5)),gameletId:n(p(a,6)),machineShape:n(p(a,7)),metro:n(p(a,8)),vmPurpose:n(p(a,9)),releaseStage:n(p(a,10))}};
var aE=function(a){Z.call(this,a)};U(aE,Z);g=aE.prototype;g.getClientType=function(){return p(this,1)};g.setClientType=function(a){return l(this,1,a)};g.getBattlestarClientInfo=function(){return m(this,OD,22)};g.getDriveDesktopClientInfo=function(){return m(this,RD,24)};g.getG1DesktopClientInfo=function(){return m(this,SD,25)};g.getMutableJsClientInfo=function(){return wu(this,UD,11)};g.toObject=function(){return tub(this)};
var tub=function(a){if(null!=a)return{clientType:n(p(a,1)),remoteHost:n(p(a,6)),remoteHost6:n(p(a,7)),battlestarClientInfo:Utb(a.getBattlestarClientInfo()),birdsongClientInfo:Wtb(m(a,PD,14)),desktopClientInfo:Ztb(m(a,Ytb,3)),driveDesktopClientInfo:$tb(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:aub(a.getG1DesktopClientInfo()),googleHomeClientInfo:bub(m(a,TD,16)),jsClientInfo:dub(m(a,UD,11)),kaiosClientInfo:gub(m(a,XD,20)),macClientInfo:iub(m(a,hub,13)),pancettaClientInfo:jub(m(a,YD,10)),playCeClientInfo:lub(m(a,
kub,5)),portablePhenotypeLibraryClientInfo:nub(m(a,ZD,23)),sparklightClientInfo:pub(m(a,oub,18)),vrClientInfo:rub(m(a,qub,8)),yetiClientInfo:sub(m(a,$D,15)),browserInfo:Xtb(m(a,QD,9)),heterodyneConfigVersion:n(p(a,12))}};
var vub=function(a){Z.call(this,a,-1,uub)};U(vub,Z);var uub=[1,2,3,4,5];vub.prototype.toObject=function(){return wub(void 0,this)};var wub=function(a,b){if(null!=b){var c={clientAlteringExperimentList:n(jb(b,1)),otherExperimentList:n(jb(b,2)),gwsExperimentList:n(jb(b,3)),playExperimentList:n(jb(b,4)),unsupportedPlayExperimentList:n(jb(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var bE=function(a){Z.call(this,a)};U(bE,Z);bE.prototype.getVersion=function(){return p(this,3)};bE.prototype.setVersion=function(a){return l(this,3,a)};bE.prototype.toObject=function(){return xub(void 0,this)};var xub=function(a,b){if(null!=b){var c={appType:n(p(b,1)),androidPackageName:n(p(b,2)),version:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var cE=function(a){Z.call(this,a)};U(cE,Z);g=cE.prototype;g.getKey=function(){return p(this,1)};g.hasKey=function(){return cj(this,1)};g.getValue=function(){return p(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};g.toObject=function(){return yub(void 0,this)};var yub=function(a,b){if(null!=b){var c={key:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var zub=function(a){Z.call(this,a)};U(zub,Z);zub.prototype.toObject=function(){return Aub(void 0,this)};var Aub=function(a,b){if(null!=b){var c={networkType:X(b,1,-1),mobileSubtype:X(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var dE=function(a){Z.call(this,a,31,Bub)};U(dE,Z);g=dE.prototype;g.getTag=function(){return p(this,2)};g.getComponentId=function(){return p(this,26)};g.setComponentId=function(a){return l(this,26,a)};g.hasComponentId=function(){return cj(this,26)};g.addValue=function(){return yu(this,3,cE)};var eE=function(a,b){return l(a,8,b)};dE.prototype.getExperimentIds=function(){return m(this,FD,16)};var fE=function(a,b){l(a,24,b)},Cub={},Bub=[3,20,27];dE.prototype.toObject=function(){return Dub(void 0,this)};
var Dub=function(a,b){if(null!=b){var c={eventTimeMs:n(p(b,1)),eventUptimeMs:n(p(b,17)),sequencePosition:n(p(b,21)),tag:n(p(b,2)),eventCode:n(p(b,11)),componentId:n(p(b,26)),eventFlowId:n(p(b,12)),isUserInitiated:n(Ro(b,10)),valueList:Bb(rb(b,cE,3),yub,a),store:Eb(uu(b,4)),appUsage1p:xub(a,m(b,bE,9)),sourceExtension:Eb(uu(b,6)),sourceExtensionJs:n(p(b,8)),sourceExtensionJson:n(p(b,13)),sourceExtensionJsonProto3:n(p(b,29)),exp:wub(a,m(b,vub,7)),testId:n(p(b,14)),timezoneOffsetSeconds:dj(b,15,18E4),
experimentIds:qtb(a,b.getExperimentIds()),clientVe:Eb(uu(b,18)),clientVeJs:n(p(b,24)),internalEvent:n(p(b,19)),testCodeList:n(jb(b,20)),genericDimensionsList:n(jb(b,27)),bootCount:n(p(b,22)),networkConnectionInfo:Aub(a,m(b,zub,23)),inDirectBootMode:n(Ro(b,25)),zwiebackCookieOverride:n(p(b,28)),appliedSamplingRate:n(tu(b,30))};Cb(b,c,Cub,a);a&&(c.$jspbMessageInstance=b);return c}};
var Eub=function(a){Z.call(this,a)};U(Eub,Z);Eub.prototype.toObject=function(){return Fub(this)};var Fub=function(a){if(null!=a)return{collectStartMs:n(p(a,3)),collectUntilMs:n(p(a,1)),skipPersistentLogStorage:n(Ro(a,2))}};
var Gub=function(a){Z.call(this,a)};U(Gub,Z);Gub.prototype.toObject=function(){return Hub(this)};var Hub=function(a){if(null!=a)return{isUnmetered:n(Ro(a,1)),isCharging:n(Ro(a,2)),autoTimeStatus:n(p(a,3)),isGooglerDevice:n(Ro(a,4))}};
var gE=function(a){Z.call(this,a)};U(gE,Z);gE.prototype.getSource=function(){return p(this,3)};gE.prototype.setSource=function(a){return l(this,3,a)};gE.prototype.hasSource=function(){return cj(this,3)};gE.prototype.toObject=function(){return Iub(this)};var Iub=function(a){if(null!=a)return{timeMs:n(p(a,1)),uptimeMs:n(p(a,2)),source:n(p(a,3))}};
var hE=function(a){Z.call(this,a,17,Jub)};U(hE,Z);g=hE.prototype;g.getClientInfo=function(){return m(this,aE,1)};g.getMutableClientInfo=function(){return wu(this,aE,1)};g.setClientInfo=function(a){Ab(this,1,a)};g.getLogSource=function(){return X(this,2,-1)};g.setLogSource=function(a){return l(this,2,a)};g.getQosTier=function(){return X(this,9,0)};var Kub={},Jub=[3,5];
hE.prototype.toObject=function(){if(null!=this){var a={requestTimeMs:n(p(this,4)),requestUptimeMs:n(p(this,8)),clientInfo:tub(this.getClientInfo()),logSource:X(this,2,-1),logSourceName:n(p(this,6)),zwiebackCookie:n(p(this,7)),logEventList:Bb(rb(this,dE,3),Dub),serializedLogEventsList:Eb(kb(this,5,Za)),logEventDroppedCount:n(p(this,14)),qosTier:X(this,9,0),scheduler:n(p(this,10)),deviceStatus:Hub(m(this,Gub,11)),externalTimestamp:Iub(m(this,gE,12)),collectForDebug:Fub(m(this,Eub,13)),appMobilespecId:n(p(this,
16))};Cb(this,a,Kub)}else a=void 0;return a};
var Mub=function(a){Z.call(this,a,-1,Lub)};U(Mub,Z);var Lub=[1];Mub.prototype.toObject=function(){return Nub(this)};var Nub=function(a){if(null!=a)return{idList:n(jb(a,1))}};
var Oub=function(a){Z.call(this,a)};U(Oub,Z);Oub.prototype.toObject=function(){return Pub(void 0,this)};var Pub=function(a,b){if(null!=b){var c={logRequestIndex:n(p(b,1)),responseAction:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Rub=function(a){Z.call(this,a,-1,Qub)};U(Rub,Z);var Qub=[1];Rub.prototype.toObject=function(){return Sub(this)};var Sub=function(a){if(null!=a)return{logSourceNameList:n(jb(a,1))}};
var iE=function(a){Z.call(this,a)};U(iE,Z);iE.prototype.getQosTier=function(){return p(this,2)};iE.prototype.getLogSource=function(){return X(this,3,-1)};iE.prototype.setLogSource=function(a){return l(this,3,a)};iE.prototype.toObject=function(){return Tub(void 0,this)};var Tub=function(a,b){if(null!=b){var c={logSourceName:n(p(b,1)),qosTier:n(p(b,2)),logSource:X(b,3,-1)};a&&(c.$jspbMessageInstance=b);return c}};
var Vub=function(a){Z.call(this,a,-1,Uub)};U(Vub,Z);var Uub=[1];Vub.prototype.toObject=function(){return Wub(this)};var Wub=function(a){if(null!=a)return{qosTierConfigurationList:Bb(rb(a,iE,1),Tub),qosTierFingerprint:n(p(a,2))}};
var jE=function(a){Z.call(this,a,6,Xub)};U(jE,Z);jE.prototype.getExperiments=function(){return m(this,Mub,2)};jE.prototype.setExperiments=function(a){Ab(this,2,a)};jE.prototype.hasExperiments=function(){return cj(this,2)};jE.prototype.getQosTier=function(){return m(this,Vub,3)};var Yub={},Xub=[5];
jE.prototype.toObject=function(){if(null!=this){var a={nextRequestWaitMillis:kj(this,1,"-1"),experiments:Nub(this.getExperiments()),qosTier:Wub(this.getQosTier()),logSourceBatchingBlacklist:Sub(m(this,Rub,4)),logResponseDetailsList:Bb(rb(this,Oub,5),Pub)};Cb(this,a,Yub)}else a=void 0;return a};
var Zub=function(a){Z.call(this,a)};U(Zub,Z);Zub.prototype.toObject=function(){return $ub(void 0,this)};var $ub=function(a,b){if(null!=b){var c={suggestedFlushIntervalMillis:dj(b,1,-1)};a&&(c.$jspbMessageInstance=b);return c}};
var avb=yb(175237375,{jsExtension:0},Zub,$ub);Yub[175237375]=avb;
var lE=function(a,b,c,d,e,f,h,k,q,w,y){Oo.call(this);var E=this;this.componentId_="";this.pendingEvents_=[];this.lastFailedAuth_="";this.useGetRequestForFinalFlush=this.useSendBeaconForFinalFlush=this.clientSideLogOnlyForDevelopment_=!1;this.noFlushUntilMs=this.startWaitingMs=-1;this.clientSpecifiedFlushInterval=!1;this.gzipCompressor_=this.experimentIds_=null;this.numLogsDroppedSinceLastFlush=0;this.sequencePosition_=1;this.timeoutMillis=0;this.sendBeaconApiEnabled=!1;Oo.call(this);this.logSource_=
a;this.getAuthHeaderValue=b||function(){};this.logRequestBuilder=new kE(a,f);this.networkIOSend_=d;this.network_=y;this.bufferSize=1E3;this.uniformRandomFunction=Wt(Trb,0,1);this.clearcutUrl_=e||null;this.sessionIndex_=c||null;this.disableAutomaticFlush=h||!1;this.pageId=q||null;this.logger=null;this.withCredentials=!k;this.isServiceWorkerScope=f||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&(65<=ja("Chromium")||45<=ja("Firefox")||12<=ja("Safari")||ma()&&gaa())&&!!cD()&&!!cD().navigator&&
!!cD().navigator.sendBeacon;a=(new aE).setClientType(1);this.logRequestBuilder.setClientInfo(a);this.flushBackoff=new GD(1E4);this.flushTimer=new pD(this.flushBackoff.getValue());EC(this,this.flushTimer);w=bvb(this,w);Po(this.flushTimer,"tick",w,!1,this);this.backupTimer=new pD(6E5);EC(this,this.backupTimer);Po(this.backupTimer,"tick",w,!1,this);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(Po(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
E.finalFlush()}),Po(document,"pagehide",this.finalFlush,!1,this))};U(lE,Oo);var bvb=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};lE.prototype.disposeInternal=function(){this.finalFlush();Oo.prototype.disposeInternal.call(this)};lE.prototype.setClearcutUrl=function(a){this.clearcutUrl_=a};
var cvb=function(a){a.clearcutUrl_||(a.clearcutUrl_=.01>a.uniformRandomFunction()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.clearcutUrl_};g=lE.prototype;g.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};g.setComponentId=function(a){this.componentId_=a};g.setOpaqueExperimentIds=function(a){this.experimentIds_||(this.experimentIds_=new FD);hl(this.experimentIds_,2,a)};
g.setClearExperimentIds=function(a){a?(this.experimentIds_||(this.experimentIds_=new FD),a=a.serialize(),l(this.experimentIds_,4,a)):this.experimentIds_&&mb(this.experimentIds_,4)};g.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment_=a};g.setGzipCompressor=function(a){this.gzipCompressor_=a};var dvb=function(a,b){a.useSendBeaconForFinalFlush=b&&a.isSendBeaconSupported};lE.prototype.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};
lE.prototype.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;evb(this,a)};var evb=function(a,b){a.flushBackoff=new GD(1>b?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())};
lE.prototype.log=function(a){a=a.clone();var b=this.sequencePosition_++;l(a,21,b);this.componentId_&&a.setComponentId(this.componentId_);if(!p(a,1)){b=a;var c=Date.now().toString();l(b,1,c)}cj(a,15)||l(a,15,60*(new Date).getTimezoneOffset());this.experimentIds_&&(b=this.experimentIds_.clone(),Ab(a,16,b));for(;this.pendingEvents_.length>=this.bufferSize;)this.pendingEvents_.shift(),++this.numLogsDroppedSinceLastFlush;this.pendingEvents_.push(a);this.dispatchEvent(new fvb(a));this.disableAutomaticFlush||
this.flushTimer.enabled||this.flushTimer.start()};
lE.prototype.flush=function(a,b){var c=this;if(0===this.pendingEvents_.length)a&&a();else if(this.sendBeaconApiEnabled)gvb(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{var e=this.logRequestBuilder.build(this.pendingEvents_,this.numLogsDroppedSinceLastFlush);d={};var f=this.getAuthHeaderValue();f&&(d.Authorization=f);var h=cvb(this);this.sessionIndex_&&(d["X-Goog-AuthUser"]=this.sessionIndex_,h=LD(h,"authuser",this.sessionIndex_));this.pageId&&
(d["X-Goog-PageId"]=this.pageId,h=LD(h,"pageId",this.pageId));if(f&&this.lastFailedAuth_===f)b&&b("stale-auth-token");else if(this.pendingEvents_=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment_)a&&a();else{var k=e.serialize(),q;this.gzipCompressor_&&this.gzipCompressor_.getHiddenPropertyName_()&&(q=this.gzipCompressor_.compress(k));var w={url:h,body:k,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,
timeoutMillis:this.timeoutMillis},y=function(N){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(N){var L=null;try{var S=JSON.parse(N.replace(")]}'\n",""));L=new jE(S)}catch(Y){}L&&(N=Number(kj(L,1,"-1")),0<N&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+N),L=L.getExtension(avb))&&(L=dj(L,1,-1),-1!=L&&(c.clientSpecifiedFlushInterval||evb(c,L)))}a&&a()},E=function(N,L){var S=rb(e,dE,3),Y=c.flushBackoff;Y.currBaseValue_=Math.min(3E5,2*Y.currBaseValue_);
Y.currValue_=Math.min(3E5,Y.currBaseValue_+Math.round(.2*(Math.random()-.5)*Y.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());401===N&&f&&(c.lastFailedAuth_=f);void 0===L&&(L=500<=N&&600>N||401===N||0===N);L&&(c.pendingEvents_=S.concat(c.pendingEvents_),c.disableAutomaticFlush||c.flushTimer.enabled||c.flushTimer.start());b&&b("net-send-failed",N)},I=function(){c.network_?c.network_.send(w,y,E):c.networkIOSend_(w,y,E)};q?q.then(function(N){w.requestHeaders["Content-Encoding"]=
"gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=N;w.bodyType=2;I()},function(){I()}):I()}}}};lE.prototype.finalFlush=function(){this.clientSideLogOnlyForDevelopment_||(this.useSendBeaconForFinalFlush&&gvb(this),this.useGetRequestForFinalFlush&&hvb(this),this.flush())};
var gvb=function(a){ivb(a,32,10,function(b,c){b=LD(b,"format","json");b=cD().navigator.sendBeacon(b,c.serialize());a.sendBeaconApiEnabled&&!b&&(a.sendBeaconApiEnabled=!1);return b})},hvb=function(a){ivb(a,6,5,function(b,c){c=c.serialize();for(var d=[],e=0,f=0;f<c.length;f++){var h=c.charCodeAt(f);255<h&&(d[e++]=h&255,h>>=8);d[e++]=h}c=ab(d,3);c=KD(b,"format","base64json","p",c);if(15360<c.length)return!1;b=new Image;c=c instanceof hh?c:Gj(c,/^data:image\//i.test(c));b.src=ih(c);return!0})},ivb=function(a,
b,c,d){if(0!==a.pendingEvents_.length){var e=cvb(a);for(var f=e.search(Itb),h=0,k,q=[];0<=(k=Htb(e,h,"format",f));)q.push(e.substring(h,k)),h=Math.min(e.indexOf("&",k)+1||f,f);q.push(e.slice(h));e=q.join("").replace(Ktb,"$1");e=KD(e,"auth",a.getAuthHeaderValue(),"authuser",a.sessionIndex_||"0");for(f=0;f<c&&a.pendingEvents_.length;++f){h=a.pendingEvents_.slice(0,b);k=a.logRequestBuilder.build(h,a.numLogsDroppedSinceLastFlush);if(!d(e,k))break;a.numLogsDroppedSinceLastFlush=0;a.pendingEvents_=a.pendingEvents_.slice(h.length)}a.flushTimer.enabled&&
a.flushTimer.stop()}},fvb=function(){FC.call(this,"event-logged",void 0)};U(fvb,FC);var kE=function(a,b){this.isServiceWorkerScope=b=void 0===b?!1:b;this.uach=this.locale=null;this.logRequest=new hE;this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new aE)};kE.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
kE.prototype.setClientInfo=function(a){this.logRequest.setClientInfo(a);a.getClientType()||a.setClientType(1);this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),m(a,VD,9)||Ab(a,9,this.uach))};kE.prototype.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};kE.prototype.getMutableClientInfo=function(){return this.logRequest.getClientInfo()};
var jvb=function(a,b){b(cD()).then(function(c){a.uach=c;c=a.getMutableJsClientInfo();Ab(c,9,a.uach);return!0}).catch(function(){return!1})};kE.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=m(a,UD,11);b||(b=new UD,Ab(a,11,b));return b};kE.prototype.build=function(a,b){b=void 0===b?0:b;var c=this.logRequest.clone();var d=Date.now().toString();c=l(c,4,d);a=zb(c,3,a);b&&l(a,14,b);return a};
g=ima.prototype;g.setBuildLabel=function(a){this.buildLabel_=a};g.setGzipCompressor=function(a){this.gzipCompressor_=a};g.setComponentId=function(a){this.componentId_=a;return this};g.setClearExperimentIds=function(a){this.clearExperimentIds_=a};g.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds_=a};g.setClearcutClientInfo=function(a){this.clearcutClientInfo_=a};g.useSendBeaconForFinalFlush=function(){this.useSendBeaconForFinalFlush_=!0;return this};
g.useGetRequestForFinalFlush=function(){this.useGetRequestForFinalFlush_=!0;return this};g.setFlushIntervalMs=function(a){this.flushIntervalMs_=Math.max(a,5E3)};
g.build=function(){var a=new lE(this.logSource_,this.getAuthHeaderValue_?this.getAuthHeaderValue_:Mo,this.sessionIndex_,this.networkIOSend_,this.destinationUrl_,this.enableServiceWorkerScope_,!1,this.disableWithCredentials_,void 0,void 0,this.network_?this.network_:void 0);this.clearcutClientInfo_&&a.setClearcutClientInfo(this.clearcutClientInfo_);this.buildLabel_&&a.setBuildLabel(this.buildLabel_);this.gzipCompressor_&&a.setGzipCompressor(this.gzipCompressor_);this.componentId_&&a.setComponentId(this.componentId_);
this.clearExperimentIds_&&a.setClearExperimentIds(this.clearExperimentIds_);this.opaqueExperimentIds_&&a.setOpaqueExperimentIds(this.opaqueExperimentIds_);this.useSendBeaconForFinalFlush_&&dvb(a,this.useSendBeaconForFinalFlush_);this.useGetRequestForFinalFlush_&&(a.useGetRequestForFinalFlush=this.useGetRequestForFinalFlush_);this.flushIntervalMs_&&a.setFlushIntervalMs(this.flushIntervalMs_);this.userAgentClientHintsProvider_&&jvb(a.logRequestBuilder,this.userAgentClientHintsProvider_);return a};
var mE=function(a){a=void 0===a?-1:a;var b=void 0===b?"":b;var c=void 0===c?"":c;var d=void 0===d?!1:d;var e=void 0===e?"":e;var f=(new ima(a)).setComponentId(b);""!=c&&(f.destinationUrl_=c);d&&(f.enableServiceWorkerScope_=!0);e&&f.setBuildLabel(e);c=f.build();this.logSource_=a;this.componentId_=b;this.transport_=c};mE.prototype.getLogSource=function(){return this.logSource_};mE.prototype.getComponentId=function(){return this.componentId_};
mE.prototype.flush=function(a){var b=a||[];if(b.length){a=new htb;for(var c=[],d=0;d<b.length;d++){var e=b[d],f=e;var h=new tD;h=l(h,1,f.metricName_);for(var k=f,q=[],w=0;w<k.fields_.length;w++)q.push(k.fields_[w].field_name);h=hl(h,3,q);k=[];q=[];w=r(f.cellMap_.keys());for(var y=w.next();!y.done;y=w.next())q.push(y.value.split(","));for(w=0;w<q.length;w++){y=q[w];var E=f.cellType_;for(var I=f.getCells(y)||[],N=[],L=0;L<I.length;L++){var S=I[L];S=S&&S.cellValue_;var Y=new AD;switch(E){case 3:ao(Y,
1,BD,Number(S));break;case 2:ao(Y,2,BD,Number(S))}N.push(Y)}E=N;for(I=0;I<E.length;I++){N=E[I];L=new xD;N=Ab(L,2,N);L=y;S=[];Y=f;for(var ka=[],ha=0;ha<Y.fields_.length;ha++)ka.push(Y.fields_[ha].field_type);Y=ka;for(ka=0;ka<Y.length;ka++){ha=Y[ka];var ya=L[ka],Ha=new yD;switch(ha){case 3:ao(Ha,1,zD,String(ya));break;case 2:ao(Ha,2,zD,Number(ya));break;case 1:ao(Ha,3,zD,"true"==ya)}S.push(Ha)}zb(N,1,S);k.push(N)}}zb(h,4,k);c.push(h);e.clear()}zb(a,1,c);b=this.transport_;a instanceof dE?b.log(a):(a=
eE(new dE,a.serialize()),b.log(a));this.transport_.flush()}};
var kvb=new jd("PRODUCTION_WHITELIST",{factory:function(){return"g3g-sidebar-source g3g-sidebar-b g3g-sidebar-critique-ng mdkmkbpoljeogkhbjlehikpbpdmfaopg dcdkpimnclfoiknojhlfjhinjmiclmeo devfuse.corp.google.com g3c.corp.google.com taskflow.corp.google.com partnerdash.google.com fusion2.corp.google.com b.corp.google.com critique-ng.corp.google.com critique.corp.google.com source.corp.google.com coreiq.corp.google.com perfgate.googleplex.com bugobserver.corp.google.com launch.corp.google.com prod.google.com analog-ng.corp.google.com".split(" ")}}),
lvb=new jd("STREAMZ_PRODUCT_IDENTIFIER"),mvb=new jd("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return t(ef).runOutsideAngular(function(){var a=new mE(1503);a=new Lsb(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);return a})}}),nE=function(a,b,c,d){this.streamzService=a;this.zone=b;this.productionWhitelist=c;this.oneDeveloperWorkflowUsageMetrics=new Osb(this.streamzService);new Psb(this.streamzService);new Qsb(this.streamzService);new Rsb(this.streamzService);
this.productIdentifier=d||window.location.hostname},oE=function(a,b,c){a.zone.runOutsideAngular(function(){nvb(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,c)})},nvb=function(a){return a.productionWhitelist.some(function(b){return a.productIdentifier.includes(b)})};nE.\u0275fac=function(a){return new (a||nE)(t(mvb),t(ef),t(kvb),t(lvb,8))};nE.\u0275prov=ec({token:nE,factory:nE.\u0275fac,providedIn:"root"});
var ovb=new jd("Feature Tooltip Controller Config"),pE=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(nE):void 0;this.lastTooltipKey="onedev.lastTooltipTime."+this.config.productName;var d;this.config.shownMetricName=null!=(d=this.config.shownMetricName)?d:"tooltipShown";var e;this.config.hiddenMetricName=null!=(e=this.config.hiddenMetricName)?e:"tooltipHidden"},pvb=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(C(function(b){return null===
b?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))},qvb=function(a,b){a.keyValueStore.getValue(qE(a,b)).pipe(De(function(c){return"SHOWING"!==c})).subscribe(function(){a.keyValueStore.setValue(qE(a,b),"HIDDEN")})},svb=function(a,b,c){var d=c.map(function(e){return qE(a,e)});return a.keyValueStore.getValues(d).pipe(C(function(e){return rvb(a,b,c,e)}))},rvb=function(a,b,c,d){return c.filter(function(e){e=d.get(qE(a,e));return e===b||"UNSEEN"===b&&null===e})},qE=function(a,b){return"onedev.tooltips."+
a.config.productName+"."+b};pE.\u0275fac=function(a){return new (a||pE)(t(ovb),t(zC),t(Hv))};pE.\u0275prov=ec({token:pE,factory:pE.\u0275fac,providedIn:yC});
var rE=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=(0,T.of)(void 0);this.destroyed$=new T.ReplaySubject;this.getCurrentlyShowingTooltips=function(){return svb(b.featureTooltipService,"SHOWING",tvb(b))}};
rE.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(Xe(this.getCurrentlyShowingTooltips),Xe(function(c){return 0<c.length?(0,T.of)(c[0]):(0,T.of)(void 0).pipe(uvb(a),vvb(a))}),C(function(c){return wvb(a,c)}),De(function(c){return!!c}),C(function(c){return c}),Ue({bufferSize:1,refCount:!0}));xvb(this,b);b.pipe(Ye(this.destroyed$)).subscribe(function(c){c.open$.next();var d=a.featureTooltipService;c=c.tooltipId;var e;null==(e=d.clientStreamzService)||oE(e,d.config.shownMetricName,
!0);(0,T.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,(new Date).getTime()),d.keyValueStore.setValue(qE(d,c),"SHOWING")]).pipe(Pe())})};rE.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var uvb=function(a){return(0,T.pipe)(Xe(function(){return pvb(a.featureTooltipService)}),De(T.identity))},vvb=function(a){return(0,T.pipe)(Xe(function(){return svb(a.featureTooltipService,"UNSEEN",tvb(a))}),De(function(b){return 0<b.length}),C(function(b){return b[0]}))},xvb=function(a,b){b.pipe(Xe(function(c){return c.dismiss.pipe(Pe(c.tooltipId))}),Ye(a.destroyed$)).subscribe(function(c){var d=a.featureTooltipService,e;null==(e=d.clientStreamzService)||oE(e,d.config.hiddenMetricName,!0);(0,T.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,
(new Date).getTime()),d.keyValueStore.setValue(qE(d,c),"HIDDEN")]).pipe(Pe())})},tvb=function(a){return a.tooltips.map(function(b){return b.tooltipId})},wvb=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===b})};rE.\u0275fac=function(a){return new (a||rE)(F(pE))};
rE.\u0275cmp=v({type:rE,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&$f(c,wC,4);if(a&2){var d;Yf(d=ag())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});
var sE=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};sE.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){r(b).next().value.isIntersecting?irb(a.anchorService,a.tooltipId,a.element):jrb(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):irb(this.anchorService,this.tooltipId,this.element)};
sE.prototype.ngOnDestroy=function(){jrb(this.anchorService,this.tooltipId);var a;null==(a=this.intersectionObserver)||a.disconnect()};sE.\u0275fac=function(a){return new (a||sE)(F(sC),F(nd))};sE.\u0275dir=v({type:sE,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:["onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"}});
var tE=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){qvb(d.featureTooltipService,d.tooltipId)}};tE.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};tE.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};
ki.Object.defineProperties(tE.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b;null==(b=this.unsubscribeFromEvent)||b.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,this.preventTooltipFromShowing)}}});tE.\u0275fac=function(a){return new (a||tE)(F(pE),F(Mv),F(nd))};tE.\u0275dir=v({type:tE,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:["onedevTooltipPreventer","tooltipId"],event:["onedevPreventTooltipOn","event"]}});
var yvb=new jd("TooltipAnchor"),zvb=new jd("TooltipPeventer"),uE=function(a,b,c,d,e,f){this.featureTooltipService=a;this.anchorService=b;this.elementRef=c;this.renderer=d;this.anchorClass=e;this.preventerClass=f;this.tooltipPreventer=new this.preventerClass(this.featureTooltipService,this.renderer,this.elementRef);this.tooltipAnchor=new this.anchorClass(this.anchorService,this.elementRef)};uE.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
uE.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};ki.Object.defineProperties(uE.prototype,{tooltipId:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.tooltipId=a;this.tooltipAnchor.tooltipId=a}},hideTooltipWhenAnchorNotVisible:{configurable:!0,enumerable:!0,set:function(a){this.tooltipAnchor.hideTooltipWhenAnchorNotVisible=a}},event:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.event=a}}});
uE.\u0275fac=function(a){return new (a||uE)(F(pE),F(sC),F(nd),F(Mv),F(yvb),F(zvb))};uE.\u0275dir=v({type:uE,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:["onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:["onedevPreventTooltipOn","event"]},features:[Lf([{provide:yvb,useValue:sE},{provide:zvb,useValue:tE}])]});
var vE=function(a,b,c){this.anchorService=a;this.renderer=b;this.elementRef=c};vE.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};vE.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};ki.Object.defineProperties(vE.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b=this,c;null==(c=this.unsubscribeFromEvent)||c.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,function(){b.anchorService.dismissTooltip(b.tooltipId)})}}});
vE.\u0275fac=function(a){return new (a||vE)(F(sC),F(Mv),F(nd))};vE.\u0275dir=v({type:vE,selectors:[["","onedevTooltipDismisser",""]],inputs:{tooltipId:["onedevTooltipDismisser","tooltipId"],event:["onedevDismissOn","event"]}});
var wE=function(){this.className="gmat-subtitle-1 tooltip-title"};wE.\u0275fac=function(a){return new (a||wE)};wE.\u0275dir=v({type:wE,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&tf(b.className)}});
var Avb=function(){},Bvb=function(){};
var wm=function(a){var b=this;this.normalizedNames=new Map;this.lazyUpdate=null;a?this.lazyInit="string"===typeof a?function(){b.headers=new Map;a.split("\n").forEach(function(c){var d=c.indexOf(":");if(0<d){var e=c.slice(0,d),f=e.toLowerCase();c=c.slice(d+1).trim();Cvb(b,e,f);b.headers.has(f)?b.headers.get(f).push(c):b.headers.set(f,[c])}})}:function(){b.headers=new Map;Object.keys(a).forEach(function(c){var d=a[c],e=c.toLowerCase();"string"===typeof d&&(d=[d]);0<d.length&&(b.headers.set(e,d),Cvb(b,
c,e))})}:this.headers=new Map};g=wm.prototype;g.has=function(a){this.init();return this.headers.has(a.toLowerCase())};g.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&0<a.length?a[0]:null};g.keys=function(){this.init();return Array.from(this.normalizedNames.values())};g.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};g.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
g.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var Cvb=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};wm.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof wm?Dvb(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return Evb(a,b)}),this.lazyUpdate=null))};
var Dvb=function(a,b){b.init();Array.from(b.headers.keys()).forEach(function(c){a.headers.set(c,b.headers.get(c));a.normalizedNames.set(c,b.normalizedNames.get(c))})};wm.prototype.clone=function(a){var b=new wm;b.lazyInit=this.lazyInit&&this.lazyInit instanceof wm?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var Evb=function(a,b){var c=b.name.toLowerCase();switch(b.op){case "a":case "s":var d=b.value;"string"===typeof d&&(d=[d]);if(0===d.length)break;Cvb(a,b.name,c);b=("a"===b.op?a.headers.get(c):void 0)||[];b.push.apply(b,u(d));a.headers.set(c,b);break;case "d":var e=b.value;if(e){if(d=a.headers.get(c))d=d.filter(function(f){return-1===e.indexOf(f)}),0===d.length?(a.headers.delete(c),a.normalizedNames.delete(c)):a.headers.set(c,d)}else a.headers.delete(c),a.normalizedNames.delete(c)}};
wm.prototype.forEach=function(a){var b=this;this.init();Array.from(this.normalizedNames.keys()).forEach(function(c){return a(b.normalizedNames.get(c),b.headers.get(c))})};
var Fvb=function(){},kma=/%(\d[a-f0-9])/gi,lma={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},um=function(a){var b=this;a=void 0===a?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new Fvb;if(a.fromString){if(a.fromObject)throw Error("Gb");this.map=jma(a.fromString)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(c){var d=a.fromObject[c];b.map.set(c,Array.isArray(d)?d:[d])})):this.map=null};g=um.prototype;
g.has=function(a){this.init();return this.map.has(a)};g.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};g.getAll=function(a){this.init();return this.map.get(a)||null};g.keys=function(){this.init();return Array.from(this.map.keys())};g.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};g.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
g.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=mma(b);return a.map.get(b).map(function(d){return c+"="+mma(d)}).join("&")}).filter(function(b){return""!==b}).join("&")};g.clone=function(a){var b=new um({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
g.init=function(){var a=this;null===this.map&&(this.map=new Map);null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(b){return a.map.set(b,a.cloneFrom.map.get(b))}),this.updates.forEach(function(b){switch(b.op){case "a":case "s":var c=("a"===b.op?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(void 0!==b.value){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);-1!==d&&c.splice(d,1);0<c.length?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};
var Gvb=function(){this.map=new Map};g=Gvb.prototype;g.set=function(a,b){this.map.set(a,b);return this};g.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};g.delete=function(a){this.map.delete(a);return this};g.has=function(a){return this.map.has(a)};g.keys=function(){return this.map.keys()};
var vm=function(a,b,c,d){this.url=b;this.body=null;this.withCredentials=this.reportProgress=!1;this.responseType="json";this.method=a.toUpperCase();a:switch(this.method){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":a=!1;break a;default:a=!0}if(a||d)this.body=void 0!==c?c:null,c=d;c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),
c.params&&(this.params=c.params));this.headers||(this.headers=new wm);this.context||(this.context=new Gvb);this.params?(c=this.params.toString(),0===c.length?this.urlWithParams=b:(d=b.indexOf("?"),this.urlWithParams=b+(-1===d?"?":d<b.length-1?"&":"")+c)):(this.params=new um,this.urlWithParams=b)},Hvb=function(a){return null===a.body?null:nma(a.body)||oma(a.body)||pma(a.body)||"undefined"!==typeof URLSearchParams&&a.body instanceof URLSearchParams||"string"===typeof a.body?a.body:a.body instanceof
um?a.body.toString():"object"===typeof a.body||"boolean"===typeof a.body||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
vm.prototype.clone=function(a){a=void 0===a?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e=void 0!==a.body?a.body:this.body,f=void 0!==a.withCredentials?a.withCredentials:this.withCredentials,h=void 0!==a.reportProgress?a.reportProgress:this.reportProgress,k=a.headers||this.headers,q=a.params||this.params,w,y=null!=(w=a.context)?w:this.context;void 0!==a.setHeaders&&(k=Object.keys(a.setHeaders).reduce(function(E,I){return E.set(I,a.setHeaders[I])},k));a.setParams&&
(q=Object.keys(a.setParams).reduce(function(E,I){return E.set(I,a.setParams[I])},q));return new vm(b,c,e,{params:q,headers:k,context:y,reportProgress:h,responseType:d,withCredentials:f})};
var xE=function(a,b,c){this.headers=a.headers||new wm;this.status=void 0!==a.status?a.status:void 0===b?200:b;this.statusText=a.statusText||(void 0===c?"OK":c);this.url=a.url||null;this.ok=200<=this.status&&300>this.status},yE=function(a){a=void 0===a?{}:a;xE.call(this,a);this.type=2};U(yE,xE);yE.prototype.clone=function(a){a=void 0===a?{}:a;return new yE({headers:a.headers||this.headers,status:void 0!==a.status?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};
var zE=function(a){a=void 0===a?{}:a;xE.call(this,a);this.type=4;this.body=void 0!==a.body?a.body:null};U(zE,xE);zE.prototype.clone=function(a){a=void 0===a?{}:a;return new zE({body:void 0!==a.body?a.body:this.body,headers:a.headers||this.headers,status:void 0!==a.status?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};
var Ivb=function(a){xE.call(this,a,0,"Unknown Error");this.name="HttpErrorResponse";this.ok=!1;this.message=200<=this.status&&300>this.status?"Http failure during parsing for "+(a.url||"(unknown url)"):"Http failure response for "+(a.url||"(unknown url)")+": "+a.status+" "+a.statusText;this.error=a.error||null};U(Ivb,xE);
var AE=function(a){this.handler=a};g=AE.prototype;
g.request=function(a,b,c){var d=this;c=void 0===c?{}:c;if(a instanceof vm)b=a;else{var e=void 0;e=c.headers instanceof wm?c.headers:new wm(c.headers);var f=void 0;c.params&&(f=c.params instanceof um?c.params:new um({fromObject:c.params}));b=new vm(a,b,void 0!==c.body?c.body:null,{headers:e,context:c.context,params:f,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials})}e=(0,T.of)(b).pipe(we(function(h){return d.handler.handle(h)},1));if(a instanceof
vm||"events"===c.observe)return e;a=e.pipe(De(function(h){return h instanceof zE}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(C(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw Error("Hb");return h.body}));case "blob":return a.pipe(C(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw Error("Ib");return h.body}));case "text":return a.pipe(C(function(h){if(null!==h.body&&"string"!==typeof h.body)throw Error("Jb");return h.body}));
default:return a.pipe(C(function(h){return h.body}))}case "response":return a;default:throw Error("Kb`"+c.observe);}};g.delete=function(a,b){b=void 0===b?{}:b;return this.request("DELETE",a,b)};g.get=function(a,b){b=void 0===b?{}:b;return this.request("GET",a,b)};g.head=function(a,b){b=void 0===b?{}:b;return this.request("HEAD",a,b)};g.jsonp=function(a,b){return this.request("JSONP",a,{params:(new um).append(b,"JSONP_CALLBACK"),observe:"body",responseType:"json"})};
g.options=function(a,b){b=void 0===b?{}:b;return this.request("OPTIONS",a,b)};g.patch=function(a,b,c){c=void 0===c?{}:c;return this.request("PATCH",a,qma(c,b))};g.post=function(a,b,c){c=void 0===c?{}:c;return this.request("POST",a,qma(c,b))};g.put=function(a,b,c){c=void 0===c?{}:c;return this.request("PUT",a,qma(c,b))};AE.\u0275fac=function(a){return new (a||AE)(t(Avb))};AE.\u0275prov=ec({token:AE,factory:AE.\u0275fac});
var Jvb=function(a,b){this.next=a;this.interceptor=b};Jvb.prototype.handle=function(a){return this.interceptor.intercept(a,this.next)};var BE=new jd("HTTP_INTERCEPTORS");
var Kvb=/^\)\]\}',?\n/,CE=function(a){this.xhrFactory=a};
CE.prototype.handle=function(a){var b=this;if("JSONP"===a.method)throw Error("Lb");return new T.Observable(function(c){var d=b.xhrFactory.build();d.open(a.method,a.urlWithParams);a.withCredentials&&(d.withCredentials=!0);a.headers.forEach(function(N,L){return d.setRequestHeader(N,L.join(","))});a.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var e=null===a.body||pma(a.body)?null:oma(a.body)?a.body.type||null:nma(a.body)?
null:"string"===typeof a.body?"text/plain":a.body instanceof um?"application/x-www-form-urlencoded;charset=UTF-8":"object"===typeof a.body||"number"===typeof a.body||"boolean"===typeof a.body?"application/json":null;null!==e&&d.setRequestHeader("Content-Type",e)}a.responseType&&(e=a.responseType.toLowerCase(),d.responseType="json"!==e?e:"text");var f=Hvb(a),h=null,k=function(){if(null!==h)return h;var N=d.statusText||"OK",L=new wm(d.getAllResponseHeaders()),S=("responseURL"in d&&d.responseURL?d.responseURL:
/^X-Request-URL:/m.test(d.getAllResponseHeaders())?d.getResponseHeader("X-Request-URL"):null)||a.url;return h=new yE({headers:L,status:d.status,statusText:N,url:S})},q=function(){var N=k(),L=N.headers,S=N.status,Y=N.statusText;N=N.url;var ka=null;204!==S&&(ka="undefined"===typeof d.response?d.responseText:d.response);0===S&&(S=ka?200:0);var ha=200<=S&&300>S;if("json"===a.responseType&&"string"===typeof ka){var ya=ka;ka=ka.replace(Kvb,"");try{ka=""!==ka?JSON.parse(ka):null}catch(Ha){ka=ya,ha&&(ha=
!1,ka={error:Ha,text:ka})}}ha?(c.next(new zE({body:ka,headers:L,status:S,statusText:Y,url:N||void 0})),c.complete()):c.error(new Ivb({error:ka,headers:L,status:S,statusText:Y,url:N||void 0}))},w=function(N){var L=k().url;c.error(new Ivb({error:N,status:d.status||0,statusText:d.statusText||"Unknown Error",url:L||void 0}))},y=!1,E=function(N){y||(c.next(k()),y=!0);var L={type:3,loaded:N.loaded};N.lengthComputable&&(L.total=N.total);"text"===a.responseType&&d.responseText&&(L.partialText=d.responseText);
c.next(L)},I=function(N){var L={type:1,loaded:N.loaded};N.lengthComputable&&(L.total=N.total);c.next(L)};d.addEventListener("load",q);d.addEventListener("error",w);d.addEventListener("timeout",w);d.addEventListener("abort",w);a.reportProgress&&(d.addEventListener("progress",E),null!==f&&d.upload&&d.upload.addEventListener("progress",I));d.send(f);c.next({type:0});return function(){d.removeEventListener("error",w);d.removeEventListener("abort",w);d.removeEventListener("load",q);d.removeEventListener("timeout",
w);a.reportProgress&&(d.removeEventListener("progress",E),null!==f&&d.upload&&d.upload.removeEventListener("progress",I));d.readyState!==d.DONE&&d.abort()}})};CE.\u0275fac=function(a){return new (a||CE)(t(fnb))};CE.\u0275prov=ec({token:CE,factory:CE.\u0275fac});
var Lvb=new jd("XSRF_COOKIE_NAME"),Mvb=new jd("XSRF_HEADER_NAME"),Nvb=function(){},DE=function(a,b,c){this.doc=a;this.platform=b;this.cookieName=c;this.lastCookieString="";this.lastToken=null};
DE.prototype.getToken=function(){if("server"===this.platform)return null;var a=this.doc.cookie||"";if(a!==this.lastCookieString){a:{var b=this.cookieName;b=encodeURIComponent(b);for(var c=r(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=r(-1==e?[d,""]:[d.slice(0,e),d.slice(e+1)]);d=e.next().value;e=e.next().value;if(d.trim()===b){b=decodeURIComponent(e);break a}}b=null}this.lastToken=b;this.lastCookieString=a}return this.lastToken};
DE.\u0275fac=function(a){return new (a||DE)(t(ii),t(Vv),t(Lvb))};DE.\u0275prov=ec({token:DE,factory:DE.\u0275fac});var EE=function(a,b){this.tokenService=a;this.headerName=b};EE.prototype.intercept=function(a,b){var c=a.url.toLowerCase();if("GET"===a.method||"HEAD"===a.method||c.startsWith("http://")||c.startsWith("https://"))return b.handle(a);c=this.tokenService.getToken();null===c||a.headers.has(this.headerName)||(a=a.clone({headers:a.headers.set(this.headerName,c)}));return b.handle(a)};
EE.\u0275fac=function(a){return new (a||EE)(t(Nvb),t(Mvb))};EE.\u0275prov=ec({token:EE,factory:EE.\u0275fac});
var FE=function(a,b){this.backend=a;this.injector=b;this.chain=null};FE.prototype.handle=function(a){null===this.chain&&(this.chain=this.injector.get(BE,[]).reduceRight(function(b,c){return new Jvb(b,c)},this.backend));return this.chain.handle(a)};FE.\u0275fac=function(a){return new (a||FE)(t(Bvb),t(Hv))};FE.\u0275prov=ec({token:FE,factory:FE.\u0275fac});var GE=function(){};GE.\u0275fac=function(a){return new (a||GE)};GE.\u0275mod=rc({type:GE});
GE.\u0275inj=fc({providers:[EE,{provide:BE,useExisting:EE,multi:!0},{provide:Nvb,useClass:DE},{provide:Lvb,useValue:"XSRF-TOKEN"},{provide:Mvb,useValue:"X-XSRF-TOKEN"}]});var HE=function(){};HE.\u0275fac=function(a){return new (a||HE)};HE.\u0275mod=rc({type:HE});var IE={cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"};IE=void 0===IE?{}:IE;
HE.\u0275inj=fc({providers:[AE,{provide:Avb,useClass:FE},CE,{provide:Bvb,useExisting:CE}],imports:[[{ngModule:GE,providers:[IE.cookieName?{provide:Lvb,useValue:IE.cookieName}:[],IE.headerName?{provide:Mvb,useValue:IE.headerName}:[]]}]]});
var wi;
var JE=function(a,b){this.url=a;this.svgText=null;this.options=b},KE=function(a,b,c,d){this._httpClient=a;this._sanitizer=b;this._errorHandler=d;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=c},Ovb=function(a,b){return a._fontCssClassesByAlias.get(b)||b},Pvb=function(a,b,c){c=void 0===c?"":c;var d=c+":"+b,e=
a._svgIconConfigs.get(d);return e?a._getSvgFromConfig(e):(e=a._getIconConfigFromResolvers(c,b))?(a._svgIconConfigs.set(d,e),a._getSvgFromConfig(e)):(c=a._iconSetConfigs.get(c))?a._getSvgFromIconSetConfigs(b,c):(0,T.throwError)(Error("Mb`"+d))};g=KE.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};g._getSvgFromConfig=function(a){return a.svgText?(0,T.of)(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(C(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return(0,T.of)(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(Ie(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return(0,T.of)(null)}))});return(0,T.forkJoin)(d).pipe(C(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Mb`"+a);return e}))};
g._extractIconWithNameFromAnySet=function(a,b){for(var c=b.length-1;0<=c;c--){var d=b[c];if(d.svgText&&-1<d.svgText.toString().indexOf(a)){var e=this._svgElementFromConfig(d);if(d=this._extractSvgIconFromSet(e,a,d.options))return d}}return null};g._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(Ze(function(c){return a.svgText=c}),C(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?(0,T.of)(null):this._fetchIcon(a).pipe(Ze(function(b){return a.svgText=b}))};
g._extractSvgIconFromSet=function(a,b,c){a=a.querySelector('[id="'+b+'"]');if(!a)return null;a=a.cloneNode(!0);a.removeAttribute("id");if("svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,c);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),c);b=this._svgElementFromString(sma("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
g._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("Pb");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString(sma("<svg></svg>")),c=a.attributes,d=0;d<c.length;d++){var e=c[d],f=e.name;e=e.value;"id"!==f&&b.setAttribute(f,e)}for(c=0;c<a.childNodes.length;c++)a.childNodes[c].nodeType===this._document.ELEMENT_NODE&&b.appendChild(a.childNodes[c].cloneNode(!0));return b};
g._setSvgAttributes=function(a,b){a.setAttribute("fit","");a.setAttribute("height","100%");a.setAttribute("width","100%");a.setAttribute("preserveAspectRatio","xMidYMid meet");a.setAttribute("focusable","false");b&&b.viewBox&&a.setAttribute("viewBox",b.viewBox);return a};
g._fetchIcon=function(a){var b=this,c=a.url,d,e;a=null!=(e=null==(d=a.options)?void 0:d.withCredentials)?e:!1;if(!this._httpClient)throw Error("Nb");if(null==c)throw Error("Qb`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Ob`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(C(function(h){return sma(h)}),rga(function(){return b._inProgressUrlFetches.delete(f)}),Te());this._inProgressUrlFetches.set(f,c);return c};
g._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};g._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};g._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
g._getIconConfigFromResolvers=function(a,b){for(var c=0;c<this._resolvers.length;c++){var d=this._resolvers[c](b,a);if(d)return d.url&&d.options?new JE(d.url,d.options):new JE(d)}};KE.\u0275fac=function(a){return new (a||KE)(t(AE,8),t(az),t(ii,8),t(Td))};KE.\u0275prov=ec({token:KE,factory:KE.\u0275fac,providedIn:"root"});new Ev;new Fv;new Ev;new Ev;
var Qvb=li(function(a){this._elementRef=a}),Rvb=new jd("MAT_ICON_DEFAULT_OPTIONS"),Svb=new jd("mat-icon-location",{providedIn:"root",factory:tma}),Tvb="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),Uvb=Tvb.map(function(a){return"["+a+"]"}).join(", "),Vvb=/^url\(['"]?#(.*?)['"]?\)$/,LE=function(a,b,c,d,e,f){var h=Qvb.call(this,a)||this;h._iconRegistry=b;h._location=d;h._errorHandler=e;h._inline=!1;h._previousFontSetClass=[];h._currentIconFetch=
T.Subscription.EMPTY;f&&(f.color&&(h.color=h.defaultColor=f.color),f.fontSet&&(h.fontSet=f.fontSet));c||a.nativeElement.setAttribute("aria-hidden","true");return h};U(LE,Qvb);g=LE.prototype;g._splitIconName=function(a){if(!a)return["",""];var b=a.split(":");switch(b.length){case 1:return["",b[0]];case 2:return b;default:throw Error("Rb`"+a);}};g.ngOnInit=function(){this._updateFontIconClasses()};
g.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};g.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};g._usingFontIcon=function(){return!this.svgIcon};
g._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};g._clearSvgElement=function(){var a=this._elementRef.nativeElement,b=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();b--;){var c=a.childNodes[b];1===c.nodeType&&"svg"!==c.nodeName.toLowerCase()||c.remove()}};
g._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?[Ovb(this._iconRegistry,this.fontSet)]:this._iconRegistry._defaultFontSetClass).filter(function(c){return 0<c.length});this._previousFontSetClass.forEach(function(c){return a.classList.remove(c)});b.forEach(function(c){return a.classList.add(c)});this._previousFontSetClass=b;this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&a.classList.remove(this._previousFontIconClass),
this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}};g._cleanupFontValue=function(a){return"string"===typeof a?a.trim().split(" ")[0]:a};g._prependPathToReferences=function(a){var b=this._elementsWithExternalReferences;b&&b.forEach(function(c,d){c.forEach(function(e){d.setAttribute(e.name,"url('"+a+"#"+e.value+"')")})})};
g._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(Uvb),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={$jscomp$loop$prop$i$1615:0};a.$jscomp$loop$prop$i$1615<b.length;a={$jscomp$loop$prop$i$1615:a.$jscomp$loop$prop$i$1615},a.$jscomp$loop$prop$i$1615++)Tvb.forEach(function(d){return function(e){var f=b[d.$jscomp$loop$prop$i$1615],h=f.getAttribute(e);if(h=h?h.match(Vvb):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:h[1]})}}}(a))};
g._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=r(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=Pvb(this._iconRegistry,d,c).pipe(Me()).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("Sb`"+c+"`"+d+"`"+e.message))})}};
ki.Object.defineProperties(LE.prototype,{inline:{configurable:!0,enumerable:!0,get:function(){return this._inline},set:function(a){this._inline=Rg(a)}},svgIcon:{configurable:!0,enumerable:!0,get:function(){return this._svgIcon},set:function(a){a!==this._svgIcon&&(a?this._updateSvgIcon(a):this._svgIcon&&this._clearSvgElement(),this._svgIcon=a)}},fontSet:{configurable:!0,enumerable:!0,get:function(){return this._fontSet},set:function(a){a=this._cleanupFontValue(a);a!==this._fontSet&&(this._fontSet=
a,this._updateFontIconClasses())}},fontIcon:{configurable:!0,enumerable:!0,get:function(){return this._fontIcon},set:function(a){a=this._cleanupFontValue(a);a!==this._fontIcon&&(this._fontIcon=a,this._updateFontIconClasses())}}});LE.\u0275fac=function(a){return new (a||LE)(F(nd),F(KE),Xc("aria-hidden"),F(Svb),F(Td),F(Rvb,8))};
LE.\u0275cmp=v({type:LE,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(a,b){a&2&&(nf("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet),sf("mat-icon-inline",b.inline)("mat-icon-no-color","primary"!==b.color&&"accent"!==b.color&&"warn"!==b.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},
exportAs:["matIcon"],features:[gf],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Cf(),Df(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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});
var Wvb=Dh("transformMenu",[Gh("void",Fh({opacity:0,transform:"scale(0.8)"})),Hh("void => enter",Eh("120ms cubic-bezier(0, 0, 0.2, 1)",Fh({opacity:1,transform:"scale(1)"}))),Hh("* => void",Eh("100ms 25ms linear",Fh({opacity:0})))]),Xvb=Dh("fadeInItems",[Gh("showing",Fh({opacity:1})),Hh("void => *",[Fh({opacity:0}),Eh("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var Yvb=new jd("MatMenuContent"),ME=function(a,b,c,d,e,f,h){this._template=a;this._componentFactoryResolver=b;this._appRef=c;this._injector=d;this._viewContainerRef=e;this._document=f;this._changeDetectorRef=h;this._attached=new T.Subject};
ME.prototype.attach=function(a){a=void 0===a?{}:a;this._portal||(this._portal=new MA(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new OA(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var b=this._template.elementRef.nativeElement;b.parentNode.insertBefore(this._outlet.outletElement,b);var c;null==(c=this._changeDetectorRef)||c.markForCheck();this._portal.attach(this._outlet,a);this._attached.next()};
ME.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()};ME.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()};ME.\u0275fac=function(a){return new (a||ME)(F(Vf),F(Jv),F(hx),F(Hv),F(Wf),F(ii),F(lx))};ME.\u0275dir=v({type:ME});var NE=function(){ME.apply(this,arguments)};U(NE,ME);NE.\u0275fac=function(){var a;return function(b){return(a||(a=cd(NE)))(b||NE)}}();
NE.\u0275dir=v({type:NE,selectors:[["ng-template","matMenuContent",""]],features:[Lf([{provide:Yvb,useExisting:NE}]),gf]});
var Zvb=new jd("MAT_MENU_PANEL");
var $vb=mi(ni(function(){})),OE=function(a,b,c,d,e){var f=$vb.call(this)||this;f._elementRef=a;f._document=b;f._focusMonitor=c;f._parentMenu=d;f._changeDetectorRef=e;f.role="menuitem";f._hovered=new T.Subject;f._focused=new T.Subject;f._highlighted=!1;f._triggersSubmenu=!1;var h;null==d||null==(h=d.addItem)||h.call(d,f);return f};U(OE,$vb);g=OE.prototype;g.focus=function(a,b){this._focusMonitor&&a?Jz(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};
g.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};g.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._elementRef.nativeElement};
g._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};g._handleMouseEnter=function(){this._hovered.next(this)};g.getLabel=function(){for(var a=this._elementRef.nativeElement.cloneNode(!0),b=a.querySelectorAll("mat-icon, .material-icons"),c=0;c<b.length;c++)b[c].remove();var d;return(null==(d=a.textContent)?void 0:d.trim())||""};g._setHighlighted=function(a){this._highlighted=a;var b;null==(b=this._changeDetectorRef)||b.markForCheck()};
g._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};OE.\u0275fac=function(a){return new (a||OE)(F(nd),F(ii),F(Iz),F(Zvb,8),F(lx))};
OE.\u0275cmp=v({type:OE,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(a,b){a&1&&K("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(nf("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled.toString())("disabled",b.disabled||null),sf("mat-menu-item",!0)("mat-menu-item-highlighted",b._highlighted)("mat-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{disabled:"disabled",
disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[gf],attrs:["mat-menu-item",""],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(Cf(),Df(0),J(1,"div",0),O(2,uma,2,0,"svg",1));a&2&&(B(1),
D("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),B(1),D("ngIf",b._triggersSubmenu))},dependencies:[sx,iB],encapsulation:2,changeDetection:0});
var awb=new jd("mat-menu-default-options",{providedIn:"root",factory:wma}),bwb=0,PE=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._defaultOptions=c;this._changeDetectorRef=d;this._xPosition=this._defaultOptions.xPosition;this._yPosition=this._defaultOptions.yPosition;this._directDescendantItems=new bg;this._tabSubscription=T.Subscription.EMPTY;this._classList={};this._panelAnimationState="void";this._animationDone=new T.Subject;this.overlayPanelClass=this._defaultOptions.overlayPanelClass||
"";this.backdropClass=this._defaultOptions.backdropClass;this._overlapTrigger=this._defaultOptions.overlapTrigger;this._hasBackdrop=this._defaultOptions.hasBackdrop;this.close=this.closed=new Iw;this.panelId="mat-menu-panel-"+bwb++};g=PE.prototype;g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=bA(aA(Yz(new gA(this._directDescendantItems))));this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(We(this._directDescendantItems),Xe(function(b){return T.merge.apply(null,u(b.map(function(c){return c._focused})))})).subscribe(function(b){return cA(a._keyManager,b)});this._directDescendantItems.changes.subscribe(function(b){var c=
a._keyManager,d;"enter"===a._panelAnimationState&&(null==(d=c.activeItem)?0:d._hasFocus())&&(b=b.toArray(),d=Math.max(0,Math.min(b.length-1,c.activeItemIndex||0)),b[d]&&!b[d].disabled?c.setActiveItem(d):c.setNextItemActive())})};g.ngOnDestroy=function(){this._directDescendantItems.destroy();this._tabSubscription.unsubscribe();this.closed.complete()};g._hovered=function(){return this._directDescendantItems.changes.pipe(We(this._directDescendantItems),Xe(function(a){return T.merge.apply(null,u(a.map(function(b){return b._hovered})))}))};
g.addItem=function(){};g.removeItem=function(){};g._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:gi(a)||(a.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:if(38===b||40===b)c._origin="keyboard";c.onKeydown(a);return}a.stopPropagation()};
var cwb=function(a,b){b=void 0===b?"program":b;a.lazyContent?a._ngZone.onStable.pipe(Me()).subscribe(function(){return a._focusFirstItem(b)}):a._focusFirstItem(b)};g=PE.prototype;g._focusFirstItem=function(a){var b=this._keyManager;b._origin=a;dA(b);if(!b.activeItem&&this._directDescendantItems.length)for(a=this._directDescendantItems.first._getHostElement().parentElement;a;)if("menu"===a.getAttribute("role")){a.focus();break}else a=a.parentElement};
g.setElevation=function(a){var b=this;a=this._elevationPrefix+Math.min(this._baseElevation+a,24);var c=Object.keys(this._classList).find(function(d){return d.startsWith(b._elevationPrefix)});c&&c!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)};
g.setPositionClasses=function(a,b){a=void 0===a?this.xPosition:a;b=void 0===b?this.yPosition:b;var c=this._classList;c["mat-menu-before"]="before"===a;c["mat-menu-after"]="after"===a;c["mat-menu-above"]="above"===b;c["mat-menu-below"]="below"===b;var d;null==(d=this._changeDetectorRef)||d.markForCheck()};g._startAnimation=function(){this._panelAnimationState="enter"};g._resetAnimation=function(){this._panelAnimationState="void"};
g._onAnimationDone=function(a){this._animationDone.next(a);this._isAnimating=!1};g._onAnimationStart=function(a){this._isAnimating=!0;"enter"===a.toState&&0===this._keyManager.activeItemIndex&&(a.element.scrollTop=0)};g._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(We(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));Xf(a._directDescendantItems)})};
ki.Object.defineProperties(PE.prototype,{xPosition:{configurable:!0,enumerable:!0,get:function(){return this._xPosition},set:function(a){this._xPosition=a;this.setPositionClasses()}},yPosition:{configurable:!0,enumerable:!0,get:function(){return this._yPosition},set:function(a){this._yPosition=a;this.setPositionClasses()}},overlapTrigger:{configurable:!0,enumerable:!0,get:function(){return this._overlapTrigger},set:function(a){this._overlapTrigger=Rg(a)}},hasBackdrop:{configurable:!0,enumerable:!0,
get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=Rg(a)}},panelClass:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(function(d){b._classList[d]=!1});(this._previousPanelClass=a)&&a.length&&(a.split(" ").forEach(function(d){b._classList[d]=!0}),this._elementRef.nativeElement.className="")}},classList:{configurable:!0,enumerable:!0,get:function(){return this.panelClass},set:function(a){this.panelClass=a}}});
PE.\u0275fac=function(a){return new (a||PE)(F(nd),F(ef),F(awb),F(lx))};
PE.\u0275dir=v({type:PE,contentQueries:function(a,b,c){a&1&&($f(c,Yvb,5),$f(c,OE,5),$f(c,OE,4));if(a&2){var d;Yf(d=ag())&&(b.lazyContent=d.first);Yf(d=ag())&&(b._allItems=d);Yf(d=ag())&&(b.items=d)}},viewQuery:function(a,b){a&1&&Zf(Vf,5);if(a&2){var c;Yf(c=ag())&&(b.templateRef=c.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"}});var QE=function(a,b,c,d){PE.call(this,a,b,c,d);this._elevationPrefix="mat-elevation-z";this._baseElevation=4};U(QE,PE);QE.\u0275dir=PE.\u0275dir;QE.\u0275fac=function(a){return new (a||QE)(F(nd),F(ef),F(awb),F(lx))};
QE.\u0275cmp=v({type:QE,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(a){a&2&&nf("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Lf([{provide:Zvb,useExisting:QE}]),gf],ngContentSelectors:["*"],decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(a){a&1&&(Cf(),O(0,vma,3,6,"ng-template"))},dependencies:[vx],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;position:relative}.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;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]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.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:[Wvb,Xvb]},changeDetection:0});
var dwb=new jd("mat-menu-scroll-strategy"),ewb={provide:dwb,deps:[RA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},fwb=Kg({passive:!0}),SE=function(a,b,c,d,e,f,h,k,q){var w=this;this._overlay=a;this._element=b;this._viewContainerRef=c;this._menuItemInstance=f;this._dir=h;this._focusMonitor=k;this._ngZone=q;this._overlayRef=null;this._menuOpen=!1;this._menuCloseSubscription=this._hoverSubscription=this._closingActionsSubscription=T.Subscription.EMPTY;this._handleTouchStart=
function(y){fi(y)||(w._openedBy="touch")};this._openedBy=void 0;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new Iw;this.onMenuClose=this.menuClosed=new Iw;this._scrollStrategy=d;this._parentMaterialMenu=e instanceof PE?e:void 0;b.nativeElement.addEventListener("touchstart",this._handleTouchStart,fwb);f&&(f._triggersSubmenu=RE(this))};SE.prototype.ngAfterContentInit=function(){this._handleHover()};
SE.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,fwb);this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._hoverSubscription.unsubscribe()};
var RE=function(a){return!(!a._menuItemInstance||!a._parentMaterialMenu)},yi=function(a){var b=a.menu;if(!a._menuOpen&&b){var c=a._createOverlay(b),d=c.getConfig(),e=d.positionStrategy;a._setPosition(b,e);d.hasBackdrop=null==b.hasBackdrop?!RE(a):b.hasBackdrop;c.attach(a._getPortal(b));b.lazyContent&&b.lazyContent.attach(a.menuData);a._closingActionsSubscription=a._menuClosingActions().subscribe(function(){return a.closeMenu()});a._initMenu(b);b instanceof PE&&(b._startAnimation(),b._directDescendantItems.changes.pipe(Ye(b.close)).subscribe(function(){Cpb(HA(e,
!1));HA(e,!0)}))}};g=SE.prototype;g.closeMenu=function(){var a;null==(a=this.menu)||a.close.emit()};g.focus=function(a,b){this._focusMonitor&&a?Jz(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.updatePosition=function(){var a;null==(a=this._overlayRef)||a.updatePosition()};
g._destroyMenu=function(a){var b=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe();this._overlayRef.detach();!this.restoreFocus||"keydown"!==a&&this._openedBy&&RE(this)||this.focus(this._openedBy);this._openedBy=void 0;if(c instanceof PE)c._resetAnimation(),c.lazyContent?c._animationDone.pipe(De(function(e){return"void"===e.toState}),Me(),Ye(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return b._setIsMenuOpen(!1)}}):
this._setIsMenuOpen(!1);else{this._setIsMenuOpen(!1);var d;null==c||null==(d=c.lazyContent)||d.detach()}}};g._initMenu=function(a){a.parentMenu=RE(this)?this._parentMaterialMenu:void 0;a.direction=this.dir;this._setMenuElevation(a);cwb(a,this._openedBy||"program");this._setIsMenuOpen(!0)};g._setMenuElevation=function(a){if(a.setElevation){for(var b=0,c=a.parentMenu;c;)b++,c=c.parentMenu;a.setElevation(b)}};
g._setIsMenuOpen=function(a){(this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit();RE(this)&&this._menuItemInstance._setHighlighted(a)};g._createOverlay=function(a){if(!this._overlayRef){var b=this._getOverlayConfig(a);this._subscribeToPositions(a,b.positionStrategy);this._overlayRef=this._overlay.create(b);this._overlayRef.keydownEvents().subscribe()}return this._overlayRef};
g._getOverlayConfig=function(a){return new AA({positionStrategy:Fpb(Epb(HA(JA(this._overlay.position(),this._element))),".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:a.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:a.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})};
g._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){var e="start"===d.connectionPair.overlayX?"after":"before",f="top"===d.connectionPair.overlayY?"below":"above";c._ngZone?c._ngZone.run(function(){return a.setPositionClasses(e,f)}):a.setPositionClasses(e,f)})};
g._setPosition=function(a,b){var c=r("before"===a.xPosition?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=r("above"===a.yPosition?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var h=r([f,e]),k=h.next().value;h=h.next().value;var q=r([d,c]),w=q.next().value;q=q.next().value;var y=0;RE(this)?(q=d="before"===a.xPosition?"start":"end",c=w="end"===d?"start":"end",this._parentMaterialMenu&&(null==this._parentInnerPadding&&(this._parentInnerPadding=(a=this._parentMaterialMenu.items.first)?
a._getHostElement().offsetTop:0),y="bottom"===f?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k="top"===f?"bottom":"top",h="top"===e?"bottom":"top");DA(b,[{originX:d,originY:k,overlayX:w,overlayY:f,offsetY:y},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:y},{originX:d,originY:h,overlayX:w,overlayY:e,offsetY:-y},{originX:c,originY:h,overlayX:q,overlayY:e,offsetY:-y}])};
g._menuClosingActions=function(){var a=this,b=this._overlayRef.backdropClick(),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(De(function(f){return f!==a._menuItemInstance}),De(function(){return a._menuOpen})):(0,T.of)();return(0,T.merge)(b,d,e,c)};g._handleMousedown=function(a){ei(a)||(this._openedBy=0===a.button?"mouse":void 0,RE(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(13===a||32===a)this._openedBy="keyboard";RE(this)&&(39===a&&"ltr"===this.dir||37===a&&"rtl"===this.dir)&&(this._openedBy="keyboard",yi(this))};g._handleClick=function(a){RE(this)?(a.stopPropagation(),yi(this)):this._menuOpen?this.closeMenu():yi(this)};
g._handleHover=function(){var a=this;RE(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(De(function(b){return b===a._menuItemInstance&&!b.disabled}),Ke(0,T.asapScheduler)).subscribe(function(){a._openedBy="mouse";a.menu instanceof PE&&a.menu._isAnimating?a.menu._animationDone.pipe(Me(),Ke(0,T.asapScheduler),Ye(a._parentMaterialMenu._hovered())).subscribe(function(){return yi(a)}):yi(a)}))};
g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new MA(a.templateRef,this._viewContainerRef));return this._portal};
ki.Object.defineProperties(SE.prototype,{_deprecatedMatMenuTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.menu},set:function(a){this.menu=a}},menu:{configurable:!0,enumerable:!0,get:function(){return this._menu},set:function(a){var b=this;a!==this._menu&&(this._menu=a,this._menuCloseSubscription.unsubscribe(),a&&(this._menuCloseSubscription=a.close.subscribe(function(c){b._destroyMenu(c);"click"!==c&&"tab"!==c||!b._parentMaterialMenu||b._parentMaterialMenu.closed.emit(c)})))}},
menuOpen:{configurable:!0,enumerable:!0,get:function(){return this._menuOpen}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}});SE.\u0275fac=function(a){return new (a||SE)(F(RA),F(nd),F(Wf),F(dwb),F(Zvb,8),F(OE,10),F(hA,8),F(Iz),F(ef))};
SE.\u0275dir=v({type:SE,hostVars:3,hostBindings:function(a,b){a&1&&K("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&nf("aria-haspopup",b.menu?"menu":null)("aria-expanded",b.menuOpen||null)("aria-controls",b.menuOpen?b.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"}});var TE=function(){SE.apply(this,arguments)};U(TE,SE);TE.\u0275fac=function(){var a;return function(b){return(a||(a=cd(TE)))(b||TE)}}();TE.\u0275dir=v({type:TE,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[gf]});
var UE=function(){};UE.\u0275fac=function(a){return new (a||UE)};UE.\u0275mod=rc({type:UE});UE.\u0275inj=fc({providers:[ewb],imports:[[Mx,VA,mB,UA],xA,VA]});
var gwb=new Set,VE,WE=function(a){this._platform=a;this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xma};WE.prototype.matchMedia=function(a){if((this._platform.WEBKIT||this._platform.BLINK)&&!gwb.has(a))try{VE||(VE=document.createElement("style"),VE.setAttribute("type","text/css"),document.head.appendChild(VE)),VE.sheet&&(VE.sheet.insertRule("@media "+a+" {body{ }}",0),gwb.add(a))}catch(b){console.error(b)}return this._matchMedia(a)};
WE.\u0275fac=function(a){return new (a||WE)(t(yy))};WE.\u0275prov=ec({token:WE,factory:WE.\u0275fac,providedIn:"root"});
var XE=function(a,b){this._mediaMatcher=a;this._zone=b;this._queries=new Map;this._destroySubject=new T.Subject};XE.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
XE.prototype.observe=function(a){var b=this;a=yma(Qg(a)).map(function(c){return b._registerQuery(c).observable});a=(0,T.combineLatest)(a);a=(0,T.concat)(a.pipe(Me()),a.pipe(Ve(1),Je(0)));return a.pipe(C(function(c){var d={matches:!1,breakpoints:{}};c.forEach(function(e){var f=e.matches;e=e.query;d.matches=d.matches||f;d.breakpoints[e]=f});return d}))};
XE.prototype._registerQuery=function(a){var b=this;if(this._queries.has(a))return this._queries.get(a);var c=this._mediaMatcher.matchMedia(a),d={observable:(new T.Observable(function(e){var f=function(h){return b._zone.run(function(){return e.next(h)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(We(c),C(function(e){return{query:a,matches:e.matches}}),Ye(this._destroySubject)),mql:c};this._queries.set(a,d);return d};XE.\u0275fac=function(a){return new (a||XE)(t(WE),t(ef))};
XE.\u0275prov=ec({token:XE,factory:XE.\u0275fac,providedIn:"root"});
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
 @type {{XSmall: string, Small: string, Medium: string, Large: string, XLarge: string, Handset: string, Tablet: string, Web: string, HandsetPortrait: string, TabletPortrait: string, WebPortrait: string, HandsetLandscape: string, TabletLandscape: string, WebLandscape: string}}
*/
var hwb=["tooltip"],iwb=Kg({passive:!0}),jwb=new jd("mat-tooltip-scroll-strategy"),kwb={provide:jwb,deps:[RA],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},lwb=new jd("mat-tooltip-default-options",{providedIn:"root",factory:zma}),YE=function(a,b,c,d,e,f,h,k,q,w,y,E){var I=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=h;this._focusMonitor=k;this._dir=
w;this._defaultOptions=y;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=!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 T.Subject;this._scrollStrategy=q;this._document=E;y&&(y.position&&(this.position=y.position),y.touchGestures&&(this.touchGestures=y.touchGestures));
w.change.pipe(Ye(this._destroyed)).subscribe(function(){I._overlayRef&&I._updatePosition(I._overlayRef)})};g=YE.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(Ye(this._destroyed)).subscribe(function(b){b?"keyboard"===b&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=r(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,iwb)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();opb(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a){var b=this;a=void 0===a?this.showDelay:a;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach();this._portal=this._portal||new LA(this._tooltipComponent,this._viewContainerRef);c=this._tooltipInstance=c.attach(this._portal).instance;c._triggerElement=this._elementRef.nativeElement;c._mouseLeaveHideDelay=this._hideDelay;c._onHide.pipe(Ye(this._destroyed)).subscribe(function(){return b._detach()});
this._setTooltipClass(this._tooltipClass);this._updateTooltipMessage();c.show(a)}};g.hide=function(a){a=void 0===a?this.hideDelay:a;this._tooltipInstance&&this._tooltipInstance.hide(a)};g.toggle=function(){this._isTooltipVisible()?this.hide():this.show()};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(){var a=this;if(this._overlayRef)return this._overlayRef;var b=vpb(this._scrollDispatcher,this._elementRef);b=Dpb(EA(FA(Fpb(JA(this._overlay.position(),this._elementRef),".mat-tooltip"),!1),this._viewportMargin),b);b.positionChanges.pipe(Ye(this._destroyed)).subscribe(function(d){a._updateCurrentPositionClass(d.connectionPair);a._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&a._tooltipInstance.isVisible()&&a._ngZone.run(function(){return a.hide(0)})});this._overlayRef=
this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(Ye(this._destroyed)).subscribe(function(){return a._detach()});this._overlayRef._outsidePointerEvents.pipe(Ye(this._destroyed)).subscribe(function(){var d;return null==(d=a._tooltipInstance)?void 0:d._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(Ye(this._destroyed)).subscribe(function(d){a._isTooltipVisible()&&
27===d.keyCode&&!gi(d)&&(d.preventDefault(),d.stopPropagation(),a._ngZone.run(function(){return a.hide(0)}))});var c;(null==(c=this._defaultOptions)?0:c.disableTooltipInteractivity)&&this._overlayRef.addPanelClass("mat-tooltip-panel-non-interactive");return this._overlayRef};g._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};
g._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();DA(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};g._addOffset=function(a){return a};
g._getOrigin=function(){var a=!this._dir||"ltr"==this._dir.value,b=this.position;if("above"==b||"below"==b)var c={originX:"center",originY:"above"==b?"top":"bottom"};else if("before"==b||"left"==b&&a||"right"==b&&!a)c={originX:"start",originY:"center"};else if("after"==b||"right"==b&&a||"left"==b&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
g._getOverlayPosition=function(){var a=!this._dir||"ltr"==this._dir.value,b=this.position;if("above"==b)var c={overlayX:"center",overlayY:"bottom"};else if("below"==b)c={overlayX:"center",overlayY:"top"};else if("before"==b||"left"==b&&a||"right"==b&&!a)c={overlayX:"end",overlayY:"center"};else if("after"==b||"right"==b&&a||"left"==b&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
g._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Me(),Ye(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};g._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
g._invertPosition=function(a,b){"above"===this.position||"below"===this.position?"top"===b?b="bottom":"bottom"===b&&(b="top"):"end"===a?a="start":"start"===a&&(a="end");return{x:a,y:b}};
g._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b="center"===b?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===b&&"top"===a?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)c.removePanelClass("mat-tooltip-panel-"+this._currentPosition),c.addPanelClass("mat-tooltip-panel-"+b);this._currentPosition=b}};
g._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){a._setupPointerExitEventsIfNeeded();a.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show()},
500)}])),this._addListeners(this._passiveListeners))};
g._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&(null==(e=a._overlayRef)?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var c=function(){clearTimeout(a._touchstartTimeout);a.hide(a._defaultOptions.touchendHideDelay)};
b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,u(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=r(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,iwb)})};g._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
g._wheelListener=function(a){if(this._isTooltipVisible()){a=this._document.elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
g._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if("off"!==a){var b=this._elementRef.nativeElement,c=b.style;if("on"===a||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";"on"!==a&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
ki.Object.defineProperties(YE.prototype,{position:{configurable:!0,enumerable:!0,get:function(){return this._position},set:function(a){if(a!==this._position&&(this._position=a,this._overlayRef)){this._updatePosition(this._overlayRef);var b;null==(b=this._tooltipInstance)||b.show(0);this._overlayRef.updatePosition()}}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Rg(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,
enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Ug(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Ug(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,get:function(){return this._message},set:function(a){var b=this;opb(this._ariaDescriber,this._elementRef.nativeElement,this._message,"tooltip");this._message=null!=a?
String(a).trim():"";!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){npb(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")})}))}},tooltipClass:{configurable:!0,enumerable:!0,get:function(){return this._tooltipClass},set:function(a){this._tooltipClass=a;this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}});
YE.\u0275fac=function(){wf()};YE.\u0275dir=v({type:YE,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var $E=function(a,b,c,d,e,f,h,k,q,w,y,E){YE.call(this,a,b,c,d,e,f,h,k,q,w,y,E);this._tooltipComponent=ZE};U($E,YE);
$E.\u0275fac=function(a){return new (a||$E)(F(RA),F(nd),F(sA),F(Wf),F(ef),F(yy),F(Sz),F(Iz),F(jwb),F(hA,8),F(lwb,8),F(ii))};$E.\u0275dir=v({type:$E,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[gf]});var aF=function(a,b){this._changeDetectorRef=a;this._visibility="initial";this._isVisible=this._closeOnInteraction=!1;this._onHide=new T.Subject;this._animationsDisabled="NoopAnimations"===b};g=aF.prototype;
g.show=function(a){var b=this;clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};g.hide=function(a){var b=this;clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};g.isVisible=function(){return this._isVisible};
g.ngOnDestroy=function(){clearTimeout(this._showTimeoutId);clearTimeout(this._hideTimeoutId);this._onHide.complete();this._triggerElement=null};g._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};g._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||this.hide(this._mouseLeaveHideDelay)};g._onShow=function(){};
g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};g._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
g._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);(this._isVisible=a)&&!this._animationsDisabled&&"function"===typeof getComputedStyle&&(c=getComputedStyle(b),"0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0);this._animationsDisabled&&(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};
aF.\u0275fac=function(a){return new (a||aF)(F(lx),F(Wv,8))};aF.\u0275dir=v({type:aF});var ZE=function(a,b,c){aF.call(this,a,c);this._breakpointObserver=b;this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)");this._showAnimation="mat-tooltip-show";this._hideAnimation="mat-tooltip-hide"};U(ZE,aF);ZE.\u0275dir=aF.\u0275dir;ZE.\u0275fac=function(a){return new (a||ZE)(F(lx),F(XE),F(Wv,8))};
ZE.\u0275cmp=v({type:ZE,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&Zf(hwb,7);if(a&2){var c;Yf(c=ag())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(a,b){a&1&&K("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&rf("zoom",b.isVisible()?1:null)},features:[gf],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(a,b){a&1&&(G(0,"div",0,1),K("animationend",function(d){return b._handleAnimationEnd(d)}),
Q(2,"async"),P(3),H());if(a&2){var c;sf("mat-tooltip-handset",null==(c=R(2,4,b._isHandset))?null:c.matches);D("ngClass",b.tooltipClass);B(3);Jf(b.message)}},dependencies:[vx,Fx],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],
encapsulation:2,changeDetection:0});
var mwb=["widgetMenuTrigger"],nwb=["snoozeMenuTrigger"],owb=new Map([[0,{svgIcon:"g3c-widget-add",styleClass:"blue"}],[1,{svgIcon:"g3c-widget-pin-outlined",styleClass:"blue"}],[2,{svgIcon:"g3c-widget-schedule-outlined",styleClass:"orange"}],[3,{svgIcon:"g3c-widget-archive-outlined",styleClass:"red"}],[5,{svgIcon:"g3c-widget-notifications-off-outlined",styleClass:"purple"}]]),bF=function(a){this.dialog=a;this.destroyed$=new T.Subject;this.TaskStatus=erb;this.G3cWidgetFeatureTooltips=grb;this.G3cWidgetUserActionType=
frb;this.snoozeUntilMsInternal=0;this.shouldShowAddToG3cButton=!1;this.pinnedTasksCount=0;this.menuXPosition="before";this.featureHighlightingEnabled=this.skipTasksActions=!1;this.customWidgetClass="";this.updateTaskStatus=new Iw;this.addTaskByUrl=new Iw;this.widgetMenuOpen=new Iw;this.openInG3cClicked=new Iw;this.featureTooltipActioned=new Iw};bF.prototype.ngOnDestroy=function(){this.destroyed$.complete()};bF.prototype.stopPropagation=function(a){a.stopPropagation()};
var xi=function(a,b,c){a.updateTaskStatus.emit({taskStatus:b,snoozeUntilMs:void 0===c?0:c})};bF.prototype.emitWidgetMenuOpen=function(){this.widgetMenuOpen.emit()};bF.prototype.emitOpenInG3cClicked=function(){this.openInG3cClicked.emit()};
var zi=function(a,b){if(isNaN(b.getTime()))throw Error("Tb");xi(a,2,b.getTime())},pwb=function(a){try{a.snoozeMenuTrigger.closeMenu();var b=new kC,c=new kC;c.add(new no("d",1));var d=ama(a.dialog,{minDate:b,initialDate:c,initialTime:"08:00"});d._afterClosed.pipe(Oe(),Ye(a.destroyed$)).subscribe(function(e){e&&xi(a,2,e)});d.keydownEvents().pipe(Ye(a.destroyed$)).subscribe(function(e){e.stopPropagation()})}catch(e){}},cF=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
ki.Object.defineProperties(bF.prototype,{task:{configurable:!0,enumerable:!0,set:function(a){a?(this.taskStatusInternal=a.taskStatus,this.shouldShowAddToG3cButton=0===a.taskStatus,this.snoozeUntilMsInternal=a.snoozeUntilMs):this.taskStatusInternal=void 0}},tooltipDescription:{configurable:!0,enumerable:!0,get:function(){try{return 2===this.taskStatusInternal?0===this.snoozeUntilMsInternal?"":(2592E6<=this.snoozeUntilMsInternal-Date.now()?"Unsnooze on":"Unsnooze")+" "+cma(this.snoozeUntilMsInternal,
this.now.getTime()):this.pinnedTasksCount+" pinned tasks"}catch(a){return""}}},subscriptIconStyleClass:{configurable:!0,enumerable:!0,get:function(){if(!this.taskStatusInternal)return"";try{return owb.get(this.taskStatusInternal).styleClass}catch(a){return""}}},subscriptIcon:{configurable:!0,enumerable:!0,get:function(){if(!this.taskStatusInternal)return"";try{return owb.get(this.taskStatusInternal).svgIcon}catch(a){return""}}},now:{configurable:!0,enumerable:!0,get:function(){return new kC}},laterToday:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;12<=a.getHours()?a.add(new no("h",3)):cF(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new no("d",1));cF(a,8);return a}},laterThisWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;if(3<a.getDay())return this.nextWeek;a.add(new no("d",2));cF(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);cF(a,8);return a}},aMonthFromNow:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;a.add(new no("d",30));cF(a,8);return a}}});bF.\u0275fac=function(a){return new (a||bF)(F(HB))};
bF.\u0275cmp=v({type:bF,selectors:[["g3c-widget"]],viewQuery:function(a,b){a&1&&(Zf(mwb,5,TE),Zf(nwb,5,TE));if(a&2){var c;Yf(c=ag())&&(b.widgetMenuTrigger=c.first);Yf(c=ag())&&(b.snoozeMenuTrigger=c.first)}},inputs:{pinnedTasksCount:"pinnedTasksCount",task:"task",menuXPosition:"menuXPosition",skipTasksActions:"skipTasksActions",featureHighlightingEnabled:"featureHighlightingEnabled",customWidgetClass:"customWidgetClass"},outputs:{updateTaskStatus:"updateTaskStatus",addTaskByUrl:"addTaskByUrl",widgetMenuOpen:"widgetMenuOpen",
openInG3cClicked:"openInG3cClicked",featureTooltipActioned:"featureTooltipActioned"},decls:49,vars:33,consts:[["mat-button","","color","primary",1,"widget-menu-trigger",3,"ngClass","matMenuTriggerFor","matTooltip","onedevFeatureTooltip","onedevTooltipDismisser","click"],["widgetMenuTrigger",""],["class","logo","svgIcon","g3c-console-logo-outlined",4,"ngIf"],[4,"ngIf"],[1,"logo-title"],["svgIcon","g3c-widget-arrow-drop-down",1,"g3c-widget-arrow-drop-down"],["mat-button","","aria-hidden","true",1,"invisible-trigger",
3,"matMenuTriggerFor"],["snoozeMenuTrigger",""],[1,"widget-menu",3,"xPosition"],["widgetMenu","matMenu"],["mat-menu-item","","href","https://g3c.corp.google.com/","target","_blank",1,"g3c-link",3,"click"],["svgIcon","g3c-widget-open-in-new",1,"open-g3c-in-new"],[1,"snooze-menu",3,"xPosition"],["snoozeMenu","matMenu"],["mat-menu-item","",1,"snooze-title",3,"disableRipple","click"],[1,"snooze-list"],["mat-menu-item","",3,"click"],[1,"snooze-date"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"snooze-bottom"],
["mat-menu-item","",1,"datetime-picker-button",3,"click"],["svgIcon","g3c-widget-schedule",1,"schedule-icon"],["svgIcon","g3c-console-logo-outlined",1,"logo"],[1,"subscript-badge"],[1,"subscript-icon",3,"ngClass","svgIcon"],["mat-menu-item","","class","snooze-until-indicator",3,"disableRipple","click",4,"ngIf"],[1,"action-button-list"],["class","action-button add-to-inbox-button","mat-menu-item","","matTooltip","Add to inbox","aria-label","Add to inbox",3,"click",4,"ngIf"],["mat-menu-item","",1,"action-button",
"pin-button",3,"matTooltip","click"],["svgIcon","g3c-widget-keep",4,"ngIf"],["class","blue","svgIcon","g3c-widget-keep-off",4,"ngIf"],["mat-menu-item","",1,"action-button","snooze-button",3,"matTooltip","click"],["svgIcon","g3c-widget-schedule"],["mat-menu-item","",1,"action-button","archive-button",3,"matTooltip","click"],["svgIcon","g3c-widget-archive",4,"ngIf"],["class","red","svgIcon","g3c-widget-unarchive",4,"ngIf"],["mat-menu-item","",1,"action-button","mute-button",3,"matTooltip","click"],
["svgIcon","g3c-widget-notifications",4,"ngIf"],["class","purple","svgIcon","g3c-widget-notifications-off",4,"ngIf"],["mat-menu-item","",1,"snooze-until-indicator",3,"disableRipple","click"],["mat-menu-item","","matTooltip","Add to inbox","aria-label","Add to inbox",1,"action-button","add-to-inbox-button",3,"click"],["svgIcon","g3c-widget-add"],["svgIcon","g3c-widget-keep"],["svgIcon","g3c-widget-keep-off",1,"blue"],["svgIcon","g3c-widget-archive"],["svgIcon","g3c-widget-unarchive",1,"red"],["svgIcon",
"g3c-widget-notifications"],["svgIcon","g3c-widget-notifications-off",1,"purple"],["svgIcon","g3c-widget-highlight-off"],[3,"tooltipId","beforeShown","dismiss",4,"ngIf"],[3,"tooltipId","beforeShown","dismiss"],["onedevTooltipTitle",""]],template:function(a,b){a&1&&(G(0,"button",0,1),K("click",function(){return b.emitWidgetMenuOpen()}),O(2,Ama,1,0,"mat-icon",2),O(3,Bma,4,1,"ng-container",3),O(4,Cma,3,2,"ng-container",3),G(5,"span",4),P(6,"G3C"),H(),J(7,"mat-icon",5),H(),J(8,"button",6,7),G(10,"mat-menu",
8,9),O(12,Lma,15,18,"ng-container",3),G(13,"a",10),K("click",function(){return b.emitOpenInG3cClicked()}),P(14," Open G3 Console "),J(15,"mat-icon",11),H()(),G(16,"mat-menu",12,13)(18,"span",14),K("click",function(e){return b.stopPropagation(e)}),P(19," Snooze until... "),H(),G(20,"div",15)(21,"button",16),K("click",function(){zi(b,b.laterToday)}),P(22," Later today "),G(23,"span",17),P(24),Q(25,"date"),H()(),G(26,"button",16),K("click",function(){zi(b,b.tomorrow)}),P(27," Tomorrow "),G(28,"span",
17),P(29),Q(30,"date"),H()(),O(31,Mma,5,4,"button",18),G(32,"button",16),K("click",function(){zi(b,b.nextWeek)}),P(33," Next week "),G(34,"span",17),P(35),Q(36,"date"),H()(),G(37,"button",16),K("click",function(){zi(b,b.aMonthFromNow)}),P(38," A month from now "),G(39,"span",17),P(40),Q(41,"date"),H()()(),G(42,"div",19),O(43,Nma,3,0,"button",18),G(44,"button",20),K("click",function(){return pwb(b)}),J(45,"mat-icon",21),G(46,"span"),P(47,"Pick date & time"),H()()()(),O(48,Qma,3,2,"onedev-feature-tooltip-controller",
3));if(a&2){var c=Hf(11),d=Hf(17);D("ngClass",b.customWidgetClass)("matMenuTriggerFor",c)("matTooltip",b.tooltipDescription)("onedevFeatureTooltip",b.skipTasksActions?b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS:b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS)("onedevTooltipDismisser",b.skipTasksActions?b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS:b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS);nf("aria-label",b.pinnedTasksCount+" pinned tasks");B(2);D("ngIf",
!b.skipTasksActions&&void 0===b.taskStatusInternal);B(1);D("ngIf",b.skipTasksActions||b.taskStatusInternal===b.TaskStatus.INCOMING||b.taskStatusInternal===b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(1);D("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal&&b.taskStatusInternal!==b.TaskStatus.INCOMING&&b.taskStatusInternal!==b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(4);D("matMenuTriggerFor",d);B(2);D("xPosition",b.menuXPosition);B(2);D("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal);B(4);
D("xPosition",b.menuXPosition);B(2);D("disableRipple",!0);B(6);Jf(Rf(25,21,b.laterToday,"EEE, MMM d, h:mm a"));B(5);Jf(Rf(30,24,b.tomorrow,"EEE, MMM d, h:mm a"));B(2);D("ngIf",b.laterThisWeek.getTime()!==b.nextWeek.getTime());B(4);Jf(Rf(36,27,b.nextWeek,"EEE, MMM d, h:mm a"));B(5);Jf(Rf(41,30,b.aMonthFromNow,"EEE, MMM d, h:mm a"));B(3);D("ngIf",b.taskStatusInternal===b.TaskStatus.SNOOZED);B(5);D("ngIf",b.featureHighlightingEnabled)}},dependencies:[vx,sx,wC,rE,uE,vE,wE,pB,LE,QE,OE,TE,$E,Ix],styles:["[_nghost-%COMP%]{position:relative}  .snooze-menu.mat-menu-panel{max-width:295px;width:295px}.widget-menu-trigger[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0}.logo[_ngcontent-%COMP%]{position:relative}.logo[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0}.logo-title[_ngcontent-%COMP%]{margin-left:5px}.subscript-badge[_ngcontent-%COMP%], .subscript-icon[_ngcontent-%COMP%]{bottom:-35%;position:absolute;right:-35%}.subscript-badge[_ngcontent-%COMP%]{background-color:#dadce0;border-radius:50%;color:#202124;font-size:12px;z-index:1}.action-button-list[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.action-button[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 48px;-moz-box-flex:1;-ms-flex:1 1 48px;flex:1 1 48px;height:48px;max-width:48px;min-width:48px;padding:0;text-align:center}.action-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:0}.g3c-link[_ngcontent-%COMP%]{text-align:center}.invisible-trigger[_ngcontent-%COMP%]{bottom:0;left:0;position:absolute;visibility:hidden}.blue[_ngcontent-%COMP%]{color:#1a73e8}.orange[_ngcontent-%COMP%]{color:#e8710a}.red[_ngcontent-%COMP%]{color:#d93025}.purple[_ngcontent-%COMP%]{color:#9334e6}.snooze-title[_ngcontent-%COMP%], .snooze-until-indicator[_ngcontent-%COMP%]{color:#5f6368;cursor:default;display:block;font-weight:500}.snooze-list[_ngcontent-%COMP%]{border-bottom:1px solid #dadce0}.snooze-date[_ngcontent-%COMP%]{color:#5f6368;float:right;font-weight:500}.datetime-picker-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.datetime-picker-button[_ngcontent-%COMP%]   .schedule-icon[_ngcontent-%COMP%]{margin-right:8px}"],
changeDetection:0});
var dF=function(){};dF.\u0275fac=function(a){return new (a||dF)};dF.\u0275mod=rc({type:dF});dF.\u0275inj=fc({imports:[[VA],VA]});
var qwb=Ht(["https://ssl.gstatic.com/devopsconsole/images/tasks/g3c_logo_outlined.svg"]),rwb=Ht(["https://www.gstatic.com/images/icons/material/system_gm/svg/","_24px.svg"]),swb=Ht(["https://www.gstatic.com/images/icons/material/system/svg/","_24px.svg"]),twb=Ht(["https://ssl.gstatic.com/devopsconsole/images/tasks/",".svg"]),uwb="add arrow_drop_down highlight_off keep keep_off notifications_off open_in_new schedule".split(" "),vwb=["archive","notifications","unarchive"],wwb=["archive_outlined","pin_outlined",
"notifications_off_outlined","schedule_outlined"],eF=function(a){this.iconRegistry=a;this.isMatIconRegistered=!1};eF.\u0275fac=function(a){return new (a||eF)(t(KE))};eF.\u0275prov=ec({token:eF,factory:eF.\u0275fac,providedIn:"root"});
var xwb=new jd("g3cWidgetTaskManagementServicePromiseClient"),ywb=new jd("g3cWidgetUserPrefsServicePromiseClient"),fF=new jd("g3cWidgetServiceConfig");
var Rk=function(a){Z.call(this,a)};U(Rk,Z);g=Rk.prototype;g.getYear=function(){return dj(this,1)};g.setYear=function(a){return Sk(this,1,a)};g.getMonth=function(){return dj(this,2)};g.setMonth=function(a){return Sk(this,2,a)};g.getDay=function(){return dj(this,3)};g.toObject=function(){return gF(void 0,this)};var gF=function(a,b){if(null!=b){var c={year:dj(b,1),month:dj(b,2),day:dj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var hF=function(a){Z.call(this,a)};U(hF,Z);hF.prototype.getDueDate=function(){return wl(this,Rk,1,zwb)};var zwb=[1,2];hF.prototype.toObject=function(){return Awb(void 0,this)};var Awb=function(a,b){if(null!=b){var c={dueDate:gF(a,b.getDueDate()),dueTimeMs:n(Or(b,2,zwb)),dueType:X(b,3,0)};a&&(c.$jspbMessageInstance=b);return c}};
var iF=function(a){Z.call(this,a)};U(iF,Z);iF.prototype.getTaskStatus=function(){return X(this,1,0)};iF.prototype.setTaskStatus=function(a){return ql(this,1,a)};iF.prototype.toObject=function(){return Bwb(void 0,this)};var Bwb=function(a,b){if(null!=b){var c={taskStatus:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Cwb=function(a){Z.call(this,a)};U(Cwb,Z);g=Cwb.prototype;g.getId=function(){return dj(this,1)};g.setId=function(a){return Sk(this,1,a)};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return tl(this,2,a)};g.toObject=function(){return Dwb(void 0,this)};var Dwb=function(a,b){if(null!=b){var c={id:dj(b,1),label:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Ewb=function(a){Z.call(this,a)};U(Ewb,Z);g=Ewb.prototype;g.getId=function(){return dj(this,2)};g.setId=function(a){return Sk(this,2,a)};g.getLabel=function(){return V(this,3)};g.setLabel=function(a){return tl(this,3,a)};g.toObject=function(){return Fwb(void 0,this)};var Fwb=function(a,b){if(null!=b){var c={deprecated:W(b,1),id:dj(b,2),label:V(b,3),helpText:V(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Gwb=function(a){Z.call(this,a)};U(Gwb,Z);g=Gwb.prototype;g.getId=function(){return kj(this,1)};g.setId=function(a){lb(this);null!=a&&0!==+a?l(this,1,a):mb(this,1);return this};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return tl(this,2,a)};g.getTeamId=function(){return dj(this,3)};g.setTeamId=function(a){return Sk(this,3,a)};g.toObject=function(){return Hwb(void 0,this)};
var Hwb=function(a,b){if(null!=b){var c={id:kj(b,1),label:V(b,2),teamId:dj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var jF=function(a){Z.call(this,a,-1,Iwb)};U(jF,Z);g=jF.prototype;g.getId=function(){return dj(this,1)};g.setId=function(a){return Sk(this,1,a)};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return tl(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return ql(this,3,a)};g.getOwner=function(){return W(this,9)};g.setOwner=function(a){return ko(this,9,a)};g.getOptionsList=function(){return rb(this,Ewb,16)};g.setOptionsList=function(a){return zb(this,16,a)};
var Iwb=[16],Jwb=[5,6];jF.prototype.toObject=function(){return Kwb(void 0,this)};
var Kwb=function(a,b){if(null!=b){var c={id:dj(b,1),label:V(b,2),type:X(b,3,0),helpText:V(b,4),productArea:Hwb(a,wl(b,Gwb,5,Jwb)),approverDefinition:Dwb(a,wl(b,Cwb,6,Jwb)),doNotCopy:W(b,7),pdaRelated:W(b,8),owner:W(b,9),mcrRelated:W(b,10),eventsRelated:W(b,11),brandingRelated:W(b,12),securityRelated:W(b,13),marketingPdaRelated:W(b,14),alwaysEditable:W(b,15),onlyConfigurableByAdmins:W(b,17),isConfigurationAttribute:W(b,18),emptySetNotValid:W(b,19),optionsList:Bb(b.getOptionsList(),Fwb,a)};a&&(c.$jspbMessageInstance=
b);return c}};
var kF=function(a){Z.call(this,a)};U(kF,Z);kF.prototype.getYear=function(){return dj(this,1)};kF.prototype.setYear=function(a){return Sk(this,1,a)};kF.prototype.toObject=function(){return Lwb(void 0,this)};var Lwb=function(a,b){if(null!=b){var c={year:dj(b,1),number:dj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Mwb=function(a){Z.call(this,a)};U(Mwb,Z);var Nwb=[1,2,3];Mwb.prototype.toObject=function(){return Owb(void 0,this)};var Owb=function(a,b){if(null!=b){var c={specificDate:gF(a,wl(b,Rk,1,Nwb)),quarter:Lwb(a,wl(b,kF,2,Nwb)),toBeDetermined:n(Ro(b,qb(b,Nwb,3)))};a&&(c.$jspbMessageInstance=b);return c}};
var lF=function(a){Z.call(this,a)};U(lF,Z);lF.prototype.getTypeName=function(){return V(this,1).split("/").pop()};lF.prototype.getValue=function(){if(Array.isArray(p(this,2)))throw Error("P");return Lm(this,2)};lF.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=l(this,2,ib(a));else if("string"===typeof a||a instanceof Pa||Ia(a))a=vu(this,2,a);else throw Error("Q`"+a);return a};lF.prototype.toObject=function(){return Pwb(void 0,this)};
var Pwb=function(a,b){if(null!=b){var c={typeUrl:V(b,1),value:oba(b)};a&&(c.$jspbMessageInstance=b);return c}};
var mF=function(a){Z.call(this,a,-1,Qwb)};U(mF,Z);g=mF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return tl(this,1,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ql(this,3,a)};g.getVersion=function(){return dj(this,5)};g.setVersion=function(a){return Sk(this,5,a)};g.setOwnedByMe=function(a){return ko(this,7,a)};var nF=function(a){Z.call(this,a,-1,Rwb)};U(nF,Z);nF.prototype.getLabel=function(){return V(this,1)};
nF.prototype.setLabel=function(a){return tl(this,1,a)};var oF=function(a){Z.call(this,a)};U(oF,Z);oF.prototype.getValue=function(){return m(this,lF,2)};oF.prototype.setValue=function(a){return Ab(this,2,a)};oF.prototype.hasValue=function(){return cj(this,2)};var Qwb=[4,6];mF.prototype.toObject=function(){return Swb(void 0,this)};
var Swb=function(a,b){if(null!=b){var c={description:V(b,1),launchDate:Owb(a,m(b,Mwb,2)),status:X(b,3,0),approversList:Bb(rb(b,nF,4),Twb,a),version:dj(b,5),attributesList:Bb(rb(b,oF,6),Uwb,a),ownedByMe:W(b,7),needBitApprovalFromMe:W(b,8),creatorEmail:V(b,9)};a&&(c.$jspbMessageInstance=b);return c}},Rwb=[3];nF.prototype.toObject=function(){return Twb(void 0,this)};var Twb=function(a,b){if(null!=b){var c={label:V(b,1),approvalStatus:X(b,2,0),ownersList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
oF.prototype.toObject=function(){return Uwb(void 0,this)};var Uwb=function(a,b){if(null!=b){var c={definition:Kwb(a,m(b,jF,1)),value:Pwb(a,b.getValue())};a&&(c.$jspbMessageInstance=b);return c}};
var pF=function(a){Z.call(this,a)};U(pF,Z);pF.prototype.getAccessLevel=function(){return X(this,1,0)};pF.prototype.setAccessLevel=function(a){ql(this,1,a)};pF.prototype.toObject=function(){return Vwb(void 0,this)};var Vwb=function(a,b){if(null!=b){var c={accessLevel:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var qF=function(a){Z.call(this,a,-1,Wwb)};U(qF,Z);g=qF.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return ql(this,1,a)};g.getPriority=function(){return X(this,2,0)};g.setPriority=function(a){return ql(this,2,a)};g.getSeverity=function(){return X(this,3,0)};g.setSeverity=function(a){return ql(this,3,a)};g.getStatus=function(){return X(this,4,0)};g.setStatus=function(a){return ql(this,4,a)};g.getSloStatus=function(){return m(this,rF,20)};
g.setSloStatus=function(a){Ab(this,20,a)};g.getComponentId=function(){return dj(this,11)};g.setComponentId=function(a){return Sk(this,11,a)};g.getVersion=function(){return dj(this,16)};g.setVersion=function(a){return Sk(this,16,a)};g.getAccessLimit=function(){return m(this,pF,21)};g.setAccessLimit=function(a){return Ab(this,21,a)};g.getCommentsList=function(){return rb(this,sF,10)};var sF=function(a){Z.call(this,a)};U(sF,Z);g=sF.prototype;g.getContent=function(){return V(this,1)};
g.setContent=function(a){tl(this,1,a)};g.getCommentNumber=function(){return dj(this,4)};g.setCommentNumber=function(a){return Sk(this,4,a)};g.getFormattingMode=function(){return X(this,5,0)};g.setFormattingMode=function(a){return ql(this,5,a)};var rF=function(a){Z.call(this,a)};U(rF,Z);g=rF.prototype;g.getAssignmentBounds=function(){return m(this,tF,1)};g.setAssignmentBounds=function(a){Ab(this,1,a)};g.hasAssignmentBounds=function(){return cj(this,1)};
g.getResponseBounds=function(){return m(this,tF,2)};g.setResponseBounds=function(a){Ab(this,2,a)};g.hasResponseBounds=function(){return cj(this,2)};g.getClosureBounds=function(){return m(this,tF,3)};g.setClosureBounds=function(a){Ab(this,3,a)};g.hasClosureBounds=function(){return cj(this,3)};var tF=function(a){Z.call(this,a)};U(tF,Z);var Wwb=[7,10];qF.prototype.toObject=function(){return Xwb(void 0,this)};
var Xwb=function(a,b){if(null!=b){var c={type:X(b,1,0),priority:X(b,2,0),severity:X(b,3,0),status:X(b,4,0),sloStatus:Ywb(a,b.getSloStatus()),reporterEmail:V(b,5),assigneeEmail:V(b,6),verifierEmail:V(b,14),ccEmailsList:n(jb(b,7)),isStarred:W(b,8),lastModifiedByUserEmail:V(b,9),componentId:dj(b,11),canonicalIssueId:dj(b,18),version:dj(b,16),majorModifiedTimestampMs:dj(b,19),reportedByMe:W(b,12),assignedToMe:W(b,13),ccIncludesMe:W(b,17),bugjugglerInCcList:W(b,15),accessLimit:Vwb(a,b.getAccessLimit()),
commentsList:Bb(b.getCommentsList(),Zwb,a)};a&&(c.$jspbMessageInstance=b);return c}};sF.prototype.toObject=function(){return Zwb(void 0,this)};var Zwb=function(a,b){if(null!=b){var c={content:V(b,1),authorEmail:V(b,2),modifiedTimestamp:dj(b,3),commentNumber:dj(b,4),formattingMode:X(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}};rF.prototype.toObject=function(){return Ywb(void 0,this)};
var Ywb=function(a,b){if(null!=b){var c={assignmentBounds:uF(a,b.getAssignmentBounds()),responseBounds:uF(a,b.getResponseBounds()),closureBounds:uF(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};tF.prototype.toObject=function(){return uF(void 0,this)};var uF=function(a,b){if(null!=b){var c={startTimeMs:dj(b,1),endTimeMs:dj(b,2),targetTimeMs:dj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var vF=function(a){Z.call(this,a,-1,$wb)};U(vF,Z);g=vF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return tl(this,1,a)};g.getCategory=function(){return X(this,2,0)};g.setCategory=function(a){ql(this,2,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ql(this,3,a)};g.getCommentsList=function(){return rb(this,wF,7)};var xF=function(a){Z.call(this,a,-1,axb)};U(xF,Z);xF.prototype.getType=function(){return X(this,1,0)};
xF.prototype.setType=function(a){return ql(this,1,a)};xF.prototype.getState=function(){return X(this,5,0)};var wF=function(a){Z.call(this,a,-1,bxb)};U(wF,Z);wF.prototype.getContent=function(){return V(this,3)};wF.prototype.setContent=function(a){tl(this,3,a)};wF.prototype.getRepliesList=function(){return rb(this,yF,5)};var yF=function(a){Z.call(this,a)};U(yF,Z);yF.prototype.getContent=function(){return V(this,4)};yF.prototype.setContent=function(a){tl(this,4,a)};var $wb=[5,6,7,11,17,13,14];
vF.prototype.toObject=function(){return cxb(void 0,this)};
var cxb=function(a,b){if(null!=b){var c={description:V(b,1),descriptionUsesMarkdown:W(b,16),category:X(b,2,0),status:X(b,3,0),isStarred:W(b,4),approvalStatesList:Bb(rb(b,xF,5),dxb,a),reviewerEmailsList:n(jb(b,6)),commentsList:Bb(b.getCommentsList(),exb,a),externalLinkToCider:V(b,8),needsAttentionFromReviewer:W(b,9),authorEmail:V(b,10),ccEmailsList:n(jb(b,11)),needsAttention:W(b,12),attentionSetUsersList:n(jb(b,17)),bugsList:n(jb(b,13)),fixedBugsList:n(jb(b,14)),workspaceName:V(b,15),changeSize:X(b,
18,0)};a&&(c.$jspbMessageInstance=b);return c}},axb=[3];xF.prototype.toObject=function(){return dxb(void 0,this)};var dxb=function(a,b){if(null!=b){var c={type:X(b,1,0),approverEmailsList:n(jb(b,3)),reasonMessage:V(b,4),state:X(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}},bxb=[5];wF.prototype.toObject=function(){return exb(void 0,this)};
var exb=function(a,b){if(null!=b){var c={publishTimestamp:dj(b,1),authorEmail:V(b,2),content:V(b,3),resolved:W(b,4),repliesList:Bb(b.getRepliesList(),fxb,a),externalLink:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};yF.prototype.toObject=function(){return fxb(void 0,this)};var fxb=function(a,b){if(null!=b){var c={publishTimestamp:dj(b,2),authorEmail:V(b,3),content:V(b,4),resolved:W(b,8)};a&&(c.$jspbMessageInstance=b);return c}};
var zF=function(a){Z.call(this,a,-1,gxb)};U(zF,Z);zF.prototype.setOwnedByMe=function(a){return ko(this,3,a)};zF.prototype.getMimeType=function(){return V(this,15)};zF.prototype.setMimeType=function(a){tl(this,15,a)};zF.prototype.getCommentsList=function(){return rb(this,AF,6)};var AF=function(a){Z.call(this,a,-1,hxb)};U(AF,Z);g=AF.prototype;g.getCommentId=function(){return V(this,1)};g.getContent=function(){return V(this,8)};g.setContent=function(a){tl(this,8,a)};
g.getRepliesList=function(){return rb(this,BF,14)};g.getDueDate=function(){return m(this,Rk,18)};var BF=function(a){Z.call(this,a)};U(BF,Z);BF.prototype.getContent=function(){return V(this,3)};BF.prototype.setContent=function(a){tl(this,3,a)};var gxb=[17,6];zF.prototype.toObject=function(){return ixb(void 0,this)};
var ixb=function(a,b){if(null!=b){var c={createdTimestamp:dj(b,1),createdByMe:W(b,2),ownedByMe:W(b,3),recentlySharedWithMe:W(b,8),sharedWithMeTimestamp:dj(b,4),sharedToMe:W(b,14),sharedToMyGroups:W(b,18),sharedToMyTeamDrive:W(b,19),actionItemsChecksum:V(b,5),mimeType:V(b,15),teamDriveId:V(b,16),parentIdsList:n(jb(b,17)),openCommentsCount:dj(b,21),commentsAssignedToMeCount:dj(b,22),commentsMentioningMeCount:dj(b,23),suggestionsCount:dj(b,24),isDocwrapIncoming:W(b,25),isDocwrapOutgoing:W(b,26),commentsList:Bb(b.getCommentsList(),
jxb,a),lastCommentedTimestamp:dj(b,7),lastCommentedByGaiaId:dj(b,20),isStarred:W(b,9),ownerEmail:V(b,10),creatorEmail:V(b,11),lastModifiedByUserEmail:V(b,12),lastCommentedByUserDisplayName:V(b,13)};a&&(c.$jspbMessageInstance=b);return c}},hxb=[14];AF.prototype.toObject=function(){return jxb(void 0,this)};
var jxb=function(a,b){if(null!=b){var c={commentId:V(b,1),assignedToMe:W(b,2),mentioningMe:W(b,3),isSuggestion:W(b,4),commentStatus:X(b,5,0),authorDisplayName:V(b,6),authorPhotoLink:V(b,7),content:V(b,8),prependQuotedContent:V(b,9),quotedContent:V(b,10),appendQuotedContent:V(b,11),externalLink:V(b,12),modifiedTimestamp:dj(b,13),repliesList:Bb(b.getRepliesList(),kxb,a),isDocwrapComment:W(b,15),assignedToMeTimestampMs:dj(b,16),mentioningMeTimestampMs:dj(b,17),dueDate:gF(a,b.getDueDate())};a&&(c.$jspbMessageInstance=
b);return c}};BF.prototype.toObject=function(){return kxb(void 0,this)};var kxb=function(a,b){if(null!=b){var c={authorDisplayName:V(b,1),authorPhotoLink:V(b,2),content:V(b,3),externalLink:V(b,4),modifiedTimestamp:dj(b,5),action:X(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};
var mxb=function(a){Z.call(this,a,-1,lxb)};U(mxb,Z);var CF=function(a){Z.call(this,a)};U(CF,Z);CF.prototype.getTitle=function(){return V(this,2)};CF.prototype.setTitle=function(a){return tl(this,2,a)};var DF=function(a){Z.call(this,a)};U(DF,Z);DF.prototype.getId=function(){return V(this,1)};DF.prototype.setId=function(a){return tl(this,1,a)};DF.prototype.getTitle=function(){return V(this,2)};DF.prototype.setTitle=function(a){return tl(this,2,a)};var lxb=[5];
mxb.prototype.toObject=function(){return nxb(void 0,this)};var nxb=function(a,b){if(null!=b){var c={isCompleted:W(b,4),details:V(b,1),dueDateTimestamp:dj(b,2),emailLink:V(b,3),subtasksList:Bb(rb(b,CF,5),oxb,a),isNewTask:W(b,7),taskList:pxb(a,m(b,DF,8))};a&&(c.$jspbMessageInstance=b);return c}};CF.prototype.toObject=function(){return oxb(void 0,this)};
var oxb=function(a,b){if(null!=b){var c={gtaskId:V(b,1),title:V(b,2),isCompleted:W(b,3),details:V(b,4),dueDateTimestamp:dj(b,5)};a&&(c.$jspbMessageInstance=b);return c}};DF.prototype.toObject=function(){return pxb(void 0,this)};var pxb=function(a,b){if(null!=b){var c={id:V(b,1),title:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var EF=function(a){Z.call(this,a)};U(EF,Z);EF.prototype.getMembership=function(){return wl(this,FF,2,qxb)};var GF=function(a){Z.call(this,a,-1,rxb)};U(GF,Z);GF.prototype.getOriginal=function(){return m(this,HF,2)};GF.prototype.getState=function(){return X(this,6,0)};var IF=function(a){Z.call(this,a)};U(IF,Z);IF.prototype.getState=function(){return X(this,1,0)};var FF=function(a){Z.call(this,a)};U(FF,Z);FF.prototype.getParentId=function(){return dj(this,11)};
FF.prototype.setParentId=function(a){Sk(this,11,a)};var HF=function(a){Z.call(this,a)};U(HF,Z);HF.prototype.getMembership=function(){return wl(this,FF,1,sxb)};var qxb=[1,2];EF.prototype.toObject=function(){return txb(void 0,this)};var txb=function(a,b){if(null!=b){var c={proposal:uxb(a,wl(b,GF,1,qxb)),membership:vxb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}},rxb=[7];GF.prototype.toObject=function(){return uxb(void 0,this)};
var uxb=function(a,b){if(null!=b){var c={upsert:wxb(a,m(b,HF,1)),original:wxb(a,b.getOriginal()),changeType:X(b,3,0),createTimeMs:dj(b,4),state:X(b,6,0),proposalUpdatesList:Bb(rb(b,IF,7),xxb,a)};a&&(c.$jspbMessageInstance=b);return c}};IF.prototype.toObject=function(){return xxb(void 0,this)};var xxb=function(a,b){if(null!=b){var c={state:X(b,1,0),updaterId:dj(b,2),updaterName:V(b,3),updaterEmail:V(b,4),updateTimeMs:dj(b,5),updateReason:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
FF.prototype.toObject=function(){return vxb(void 0,this)};var vxb=function(a,b){if(null!=b){var c={membershipId:dj(b,1),childId:dj(b,10),childName:V(b,2),childEmail:V(b,3),parentId:dj(b,11),parentName:V(b,4),parentEmail:V(b,5),createTimeMs:dj(b,6),expireTimeMs:dj(b,7),membershipType:X(b,8,0),getEmail:W(b,9)};a&&(c.$jspbMessageInstance=b);return c}},sxb=[1];HF.prototype.toObject=function(){return wxb(void 0,this)};
var wxb=function(a,b){if(null!=b){var c={membership:vxb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}};
var JF=function(a){Z.call(this,a,-1,yxb)};U(JF,Z);g=JF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return tl(this,1,a)};g.getCategory=function(){return X(this,15,0)};g.setCategory=function(a){ql(this,15,a)};g.setHost=function(a){return tl(this,8,a)};g.getCommentsList=function(){return rb(this,KF,14)};var Axb=function(a){Z.call(this,a,-1,zxb)};U(Axb,Z);var LF=function(a){Z.call(this,a)};U(LF,Z);LF.prototype.getValue=function(){return dj(this,1)};
LF.prototype.setValue=function(a){return Sk(this,1,a)};var KF=function(a){Z.call(this,a)};U(KF,Z);KF.prototype.getCommentId=function(){return V(this,1)};KF.prototype.getMessage=function(){return V(this,2)};var yxb=[3,6,7,17,12,14];JF.prototype.toObject=function(){return Bxb(void 0,this)};
var Bxb=function(a,b){if(null!=b){var c={description:V(b,1),category:X(b,15,0),ownerEmail:V(b,2),statusesList:n(jb(b,3)),submittable:W(b,4),assigneeEmail:V(b,5),reviewerEmailsList:n(jb(b,6)),ccEmailsList:n(jb(b,7)),attentionSetEmailsList:n(jb(b,17)),needsAttention:W(b,18),host:V(b,8),project:V(b,9),branch:V(b,10),changeSize:X(b,11,0),labelApprovalStatesList:Bb(rb(b,Axb,12),Cxb,a),isStarred:W(b,13),commentsList:Bb(b.getCommentsList(),Dxb,a),hostRepoBranchLink:V(b,16)};a&&(c.$jspbMessageInstance=b);
return c}},zxb=[2];Axb.prototype.toObject=function(){return Cxb(void 0,this)};var Cxb=function(a,b){if(null!=b){var c={labelName:V(b,1),votesList:Bb(rb(b,LF,2),Exb,a),minVoteValue:dj(b,3),maxVoteValue:dj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};LF.prototype.toObject=function(){return Exb(void 0,this)};var Exb=function(a,b){if(null!=b){var c={value:dj(b,1),voterEmail:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};KF.prototype.toObject=function(){return Dxb(void 0,this)};
var Dxb=function(a,b){if(null!=b){var c={commentId:V(b,1),message:V(b,2),authorEmail:V(b,3),updatedTimeMs:dj(b,4),unresolved:W(b,5),inReplyTo:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
var MF=function(a){Z.call(this,a,-1,Fxb)};U(MF,Z);g=MF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return tl(this,1,a)};g.getStatus=function(){return X(this,2,0)};g.setStatus=function(a){return ql(this,2,a)};g.getPriority=function(){return X(this,3,0)};g.setPriority=function(a){return ql(this,3,a)};g.getDueDate=function(){return m(this,Rk,13)};var Hxb=function(a){Z.call(this,a,-1,Gxb)};U(Hxb,Z);var NF=function(a){Z.call(this,a)};U(NF,Z);
NF.prototype.getDescription=function(){return V(this,3)};NF.prototype.setDescription=function(a){return tl(this,3,a)};var Fxb=[6];MF.prototype.toObject=function(){return Ixb(void 0,this)};
var Ixb=function(a,b){if(null!=b){var c={description:V(b,1),status:X(b,2,0),priority:X(b,3,0),assigneeEmail:V(b,4),requesterEmail:V(b,5),ccEmailsList:n(jb(b,6)),ticketType:V(b,7),worklog:Jxb(a,m(b,Hxb,8)),requestedByMe:W(b,9),assignedToMe:W(b,10),myApprovalNeeded:W(b,11),ccIncludesMe:W(b,12),dueDate:gF(a,b.getDueDate())};a&&(c.$jspbMessageInstance=b);return c}},Gxb=[1];Hxb.prototype.toObject=function(){return Jxb(void 0,this)};
var Jxb=function(a,b){if(null!=b){var c={entriesList:Bb(rb(b,NF,1),Kxb,a)};a&&(c.$jspbMessageInstance=b);return c}};NF.prototype.toObject=function(){return Kxb(void 0,this)};var Kxb=function(a,b){if(null!=b){var c={eventLogTimestamp:Pu(a,m(b,rj,1)),updaterEmail:V(b,2),description:V(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var OF=function(a){Z.call(this,a,-1,Lxb)};U(OF,Z);OF.prototype.getTaskStatus=function(){return X(this,3,0)};OF.prototype.setTaskStatus=function(a){return ql(this,3,a)};var PF=function(a){Z.call(this,a,-1,Mxb)};U(PF,Z);g=PF.prototype;g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ql(this,3,a)};g.getPriority=function(){return X(this,4,0)};g.setPriority=function(a){return ql(this,4,a)};g.getDescription=function(){return V(this,10)};
g.setDescription=function(a){return tl(this,10,a)};var Lxb=[2],Nxb=[101];OF.prototype.toObject=function(){return Oxb(void 0,this)};var Oxb=function(a,b){if(null!=b){var c={ownerEmail:V(b,1),attentionSetList:n(jb(b,2)),taskStatus:X(b,3,0),referenceName:V(b,4),needsAttention:W(b,5),trackable:Pxb(a,wl(b,PF,101,Nxb))};a&&(c.$jspbMessageInstance=b);return c}},Mxb=[7,8,11];PF.prototype.toObject=function(){return Pxb(void 0,this)};
var Pxb=function(a,b){if(null!=b){var c={productName:V(b,1),productLink:V(b,2),status:X(b,3,0),priority:X(b,4,0),resolveDeadline:Pu(a,m(b,rj,5)),creatorEmail:V(b,6),productEmailsList:n(jb(b,7)),privacyEmailsList:n(jb(b,8)),autoCreated:W(b,9),description:V(b,10),descriptionUsesMarkdown:W(b,13),participantEmailsList:n(jb(b,11)),bugId:dj(b,12)};a&&(c.$jspbMessageInstance=b);return c}};
var QF=function(a){Z.call(this,a)};U(QF,Z);g=QF.prototype;g.getResourceId=function(){return V(this,17)};g.setResourceId=function(a){tl(this,17,a)};g.getTitle=function(){return V(this,2)};g.setTitle=function(a){return tl(this,2,a)};g.getLastModifiedTimestamp=function(){return dj(this,3)};g.getIconName=function(){return V(this,10)};g.setIsDeleted=function(a){ko(this,19,a)};var RF=[5,6,7,8,9,18,22,23,24];QF.prototype.toObject=function(){return Qxb(void 0,this)};
var Qxb=function(a,b){if(null!=b){var c={resourceId:V(b,17),taskSource:V(b,1),title:V(b,2),lastModifiedTimestamp:dj(b,3),fingerprint:V(b,4),iconName:V(b,10),itemTypeName:V(b,11),statusDescription:V(b,12),latestAction:V(b,13),latestActionTimestamp:dj(b,14),latestActionByUserEmail:V(b,20),hasDetails:W(b,15),externalLink:V(b,16),isDeleted:W(b,19),driveResource:ixb(a,wl(b,zF,5,RF)),buganizerResource:Xwb(a,wl(b,qF,6,RF)),gtasksResource:nxb(a,wl(b,mxb,7,RF)),critiqueResource:cxb(a,wl(b,vF,8,RF)),arianeResource:Swb(a,
wl(b,mF,9,RF)),gerritResource:Bxb(a,wl(b,JF,18,RF)),ganpatiResource:txb(a,wl(b,EF,22,RF)),gutsResource:Ixb(a,wl(b,MF,23,RF)),privacyResource:Oxb(a,wl(b,OF,24,RF))};a&&(c.$jspbMessageInstance=b);return c}};
var Rxb=function(a){Z.call(this,a)};U(Rxb,Z);g=Rxb.prototype;g.getName=function(){return V(this,1)};g.setName=function(a){return tl(this,1,a)};g.getContent=function(){return V(this,2)};g.setContent=function(a){tl(this,2,a)};g.toObject=function(){return Sxb(void 0,this)};var Sxb=function(a,b){if(null!=b){var c={name:V(b,1),content:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var SF=function(a){Z.call(this,a)};U(SF,Z);g=SF.prototype;g.getTaskId=function(){return V(this,1)};g.setTaskId=function(a){return tl(this,1,a)};g.getTaskStatus=function(){return X(this,3,0)};g.setTaskStatus=function(a){return ql(this,3,a)};g.getResource=function(){return m(this,QF,6)};var Txb=function(a,b){return Sk(a,12,b)};SF.prototype.getNote=function(){return m(this,Rxb,22)};SF.prototype.hasNote=function(){return cj(this,22)};SF.prototype.toObject=function(){return TF(void 0,this)};
var TF=function(a,b){if(null!=b){var c={taskId:V(b,1),gaiaId:dj(b,2),taskStatus:X(b,3,0),naturallyCompleted:W(b,4),hasNoActionItems:W(b,24),naturallyCompletedDescription:V(b,11),priorityOrder:xl(b,5),priorityOrderReservedUpper:xl(b,9),priorityOrderResetTimestampMs:dj(b,16),currentStatusSince:dj(b,10),currentStatusAutoUpdated:W(b,17),resource:Qxb(a,b.getResource()),snoozeUntilMs:dj(b,12),autoUnsnoozeOnUpdate:W(b,18),prevStatusState:Bwb(a,m(b,iF,13)),note:Sxb(a,b.getNote()),readTimestampMs:dj(b,15),
createdTimestamp:dj(b,7),updatedTimestamp:dj(b,8),manuallyAdded:W(b,19),hasNote:W(b,20),dueInfo:Awb(a,m(b,hF,23)),taskStatusRequiresAck:W(b,25),taskStatusRequiresAckReason:V(b,26)};a&&(c.$jspbMessageInstance=b);return c}};
var UF=function(a){Z.call(this,a)};U(UF,Z);UF.prototype.getWorkingHours=function(){return W(this,1)};UF.prototype.toObject=function(){return Uxb(void 0,this)};var Uxb=function(a,b){if(null!=b){var c={workingHours:W(b,1),workingHoursStart:dj(b,2),workingHoursEnd:dj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var VF=function(a){Z.call(this,a)};U(VF,Z);VF.prototype.getAttention=function(){return W(this,2)};VF.prototype.getWorkingHours=function(){return m(this,UF,8)};VF.prototype.toObject=function(){return Vxb(void 0,this)};
var Vxb=function(a,b){if(null!=b){var c={failedMail:W(b,1),attention:W(b,2),ownerAttention:W(b,3),ownerRosieAttention:W(b,4),readyToSubmit:W(b,5),monitoredUserAttention:W(b,6),autoDismiss:W(b,7),workingHours:Uxb(a,b.getWorkingHours()),ignoreArchived:W(b,9)};a&&(c.$jspbMessageInstance=b);return c}};
var Xxb=function(a){Z.call(this,a,-1,Wxb)};U(Xxb,Z);var Wxb=[1];Xxb.prototype.toObject=function(){return Yxb(this)};var Yxb=function(a){if(null!=a)return{critiquePrefsList:Bb(rb(a,VF,1),Vxb)}};
var Zxb=function(a){Z.call(this,a)};U(Zxb,Z);Zxb.prototype.toObject=function(){return $xb(this)};var $xb=function(a){if(null!=a)return{autoArchiveInactive:X(a,1,0),launchDateAsDueDate:X(a,2,0)}};
var ayb=function(a){Z.call(this,a)};U(ayb,Z);ayb.prototype.toObject=function(){return byb(this)};var byb=function(a){if(null!=a)return{autoArchiveClosed:X(a,1,0),sloAsDueDate:X(a,2,0)}};
var cyb=function(a){Z.call(this,a)};U(cyb,Z);cyb.prototype.toObject=function(){return dyb(this)};var dyb=function(a){if(null!=a)return{autoArchiveSubmitted:X(a,1,0),dueAfterReceivingDays:dj(a,2),dueDateEnabled:X(a,3,0)}};
var eyb=function(a){Z.call(this,a)};U(eyb,Z);eyb.prototype.toObject=function(){return fyb(this)};var fyb=function(a){if(null!=a)return{invitationUserAction:X(a,2,0),autoArchiveSelfOwnedAllResolved:X(a,3,0),autoArchiveOthersOwnedAllResolved:X(a,4,0),dueAfterMentionReceivingDays:dj(a,5),dueAfterAssignmentReceivingDays:dj(a,6),mentionDueDateEnabled:X(a,7,0),assignmentDueDateEnabled:X(a,8,0),dueAfterReceivingDays:dj(a,9),dueDateEnabled:X(a,10,0)}};
var gyb=function(a){Z.call(this,a)};U(gyb,Z);gyb.prototype.toObject=function(){return hyb(this)};var hyb=function(a){if(null!=a)return{invitationUserAction:X(a,1,0),unsnoozedTasks:X(a,2,0)}};
var jyb=function(a){Z.call(this,a,-1,iyb)};U(jyb,Z);var iyb=[4];jyb.prototype.toObject=function(){return kyb(this)};var kyb=function(a){if(null!=a)return{invitationUserAction:X(a,1,0),autoArchiveCompleted:X(a,2,0),completeOnArchiveOrMute:X(a,3,0),gtaskTaskListIdsList:n(jb(a,4))}};
var lyb=function(a){Z.call(this,a)};U(lyb,Z);lyb.prototype.toObject=function(){return myb(this)};var myb=function(a){if(null!=a)return{expirationAsDue:X(a,4,0),autoArchiveResolved:X(a,3,0)}};
var oyb=function(a){Z.call(this,a,-1,nyb)};U(oyb,Z);var nyb=[1];oyb.prototype.toObject=function(){return pyb(this)};var pyb=function(a){if(null!=a)return{gerritHostsList:n(jb(a,1)),autoArchiveSubmitted:X(a,2,0),invitationUserAction:X(a,3,0),dueAfterReceivingDays:dj(a,4),dueDateEnabled:X(a,5,0)}};
var qyb=function(a){Z.call(this,a)};U(qyb,Z);qyb.prototype.toObject=function(){return ryb(this)};var ryb=function(a){if(null!=a)return{invitationUserAction:X(a,1,0),autoArchiveClosed:X(a,2,0),dueDateEnabled:X(a,3,0)}};
var syb=function(a){Z.call(this,a)};U(syb,Z);syb.prototype.toObject=function(){return tyb(void 0,this)};var tyb=function(a,b){if(null!=b){var c={orderingOption:X(b,1,0),pinOverdueTasks:X(b,2,0),pinTasksDueInFiveDays:X(b,3,0)};a&&(c.$jspbMessageInstance=b);return c}};
var uyb=function(a){Z.call(this,a)};U(uyb,Z);uyb.prototype.toObject=function(){return vyb(this)};var vyb=function(a){if(null!=a)return{autoArchiveClosed:X(a,1,0),trackableDueDateEnabled:X(a,2,0)}};
var wyb=function(a){Z.call(this,a)};U(wyb,Z);wyb.prototype.toObject=function(){return xyb(this)};var xyb=function(a){if(null!=a)return{filterEnabled:W(a,1),arianeLaunches:X(a,2,0),arianeReviews:X(a,3,0)}};
var yyb=function(a){Z.call(this,a)};U(yyb,Z);yyb.prototype.toObject=function(){return zyb(this)};var zyb=function(a){if(null!=a)return{filterEnabled:W(a,1),assignedToMe:W(a,2),reportedByMe:W(a,3),ccIncludesMe:W(a,6),bugjugglerInCcList:X(a,4,0),other:X(a,5,0)}};
var Ayb=function(a){Z.call(this,a)};U(Ayb,Z);Ayb.prototype.toObject=function(){return Byb(this)};var Byb=function(a){if(null!=a)return{filterEnabled:W(a,1),outgoingReviews:W(a,2),incomingReviews:W(a,3),ccedReviews:W(a,4),inAttentionSet:X(a,5,0),inPending:X(a,7,0),other:X(a,6,0)}};
var Cyb=function(a){Z.call(this,a)};U(Cyb,Z);Cyb.prototype.toObject=function(){return Dyb(this)};
var Dyb=function(a){if(null!=a)return{filterEnabled:W(a,1),includeDocs:W(a,2),includeSlides:W(a,3),includeSheets:W(a,4),includeOtherTypes:W(a,5),commentsWithMentions:W(a,6),commentsWithAssignments:W(a,7),commentsWithSuggestions:W(a,8),filterBySharingAge:W(a,9),maxSharingAgeInDays:dj(a,10),openComments:W(a,11),sharedToMe:X(a,12,0),sharedToMyGroups:X(a,13,0),sharedToMyTeamDrive:X(a,14,0),other:X(a,15,0),incomingDesignReview:X(a,16,0),outgoingDesignReview:X(a,17,0)}};
var Eyb=function(a){Z.call(this,a)};U(Eyb,Z);Eyb.prototype.toObject=function(){return Fyb(this)};var Fyb=function(a){if(null!=a)return{filterEnabled:W(a,1)}};
var Gyb=function(a){Z.call(this,a)};U(Gyb,Z);Gyb.prototype.toObject=function(){return Hyb(this)};var Hyb=function(a){if(null!=a)return{filterEnabled:X(a,1,0)}};
var Iyb=function(a){Z.call(this,a)};U(Iyb,Z);Iyb.prototype.toObject=function(){return Jyb(this)};var Jyb=function(a){if(null!=a)return{filterEnabled:W(a,1),outgoingReviews:X(a,2,0),incomingReviews:X(a,3,0),ccedReviews:X(a,4,0),inAttentionSet:X(a,5,0),other:X(a,6,0)}};
var Kyb=function(a){Z.call(this,a)};U(Kyb,Z);Kyb.prototype.toObject=function(){return Lyb(this)};var Lyb=function(a){if(null!=a)return{filterEnabled:X(a,1,0)}};
var Myb=function(a){Z.call(this,a)};U(Myb,Z);Myb.prototype.toObject=function(){return Nyb(this)};var Nyb=function(a){if(null!=a)return{filterEnabled:X(a,1,0),inAttentionSet:X(a,2,0),other:X(a,3,0)}};
var WF=function(a){Z.call(this,a)};U(WF,Z);WF.prototype.toObject=function(){return XF(this)};var XF=function(a){if(null!=a)return{critiqueFilter:Byb(m(a,Ayb,1)),driveFilter:Dyb(m(a,Cyb,2)),buganizerFilter:zyb(m(a,yyb,3)),arianeFilter:xyb(m(a,wyb,4)),gtasksFilter:Fyb(m(a,Eyb,5)),gerritFilter:Jyb(m(a,Iyb,7)),ganpatiFilter:Hyb(m(a,Gyb,8)),gutsFilter:Lyb(m(a,Kyb,10)),privacyFilter:Nyb(m(a,Myb,11)),taskAgeInDays:dj(a,6),showPrivateNoteOnly:X(a,9,0)}};
var YF=function(a){Z.call(this,a)};U(YF,Z);YF.prototype.toObject=function(){return Oyb(this)};
var Oyb=function(a){if(null!=a){var b=V(a,1),c=$xb(m(a,Zxb,15)),d=byb(m(a,ayb,16)),e=dyb(m(a,cyb,17)),f=fyb(m(a,eyb,3)),h=myb(m(a,lyb,27)),k=pyb(m(a,oyb,23)),q=kyb(m(a,jyb,4)),w=ryb(m(a,qyb,29)),y=vyb(m(a,uyb,32)),E=W(a,5),I=W(a,6),N=W(a,7),L=W(a,8),S=W(a,24),Y=X(a,28,0),ka=W(a,22),ha=W(a,9),ya=W(a,30),Ha=X(a,31,0),Ja=XF(m(a,WF,10)),Ka=XF(m(a,WF,11)),Ma=XF(m(a,WF,12)),hb=XF(m(a,WF,13)),fb=XF(m(a,WF,14)),Lb=V(a,19),ta=dj(a,20),Aa=dj(a,21);var xa=Yi(a,25,syb);return{mostRecentWorkspaceId:b,arianeTaskPrefs:c,
buganizerTaskPrefs:d,critiqueTaskPrefs:e,driveTaskPrefs:f,ganpatiTaskPrefs:h,gerritTaskPrefs:k,gtasksTaskPrefs:q,gutsTaskPrefs:w,privacyTaskPrefs:y,arianeEnabled:E,buganizerEnabled:I,critiqueEnabled:N,driveEnabled:L,ganpatiEnabledDeprecated:S,ganpatiEnabled:Y,gerritEnabled:ka,gtasksEnabled:ha,gutsEnabled:ya,privacyEnabled:Ha,pinnedTaskFilter:Ja,inboxFilter:Ka,snoozedTaskFilter:Ma,completedTaskFilter:hb,dismissedTaskFilter:fb,viewedLaunchVersion:Lb,hiringChipDismissedTimestampMs:ta,latestVisitTimestampMs:Aa,
taskOrderingPrefsMap:Db(xa,void 0,tyb),g3NotificationsPrefs:hyb(m(a,gyb,26))}}};
var ZF=function(a){Z.call(this,a)};U(ZF,Z);var Pyb=[2,6];ZF.prototype.toObject=function(){return Qyb(this)};var Qyb=function(a){if(null!=a)return{prefsId:V(a,1),taskManagementPrefs:Oyb(wl(a,YF,2,Pyb)),notificationsPrefs:Yxb(wl(a,Xxb,6,Pyb)),initialized:W(a,5),createdTimestamp:dj(a,3),updatedTimestamp:dj(a,4)}};
var $F=function(a){Z.call(this,a)};U($F,Z);g=$F.prototype;g.getTaskId=function(){return V(this,1)};g.setTaskId=function(a){return tl(this,1,a)};g.getClientId=function(){return dj(this,2)};g.setClientId=function(a){return Sk(this,2,a)};g.getWorkspaceId=function(){return V(this,3)};g.toObject=function(){var a=null!=this?{taskId:V(this,1),clientId:dj(this,2),workspaceId:V(this,3)}:void 0;return a};
var aG=function(a){Z.call(this,a,-1,Ryb)};U(aG,Z);var Syb=function(a,b){return hl(a,1,b)},Ryb=[1];aG.prototype.toObject=function(){var a=null!=this?{taskIdsList:n(jb(this,1))}:void 0;return a};
var bG=function(a){Z.call(this,a,-1,Tyb)};U(bG,Z);var Uyb=function(){var a=new bG;return hl(a,1,[1])},Tyb=[1];bG.prototype.toObject=function(){var a=null!=this?{taskStatusesList:n(jb(this,1))}:void 0;return a};
var cG=function(a){Z.call(this,a)};U(cG,Z);g=cG.prototype;g.getId=function(){return V(this,1)};g.setId=function(a){return tl(this,1,a)};g.getVersion=function(){return V(this,2)};g.setVersion=function(a){return tl(this,2,a)};g.toObject=function(){return Vyb(void 0,this)};var Vyb=function(a,b){if(null!=b){var c={id:V(b,1),version:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var dG=function(a){Z.call(this,a)};U(dG,Z);g=dG.prototype;g.getTask=function(){return m(this,SF,8)};g.setTask=function(a){return Ab(this,8,a)};g.hasTask=function(){return cj(this,8)};g.setUndoToken=function(a){return tl(this,7,a)};g.getClientId=function(){return dj(this,9)};g.setClientId=function(a){return Sk(this,9,a)};
g.toObject=function(){var a=null!=this?{task:TF(void 0,this.getTask()),belowTaskId:V(this,3),undoToken:V(this,7),clientId:dj(this,9),clientTimeZone:Vyb(void 0,m(this,cG,10))}:void 0;return a};
var eG=function(a){Z.call(this,a)};U(eG,Z);eG.prototype.getName=function(){return V(this,1)};eG.prototype.setName=function(a){return tl(this,1,a)};eG.prototype.toObject=function(){var a=null!=this?{name:V(this,1)}:void 0;return a};
var gG=function(a,b,c){var d=this;this.userPrefsApiPromiseClient=a;this.taskManagementApiPromiseClient=b;this.config=c;this.isActiveG3cUser$=(0,T.defer)(function(){var e=(new eG).setName("keys/2");return(0,T.from)(d.userPrefsApiPromiseClient.getUserPrefs(e,fG(d)))}).pipe(C(function(e){return(e=wl(e.getUserPrefs()||new ZF,YF,2,Pyb))?12096E5>=Date.now()-dj(e,21):!1}),Ue(1))},Xyb=function(a){var b=Uyb();return(0,T.defer)(function(){var c=T.from;var d=a.taskManagementApiPromiseClient;var e=fG(a);d=hG(d.client_,
d.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",b,e||{},Wyb);return c.call(T,d)}).pipe(C(function(c){return c.getTasksList().length}))};
gG.prototype.getTask=function(a){var b=this,c=Syb(new aG,[a]);return(0,T.defer)(function(){var d=T.from;var e=b.taskManagementApiPromiseClient;var f=fG(b);e=hG(e.client_,e.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",c,f||{},Yyb);return d.call(T,e)}).pipe(C(function(d){return(d=d.getTasksList())&&0!==d.length?{taskId:a,taskStatus:Zyb(d[0].getTaskStatus()),snoozeUntilMs:Number(dj(d[0],12)||"")}:{taskId:a,taskStatus:0,snoozeUntilMs:0}}))};
gG.prototype.updateTaskStatus=function(a,b,c){var d=this;c=void 0===c?0:c;var e=(new dG).setTask(Txb((new SF).setTaskStatus(a).setTaskId(b),c||0)).setUndoToken("");return(0,T.defer)(function(){return(0,T.from)(d.taskManagementApiPromiseClient.updateTaskStatus(e,fG(d)))}).pipe(C(function(f){f=f.getTask();return{taskId:f.getTaskId(),taskStatus:Zyb(f.getTaskStatus()),snoozeUntilMs:Number(dj(f,12)||0)}}))};
gG.prototype.addTaskByUrl=function(a){var b=this,c=(new $F).setTaskId(a);return(0,T.defer)(function(){return(0,T.from)(b.taskManagementApiPromiseClient.addTaskByUrl(c,fG(b)))}).pipe(C(function(d){return!V(d,2)}))};
var fG=function(a){return{"X-Goog-Api-Key":a.config?a.config.apikey?a.config.apikey:"nonprod"===a.config.environment?"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA":"AIzaSyBIugcexIJggeGpV_dVry6fkIO6bKH_nHk":"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA",Authorization:Mo([])||"","X-Goog-AuthUser":"0"}},Zyb=function(a){switch(a){case 0:case 6:case 2:case 3:case 5:case 1:return a;default:bh(a)}};gG.\u0275fac=function(a){return new (a||gG)(t(ywb),t(xwb),t(fF,8))};
gG.\u0275prov=ec({token:gG,factory:gG.\u0275fac,providedIn:"root"});
var iG=function(a,b){var c=this;this.g3cWidgetService=a;this.g3cWidgetIconRegistry=b;this.destroyed$=new T.Subject;this.taskId$=new T.ReplaySubject;this.forceLoadTaskData$=new T.BehaviorSubject(void 0);this.isActiveG3cUser$=this.g3cWidgetService.isActiveG3cUser$.pipe(Ie(function(){return(0,T.of)(!1)}),De(function(d){return d}),Ze(function(){var d=c.g3cWidgetIconRegistry;if(!d.isMatIconRegistered){var e=yh(qwb);d.iconRegistry._addSvgIconConfig("","g3c-console-logo-outlined",new JE(e));e=r(uwb);for(var f=
e.next();!f.done;f=e.next()){var h=f.value;f="g3c-widget-"+h.replace(/_/g,"-");h=yh(rwb,h);d.iconRegistry._addSvgIconConfig("",f,new JE(h))}e=r(vwb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=yh(swb,h),d.iconRegistry._addSvgIconConfig("",f,new JE(h));e=r(wwb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=yh(twb,h),d.iconRegistry._addSvgIconConfig("",f,new JE(h));d.isMatIconRegistered=!0}c.userActionPerformed.emit("loaded")}),
Ye(this.destroyed$));this.task$=(0,T.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(Xe(function(d){d=r(d).next().value;return c.g3cWidgetService.getTask(d).pipe(Ie(function(){return(0,T.of)(void 0)}))}),Ye(this.destroyed$));this.pinnedTasksCount$=(0,T.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(Xe(function(){return Xyb(c.g3cWidgetService).pipe(Ie(function(){return(0,T.of)(0)}))}),Ye(this.destroyed$));this.taskIdInternal="";this.skipTasksActionsInternal=!1;this.menuXPosition=
"before";this.featureHighlightingEnabled=!1;this.customWidgetClass="";this.userActionPerformed=new Iw};g=iG.prototype;
g.updateTaskStatus=function(a){var b=this;this.g3cWidgetService.updateTaskStatus(a.taskStatus,this.taskIdInternal,a.snoozeUntilMs).pipe(C(function(){return!0}),Ie(function(){return(0,T.of)(!1)}),Ye(this.destroyed$)).subscribe(function(c){if(c){c=a.taskStatus;if(0!==c)switch(c){case 1:b.userActionPerformed.emit("taskPinned");break;case 2:b.userActionPerformed.emit("taskSnoozed");break;case 3:b.userActionPerformed.emit("taskArchived");break;case 5:b.userActionPerformed.emit("taskMuted");break;case 6:b.userActionPerformed.emit("taskMovedToInbox");
break;default:bh(c)}b.forceLoadTaskData$.next()}})};g.addTaskByUrl=function(){var a=this;this.g3cWidgetService.addTaskByUrl(this.taskIdInternal).pipe(Ie(function(){return(0,T.of)(!1)}),Ye(this.destroyed$)).subscribe(function(b){b&&(a.userActionPerformed.emit("taskAddedToG3c"),a.forceLoadTaskData$.next())})};g.emitWidgetMenuOpen=function(){this.userActionPerformed.emit("menuOpened")};g.emitOpenInG3cClicked=function(){this.userActionPerformed.emit("openInG3cClicked")};
g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};ki.Object.defineProperties(iG.prototype,{taskId:{configurable:!0,enumerable:!0,set:function(a){this.taskIdInternal=a;this.taskId$.next(a)}},skipTasksActions:{configurable:!0,enumerable:!0,set:function(a){if(this.skipTasksActionsInternal=a)this.taskId$.next(""),this.forceLoadTaskData$.next()}}});iG.\u0275fac=function(a){return new (a||iG)(F(gG),F(eF))};
iG.\u0275cmp=v({type:iG,selectors:[["g3c-widget-entry"]],inputs:{menuXPosition:"menuXPosition",taskId:"taskId",skipTasksActions:"skipTasksActions",featureHighlightingEnabled:"featureHighlightingEnabled",customWidgetClass:"customWidgetClass"},outputs:{userActionPerformed:"userActionPerformed"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"task","pinnedTasksCount","menuXPosition","skipTasksActions","featureHighlightingEnabled","customWidgetClass","updateTaskStatus","addTaskByUrl","widgetMenuOpen","openInG3cClicked",
"featureTooltipActioned"]],template:function(a,b){a&1&&(O(0,Rma,4,10,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.isActiveG3cUser$))},dependencies:[sx,bF,Fx],encapsulation:2});
var jG=function(){};jG.\u0275fac=function(a){return new (a||jG)};jG.\u0275mod=rc({type:jG});jG.\u0275inj=fc({imports:[[mB,VA],VA]});
var kG=function(){};kG.\u0275fac=function(a){return new (a||kG)};kG.\u0275mod=rc({type:kG});kG.\u0275inj=fc({imports:[[Rz,rC,Mx,yC,jG,UA,uC]]});
var $yb=function(a){Z.call(this,a)};U($yb,Z);$yb.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var azb=function(a,b,c){this.requestMessage_=a;this.methodDescriptor_=b;this.metadata_=c};azb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};azb.prototype.getMetadata=function(){return this.metadata_};
var lG=function(a,b,c){c=void 0===c?{}:c;this.responseMessage_=a;this.metadata_=c;this.methodDescriptor_=b;this.status_=null};lG.prototype.getMetadata=function(){return this.metadata_};lG.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};lG.prototype.getStatus=function(){return this.status_};
var mG=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},bzb=function(a,b,c){c=void 0===c?{}:c;return new azb(b,a,c)};mG.prototype.getName=function(){return this.name};
var nG=function(a){Z.call(this,a)};U(nG,Z);nG.prototype.getTask=function(){return m(this,SF,1)};nG.prototype.setTask=function(a){return Ab(this,1,a)};nG.prototype.hasTask=function(){return cj(this,1)};nG.prototype.toObject=function(){var a=null!=this?{task:TF(void 0,this.getTask()),addTaskFailureReason:V(this,2)}:void 0;return a};
var czb=new mG("/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",$F,nG,function(a){return a.serialize()},function(a){return ho(nG,a)});
var oG=function(a){Z.call(this,a,-1,dzb)};U(oG,Z);oG.prototype.getTasksList=function(){return rb(this,SF,1)};var dzb=[1];oG.prototype.toObject=function(){var a=null!=this?{tasksList:Bb(this.getTasksList(),TF)}:void 0;return a};
var Yyb=new mG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",aG,oG,function(a){return a.serialize()},function(a){return ho(oG,a)});
var pG=function(a){Z.call(this,a,-1,ezb)};U(pG,Z);pG.prototype.getTasksList=function(){return rb(this,SF,1)};var ezb=[1];pG.prototype.toObject=function(){var a=null!=this?{tasksList:Bb(this.getTasksList(),TF)}:void 0;return a};
var Wyb=new mG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",bG,pG,function(a){return a.serialize()},function(a){return ho(pG,a)});
var qG=function(a){Z.call(this,a)};U(qG,Z);g=qG.prototype;g.getTask=function(){return m(this,SF,1)};g.setTask=function(a){return Ab(this,1,a)};g.hasTask=function(){return cj(this,1)};g.setUndoToken=function(a){return tl(this,4,a)};g.toObject=function(){var a=null!=this?{task:TF(void 0,this.getTask()),undoToken:V(this,4)}:void 0;return a};
var fzb=new mG("/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",dG,qG,function(a){return a.serialize()},function(a){return ho(qG,a)});
var gzb=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
var rG=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};U(rG,Error);rG.prototype.name="RpcError";
var hzb=Promise;
var sG=function(a){Z.call(this,a,-1,izb)};U(sG,Z);sG.prototype.getCode=function(){return dj(this,1)};sG.prototype.setCode=function(a){return Sk(this,1,a)};sG.prototype.getMessage=function(){return V(this,2)};var izb=[3];sG.prototype.toObject=function(){var a=null!=this?{code:dj(this,1),message:V(this,2),detailsList:Bb(rb(this,lF,3),Pwb)}:void 0;return a};
var tG=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.onErrorCallbacks_=[];this.xhrNodeReadableStream_&&jzb(this)},mzb=function(a,b){Po(a.xhr_,"complete",function(){if(a.xhr_.isSuccess()){var c=a.xhr_.getResponseText();if(b&&"text/plain"===a.xhr_.getResponseHeader("Content-Type")){if(!atob)throw Error("Ub");c=atob(c)}try{var d=
a.grpcResponseDeserializeFn_(c)}catch(f){uG(a,new rG(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=gzb(a.xhr_.getStatus());vG(a,wG(a));0==c?kzb(a,d):uG(a,new rG(c,"Xhr succeeded but the status code is not 200"))}else{d=a.xhr_.getResponseText();var e={};d?(e=lzb(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+a.xhr_.getLastErrorCode()+", error: "+a.xhr_.getLastError());vG(a,wG(a));uG(a,new rG(d,c,e))}})},jzb=function(a){a.xhrNodeReadableStream_.on("data",
function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){uG(a,new rG(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&kzb(a,d)}if("2"in b)for(b=lzb(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){vG(a,wG(a));for(var b=0;b<a.onEndCallbacks_.length;b++)a.onEndCallbacks_[b]()});a.xhrNodeReadableStream_.on("error",function(){if(0!=a.onErrorCallbacks_.length){var b=a.xhr_.getLastErrorCode();
0!==b||a.xhr_.isSuccess()||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.xhr_.getStatus();d=gzb(c);break;default:d=14}vG(a,wG(a));b=ytb(b)+", error: "+a.xhr_.getLastError();-1!=c&&(b+=", http status code: "+c);uG(a,new rG(d,b))}})},wG=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},lzb=function(a,b){var c=2,d={};try{var e=ho(sG,b);c=e.getCode();var f=e.getMessage();rb(e,lF,3).length&&(d["grpc-web-status-details-bin"]=
b)}catch(h){a.xhr_&&404===a.xhr_.getStatus()?(c=5,f="Not Found: "+a.xhr_.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};tG.prototype.on=function(a,b){"data"==a?this.onDataCallbacks_.push(b):"metadata"==a?this.onMetadataCallbacks_.push(b):"status"==a?this.onStatusCallbacks_.push(b):"end"==a?this.onEndCallbacks_.push(b):"error"==a&&this.onErrorCallbacks_.push(b);return this};var xG=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
tG.prototype.removeListener=function(a,b){"data"==a?xG(this.onDataCallbacks_,b):"metadata"==a?xG(this.onMetadataCallbacks_,b):"status"==a?xG(this.onStatusCallbacks_,b):"end"==a?xG(this.onEndCallbacks_,b):"error"==a&&xG(this.onErrorCallbacks_,b);return this};tG.prototype.cancel=function(){this.xhr_.abort()};
var kzb=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},vG=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},uG=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};tG.prototype.cancel=tG.prototype.cancel;tG.prototype.removeListener=tG.prototype.removeListener;tG.prototype.on=tG.prototype.on;
var yG=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};Zt(yG,ID);yG.prototype.createInstance=function(){var a=new zG(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};yG.prototype.internalGetOptions=bC({});yG.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};
yG.prototype.setCacheMode=function(a){this.cacheMode_=a};var zG=function(a,b){Oo.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.requestHeaders_=new Headers;this.responseHeaders_=null;this.method_="GET";this.url_="";this.inProgress_=!1;this.textDecoder_=this.currentReader_=this.fetchResponse_=null};
Zt(zG,Oo);zG.prototype.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Vb");this.method_=a;this.url_=b;this.readyState=1;AG(this)};zG.prototype.send=function(a){if(1!=this.readyState)throw this.abort(),Error("Wb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_};a&&(b.body=a);(this.worker_||ba).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
zG.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});1<=this.readyState&&this.inProgress_&&4!=this.readyState&&(this.inProgress_=!1,BG(this));this.readyState=0};
zG.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.responseHeaders_=a.headers,this.readyState=2,AG(this)),this.inProgress_&&(this.readyState=3,AG(this),this.inProgress_)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if("undefined"!==typeof ba.ReadableStream&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("Xb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;nzb(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var nzb=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
zG.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.streamBinaryChunks_){var b=a.value?a.value:new Uint8Array(0);if(b=this.textDecoder_.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?BG(this):AG(this);3==this.readyState&&nzb(this)}};zG.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,BG(this))};
zG.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,BG(this))};zG.prototype.handleSendFailure_=function(){this.inProgress_&&BG(this)};var BG=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;AG(a)};g=zG.prototype;g.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};g.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
g.getAllResponseHeaders=function(){if(!this.responseHeaders_)return"";for(var a=[],b=this.responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};g.setCredentialsMode=function(a){this.credentialsMode_=a};g.setCacheMode=function(a){this.cacheMode_=a};var AG=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(zG.prototype,"withCredentials",{get:function(){return"include"===this.credentialsMode_},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});
var ozb=function(a){if(a.getCount&&"function"==typeof a.getCount)a=a.getCount();else if(Ca(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},CG=function(a){if(a.getValues&&"function"==typeof a.getValues)return a.getValues();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(Ca(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Aja(a)},pzb=
function(a){if(a.getKeys&&"function"==typeof a.getKeys)return a.getKeys();if(!a.getValues||"function"!=typeof a.getValues){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(Ca(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}b=[];c=0;for(var d in a)b[c++]=d;return b}}},qzb=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(Ca(a)||"string"===typeof a)Array.prototype.forEach.call(a,
b,c);else for(var d=pzb(a),e=CG(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},rzb=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(Ca(a)||"string"===typeof a)return Array.prototype.every.call(a,b,c);for(var d=pzb(a),e=CG(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};
var bp=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof bp?(this.ignoreCase_=void 0!==b?b:a.ignoreCase_,kv(this,a.scheme_),this.setUserInfo(a.getUserInfo()),jv(this,a.getDomain()),DG(this,a.port_),this.setPath(a.getPath()),EG(this,a.queryData_.clone()),FG(this,a.fragment_)):a&&(c=String(a).match(Btb))?(this.ignoreCase_=!!b,kv(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),jv(this,c[3]||"",!0),DG(this,c[4]),
this.setPath(c[5]||"",!0),EG(this,c[6]||"",!0),FG(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new GG(null,this.ignoreCase_))};
bp.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(HG(b,szb,!0),":");var c=this.getDomain();if(c||"file"==b)a.push("//"),(b=this.getUserInfo())&&a.push(HG(b,szb,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.port_,null!=c&&a.push(":",String(c));if(c=this.getPath())this.domain_&&"/"!=c.charAt(0)&&a.push("/"),a.push(HG(c,"/"==c.charAt(0)?tzb:uzb,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",HG(c,vzb));return a.join("")};
bp.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?kv(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?jv(b,a.getDomain()):c=null!=a.port_;var d=a.getPath();if(c)DG(b,a.port_);else if(c=a.hasPath()){if("/"!=d.charAt(0))if(this.domain_&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(da(e,"./")||da(e,"/.")){d=Mi(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var k=
e[h++];"."==k?d&&h==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?EG(b,a.queryData_.clone()):c=!!a.fragment_;c&&FG(b,a.fragment_);return b};bp.prototype.clone=function(){return new bp(this)};var kv=function(a,b,c){a.scheme_=c?IG(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};bp.prototype.getUserInfo=function(){return this.userInfo_};
bp.prototype.setUserInfo=function(a,b){this.userInfo_=b?IG(a):a;return this};bp.prototype.hasUserInfo=function(){return!!this.userInfo_};bp.prototype.getDomain=function(){return this.domain_};var jv=function(a,b,c){a.domain_=c?IG(b,!0):b;return a},DG=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Yb`"+b);a.port_=b}else a.port_=null;return a};bp.prototype.getPath=function(){return this.path_};bp.prototype.setPath=function(a,b){this.path_=b?IG(a,!0):a;return this};
bp.prototype.hasPath=function(){return!!this.path_};bp.prototype.hasQuery=function(){return""!==this.queryData_.toString()};var EG=function(a,b,c){b instanceof GG?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=HG(b,wzb)),a.queryData_=new GG(b,a.ignoreCase_));return a};bp.prototype.setQuery=function(a){return EG(this,a)};bp.prototype.getQuery=function(){return this.queryData_.toString()};
var JG=function(a,b,c){a.queryData_.set(b,c);return a},KG=function(a,b){return a.queryData_.get(b)},FG=function(a,b,c){a.fragment_=c?IG(b):b;return a};bp.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};bp.prototype.isReadOnly=function(){return!1};bp.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var LG=function(a,b){return a instanceof bp?a.clone():new bp(a,b)},IG=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},HG=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,xzb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},xzb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},szb=/[#\/\?@]/g,uzb=/[#\?:]/g,tzb=/[#\?]/g,wzb=/[#\?@]/g,vzb=/#/g,GG=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=
a||null;this.ignoreCase_=!!b},MG=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Ctb(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=GG.prototype;g.getCount=function(){MG(this);return this.count_};g.add=function(a,b){MG(this);this.encodedQuery_=null;a=NG(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};
g.remove=function(a){MG(this);a=NG(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};g.isEmpty=function(){MG(this);return 0==this.count_};g.containsKey=function(a){MG(this);a=NG(this,a);return this.keyMap_.has(a)};g.containsValue=function(a){var b=this.getValues();return sa(b,a)};
g.forEach=function(a,b){MG(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){MG(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.getValues=function(a){MG(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=b.concat(this.keyMap_.get(NG(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};g.set=function(a,b){MG(this);this.encodedQuery_=null;a=NG(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};g.get=function(a,b){if(!a)return b;a=this.getValues(a);return 0<a.length?String(a[0]):b};
g.setValues=function(a,b){this.remove(a);0<b.length&&(this.encodedQuery_=null,this.keyMap_.set(NG(this,a),Ba(b)),this.count_+=b.length)};g.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.getValues(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}}return this.encodedQuery_=a.join("&")};
g.clone=function(){var a=new GG;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var NG=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};GG.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(MG(this),this.encodedQuery_=null,this.keyMap_.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.ignoreCase_=a};
GG.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)qzb(arguments[b],function(c,d){this.add(d,c)},this)};
var yzb=function(a){var b="";ch(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b};
var OG=function(a){DC.call(this);this.handler_=a;this.keys_={}};Zt(OG,DC);var zzb=[];OG.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(zzb[0]=b.toString()),b=zzb);for(var e=0;e<b.length;e++){var f=Po(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};OG.prototype.listenOnce=function(a,b,c,d){return Azb(this,a,b,c,d)};
var Azb=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Azb(a,b,c[h],d,e,f);else{b=OC(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
OG.prototype.unlisten=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else c=c||this.handleEvent,d=Da(d)?!!d.capture:!!d,e=e||this.handler_||this,c=PC(c),d=!!d,b=LC(a)?a.getListener(b,c,d,e):a?(a=QC(a))?a.getListener(b,c,d,e):null:null,b&&(SC(b),delete this.keys_[b.key]);return this};OG.prototype.removeAll=function(){ch(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&SC(a)},this);this.keys_={}};
OG.prototype.disposeInternal=function(){OG.superClass_.disposeInternal.call(this);this.removeAll()};OG.prototype.handleEvent=function(){throw Error("$b");};
var Bzb=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};Bzb.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("ac`"+this.streamPos_+"`"+b+"`"+a);};
Bzb.prototype.decode=function(a){this.isInputValid_||this.error_(a,"stream already broken");this.leftoverInput_+=a;a=Math.floor(this.leftoverInput_.length/4);if(0==a)return null;try{var b=Pib(this.leftoverInput_.slice(0,4*a))}catch(c){this.error_(this.leftoverInput_,c.message)}this.streamPos_+=4*a;this.leftoverInput_=this.leftoverInput_.slice(4*a);return b};
var Bi=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};Bi.prototype.getErrorMessage=function(){return this.errorMessage_};Bi.prototype.error_=function(a,b,c){this.state_=3;this.errorMessage_="The stream is broken @"+this.streamPos_+"/"+b+". Error: "+c+". With input:\n"+a;throw Error(this.errorMessage_);};Bi.prototype.acceptsBinaryInput=function(){return!0};
Bi.prototype.parse=function(a){function b(q){q&128&&f.error_(h,k,"invalid tag");2!=(q&7)&&f.error_(h,k,"invalid wire type");f.tag_=q>>>3;1!=f.tag_&&2!=f.tag_&&15!=f.tag_&&f.error_(h,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(q){f.countLengthBytes_++;5==f.countLengthBytes_&&q&240&&f.error_(h,k,"message length too long");f.length_|=(q&127)<<7*(f.countLengthBytes_-1);q&128||(f.state_=2,f.countMessageBytes_=0,"undefined"!==typeof Uint8Array?f.messageBuffer_=new Uint8Array(f.length_):
f.messageBuffer_=Array(f.length_),0==f.length_&&e())}function d(q){f.messageBuffer_[f.countMessageBytes_++]=q;f.countMessageBytes_==f.length_&&e()}function e(){if(15>f.tag_){var q={};q[f.tag_]=f.messageBuffer_;f.result_.push(q)}f.state_=0}for(var f=this,h=a instanceof Array?a:new Uint8Array(a),k=0;k<h.length;){switch(f.state_){case 3:f.error_(h,k,"stream already broken");break;case 0:b(h[k]);break;case 1:c(h[k]);break;case 2:d(h[k]);break;default:throw Error("bc`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return 0<a.length?a:null};
var Di=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new Bzb;this.pbParser_=new Bi};Di.prototype.getErrorMessage=function(){return this.errorMessage_};Di.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};Di.prototype.acceptsBinaryInput=function(){return!1};
Di.prototype.parse=function(a){null!==this.errorMessage_&&this.error_(a,"stream already broken");var b=null;try{var c=this.base64Decoder_.decode(a);b=null===c?null:this.pbParser_.parse(c)}catch(d){this.error_(a,d.message)}this.streamPos_+=a.length;return b};
var PG=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
var Sma=function(a){this.errorMessage_=null;this.result_=[];this.buffer_="";this.stack_=[];this.pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)},Czb={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,
NUM_DIGIT:20};g=Sma.prototype;g.getErrorMessage=function(){return this.errorMessage_};g.done=function(){return 2===this.streamState_};g.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};g.acceptsBinaryInput=function(){return!1};
g.parse=function(a){function b(){for(;I<a.length;)if(PG(a[I]))I++,f.pos_++;else break;return I<w}function c(){for(var L;;){L=a[I++];if(!L)break;f.pos_++;switch(f.state_){case q.INIT:"{"===L?f.state_=q.OBJECT_OPEN:"["===L?f.state_=q.ARRAY_OPEN:PG(L)||f.error_(a,I);continue;case q.KEY_START:case q.OBJECT_OPEN:if(PG(L))continue;if(f.state_===q.KEY_START)h.push(q.KEY_END);else if("}"===L){e("{}");f.state_=d();continue}else h.push(q.OBJECT_END);'"'===L?f.state_=q.STRING:f.error_(a,I);continue;case q.KEY_END:case q.OBJECT_END:if(PG(L))continue;
":"===L?(f.state_===q.OBJECT_END&&(h.push(q.OBJECT_END),f.depth_++),f.state_=q.VALUE):"}"===L?(f.depth_--,e(),f.state_=d()):","===L?(f.state_===q.OBJECT_END&&h.push(q.OBJECT_END),f.state_=q.KEY_START):f.error_(a,I);continue;case q.ARRAY_OPEN:case q.VALUE:if(PG(L))continue;if(f.state_===q.ARRAY_OPEN)if(f.depth_++,f.state_=q.VALUE,"]"===L){f.depth_--;if(0===f.depth_){f.state_=q.ARRAY_END;return}e("[]");f.state_=d();continue}else h.push(q.ARRAY_END);'"'===L?f.state_=q.STRING:"{"===L?f.state_=q.OBJECT_OPEN:
"["===L?f.state_=q.ARRAY_OPEN:"t"===L?f.state_=q.TRUE1:"f"===L?f.state_=q.FALSE1:"n"===L?f.state_=q.NULL1:"-"!==L&&(-1!=="0123456789".indexOf(L)?f.state_=q.NUM_DIGIT:f.error_(a,I));continue;case q.ARRAY_END:if(","===L)h.push(q.ARRAY_END),f.state_=q.VALUE,1===f.depth_&&(E=I);else if("]"===L){f.depth_--;if(0===f.depth_)return;e();f.state_=d()}else if(PG(L))continue;else f.error_(a,I);continue;case q.STRING:var S=I;a:for(;;){for(;0<f.unicodeCount_;)if(L=a[I++],4===f.unicodeCount_?f.unicodeCount_=0:f.unicodeCount_++,
!L)break a;if('"'===L&&!f.slashed_){f.state_=d();break}if("\\"===L&&!f.slashed_&&(f.slashed_=!0,L=a[I++],!L))break;if(f.slashed_)if(f.slashed_=!1,"u"===L&&(f.unicodeCount_=1),L=a[I++])continue;else break;k.lastIndex=I;L=k.exec(a);if(!L){I=a.length+1;break}I=L.index+1;L=a[L.index];if(!L)break}f.pos_+=I-S;continue;case q.TRUE1:if(!L)continue;"r"===L?f.state_=q.TRUE2:f.error_(a,I);continue;case q.TRUE2:if(!L)continue;"u"===L?f.state_=q.TRUE3:f.error_(a,I);continue;case q.TRUE3:if(!L)continue;"e"===L?
f.state_=d():f.error_(a,I);continue;case q.FALSE1:if(!L)continue;"a"===L?f.state_=q.FALSE2:f.error_(a,I);continue;case q.FALSE2:if(!L)continue;"l"===L?f.state_=q.FALSE3:f.error_(a,I);continue;case q.FALSE3:if(!L)continue;"s"===L?f.state_=q.FALSE4:f.error_(a,I);continue;case q.FALSE4:if(!L)continue;"e"===L?f.state_=d():f.error_(a,I);continue;case q.NULL1:if(!L)continue;"u"===L?f.state_=q.NULL2:f.error_(a,I);continue;case q.NULL2:if(!L)continue;"l"===L?f.state_=q.NULL3:f.error_(a,I);continue;case q.NULL3:if(!L)continue;
"l"===L?f.state_=d():f.error_(a,I);continue;case q.NUM_DECIMAL_POINT:"."===L?f.state_=q.NUM_DIGIT:f.error_(a,I);continue;case q.NUM_DIGIT:if(-1!=="0123456789.eE+-".indexOf(L))continue;else I--,f.pos_--,f.state_=d();continue;default:f.error_(a,I)}}}function d(){var L=h.pop();return null!=L?L:q.VALUE}function e(L){1<f.depth_||(L||(L=-1===E?f.buffer_+a.substring(y,I):a.substring(E,I)),f.deliverMessageAsRawString_?f.result_.push(L):f.result_.push(JSON.parse(L)),E=I)}for(var f=this,h=f.stack_,k=f.stringInputPattern_,
q=Czb,w=a.length,y=0,E=-1,I=0;I<w;)switch(f.streamState_){case 3:return f.error_(a,I),null;case 2:return b()&&f.error_(a,I),null;case 0:if(b()){var N=a[I++];f.pos_++;if("["===N){f.streamState_=1;y=I;f.state_=q.ARRAY_OPEN;continue}else f.error_(a,I)}return null;case 1:return c(),0===f.depth_&&f.state_==q.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(I)):f.buffer_=-1===E?f.buffer_+a.substring(y):a.substring(E),0<f.result_.length?(N=f.result_,f.result_=[],N):null}return null};
var Ai=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};Ai.prototype.getErrorMessage=function(){return this.errorMessage_};Ai.prototype.acceptsBinaryInput=function(){return!1};
Ai.prototype.parse=function(a){function b(q){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+h+". Error: "+q+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new Sma({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var w=0;w<q.length;w++){var y={};y[1]=q[w];f.result_.push(y)}}function e(q){if(q){(f.statusParsed_||1<q.length)&&b("extra status: "+q);f.statusParsed_=!0;var w={};w[2]=q[0];f.result_.push(w)}}for(var f=
this,h=0;h<a.length;){var k;if(k=2!==f.state_){a:{for(;h<a.length;){if(!PG(a[h])){k=!0;break a}h++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.state_=1,h++,f.streamPos_++):b("unexpected input token");break;case 1:"["===a[h]?(f.state_=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.state_=3:"]"===a[h]?(f.state_=5,h++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(h));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.state_=4,c(),f.jsonStreamParser_.parse("["),h+=","===a[h]?1:5,f.streamPos_++):"]"===a[h]&&(f.state_=5,h++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(h));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);
break;case 5:b("extra input after stream end")}}return 0<f.result_.length?(a=f.result_,f.result_=[],a):null};
var Dzb=function(a){this.xhr_=a;this.parser_=null;this.status_=this.pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.textDecoder_=null;this.eventHandler_=new OG(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)},QG=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},RG=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};Dzb.prototype.getStatus=function(){return this.status_};
Dzb.prototype.readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.xhr_)a:{var b=this.xhr_.getReadyState(),c=this.xhr_.getLastErrorCode(),d=this.xhr_.getStatus(),e=this.xhr_.getResponseText();a=[];if(Stb(this.xhr_)instanceof Array){var f=Stb(this.xhr_);0<f.length&&f[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?QG(this,7):7==c?QG(this,8):d||QG(this,3)),this.parser_||(this.parser_=Tma(this.xhr_),null==this.parser_&&
QG(this,5)),2<this.status_)RG(this);else{if(a.length>this.pos_){var h=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<h;k++){var q=this.parser_.parse(Array.from(a[k]));q&&(c=c.concat(q))}else{q="";if(!this.textDecoder_){if("undefined"===typeof TextDecoder)throw Error("cc");this.textDecoder_=new TextDecoder}for(k=0;k<h;k++)q+=this.textDecoder_.decode(a[k],{stream:4==b&&k==h-1});c=this.parser_.parse(q)}a.splice(0,h);c&&this.dataHandler_(c)}catch(y){QG(this,5);RG(this);break a}}else if(e.length>
this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var w=this.parser_.parse(k);null!=w&&this.dataHandler_&&this.dataHandler_(w)}catch(y){QG(this,5);RG(this);break a}}4==b?(0!=e.length||this.hasStreamingResponseData_?QG(this,2):QG(this,4),RG(this)):QG(this,1)}}}catch(y){QG(this,6),RG(this)}};
var SG=function(a){this.xhrReader_=a;a=Vt(this.onData_,this);this.xhrReader_.dataHandler_=a;a=Vt(this.onStatusChange_,this);this.xhrReader_.statusHandler_=a;this.callbackMap_={};this.callbackOnceMap_={}};g=SG.prototype;g.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};g.addListener=function(a,b){this.on(a,b);return this};g.removeListener=function(a,b){var c=this.callbackMap_[a];c&&wa(c,b);(a=this.callbackOnceMap_[a])&&wa(a,b);return this};
g.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};g.onData_=function(a){var b=this.callbackMap_.data;b&&Ezb(this,a,b);(b=this.callbackOnceMap_.data)&&Ezb(this,a,b);this.callbackOnceMap_.data=[]};
var Ezb=function(a,b,c){for(var d={},e=0;e<b.length;d={$jscomp$loop$prop$message$1617:d.$jscomp$loop$prop$message$1617},e++)d.$jscomp$loop$prop$message$1617=b[e],c.forEach(function(f){return function(h){try{h(f.$jscomp$loop$prop$message$1617)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};
SG.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:TG(this,"readable");break;case 5:case 6:case 4:case 7:case 3:TG(this,"error");break;case 8:TG(this,"close");break;case 2:TG(this,"end")}};var TG=function(a,b){var c=a.callbackMap_[b];c&&c.forEach(function(d){try{d()}catch(e){a.handleError_("status-callback exception (ignored) "+e)}});(c=a.callbackOnceMap_[b])&&c.forEach(function(d){d()});a.callbackOnceMap_[b]=[]};SG.prototype.handleError_=function(){};
var UG=function(a){a=void 0===a?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||Ko("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||Ko("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},Hzb=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Fzb(function(h){return new hzb(function(k,q){var w=
{},y=Gzb(a,h,f);y.on("error",function(E){return q(E)});y.on("metadata",function(E){w=E});y.on("data",function(E){var I=w;I=void 0===I?{}:I;k(new lG(E,h.getMethodDescriptor(),I))})})},a.unaryInterceptors_).call(a,bzb(e,c,d)).then(function(h){return h.responseMessage_})},hG=function(a,b,c,d,e){return Hzb(a,b,c,d,e)};
UG.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Fzb(function(h){var k=h.getMethodDescriptor(),q=h.getMetadata(),w=Izb(e,!1);q=Jzb(e,q,w,f+k.getName());var y=Kzb(w,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage_);w.send(q,"POST",h);return y},this.streamInterceptors_).call(this,bzb(d,b,c))};
var Gzb=function(a,b,c){var d=b.getMethodDescriptor(),e=b.getMetadata(),f=Izb(a,!0);a=Jzb(a,e,f,c+d.getName());c=Kzb(f,d.responseDeserializeFn,!1);mzb(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.requestSerializeFn(b.requestMessage_);f.send(a,"POST",b);return c},Izb=function(a,b){b=a.chunkedServerStreaming_&&!b;return a.workerScope_||b?new MD(new yG({worker:a.workerScope_,streamBinaryChunks:b})):new MD},Jzb=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]=
"grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.withCredentials_)c.withCredentials_=!0;if(a.suppressCorsPreflight_)a=d,eh(b)?d=a:(b=yzb(b),"string"===typeof a?d=LD(a,encodeURIComponent("$httpHeaders"),b):(JG(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d},Kzb=function(a,b,c){if(c)if(!cu||10<=Number(ju)){c=new Dzb(a);var d=new SG(c)}else d=null;return new tG({xhr:a,nodeReadableStream:d},
b)},Fzb=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});return c};
var Lzb=function(a){var b={format:"jspb"};this.client_=new UG(b);this.hostname_=a};Lzb.prototype.updateTaskStatus=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",a,b||{},fzb)};Lzb.prototype.addTaskByUrl=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",a,b||{},czb)};
var VG=function(a){Z.call(this,a)};U(VG,Z);VG.prototype.getUserPrefs=function(){return m(this,ZF,1)};VG.prototype.toObject=function(){var a=null!=this?{userPrefs:Qyb(this.getUserPrefs())}:void 0;return a};
var Mzb=new mG("/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",eG,VG,function(a){return a.serialize()},function(a){return ho(VG,a)});
var WG=function(a){Z.call(this,a,-1,Nzb)};U(WG,Z);var Nzb=[1];WG.prototype.toObject=function(){return XG(void 0,this)};var XG=function(a,b){if(null!=b){var c={pathsList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Ozb=function(a){var b={format:"jspb"};this.client_=new UG(b);this.hostname_=a};Ozb.prototype.getUserPrefs=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",a,b||{},Mzb)};
var YG=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},ZG=function(a,b,c){var d=this;this._elementRef=a;this._dateAdapter=b;this._dateFormats=c;this.dateChange=new Iw;this.dateInput=new Iw;this.stateChanges=new T.Subject;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=T.Subscription.EMPTY;this._parseValidator=function(){return d._lastValueValid?null:{matDatepickerParse:{text:d._elementRef.nativeElement.value}}};
this._filterValidator=function(e){e=XA(d._dateAdapter,d._dateAdapter.deserialize(e.value));return!e||d._matchesFilter(e)?null:{matDatepickerFilter:!0}};this._minValidator=function(e){e=XA(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.min;return!f||!e||0>=YA(d._dateAdapter,f,e)?null:{matDatepickerMin:{min:f,actual:e}}};this._maxValidator=function(e){e=XA(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.max;return!f||!e||0<=YA(d._dateAdapter,f,e)?null:
{matDatepickerMax:{max:f,actual:e}}};this._lastValueValid=!1;this._localeSubscription=b.localeChanges.subscribe(function(){d._assignValueProgrammatically(d.value)})};g=ZG.prototype;g._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
g._registerModel=function(a){var b=this;this._model=a;this._valueChangesSubscription.unsubscribe();this._pendingValue&&this._assignValue(this._pendingValue);this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){b._shouldHandleChangeEvent(c)&&(c=b._getValueFromModel(c.selection),b._lastValueValid=b._isValidValue(c),b._cvaOnChange(c),b._onTouched(),b._formatValue(c),b.dateInput.emit(new YG(b,b._elementRef.nativeElement)),b.dateChange.emit(new YG(b,b._elementRef.nativeElement)))})};
g.ngAfterViewInit=function(){this._isInitialized=!0};g.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(b.isDateInstance(d)&&b.isDateInstance(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};g.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
g.registerOnValidatorChange=function(a){this._validatorOnChange=a};g.validate=function(a){return this._validator?this._validator(a):null};g.writeValue=function(a){this._assignValueProgrammatically(a)};g.registerOnChange=function(a){this._cvaOnChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};g._onKeydown=function(a){a.altKey&&40===a.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
g._onInput=function(a){var b=this._lastValueValid,c=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(c);c=XA(this._dateAdapter,c);var d=!this._dateAdapter.sameDate(c,this.value);!c||d?this._cvaOnChange(c):(a&&!this.value&&this._cvaOnChange(c),b!==this._lastValueValid&&this._validatorOnChange());d&&(this._assignValue(c),this.dateInput.emit(new YG(this,this._elementRef.nativeElement)))};g._onChange=function(){this.dateChange.emit(new YG(this,this._elementRef.nativeElement))};
g._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};g._formatValue=function(a){this._elementRef.nativeElement.value=a?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};g._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};g._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};g._parentDisabled=function(){return!1};
g._assignValueProgrammatically=function(a){a=this._dateAdapter.deserialize(a);this._lastValueValid=this._isValidValue(a);a=XA(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._rangeInput.dateFilter;return!b||b(a)};
ki.Object.defineProperties(ZG.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(a){this._assignValueProgrammatically(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return!!this._disabled||this._parentDisabled()},set:function(a){a=Rg(a);var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
ZG.\u0275fac=function(a){return new (a||ZG)(F(nd),F(WA,8),F($A,8))};ZG.\u0275dir=v({type:ZG,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ac]});
var Pzb=new jd("MAT_DATE_RANGE_INPUT_PARENT"),$G=function(a,b,c,d,e,f,h,k){ZG.call(this,b,h,k);this._rangeInput=a;this._defaultErrorStateMatcher=c;this._injector=d;this._parentForm=e;this._parentFormGroup=f};U($G,ZG);g=$G.prototype;g.ngOnInit=function(){var a=this._injector.get(Zx,null,10);a&&(this.ngControl=a)};g.ngDoCheck=function(){this.ngControl&&this.updateErrorState()};g.isEmpty=function(){return 0===this._elementRef.nativeElement.value.length};g._getPlaceholder=function(){return this._elementRef.nativeElement.placeholder};
g.focus=function(){this._elementRef.nativeElement.focus()};g._onInput=function(a){ZG.prototype._onInput.call(this,a);this._rangeInput._handleChildValueChange()};g._openPopup=function(){this._rangeInput._openDatepicker()};g._getMinDate=function(){return this._rangeInput.min};g._getMaxDate=function(){return this._rangeInput.max};g._getDateFilter=function(){return this._rangeInput.dateFilter};g._parentDisabled=function(){return this._rangeInput._groupDisabled};
g._shouldHandleChangeEvent=function(a){a=a.source;return a!==this._rangeInput._startInput&&a!==this._rangeInput._endInput};g._assignValueProgrammatically=function(a){ZG.prototype._assignValueProgrammatically.call(this,a);var b;null==(b=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)||b._validatorOnChange()};$G.\u0275fac=function(a){return new (a||$G)(F(Pzb),F(nd),F(dB),F(Hv),F(fy,8),F(oy,8),F(WA,8),F($A,8))};$G.\u0275dir=v({type:$G,features:[gf]});mla($G);
var Qzb={provide:new jd("mat-datepicker-scroll-strategy"),deps:[RA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};li(function(a){this._elementRef=a});
var aH=function(){};aH.\u0275fac=function(a){return new (a||aH)};aH.\u0275mod=rc({type:aH});aH.\u0275inj=fc({providers:[tB,Qzb],imports:[[Mx,jG,UA,Rz,QA,VA],xA]});
var bH=function(){};bH.\u0275fac=function(a){return new (a||bH)};bH.\u0275mod=rc({type:bH});bH.\u0275inj=fc({providers:[kwb],imports:[[Rz,Mx,UA,VA],VA,xA]});
var cH=function(){};cH.\u0275fac=function(a){return new (a||cH)};cH.\u0275mod=rc({type:cH});cH.\u0275inj=fc({providers:[{provide:ywb,useFactory:function(a){return new Ozb(Uma(a))},deps:[fF]},{provide:xwb,useFactory:function(a){return new Lzb(Uma(a))},deps:[fF]},gG],imports:[[Mx,kG,jG,aH,MB,dF,$B,UE,bH]]});
var Rzb=function(a){this.metricName_="/client_streamz/buganizer/load_time";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};Rzb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};Rzb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Szb=function(a){this.metricName_="/client_streamz/buganizer/user_action_counts";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};Szb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Szb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Tzb=function(a){this.metricName_="/client_streamz/buganizer/user_latency";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};Tzb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};Tzb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Uzb=function(a){this.servicePromise_=a;a.then(Vt(function(){},this),function(){},this)},Vzb=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("dc`"+b);return e.apply(d,c)})},Xzb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=Wzb(a,b).then(function(f){return f.apply(null,d)});return new Uzb(e)},Yzb={},Wzb=function(a,b){var c=Yzb[b];if(c)return c;c=(c=Ko(b))?nD(c):(new mD(function(d,e){var f=(new VC(document)).createElement("SCRIPT");
f.async=!0;vh(f,zo(a));f.onload=f.onreadystatechange=function(){f.readyState&&"loaded"!=f.readyState&&"complete"!=f.readyState||d()};f.onerror=e;(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=Ko(b);if(!d)throw Error("ec`"+b+"`"+a);return d});return Yzb[b]=c};
var dH=function(a){this.loader_=a};dH.prototype.startFeedback=function(a){Vzb(this.loader_,"startFeedback",arguments)};dH.prototype.requestSurvey=function(a){Vzb(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};dH.prototype.presentSurvey=function(a){Vzb(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var Zzb=Ao("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");Wzb(Zzb,"help.service.Lazy.create").thenCatch(function(){});
var eH=function(){this.roundCorners=this.showDividers=!1};eH.\u0275fac=function(a){return new (a||eH)};
eH.\u0275cmp=v({type:eH,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&sf("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Cf(),Df(0))},styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap}.show-dividers[_nghost-%COMP%]     button.gmat-button:not(:last-of-type), .show-dividers[_nghost-%COMP%]     :not(:last-child) button.gmat-button{border-right:1px solid #dadce0}.show-dividers[_nghost-%COMP%]     button.gmat-button:not(:first-of-type), .show-dividers[_nghost-%COMP%]     :not(:first-child) button.gmat-button{border-left:1px solid #dadce0}[_nghost-%COMP%]    >:not(:last-child){margin-right:0}[_nghost-%COMP%]    >:not(:first-child){margin-left:0}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:not(:last-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:last-child) button.gmat-button{margin-right:-1px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:not(:first-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:first-child) button.gmat-button{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:hover{z-index:2}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:focus{z-index:3}\n/*# sourceMappingURL=button-group.css.map */"],changeDetection:0});
var $zb={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},Rpa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Tpa={ACCESS_LEVEL_UNSPECIFIED:0,INTERNAL:1,EXTERNAL_PARTNER:2,EXTERNAL_PUBLIC:3},hra={ACTION_TYPE_UNSPECIFIED:0,ADD:1,REMOVE:2},aAb={TEXT:"TEXT",DATE:"DATE",ENUM:"ENUM",NUMERIC:"NUMERIC",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",
REPEATED_NUMERIC:"REPEATED_NUMERIC"},hqa={1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},mqa={TEXT:1,DATE:2,ENUM:3,NUMERIC:4,REPEATED_TEXT:5,REPEATED_DATE:6,REPEATED_ENUM:7,REPEATED_NUMERIC:8},Nqa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},Yqa={DELETION_REASON_UNSPECIFIED:0,USER_REQUEST:1,ABUSE:2,PII:3,RETENTION:4},una={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Dna={COMFORTABLE:1,COZY:2,COMPACT:3},
zsa={0:"UNKNOWN_DIFF_TYPE",1:"SINGLE_VALUE",2:"COLLECTION",5:"USER_COLLECTION",3:"LINKED_COLLECTION",4:"CUSTOM_FIELD"},jqa={0:"UNKNOWN",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},nqa={UNKNOWN:0,SILENT:1,MINOR:2,MAJOR:3,BULK:4,CLOSING:5},fj={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},tj={UNKNOWN_PRIORITY:0,CLOSURE_ONLY:4,MINIMAL:1,IMPORTANT:2,ALL:3},AVa={0:"ISSUE_LABEL_FIELD_UNSPECIFIED",1:"ID",2:"BLOCKING_ID",3:"BLOCKED_BY_ID",4:"CANONICAL_ID",5:"PARENT_ID",
6:"INCOMING_DEPENDENCY_ID",7:"LINKED_ID",8:"HOTLIST_ID",9:"SAVED_SEARCH_ID",10:"COMPONENT_ID",11:"TEAM_ID",12:"REPORTER",13:"ASSIGNEE",14:"CC",15:"VERIFIER",16:"MODIFIER",17:"LAST_MODIFIER",18:"COMMENTER",19:"LAST_COMMENTER",20:"PRIORITY",21:"SEVERITY",22:"TYPE",23:"STATUS",24:"DELETION_REASON",25:"TITLE",26:"COMMENT",27:"ATTACHMENT",28:"CL",29:"POSTMORTEM",30:"FOUND_IN",31:"TARGETED_TO",32:"VERIFIED_IN",33:"CREATED",34:"MODIFIED",35:"RESOLVED",36:"VERIFIED",37:"DELETION_TIME",38:"IN_PROD",39:"STAR",
40:"MUTE",41:"IS_DELETED",42:"CUSTOM_FIELD",43:"DUPLICATE_COUNT",44:"VOTE_COUNT",45:"COMMENT_COUNT",46:"CC_COUNT",47:"ARCHIVED",48:"MIN_SLO_TARGET",49:"EFFORT_LABEL",50:"EFFORT_VALUE",51:"MENTION",52:"VOTE",53:"EFFORT_TOTAL_OPEN",54:"EFFORT_TOTAL_COMPLETE"},yra={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},bAb={FIELD_ORDERING_UNSPECIFIED:0,INHERITED:1,CUSTOMIZED:2},iqa={0:"UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},$m={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",
3:"LITERAL"},Xl={UNSPECIFIED_FORMATTING_MODE:0,PLAIN:1,MARKDOWN:2,LITERAL:3},Yta={0:"IMPLICIT_ACCESS_UNSPECIFIED",1:"ALLOW",2:"DENY"},$ta={IMPLICIT_ACCESS_UNSPECIFIED:0,ALLOW:1,DENY:2},Xta={0:"INHERITANCE_UNSPECIFIED",1:"INHERIT_ALL",2:"INHERIT_ADMINS",3:"INHERIT_NOTHING"},Zta={INHERITANCE_UNSPECIFIED:0,INHERIT_ALL:1,INHERIT_ADMINS:2,INHERIT_NOTHING:3},yj={ISSUE_ID:"ISSUE_ID",COMPONENT_PATH:"COMPONENT_PATH",TYPE:"TYPE",STATUS:"STATUS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",REPORTER:"REPORTER",ASSIGNEE:"ASSIGNEE",
VERIFIER:"VERIFIER",CC:"CC",CHANGELIST:"CHANGELIST",POSTMORTEM:"POSTMORTEM",BLOCKING_ISSUE_ID:"BLOCKING_ISSUE_ID",BLOCKED_BY_ISSUE_ID:"BLOCKED_BY_ISSUE_ID",CREATED_TIME:"CREATED_TIME",MODIFIED_TIME:"MODIFIED_TIME",RESOLVED_TIME:"RESOLVED_TIME",VERIFIED_TIME:"VERIFIED_TIME",DELETION_TIME:"DELETION_TIME",TITLE:"TITLE",FOUND_IN_VERSION:"FOUND_IN_VERSION",TARGETED_TO_VERSION:"TARGETED_TO_VERSION",VERIFIED_IN_VERSION:"VERIFIED_IN_VERSION",IN_PROD:"IN_PROD",CANONICAL_ISSUE_ID:"CANONICAL_ISSUE_ID",CUSTOM_FIELD:"CUSTOM_FIELD",
POSITION:"POSITION",VOTE_COUNT:"VOTE_COUNT",DUPLICATE_COUNT:"DUPLICATE_COUNT",CC_COUNT:"CC_COUNT",MODIFIED_BY:"MODIFIED_BY",LAST_MODIFIER:"LAST_MODIFIER",ARCHIVED:"ARCHIVED",MIN_SLO:"MIN_SLO",ASSIGNMENT_SLO:"ASSIGNMENT_SLO",RESPONSE_SLO:"RESPONSE_SLO",CLOSURE_SLO:"CLOSURE_SLO",TEAM:"TEAM",ESTIMATE:"ESTIMATE",ESTIMATE_TOTAL_OPEN:"ESTIMATE_TOTAL_OPEN",ESTIMATE_TOTAL_COMPLETE:"ESTIMATE_TOTAL_COMPLETE"},Ana={1:yj.ISSUE_ID,2:yj.COMPONENT_PATH,3:yj.TYPE,4:yj.STATUS,5:yj.PRIORITY,6:yj.SEVERITY,7:yj.REPORTER,
8:yj.ASSIGNEE,9:yj.VERIFIER,10:yj.CC,11:yj.CHANGELIST,32:yj.POSTMORTEM,12:yj.BLOCKING_ISSUE_ID,13:yj.BLOCKED_BY_ISSUE_ID,14:yj.CREATED_TIME,15:yj.MODIFIED_TIME,16:yj.RESOLVED_TIME,17:yj.VERIFIED_TIME,38:yj.DELETION_TIME,18:yj.TITLE,19:yj.FOUND_IN_VERSION,20:yj.TARGETED_TO_VERSION,21:yj.VERIFIED_IN_VERSION,22:yj.IN_PROD,23:yj.CANONICAL_ISSUE_ID,24:yj.CUSTOM_FIELD,25:yj.POSITION,26:yj.VOTE_COUNT,27:yj.DUPLICATE_COUNT,28:yj.CC_COUNT,29:yj.MODIFIED_BY,30:yj.LAST_MODIFIER,31:yj.ARCHIVED,33:yj.MIN_SLO,
35:yj.ASSIGNMENT_SLO,36:yj.RESPONSE_SLO,37:yj.CLOSURE_SLO,39:yj.TEAM,40:yj.ESTIMATE,41:yj.ESTIMATE_TOTAL_OPEN,42:yj.ESTIMATE_TOTAL_COMPLETE},Jna={ISSUE_ID:1,COMPONENT_PATH:2,TYPE:3,STATUS:4,PRIORITY:5,SEVERITY:6,REPORTER:7,ASSIGNEE:8,VERIFIER:9,CC:10,CHANGELIST:11,POSTMORTEM:32,BLOCKING_ISSUE_ID:12,BLOCKED_BY_ISSUE_ID:13,CREATED_TIME:14,MODIFIED_TIME:15,RESOLVED_TIME:16,VERIFIED_TIME:17,DELETION_TIME:38,TITLE:18,FOUND_IN_VERSION:19,TARGETED_TO_VERSION:20,VERIFIED_IN_VERSION:21,IN_PROD:22,CANONICAL_ISSUE_ID:23,
CUSTOM_FIELD:24,POSITION:25,VOTE_COUNT:26,DUPLICATE_COUNT:27,CC_COUNT:28,MODIFIED_BY:29,LAST_MODIFIER:30,ARCHIVED:31,MIN_SLO:33,ASSIGNMENT_SLO:35,RESPONSE_SLO:36,CLOSURE_SLO:37,TEAM:39,ESTIMATE:40,ESTIMATE_TOTAL_OPEN:41,ESTIMATE_TOTAL_COMPLETE:42},ora={ISSUE_RELATION_UNSPECIFIED:0,BLOCKING:1,BLOCKED_BY:2,DUPLICATE:3,CANONICAL:4},Oqa={0:"TYPE_UNSPECIFIED",1:"BUG",2:"FEATURE_REQUEST",3:"CUSTOMER_ISSUE",4:"INTERNAL_CLEANUP",5:"PROCESS",6:"VULNERABILITY",7:"PRIVACY_ISSUE",8:"PROJECT",9:"FEATURE",10:"MILESTONE",
11:"EPIC",12:"STORY",13:"TASK"},Tqa={TYPE_UNSPECIFIED:0,BUG:1,FEATURE_REQUEST:2,CUSTOMER_ISSUE:3,INTERNAL_CLEANUP:4,PROCESS:5,VULNERABILITY:6,PRIVACY_ISSUE:7,PROJECT:8,FEATURE:9,MILESTONE:10,EPIC:11,STORY:12,TASK:13},zVa={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},cAb={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},
Dsa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},kra={UNKNOWN_SUBSCRIPTION:0,UNSUBSCRIBED:1,SUBSCRIBED_CLOSURE_ONLY:2,SUBSCRIBED_MAJOR_UPDATES:3,SUBSCRIBED_ALL_UPDATES:4},BVa={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},ccb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},zqa={0:"PII_SEVERITY_UNSPECIFIED",1:"NONE_DETECTED",2:"PII",3:"SPII"},Wqa={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3},Pqa=
{0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},Uqa={PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5},xsa={0:"UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},Sra={0:"UNKNOWN",1:"HOTLIST",2:"BOOKMARK_GROUP",3:"SAVED_SEARCH"},dAb={UNKNOWN:0,HOTLIST:1,BOOKMARK_GROUP:2,SAVED_SEARCH:3},eAb={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},Ul={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},Xqa={RETENTION_UNSPECIFIED:0,
COMPONENT_DEFAULT:1,INDEFINITE:2},fAb={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},wra={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},xqa={UNSPECIFIED_RETENTION:0,BUGANIZER_DEFAULT:1,CUSTOM_PERIOD:2,INDEFINITE_RETENTION:3},Qqa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},Vqa={SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5},
vVa={0:"SIMPLE_VALUE_TYPE_UNSPECIFIED",1:"TEXT",2:"QUOTED_TEXT",3:"YEAR",4:"MONTH",5:"DAY",6:"HOUR",7:"MINUTE",8:"SECOND",9:"RELATIVE_YEAR",10:"RELATIVE_MONTH",15:"RELATIVE_WEEK",11:"RELATIVE_DAY"},bcb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},xra={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},Cqa={SLO_SOURCE_UNSPECIFIED:0,USER:1,BUGSCOPE:2},aqa={0:"UNSPECIFIED",1:"REPORTER",2:"ASSIGNEE",3:"VERIFIER",4:"CC",5:"TYPE",6:"STATUS",7:"PRIORITY",8:"SEVERITY",9:"CHANGELISTS",10:"PENDING_CHANGELISTS",
11:"POSTMORTEMS",12:"FOUND_IN",13:"TARGETED_TO",14:"VERIFIED_IN",15:"IN_PRODUCTION",16:"SLO_STATUS",17:"TEAM"},cqa={UNSPECIFIED:0,REPORTER:1,ASSIGNEE:2,VERIFIER:3,CC:4,TYPE:5,STATUS:6,PRIORITY:7,SEVERITY:8,CHANGELISTS:9,PENDING_CHANGELISTS:10,POSTMORTEMS:11,FOUND_IN:12,TARGETED_TO:13,VERIFIED_IN:14,IN_PRODUCTION:15,SLO_STATUS:16,TEAM:17},Rqa={0:"STATUS_UNSPECIFIED",1:"NEW",2:"ASSIGNED",3:"ACCEPTED",4:"FIXED",5:"VERIFIED",6:"NOT_REPRODUCIBLE",7:"INTENDED_BEHAVIOR",8:"OBSOLETE",9:"INFEASIBLE",10:"DUPLICATE"},
Wl={STATUS_UNSPECIFIED:0,NEW:1,ASSIGNED:2,ACCEPTED:3,FIXED:4,VERIFIED:5,NOT_REPRODUCIBLE:6,INTENDED_BEHAVIOR:7,OBSOLETE:8,INFEASIBLE:9,DUPLICATE:10},ysa={0:"ACTIVE",1:"DELETED",2:"PURGED"},mua={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Ura={0:"UNKNOWN",1:"ISSUE_ID",2:"COMPONENT_PATH",3:"TYPE",4:"STATUS",5:"PRIORITY",6:"SEVERITY",7:"REPORTER",8:"ASSIGNEE",9:"VERIFIER",10:"CC",11:"CHANGELIST",33:"POSTMORTEM",12:"BLOCKING_ISSUE_ID",13:"BLOCKED_BY_ISSUE_ID",14:"CREATED_TIME",15:"MODIFIED_TIME",
16:"RESOLVED_TIME",17:"VERIFIED_TIME",38:"DELETION_TIME",18:"TITLE",19:"FOUND_IN_VERSION",20:"TARGETED_TO_VERSION",21:"VERIFIED_IN_VERSION",22:"IN_PROD",23:"DUPLICATE_OF_ISSUE_ID",24:"CUSTOM_FIELD",25:"POSITION",26:"VOTE_COUNT",27:"DUPLICATE_COUNT",28:"CC_COUNT",29:"MODIFIED_BY",30:"LAST_MODIFIER",31:"ARCHIVED",32:"CANONICAL_ISSUE_ID",34:"MIN_SLO",35:"ASSIGNMENT_SLO",36:"RESPONSE_SLO",37:"CLOSURE_SLO",39:"TEAM",40:"ESTIMATE",41:"ESTIMATE_TOTAL_OPEN",42:"ESTIMATE_TOTAL_COMPLETE"},Wra={UNKNOWN:0,ISSUE_ID:1,
COMPONENT_PATH:2,TYPE:3,STATUS:4,PRIORITY:5,SEVERITY:6,REPORTER:7,ASSIGNEE:8,VERIFIER:9,CC:10,CHANGELIST:11,POSTMORTEM:33,BLOCKING_ISSUE_ID:12,BLOCKED_BY_ISSUE_ID:13,CREATED_TIME:14,MODIFIED_TIME:15,RESOLVED_TIME:16,VERIFIED_TIME:17,DELETION_TIME:38,TITLE:18,FOUND_IN_VERSION:19,TARGETED_TO_VERSION:20,VERIFIED_IN_VERSION:21,IN_PROD:22,DUPLICATE_OF_ISSUE_ID:23,CUSTOM_FIELD:24,POSITION:25,VOTE_COUNT:26,DUPLICATE_COUNT:27,CC_COUNT:28,MODIFIED_BY:29,LAST_MODIFIER:30,ARCHIVED:31,CANONICAL_ISSUE_ID:32,MIN_SLO:34,
ASSIGNMENT_SLO:35,RESPONSE_SLO:36,CLOSURE_SLO:37,TEAM:39,ESTIMATE:40,ESTIMATE_TOTAL_OPEN:41,ESTIMATE_TOTAL_COMPLETE:42},DVa={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},Kqa={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},Lqa={UNSPECIFIED:0,ACTIVE:1,DELETED:2,UNAVAILABLE:3},xVa={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"};
var Vma=Object.prototype.hasOwnProperty,gAb=function(a){return["google","corp","devops","tools"].reduce(function(b,c){b=void 0===b?{}:b;return null==b[c]?void 0:b[c]},a)},hAb=function(){var a=void 0===a?window:a;var b=void 0===b?5E3:b;var c=100;return new Promise(function(d,e){function f(){var h=gAb(a);null!=h?d(h):(setTimeout(f,c),c*=2)}f();setTimeout(function(){var h=gAb(a);null!=h?d(h):e("timeout: "+b)},b)})};
var Si=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Si.prototype.isCustomField=function(){return"CUSTOM_FIELD"===this.type};Si.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Si.prototype.toString=function(){return this.toApiUrlParam()};
var Wi=function(a,b){this.fieldId=a;this.direction=b};Wi.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+("ASCENDING"===this.direction?"asc":"desc")};Wi.prototype.toString=function(){return this.toApiUrlParam()};
var mj=function(a){Z.call(this,a)};U(mj,Z);mj.prototype.toObject=function(){return iAb(this)};var iAb=function(a){if(null!=a)return{announcementDismissed:n(Ro(a,2)),enableBugScreensaver:n(Ro(a,1))}};
var kAb=function(a){Z.call(this,a,-1,jAb)};U(kAb,Z);var jAb=[1];kAb.prototype.toObject=function(){return lAb(this)};var lAb=function(a){if(null!=a)return{recentComponentIdList:n(jb(a,1))}};
var hj=function(a){Z.call(this,a)};U(hj,Z);hj.prototype.getTimeZone=function(){return V(this,5)};hj.prototype.setTimeZone=function(a){return l(this,5,a)};hj.prototype.hasTimeZone=function(){return cj(this,5)};hj.prototype.toObject=function(){return mAb(this)};var mAb=function(a){if(null!=a)return{calendarFormat:n(p(a,1)),timeFormat:n(p(a,2)),calendarTimeFormat:n(p(a,3)),fullCalendarTimeFormat:n(p(a,4)),timeZone:n(p(a,5)),timeZoneOffset:n(p(a,6))}};
var xj=function(a){Z.call(this,a)};U(xj,Z);g=xj.prototype;g.getType=function(){return X(this,1,1)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return cj(this,1)};g.getCustomFieldId=function(){return dj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return cj(this,2)};g.toObject=function(){return nAb(void 0,this)};var nAb=function(a,b){if(null!=b){var c={type:n(p(b,1)),customFieldId:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var wj=function(a){Z.call(this,a,-1,oAb)};U(wj,Z);wj.prototype.getColumnList=function(){return rb(this,xj,1)};wj.prototype.setColumnList=function(a){return zb(this,1,a)};var oAb=[1];wj.prototype.toObject=function(){return pAb(this)};var pAb=function(a){if(null!=a)return{columnList:Bb(a.getColumnList(),nAb)}};
var uj=function(a){Z.call(this,a)};U(uj,Z);uj.prototype.toObject=function(){return qAb(this)};var qAb=function(a){if(null!=a)return{leftSidebarWidth:n(p(a,1)),expandIssueSlo:n(Ro(a,2)),rightSidebarWidth:n(p(a,3))}};
var gj=function(a){Z.call(this,a)};U(gj,Z);gj.prototype.toObject=function(){return rAb(this)};var rAb=function(a){if(null!=a)return{showHotlists:n(Ro(a,1)),wrapTitles:n(Ro(a,2)),wrapComponents:n(Ro(a,3)),showStatusIcons:n(Ro(a,4)),rtlComponentPath:n(Ro(a,5))}};
var Aj=function(a){Z.call(this,a)};U(Aj,Z);Aj.prototype.getColumn=function(){return m(this,xj,1)};Aj.prototype.setColumn=function(a){return Ab(this,1,a)};Aj.prototype.toObject=function(){return sAb(void 0,this)};var sAb=function(a,b){if(null!=b){var c={column:nAb(a,b.getColumn()),order:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var zj=function(a){Z.call(this,a,-1,tAb)};U(zj,Z);zj.prototype.getColumnList=function(){return rb(this,Aj,1)};zj.prototype.setColumnList=function(a){return zb(this,1,a)};var tAb=[1];zj.prototype.toObject=function(){return uAb(this)};var uAb=function(a){if(null!=a)return{columnList:Bb(a.getColumnList(),sAb)}};
var ij=function(a){Z.call(this,a)};U(ij,Z);ij.prototype.getDensity=function(){return X(this,1,1)};ij.prototype.setDensity=function(a){return l(this,1,a)};ij.prototype.toObject=function(){return vAb(this)};var vAb=function(a){if(null!=a)return{density:n(p(a,1))}};
var nj=function(a){Z.call(this,a)};U(nj,Z);nj.prototype.toObject=function(){return wAb(this)};var wAb=function(a){if(null!=a)return{announcementDismissedMillis:n(p(a,1))}};
var vj=function(a){Z.call(this,a)};U(vj,Z);g=vj.prototype;g.getResourceType=function(){return X(this,1,1)};g.setResourceType=function(a){l(this,1,a)};g.hasResourceType=function(){return cj(this,1)};g.getResourceId=function(){return kj(this,2)};g.setResourceId=function(a){l(this,2,a)};g.hasResourceId=function(){return cj(this,2)};g.toObject=function(){return xAb(this)};var xAb=function(a){if(null!=a)return{resourceType:n(p(a,1)),resourceId:n(p(a,2))}};
var jj=function(a){Z.call(this,a)};U(jj,Z);jj.prototype.toObject=function(){return yAb(this)};var yAb=function(a){if(null!=a)return{enableAllHotkeys:W(a,1,!0)}};
var oj=function(a){Z.call(this,a)};U(oj,Z);oj.prototype.toObject=function(){return zAb(this)};var zAb=function(a){if(null!=a)return{enableNewIssueDetailsPage:n(Ro(a,1)),onboardingDialogAcknowledgedMillis:n(p(a,2)),newIdpOptOut:n(Ro(a,3))}};
var ej=function(a){Z.call(this,a)};U(ej,Z);ej.prototype.toObject=function(){return AAb(this)};var AAb=function(a){if(null!=a)return{reportedPriority:n(p(a,1)),assignedPriority:n(p(a,2)),verifiedPriority:n(p(a,3)),ccdPriority:n(p(a,4)),starredPriority:n(p(a,5)),excludeChangesByMe:n(Ro(a,6)),unsubscribeFromAll:n(Ro(a,7)),enableV2Prefs:n(Ro(a,8))}};
var CAb=function(a){Z.call(this,a,-1,BAb)};U(CAb,Z);var BAb=[1];CAb.prototype.toObject=function(){return DAb(this)};var DAb=function(a){if(null!=a)return{hiddenSavedSearchList:n(jb(a,1))}};
var qj=function(a){Z.call(this,a)};U(qj,Z);qj.prototype.getComponentId=function(){return dj(this,1)};qj.prototype.setComponentId=function(a){return l(this,1,a)};qj.prototype.hasComponentId=function(){return cj(this,1)};qj.prototype.toObject=function(){return EAb(void 0,this)};var EAb=function(a,b){if(null!=b){var c={componentId:n(p(b,1)),dismissMillis:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var pj=function(a){Z.call(this,a,-1,FAb)};U(pj,Z);var Kna=function(a,b){zb(a,1,b)},FAb=[1];pj.prototype.toObject=function(){return GAb(this)};var GAb=function(a){if(null!=a)return{componentTeamWarningsList:Bb(rb(a,qj,1),EAb)}};
var lj=function(a){Z.call(this,a)};U(lj,Z);lj.prototype.getCommentDisplayOverride=function(){return X(this,2,0)};lj.prototype.setCommentDisplayOverride=function(a){l(this,2,a)};lj.prototype.toObject=function(){return HAb(this)};var HAb=function(a){if(null!=a)return{lastPublishMode:n(p(a,1)),commentDisplayOverride:n(p(a,2))}};
var fH=function(a){Z.call(this,a)};U(fH,Z);fH.prototype.getValue=function(){return W(this,1)};fH.prototype.setValue=function(a){return ko(this,1,a)};fH.prototype.toObject=function(){return IAb(this)};var IAb=function(a){if(null!=a)return{value:W(a,1)}};
var sj=function(a){Z.call(this,a)};U(sj,Z);g=sj.prototype;g.getDisplayColumns=function(){return m(this,wj,4)};g.getSortColumns=function(){return m(this,zj,6)};g.getLayoutPreferences=function(){return m(this,uj,10)};g.getHomepagePreferences=function(){return m(this,vj,13)};g.clearHomepagePreferences=function(){return Ab(this,13)};g.toObject=function(){return JAb(this)};
var JAb=function(a){if(null!=a)return{showFullHistory:n(Ro(a,1)),useCodefont:n(Ro(a,2)),notificationPreferences:AAb(m(a,ej,3)),displayColumns:pAb(a.getDisplayColumns()),resultsPerPage:n(p(a,5)),sortColumns:uAb(a.getSortColumns()),bannerMessageId:n(p(a,7)),themePreferences:vAb(m(a,ij,8)),listViewPreferences:rAb(m(a,gj,9)),layoutPreferences:qAb(a.getLayoutPreferences()),dateTimePreferences:mAb(m(a,hj,11)),sidebarPreferences:DAb(m(a,CAb,12)),homepagePreferences:xAb(a.getHomepagePreferences()),componentPreferences:lAb(m(a,
kAb,14)),keyboardPreferences:yAb(m(a,jj,17)),termsAcknowledgedMillis:n(p(a,15)),newFeaturesAcknowledgedMillis:n(p(a,16)),autoCcOnComment:n(Ro(a,18)),enableMaterialStyles:IAb(m(a,fH,19)),textDisplayPreferences:HAb(m(a,lj,20)),bugScreensaverPreferences:iAb(m(a,mj,21)),newIssueDetailsPagePreferences:zAb(m(a,oj,22)),teamWarningPreferences:GAb(m(a,pj,23)),g3nPreferences:wAb(m(a,nj,24)),dismissalTimestampsMap:Db(Yi(a,25,rj),void 0,Pu),showRecentEventsFirst:n(Ro(a,26))}};
var gH=function(a){Z.call(this,a,-1,KAb)};U(gH,Z);g=gH.prototype;g.getAppName=function(){return V(this,2)};g.getDocumentationBaseUrl=function(){return V(this,3)};g.getEnvironmentType=function(){return V(this,5)};g.getMaxAccurateSearchResults=function(){return dj(this,6)};g.getOnePickUrl=function(){return V(this,7)};g.getOnePickSecretToken=function(){return V(this,12)};g.getCommentNumberLimit=function(){return dj(this,8)};g.getCreateComponentRedirectDelay=function(){return xl(this,9)};
var KAb=[10,13,14,15];gH.prototype.toObject=function(){return LAb(this)};
var LAb=function(a){if(null!=a)return{analyticsId:n(p(a,1)),appName:n(p(a,2)),documentationBaseUrl:n(p(a,3)),enabledFlagsMap:Db(Yi(a,4)),environmentType:n(p(a,5)),maxAccurateSearchResults:n(p(a,6)),onePickUrl:n(p(a,7)),onePickSecretToken:n(p(a,12)),commentNumberLimit:n(p(a,8)),createComponentRedirectDelay:n(tu(a,9)),whitelistedWhitelistDomainPartnerComponentIdsList:n(jb(a,10)),isDogfooder:n(Ro(a,11)),createRestrictedSubresourcesComponentWhitelistList:n(jb(a,13)),componentAllowlistList:n(jb(a,14)),
componentDenylistList:n(jb(a,15))}};
var hH=function(a){Z.call(this,a)};U(hH,Z);g=hH.prototype;g.getEmail=function(){return V(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return cj(this,1)};g.getSessionIdentifier=function(){return V(this,3)};g.toObject=function(){return MAb(this)};var MAb=function(a){if(null!=a)return{anonymous:n(Ro(a,4)),email:n(p(a,1)),sessionIdentifier:n(p(a,3))}};
var iH=function(a){Z.call(this,a,-1,NAb)};U(iH,Z);iH.prototype.getId=function(){return p(this,1)};iH.prototype.setId=function(a){return l(this,1,a)};var NAb=[2,4];iH.prototype.toObject=function(){return OAb(void 0,this)};var OAb=function(a,b){if(null!=b){var c={id:n(p(b,1)),namesList:n(jb(b,2)),stdOffset:n(p(b,3)),transitionsList:n(jb(b,4))};a&&(c.$jspbMessageInstance=b);return c}};iH.messageId="b.TimeZoneData";
var jH=function(a){Z.call(this,a,-1,PAb)};U(jH,Z);jH.prototype.getMessage=function(){return V(this,1)};var PAb=[4];jH.prototype.toObject=function(){return QAb(this)};var QAb=function(a){if(null!=a)return{message:n(p(a,1)),messageId:n(p(a,2)),dismissible:n(Ro(a,3)),tagsList:n(jb(a,4))}};jH.messageId="b.Announcement";
var kH=function(a){Z.call(this,a,-1,RAb)};U(kH,Z);var RAb=[1];kH.prototype.toObject=function(){return SAb(this)};var SAb=function(a){if(null!=a)return{timezonesList:Bb(rb(a,iH,1),OAb),announcement:QAb(m(a,jH,2))}};
var Jn=function(a){Z.call(this,a)};U(Jn,Z);Jn.prototype.getLogoUrl=function(){return V(this,1)};Jn.prototype.getTheme=function(){return X(this,2,0)};Jn.prototype.setTheme=function(a){return l(this,2,a)};Jn.prototype.toObject=function(){return TAb(void 0,this)};var TAb=function(a,b){if(null!=b){var c={logoUrl:n(p(b,1)),theme:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};Jn.messageId="b.Branding";
var lH=function(a){Z.call(this,a,-1,UAb)};U(lH,Z);g=lH.prototype;g.getTrackerId=function(){return kj(this,1)};g.setTrackerId=function(a){l(this,1,a)};g.getComponentId=function(){return kj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return cj(this,2)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return cj(this,3)};var UAb=[4];lH.prototype.toObject=function(){return mH(void 0,this)};
var mH=function(a,b){if(null!=b){var c={trackerId:n(p(b,1)),componentId:n(p(b,2)),name:n(p(b,3)),associatedTrackerIdsList:n(jb(b,4)),branding:TAb(a,m(b,Jn,5))};a&&(c.$jspbMessageInstance=b);return c}};lH.messageId="b.Tracker";
var lna=function(a){Z.call(this,a)};U(lna,Z);g=lna.prototype;g.getUser=function(){return m(this,hH,1)};g.setUser=function(a){Ab(this,1,a)};g.getConfig=function(){return m(this,gH,2)};g.setConfig=function(a){return Ab(this,2,a)};g.getXsrfToken=function(){return V(this,3)};g.getCspNonce=function(){return V(this,8)};g.getUserPreferences=function(){return m(this,sj,7)};
g.toObject=function(){var a=null!=this?{user:MAb(this.getUser()),config:LAb(this.getConfig()),xsrfToken:n(p(this,3)),cspNonce:n(p(this,8)),frontendAccessMode:n(p(this,4)),mustAcknowledgeTerms:n(Ro(this,5)),showNewFeaturesDialog:n(Ro(this,6)),userPreferences:JAb(this.getUserPreferences()),preload:SAb(m(this,kH,9)),appBaseHref:n(p(this,10)),tracker:mH(void 0,m(this,lH,11))}:void 0;return a};
var kna=window,jna;
var aj={COMMENT_FORMATTING_MODE_UNSPECIFIED:0,PLAIN_FORMATTING_MODE:1,MARKDOWN_FORMATTING_MODE:2,LITERAL_FORMATTING_MODE:3,0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},nH={},VAb=(nH[3]="LITERAL_FORMATTING_MODE",nH[1]="PLAIN_FORMATTING_MODE",nH[2]="MARKDOWN_FORMATTING_MODE",nH),WAb=VAb[2],XAb=VAb[1],oH={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:void 0,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",
assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"IMPORTANT",starredPriority:"IMPORTANT",excludeChangesByMe:!0,unsubscribeFromAll:!1,enableV2Prefs:!1},listViewPreferences:{showHotlists:!1,wrapTitles:!1,wrapComponents:!1,showStatusIcons:!1,rtlComponentPath:!1},layoutPreferences:{leftSidebarWidth:220,expandIssueSlo:!1},dateTimePreferences:{calendarFormat:"MMM d, yyyy",timeFormat:"hh:mma",timeZone:""},themePreferences:{density:"COMFORTABLE"},homepagePreferences:{resourceType:void 0,resourceId:void 0},
keyboardPreferences:{enableAllHotkeys:!0},textDisplayPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},newIssueDetailsPagePreferences:{enableNewIssueDetailsPage:!1},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1};
var pH=function(){this.session=Xi();this.user=this.session.getUser()||new hH;this.config=this.session.getConfig()||new gH;this.userPreferences=zna(Xi().getUserPreferences()||new sj);this.frontendAccessMode=V(this.session,4)||"INTERNAL";this.mustAcknowledgeTerms=W(this.session,5);this.showNewFeaturesDialog=W(this.session,6);this.appBaseHref=V(this.session,10)};pH.prototype.isExternalSession=function(){return"INTERNAL"!==this.frontendAccessMode};
pH.prototype.isInternalSession=function(){return"INTERNAL"===this.frontendAccessMode};var qH=function(a){return"PARTNER"===a.frontendAccessMode},rH=function(a,b){return!!Yi(a.config,4).get(b)};pH.prototype.isAnonymous=function(){return W(this.user,4)||!1};pH.prototype.getUserEmail=function(){return this.user.getEmail()||""};pH.prototype.getSessionIdentifier=function(){return this.user.getSessionIdentifier()||"0"};
pH.prototype.getEnvironmentType=function(){return this.config.getEnvironmentType()||"QA"};var sH=function(a){a=a.getEnvironmentType();switch(a){case "QA":return!1;case "NIGHTLY":case "PROD":return!0;default:bh(a,"Unknown environment type.")}},tH=function(a,b){return(void 0===b?0:b)||!a.isInternalSession()?sH(a)?"https://issuetracker.google.com/":"https://issuetracker.sandbox.google.com/":sH(a)?"http://b/":"http://b-qa/"};g=pH.prototype;
g.getOnePickUrl=function(){return this.config.getOnePickUrl()||""};g.getAppName=function(){return this.config.getAppName()||""};g.getCommentNumberLimit=function(){return this.config.getCommentNumberLimit()};g.getCreateComponentRedirectDelay=function(){return this.config.getCreateComponentRedirectDelay()};g.getDocumentationBaseUrl=function(){return this.config.getDocumentationBaseUrl()};g.getMaxAccurateSearchResults=function(){return this.config.getMaxAccurateSearchResults()};
g.getUserPreferences=function(){return this.userPreferences};g.getXsrfToken=function(){return this.session.getXsrfToken()};g.getOnePickSecretToken=function(){return this.config.getOnePickSecretToken()};g.getCspNonce=function(){return this.session.getCspNonce()};pH.\u0275fac=function(a){return new (a||pH)};pH.\u0275prov=ec({token:pH,factory:pH.\u0275fac,providedIn:"root"});
var YAb=function(a,b){return[a,b]},uH=function(){this.size=this.name=""};uH.prototype.ngOnInit=function(){};uH.\u0275fac=function(a){return new (a||uH)};
uH.\u0275cmp=v({type:uH,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},decls:1,vars:5,consts:[[3,"svgIcon","ngClass"]],template:function(a,b){a&1&&J(0,"mat-icon",0);a&2&&D("svgIcon",b.name)("ngClass",Of(2,YAb,b.name,b.size))},dependencies:[vx,LE],styles:['[_nghost-%COMP%]{display:inline-block;line-height:0;vertical-align:middle}.hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]::before{background:none;border-radius:50%;bottom:-3px;box-sizing:border-box;content:"";display:block;left:-3px;opacity:0;position:absolute;right:-3px;top:-3px;z-index:-1}.hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]:hover::before, .hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]:focus::before{background-color:#dadce0;background-color:var(--c300);opacity:1}[_nghost-%COMP%]   .mat-icon[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   .small[_ngcontent-%COMP%]{height:18px;width:18px}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]{height:24px;width:24px}'],changeDetection:0});
var a8a=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},ZAb=function(a){switch(a){case "TYPE_UNSPECIFIED":case "BUG":case "FEATURE_REQUEST":case "CUSTOMER_ISSUE":case "INTERNAL_CLEANUP":case "PROCESS":case "VULNERABILITY":case "PRIVACY_ISSUE":case "PROJECT":case "FEATURE":case "MILESTONE":case "EPIC":case "STORY":case "TASK":return a;default:return null}},$Ab=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},
aBb=function(a){switch(a){case "NEW":case "ASSIGNED":case "ACCEPTED":case "FIXED":case "VERIFIED":case "NOT_REPRODUCIBLE":case "INTENDED_BEHAVIOR":case "OBSOLETE":case "INFEASIBLE":case "DUPLICATE":return a;default:return null}},vH=function(a){return Kk(a.replace(/_/g," ").toLowerCase())};
var bBb=function(a){return function(b){return Cj(b,a)}};
var wH=function(a){Z.call(this,a)};U(wH,Z);wH.prototype.getBlobRef=function(){return Lm(this,2)};wH.prototype.toObject=function(){return cBb(void 0,this)};var cBb=function(a,b){if(null!=b){var c={resourceName:V(b,1),blobRef:Eb(b.getBlobRef())};a&&(c.$jspbMessageInstance=b);return c}};
var xH=function(a){Z.call(this,a)};U(xH,Z);xH.prototype.getSeverity=function(){return X(this,1,0)};xH.prototype.setSeverity=function(a){return ql(this,1,a)};xH.prototype.toObject=function(){return dBb(void 0,this)};var dBb=function(a,b){if(null!=b){var c={severity:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var yH=function(a){Z.call(this,a)};U(yH,Z);yH.prototype.toObject=function(){return eBb(void 0,this)};var eBb=function(a,b){if(null!=b){var c={restrictionVerdict:dBb(a,m(b,xH,1))};a&&(c.$jspbMessageInstance=b);return c}};
var zH=function(a){Z.call(this,a)};U(zH,Z);zH.prototype.getStatus=function(){return X(this,1,0)};zH.prototype.setStatus=function(a){return ql(this,1,a)};zH.prototype.setReason=function(a){ql(this,2,a)};zH.prototype.toObject=function(){return AH(void 0,this)};var AH=function(a,b){if(null!=b){var c={status:X(b,1,0),reason:X(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var BH=function(a){Z.call(this,a)};U(BH,Z);g=BH.prototype;g.getRetentionPeriod=function(){return m(this,hm,1)};g.setRetentionPeriod=function(a){Ab(this,1,a)};g.hasRetentionPeriod=function(){return cj(this,1)};g.getScheduledDeletionTime=function(){return m(this,rj,2)};g.setScheduledDeletionTime=function(a){Ab(this,2,a)};g.hasScheduledDeletionTime=function(){return cj(this,2)};g.toObject=function(){return CH(void 0,this)};
var CH=function(a,b){if(null!=b){var c={retentionPeriod:Ju(a,b.getRetentionPeriod()),scheduledDeletionTime:Pu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};
var DH=function(a){Z.call(this,a)};U(DH,Z);g=DH.prototype;g.getAttachmentId=function(){return dj(this,1)};g.setAttachmentId=function(a){Sk(this,1,a)};g.getFilename=function(){return V(this,4)};g.setFilename=function(a){tl(this,4,a)};g.getEntityStatus=function(){return m(this,zH,6)};g.getEtag=function(){return Lm(this,7)};g.setEtag=function(a){vu(this,7,a)};g.getContentVerdict=function(){return m(this,yH,10)};g.getRestrictedRetentionState=function(){return m(this,BH,11)};
g.toObject=function(){return fBb(void 0,this)};var fBb=function(a,b){if(null!=b){var c={attachmentId:dj(b,1),contentType:V(b,2),length:dj(b,3),filename:V(b,4),attachmentDataRef:cBb(a,m(b,wH,5)),entityStatus:AH(a,b.getEntityStatus()),etag:Eb(b.getEtag()),contentVerdict:eBb(a,b.getContentVerdict()),restrictedRetentionState:CH(a,b.getRestrictedRetentionState()),restrictedRetention:X(b,12,0)};a&&(c.$jspbMessageInstance=b);return c}};
var EH=function(a){Z.call(this,a)};U(EH,Z);g=EH.prototype;g.getValueCase=function(){return pb(this,FH)};g.getCustomFieldId=function(){return dj(this,1)};g.setCustomFieldId=function(a){return Sk(this,1,a)};g.setTextValue=function(a){ao(this,2,FH,a)};g.getDateValue=function(){return wl(this,Rk,3,FH)};g.setDateValue=function(a){xu(this,3,FH,a)};g.setEnumValue=function(a){ao(this,4,FH,a)};g.setNumericValue=function(a){ao(this,5,FH,a)};g.getRepeatedTextValue=function(){return wl(this,GH,6,FH)};
g.setRepeatedTextValue=function(a){xu(this,6,FH,a)};g.getRepeatedDateValue=function(){return wl(this,HH,7,FH)};g.setRepeatedDateValue=function(a){xu(this,7,FH,a)};g.getRepeatedEnumValue=function(){return wl(this,GH,8,FH)};g.setRepeatedEnumValue=function(a){xu(this,8,FH,a)};g.getRepeatedNumericValue=function(){return wl(this,IH,9,FH)};g.setRepeatedNumericValue=function(a){xu(this,9,FH,a)};g.getDisplayString=function(){return V(this,10)};var GH=function(a){Z.call(this,a,-1,gBb)};U(GH,Z);
GH.prototype.getValuesList=function(){return jb(this,1)};GH.prototype.setValuesList=function(a){hl(this,1,a)};var HH=function(a){Z.call(this,a,-1,hBb)};U(HH,Z);HH.prototype.getValuesList=function(){return rb(this,Rk,1)};HH.prototype.setValuesList=function(a){zb(this,1,a)};var IH=function(a){Z.call(this,a,-1,iBb)};U(IH,Z);IH.prototype.getValuesList=function(){return kb(this,1,Number)};IH.prototype.setValuesList=function(a){hl(this,1,a)};var FH=[2,3,4,5,6,7,8,9];
EH.prototype.toObject=function(){return jBb(void 0,this)};
var jBb=function(a,b){if(null!=b){var c={customFieldId:dj(b,1),textValue:n(Or(b,2,FH)),dateValue:gF(a,b.getDateValue()),enumValue:n(Or(b,4,FH)),numericValue:n(tu(b,qb(b,FH,5))),repeatedTextValue:kBb(a,b.getRepeatedTextValue()),repeatedDateValue:lBb(a,b.getRepeatedDateValue()),repeatedEnumValue:kBb(a,b.getRepeatedEnumValue()),repeatedNumericValue:mBb(a,b.getRepeatedNumericValue()),displayString:V(b,10)};a&&(c.$jspbMessageInstance=b);return c}},gBb=[1];
GH.prototype.toObject=function(){return kBb(void 0,this)};var kBb=function(a,b){if(null!=b){var c={valuesList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},hBb=[1];HH.prototype.toObject=function(){return lBb(void 0,this)};var lBb=function(a,b){if(null!=b){var c={valuesList:Bb(b.getValuesList(),gF,a)};a&&(c.$jspbMessageInstance=b);return c}},iBb=[1];IH.prototype.toObject=function(){return mBb(void 0,this)};
var mBb=function(a,b){if(null!=b){var c={valuesList:n(kb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var JH=function(a){Z.call(this,a,-1,nBb)};U(JH,Z);g=JH.prototype;g.getCustomFieldId=function(){return dj(this,1)};g.setCustomFieldId=function(a){return Sk(this,1,a)};g.getComponentId=function(){return dj(this,2)};g.setComponentId=function(a){return Sk(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return ql(this,3,a)};g.setRequired=function(a){ko(this,4,a)};g.getName=function(){return V(this,5)};g.setName=function(a){return tl(this,5,a)};
g.getDescription=function(){return V(this,6)};g.setDescription=function(a){return tl(this,6,a)};g.getTypedDefaultValue=function(){return m(this,EH,10)};g.setTypedDefaultValue=function(a){Ab(this,10,a)};g.setFieldSignificance=function(a){return ql(this,9,a)};var nBb=[8];JH.prototype.toObject=function(){return oBb(void 0,this)};
var oBb=function(a,b){if(null!=b){var c={customFieldId:dj(b,1),componentId:dj(b,2),type:X(b,3,0),required:W(b,4),name:V(b,5),description:V(b,6),defaultValue:V(b,7),typedDefaultValue:jBb(a,b.getTypedDefaultValue()),enumValuesList:n(jb(b,8)),fieldSignificance:X(b,9,0)};a&&(c.$jspbMessageInstance=b);return c}};
var KH=function(a){Z.call(this,a)};U(KH,Z);KH.prototype.getCustomFieldId=function(){return dj(this,qb(this,LH,1))};KH.prototype.setCustomFieldId=function(a){return ao(this,1,LH,a)};KH.prototype.hasCustomFieldId=function(){return ul(this,1,LH)};KH.prototype.setStandardField=function(a){ao(this,2,LH,a)};var LH=[1,2];KH.prototype.toObject=function(){return pBb(void 0,this)};
var pBb=function(a,b){if(null!=b){var c={customFieldId:n(Or(b,1,LH)),standardField:n(Or(b,2,LH))};a&&(c.$jspbMessageInstance=b);return c}};
var Vm=function(a){Z.call(this,a)};U(Vm,Z);Vm.prototype.toObject=function(){return MH(void 0,this)};var MH=function(a,b){if(null!=b){var c={privateDoNotAccessOrElseSafeHtmlWrappedValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var NH=function(a){Z.call(this,a)};U(NH,Z);NH.prototype.getContent=function(){return m(this,Vm,1)};NH.prototype.setContent=function(a){Ab(this,1,a)};NH.prototype.hasContent=function(){return cj(this,1)};NH.prototype.toObject=function(){return qBb(void 0,this)};var qBb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var OH=function(a){Z.call(this,a)};U(OH,Z);OH.prototype.getContent=function(){return m(this,Vm,1)};OH.prototype.setContent=function(a){Ab(this,1,a)};OH.prototype.hasContent=function(){return cj(this,1)};OH.prototype.toObject=function(){return rBb(void 0,this)};var rBb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var sBb=function(a){Z.call(this,a)};U(sBb,Z);g=sBb.prototype;g.getIsQuoted=function(){return W(this,1)};g.getContent=function(){return m(this,Vm,2)};g.setContent=function(a){Ab(this,2,a)};g.hasContent=function(){return cj(this,2)};g.toObject=function(){return tBb(void 0,this)};var tBb=function(a,b){if(null!=b){var c={isQuoted:W(b,1),content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var PH=function(a){Z.call(this,a,-1,uBb)};U(PH,Z);PH.prototype.getPlainSectionList=function(){return rb(this,sBb,1)};PH.prototype.addPlainSection=function(a){yu(this,1,sBb,a)};var uBb=[1];PH.prototype.toObject=function(){return vBb(void 0,this)};var vBb=function(a,b){if(null!=b){var c={plainSectionList:Bb(b.getPlainSectionList(),tBb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var wBb=function(a){Z.call(this,a)};U(wBb,Z);g=wBb.prototype;g.getKindCase=function(){return pb(this,QH)};g.getPlainFormat=function(){return wl(this,PH,1,QH)};g.setPlainFormat=function(a){xu(this,1,QH,a)};g.hasPlainFormat=function(){return ul(this,1,QH)};g.getMarkdownFormat=function(){return wl(this,OH,2,QH)};g.setMarkdownFormat=function(a){xu(this,2,QH,a)};g.hasMarkdownFormat=function(){return ul(this,2,QH)};g.getLiteralFormat=function(){return wl(this,NH,3,QH)};
g.setLiteralFormat=function(a){xu(this,3,QH,a)};g.hasLiteralFormat=function(){return ul(this,3,QH)};var QH=[1,2,3];wBb.prototype.toObject=function(){return xBb(void 0,this)};var xBb=function(a,b){if(null!=b){var c={plainFormat:vBb(a,b.getPlainFormat()),markdownFormat:rBb(a,b.getMarkdownFormat()),literalFormat:qBb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var RH=function(a){Z.call(this,a,-1,yBb)};U(RH,Z);g=RH.prototype;g.getEmailAddress=function(){return V(this,1)};g.setEmailAddress=function(a){tl(this,1,a)};g.getObfuscatedEmailAddress=function(){return V(this,2)};g.setObfuscatedEmailAddress=function(a){tl(this,2,a)};g.getUserGaiaStatus=function(){return X(this,3,0)};g.setUserGaiaStatus=function(a){ql(this,3,a)};g.getAliasesList=function(){return jb(this,4)};g.setAliasesList=function(a){hl(this,4,a)};var yBb=[4];
RH.prototype.toObject=function(){return SH(void 0,this)};var SH=function(a,b){if(null!=b){var c={emailAddress:V(b,1),obfuscatedEmailAddress:V(b,2),userGaiaStatus:X(b,3,0),aliasesList:n(jb(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var TH=function(a){Z.call(this,a,-1,zBb)};U(TH,Z);TH.prototype.getMentionedUser=function(){return m(this,RH,1)};TH.prototype.getState=function(){return X(this,2,0)};var zBb=[3];TH.prototype.toObject=function(){return ABb(void 0,this)};var ABb=function(a,b){if(null!=b){var c={mentionedUser:SH(a,b.getMentionedUser()),state:X(b,2,0),displayEmailList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var CBb=function(a){Z.call(this,a,-1,BBb)};U(CBb,Z);g=CBb.prototype;g.getIssueId=function(){return dj(this,6)};g.setIssueId=function(a){return Sk(this,6,a)};g.getCommentNumber=function(){return dj(this,7)};g.setCommentNumber=function(a){return Sk(this,7,a)};g.getComment=function(){return V(this,1)};g.setComment=function(a){return tl(this,1,a)};g.getFormattedComment=function(){return m(this,wBb,16)};g.getMentionsList=function(){return rb(this,TH,14)};
g.getFormattingMode=function(){return X(this,9,0)};g.setFormattingMode=function(a){return ql(this,9,a)};g.getAttachmentsList=function(){return rb(this,DH,2)};g.setAttachmentsList=function(a){zb(this,2,a)};g.getModifiedTime=function(){return m(this,rj,4)};g.getEntityStatus=function(){return m(this,zH,5)};g.getVersion=function(){return dj(this,8)};g.setVersion=function(a){return Sk(this,8,a)};g.getContentVerdict=function(){return m(this,yH,10)};
g.getRestrictedRetentionState=function(){return m(this,BH,11)};g.getEtag=function(){return Lm(this,15)};g.setEtag=function(a){vu(this,15,a)};var BBb=[14,2];CBb.prototype.toObject=function(){return DBb(void 0,this)};
var DBb=function(a,b){if(null!=b){var c={issueId:dj(b,6),commentNumber:dj(b,7),comment:V(b,1),formattedComment:xBb(a,b.getFormattedComment()),mentionsList:Bb(b.getMentionsList(),ABb,a),formattingMode:X(b,9,0),attachmentsList:Bb(b.getAttachmentsList(),fBb,a),lastEditor:SH(a,m(b,RH,3)),modifiedTime:Pu(a,b.getModifiedTime()),entityStatus:AH(a,b.getEntityStatus()),version:dj(b,8),contentVerdict:eBb(a,b.getContentVerdict()),restrictedRetentionState:CH(a,b.getRestrictedRetentionState()),restrictedRetention:X(b,
12,0),redacted:W(b,13),etag:Eb(b.getEtag())};a&&(c.$jspbMessageInstance=b);return c}};
var FBb=function(a){Z.call(this,a,-1,EBb)};U(FBb,Z);FBb.prototype.setNotificationSubscription=function(a){return ql(this,4,a)};var EBb=[3];FBb.prototype.toObject=function(){return GBb(void 0,this)};var GBb=function(a,b){if(null!=b){var c={hasStarred:W(b,1),hasUpvoted:W(b,2),editableCommentNumbersList:n(jb(b,3)),notificationSubscription:X(b,4,0),lastViewedTime:Pu(a,m(b,rj,5))};a&&(c.$jspbMessageInstance=b);return c}};
var hn=function(a){Z.call(this,a)};U(hn,Z);hn.prototype.getHref=function(){return V(this,1)};hn.prototype.toObject=function(){return HBb(void 0,this)};var HBb=function(a,b){if(null!=b){var c={href:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var gn=function(a){Z.call(this,a)};U(gn,Z);g=gn.prototype;g.getIssueId=function(){return dj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return dj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.toObject=function(){return IBb(void 0,this)};var IBb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),commentNumber:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var JBb=function(a){Z.call(this,a)};U(JBb,Z);var fn=[1,2];JBb.prototype.toObject=function(){return KBb(void 0,this)};var KBb=function(a,b){if(null!=b){var c={hyperlink:HBb(a,wl(b,hn,1,fn)),issueReference:IBb(a,wl(b,gn,2,fn))};a&&(c.$jspbMessageInstance=b);return c}};
var MBb=function(a){Z.call(this,a,-1,LBb)};U(MBb,Z);g=MBb.prototype;g.getIssueId=function(){return dj(this,2)};g.setIssueId=function(a){return Sk(this,2,a)};g.getIssueState=function(){return m(this,NBb,3)};g.getAttachmentsList=function(){return rb(this,DH,18)};g.setAttachmentsList=function(a){zb(this,18,a)};g.getCreatedTime=function(){return m(this,rj,5)};g.getModifiedTime=function(){return m(this,rj,6)};g.getResolvedTime=function(){return m(this,rj,7)};
g.getVerifiedTime=function(){return m(this,rj,8)};g.getUserData=function(){return m(this,FBb,9)};g.setUserData=function(a){Ab(this,9,a)};g.setVoteCount=function(a){Sk(this,10,a)};g.getParentIssueIdsList=function(){return jb(this,37)};g.setParentIssueIdsList=function(a){hl(this,37,a)};g.getAccessLimit=function(){return m(this,pF,11)};g.setAccessLimit=function(a){return Ab(this,11,a)};g.getVersion=function(){return dj(this,12)};g.setVersion=function(a){return Sk(this,12,a)};
g.getEtag=function(){return Lm(this,13)};g.setEtag=function(a){vu(this,13,a)};g.getCustomFieldsList=function(){return rb(this,JH,15)};g.getVisibleFieldsList=function(){return rb(this,KH,34)};g.setVisibleFieldsList=function(a){zb(this,34,a)};g.getSloStatus=function(){return m(this,OBb,16)};g.setSloStatus=function(a){Ab(this,16,a)};g.getSloId=function(){return dj(this,17)};g.setSloId=function(a){return Sk(this,17,a)};g.getTeamId=function(){return dj(this,33)};
g.setTeamId=function(a){return Sk(this,33,a)};g.getRetentionState=function(){return m(this,BH,29)};g.setRetentionState=function(a){Ab(this,29,a)};g.getAncestorsMap=function(){return Yi(this,38,jm)};g.getChildIssueCount=function(){return dj(this,39)};g.setChildIssueCount=function(a){Sk(this,39,a)};g.getIsArchived=function(){return W(this,40)};g.setIsArchived=function(a){ko(this,40,a)};g.getRelatedLinksList=function(){return rb(this,JBb,41)};var OBb=function(a){Z.call(this,a)};U(OBb,Z);g=OBb.prototype;
g.getAssignmentBounds=function(){return m(this,UH,1)};g.setAssignmentBounds=function(a){Ab(this,1,a)};g.hasAssignmentBounds=function(){return cj(this,1)};g.getResponseBounds=function(){return m(this,UH,2)};g.setResponseBounds=function(a){Ab(this,2,a)};g.hasResponseBounds=function(){return cj(this,2)};g.getClosureBounds=function(){return m(this,UH,3)};g.setClosureBounds=function(a){Ab(this,3,a)};g.hasClosureBounds=function(){return cj(this,3)};var UH=function(a){Z.call(this,a)};U(UH,Z);g=UH.prototype;
g.getStartTime=function(){return m(this,rj,1)};g.setStartTime=function(a){Ab(this,1,a)};g.getEndTime=function(){return m(this,rj,2)};g.setEndTime=function(a){Ab(this,2,a)};g.hasEndTime=function(){return cj(this,2)};g.getTargetTime=function(){return m(this,rj,3)};g.setTargetTime=function(a){Ab(this,3,a)};g.hasTargetTime=function(){return cj(this,3)};var sl=function(a){Z.call(this,a)};U(sl,Z);var jm=function(a){Z.call(this,a,-1,PBb)};U(jm,Z);
jm.prototype.getSourceIssueIdsList=function(){return jb(this,1)};jm.prototype.setSourceIssueIdsList=function(a){return hl(this,1,a)};var NBb=function(a){Z.call(this,a,-1,QBb)};U(NBb,Z);g=NBb.prototype;g.getComponentId=function(){return dj(this,1)};g.setComponentId=function(a){return Sk(this,1,a)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return ql(this,2,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ql(this,3,a)};
g.getPriority=function(){return X(this,4,0)};g.setPriority=function(a){return ql(this,4,a)};g.getSeverity=function(){return X(this,5,0)};g.setSeverity=function(a){return ql(this,5,a)};g.getTitle=function(){return V(this,6)};g.setTitle=function(a){return tl(this,6,a)};g.getReporter=function(){return m(this,RH,7)};g.setReporter=function(a){Ab(this,7,a)};g.getAssignee=function(){return m(this,RH,8)};g.setAssignee=function(a){Ab(this,8,a)};g.clearAssignee=function(){return Ab(this,8)};
g.getVerifier=function(){return m(this,RH,9)};g.setVerifier=function(a){Ab(this,9,a)};g.clearVerifier=function(){return Ab(this,9)};g.getCcsList=function(){return rb(this,RH,10)};g.addHotlistIds=function(a,b){return ob(this,14,a,b)};g.getCustomFieldsList=function(){return rb(this,EH,15)};g.setInProd=function(a){ko(this,20,a)};g.getIsArchived=function(){return W(this,21)};g.setIsArchived=function(a){ko(this,21,a)};g.setIsDeleted=function(a){ko(this,23,a)};
g.setDeletionReason=function(a){ql(this,24,a)};g.getEntityStatus=function(){return m(this,zH,25)};g.getSloSnoozeUntil=function(){return m(this,rj,26)};g.setSloSnoozeUntil=function(a){Ab(this,26,a)};g.setPostmortemsList=function(a){hl(this,27,a)};g.getRetention=function(){return X(this,28,0)};g.setRetention=function(a){ql(this,28,a)};g.getEffort=function(){return m(this,sl,29)};g.setEffort=function(a){Ab(this,29,a)};var LBb=[18,37,31,15,34,41];MBb.prototype.toObject=function(){return RBb(void 0,this)};
var RBb=function(a,b){if(null!=b){var c={issueId:dj(b,2),issueState:SBb(a,b.getIssueState()),issueComment:DBb(a,m(b,CBb,4)),attachmentsList:Bb(b.getAttachmentsList(),fBb,a),createdTime:Pu(a,b.getCreatedTime()),modifiedTime:Pu(a,b.getModifiedTime()),majorModifiedTime:Pu(a,m(b,rj,35)),minorModifiedTime:Pu(a,m(b,rj,36)),lastModifier:SH(a,m(b,RH,14)),resolvedTime:Pu(a,b.getResolvedTime()),verifiedTime:Pu(a,b.getVerifiedTime()),userData:GBb(a,b.getUserData()),voteCount:dj(b,10),parentIssueId:dj(b,30),
parentIssueIdsList:n(jb(b,37)),incomingDependencyIdsList:n(jb(b,31)),accessLimit:Vwb(a,b.getAccessLimit()),version:dj(b,12),etag:Eb(b.getEtag()),customFieldsList:Bb(b.getCustomFieldsList(),oBb,a),visibleFieldsList:Bb(b.getVisibleFieldsList(),pBb,a),sloStatus:TBb(a,b.getSloStatus()),sloId:dj(b,17),teamId:dj(b,33),retentionState:CH(a,b.getRetentionState()),ancestorsMap:Db(b.getAncestorsMap(),a,UBb),childIssueCount:dj(b,39),isArchived:W(b,40),relatedLinksList:Bb(b.getRelatedLinksList(),KBb,a)};a&&(c.$jspbMessageInstance=
b);return c}};OBb.prototype.toObject=function(){return TBb(void 0,this)};var TBb=function(a,b){if(null!=b){var c={assignmentBounds:VBb(a,b.getAssignmentBounds()),responseBounds:VBb(a,b.getResponseBounds()),closureBounds:VBb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};UH.prototype.toObject=function(){return VBb(void 0,this)};
var VBb=function(a,b){if(null!=b){var c={startTime:Pu(a,b.getStartTime()),endTime:Pu(a,b.getEndTime()),targetTime:Pu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};sl.prototype.toObject=function(){return WBb(void 0,this)};var WBb=function(a,b){if(null!=b){var c={specId:dj(b,1),estimate:V(b,2),averageDays:xl(b,3),totalOpen:xl(b,4),totalComplete:xl(b,5)};a&&(c.$jspbMessageInstance=b);return c}},PBb=[1];jm.prototype.toObject=function(){return UBb(void 0,this)};
var UBb=function(a,b){if(null!=b){var c={sourceIssueIdsList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},QBb=[10,12,13,14,15,16,17,18,19,22,27];NBb.prototype.toObject=function(){return SBb(void 0,this)};
var SBb=function(a,b){if(null!=b){var c={componentId:dj(b,1),type:X(b,2,0),status:X(b,3,0),priority:X(b,4,0),severity:X(b,5,0),title:V(b,6),reporter:SH(a,b.getReporter()),assignee:SH(a,b.getAssignee()),verifier:SH(a,b.getVerifier()),ccsList:Bb(b.getCcsList(),SH,a),canonicalIssueId:dj(b,11),blockedByIssueIdsList:n(jb(b,12)),blockingIssueIdsList:n(jb(b,13)),hotlistIdsList:n(jb(b,14)),customFieldsList:Bb(b.getCustomFieldsList(),jBb,a),codeChangesList:n(jb(b,16)),foundInVersionsList:n(jb(b,17)),targetedToVersionsList:n(jb(b,
18)),verifiedInVersionsList:n(jb(b,19)),inProd:W(b,20),isArchived:W(b,21),duplicateIssueIdsList:n(jb(b,22)),isDeleted:W(b,23),deletionReason:X(b,24,0),entityStatus:AH(a,b.getEntityStatus()),sloSnoozeUntil:Pu(a,b.getSloSnoozeUntil()),postmortemsList:n(jb(b,27)),retention:X(b,28,0),effort:WBb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var XBb="TYPE_UNSPECIFIED BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),YBb=Ej({PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5}),ZBb=Ej({SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5}),$Bb=Ej({STATUS_UNSPECIFIED:0,NEW:1,ASSIGNED:2,ACCEPTED:3,FIXED:4,VERIFIED:5,NOT_REPRODUCIBLE:6,INTENDED_BEHAVIOR:7,OBSOLETE:8,INFEASIBLE:9,DUPLICATE:10}),aCb=Ej({TYPE_UNSPECIFIED:0,BUG:1,FEATURE_REQUEST:2,CUSTOMER_ISSUE:3,
INTERNAL_CLEANUP:4,PROCESS:5,VULNERABILITY:6,PRIVACY_ISSUE:7,PROJECT:8,FEATURE:9,MILESTONE:10,EPIC:11,STORY:12,TASK:13}),bCb=aCb.slice(0,7),cCb="PRIORITY_UNSPECIFIED P0 P1 P2 P3 P4".split(" ").slice(1),dCb="SEVERITY_UNSPECIFIED S0 S1 S2 S3 S4".split(" ").slice(1),eCb="STATUS_UNSPECIFIED NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE".split(" ").slice(1),fCb=XBb.slice(1),gCb=XBb.slice(1,8),VH={},hCb=(VH.PRIORITY_UNSPECIFIED="(Unspecified Priority)",
VH.P0="P0",VH.P1="P1",VH.P2="P2",VH.P3="P3",VH.P4="P4",VH),WH={},iCb=(WH.SEVERITY_UNSPECIFIED="(Unspecified Severity)",WH.S0="S0",WH.S1="S1",WH.S2="S2",WH.S3="S3",WH.S4="S4",WH),XH={},jCb=(XH.TYPE_UNSPECIFIED="(Unspecified Issue Type)",XH.BUG="Bug",XH.FEATURE_REQUEST="Feature Request",XH.CUSTOMER_ISSUE="Customer Issue",XH.INTERNAL_CLEANUP="Internal Cleanup",XH.PROCESS="Process",XH.VULNERABILITY="Vulnerability",XH.PRIVACY_ISSUE="Privacy Issue",XH.PROJECT="Project",XH.FEATURE="Feature",XH.MILESTONE=
"Milestone",XH.EPIC="Epic",XH.STORY="Story",XH.TASK="Task",XH),YH={},kCb=(YH.STATUS_UNSPECIFIED="(Unspecified Status)",YH.NEW="New",YH.ASSIGNED="Assigned",YH.ACCEPTED="Accepted",YH.FIXED="Fixed",YH.DUPLICATE="Duplicate",YH.VERIFIED="Fixed (Verified)",YH.NOT_REPRODUCIBLE="Won't Fix (Not reproducible)",YH.INTENDED_BEHAVIOR="Won't Fix (Intended behavior)",YH.OBSOLETE="Won't Fix (Obsolete)",YH.INFEASIBLE="Won't Fix (Infeasible)",YH),lCb=cCb.map(function(a){return hCb[a]}),mCb=dCb.map(function(a){return iCb[a]}),
nCb=fCb.map(function(a){return jCb[a]}),oCb=eCb.map(function(a){return kCb[a]}),pCb=new Map([[1,"Unintended behavior"],[2,"Request for new functionality"],[3,"Issue affecting a 3rd party"],[4,"Maintenance work"],[5,"Miscellaneous non-feature work"],[6,"A security concern"],[7,"A privacy concern"],[8,"Goal-driven effort"],[9,"A collection of work"],[10,"An important achievement"],[11,"A large collection of work"],[12,"A small collection of work"],[13,"A small unit of work"]]),qCb=new Map([["BUG","Unintended behavior"],
["FEATURE_REQUEST","Request for new functionality"],["CUSTOMER_ISSUE","Issue affecting a 3rd party"],["INTERNAL_CLEANUP","Maintenance work"],["PROCESS","Miscellaneous non-feature work"],["VULNERABILITY","A security concern"],["PRIVACY_ISSUE","A privacy concern"],["PROJECT","Goal-driven effort"],["FEATURE","A collection of work"],["MILESTONE","An important achievement"],["EPIC","A large collection of work"],["STORY","A small collection of work"],["TASK","A small unit of work"]]);
var rCb=new Map(Dj(YBb,lCb)),sCb=new Map(Dj(ZBb,mCb)),tCb=new Map(Dj($Bb,oCb)),uCb=new Map(Dj(aCb,nCb)),vCb=new Set("PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" ")),wCb=Zi("enableWtdmMvpUi")?fCb:gCb,xCb=wCb.map(function(a){return{value:a,displayText:vH(a),altText:qCb.get(a)}}),ZH=function(){this.protoPriorities=YBb;this.protoSeverities=ZBb;this.protoStatuses=$Bb;this.protoIssueTypes=Zi("enableWtdmMvpUi")?aCb:bCb;this.protoIssuePrioritiesEnumStrings=new Map(Dj(YBb,cCb));this.protoIssueSeveritiesEnumStrings=
new Map(Dj(ZBb,dCb));this.protoIssueTypesEnumStrings=new Map(Dj(aCb,fCb));this.protoIssueStatusesEnumStrings=new Map(Dj($Bb,eCb));this.priorities=cCb;this.severities=dCb;this.issueTypes=gCb;this.editIssueTypes=wCb;this.editIssueTypeChoices=xCb;Dj(fCb,nCb);this.protoIssuePrioritiesDisplayNames=rCb;this.protoIssueSeveritiesDisplayNames=sCb;this.protoIssueStatusesDisplayNames=tCb;this.protoIssueTypesDisplayNames=uCb;this.protoIssueTypesShortDescriptions=pCb;this.issueTypesShortDescriptions=qCb;this.supportedTimeZones=
[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}]};ZH.\u0275fac=function(a){return new (a||ZH)};ZH.\u0275prov=ec({token:ZH,factory:ZH.\u0275fac,providedIn:"root"});
var $H=function(){this._inset=this._vertical=!1};ki.Object.defineProperties($H.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=Rg(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=Rg(a)}}});$H.\u0275fac=function(a){return new (a||$H)};
$H.\u0275cmp=v({type:$H,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(nf("aria-orientation",b.vertical?"vertical":"horizontal"),sf("mat-divider-vertical",b.vertical)("mat-divider-horizontal",!b.vertical)("mat-divider-inset",b.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(){},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});
var aI=function(a,b){this.constants=a;this.activeSession=b;this.onBulkEdit=new Iw;this.onQuickBulkEdit=new Iw;this.onBulkEditIssueRelation=new Iw;this.onBulkMarkIssueRead=new Iw;this.isAnonymous=this.activeSession.isAnonymous()};aI.prototype.bulkEdit=function(a){this.onBulkEdit.emit(a)};aI.prototype.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};
aI.prototype.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:void 0===b?!0:b})};aI.prototype.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};aI.\u0275fac=function(a){return new (a||aI)(F(ZH),F(pH))};
aI.\u0275cmp=v({type:aI,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},decls:94,vars:18,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["mat-button","",1,"gmat-button","medium",3,"disabled","click"],["editMenu","matMenu"],["mat-menu-item",
"",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["prioritySubmenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["severitySubmenu","matMenu"],["statusSubmenu","matMenu"],["typeSubmenu","matMenu"],["mat-menu-item","",3,"matTooltip","click",4,"ngFor","ngForOf"],["ArchiveSubmenu","matMenu"],["inProdSubmenu","matMenu"],["linkMenu","matMenu"],["emailMenu","matMenu"],["mat-menu-item","",3,"matTooltip","click"]],template:function(a,b){a&1&&(G(0,"b-button-group")(1,"button",0)(2,
"span"),P(3,"Edit"),H(),J(4,"b-icon",1),H(),G(5,"button",2),K("click",function(){return b.bulkMarkIssueRead()}),P(6),H(),G(7,"button",0)(8,"span"),P(9,"Link"),H(),J(10,"b-icon",1),H(),G(11,"button",0)(12,"span"),P(13,"Email"),H(),J(14,"b-icon",1),H()(),G(15,"mat-menu",null,3)(17,"button",4),K("click",function(){return b.bulkEdit("ASSIGNEE")}),P(18,"Assignee"),H(),G(19,"button",4),K("click",function(){return b.bulkEdit("COMPONENT")}),P(20,"Component"),H(),G(21,"button",5),P(22,"Priority"),H(),G(23,
"button",5),P(24,"Severity"),H(),G(25,"button",5),P(26,"Status"),H(),G(27,"button",5),P(28,"Type"),H(),G(29,"button",4),K("click",function(){return b.bulkEdit("VERIFIER")}),P(30,"Verifier"),H(),G(31,"button",4),K("click",function(){return b.bulkEdit("REPORTER")}),P(32,"Reporter"),H(),G(33,"button",4),K("click",function(){return b.bulkEdit("CHANGELIST")}),P(34,"Changelist"),H(),G(35,"button",4),K("click",function(){return b.bulkEdit("CUSTOM_FIELDS")}),P(36,"Custom Fields"),H(),G(37,"button",5),P(38,
" Archival state "),H(),G(39,"button",4),K("click",function(){return b.bulkEdit("FOUND_IN")}),P(40,"Found In"),H(),G(41,"button",4),K("click",function(){return b.bulkEdit("VERIFIED_IN")}),P(42,"Verified In"),H(),G(43,"button",4),K("click",function(){return b.bulkEdit("TARGETED_TO")}),P(44,"Targeted To"),H(),G(45,"button",5),P(46,"In Prod"),H(),J(47,"mat-divider"),G(48,"button",4),K("click",function(){return b.bulkEdit("COMMENT")}),P(49,"Add Comment"),H()(),G(50,"mat-menu",null,6),O(52,Ona,2,1,"button",
7),H(),G(53,"mat-menu",null,8),O(55,Pna,2,1,"button",7),H(),G(56,"mat-menu",null,9),O(58,Qna,2,1,"button",7),H(),G(59,"mat-menu",null,10),O(61,Rna,2,2,"button",11),H(),G(62,"mat-menu",null,12)(64,"button",4),K("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!0)}),P(65,"Archive"),H(),G(66,"button",4),K("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!1)}),P(67,"Unarchive"),H()(),G(68,"mat-menu",null,13)(70,"button",4),K("click",function(){return b.quickBulkEdit("IN_PROD",!0)}),P(71,
"In Prod"),H(),G(72,"button",4),K("click",function(){return b.quickBulkEdit("IN_PROD",!1)}),P(73,"Not in Prod"),H()(),G(74,"mat-menu",null,14)(76,"button",4),K("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!0)}),P(77,"Mark as Blocked By"),H(),G(78,"button",4),K("click",function(){return b.bulkEditIssueRelation("BLOCKING",!0)}),P(79,"Mark as Blocking"),H(),G(80,"button",4),K("click",function(){return b.bulkEditIssueRelation("DUPLICATE")}),P(81,"Duplicate"),H(),G(82,"button",4),K("click",
function(){return b.bulkEditIssueRelation("BLOCKED_BY",!1)}),P(83,"Unmark as Blocked By"),H(),G(84,"button",4),K("click",function(){return b.bulkEditIssueRelation("BLOCKING",!1)}),P(85,"Unmark as Blocking"),H()(),G(86,"mat-menu",null,15)(88,"button",4),K("click",function(){return b.quickBulkEdit("CC",!0)}),P(89,"CC me"),H(),G(90,"button",4),K("click",function(){return b.quickBulkEdit("CC",!1)}),P(91,"Un-CC me"),H(),G(92,"button",4),K("click",function(){return b.bulkEdit("CC")}),P(93,"Edit CC"),H()());
if(a&2){var c=Hf(16),d=Hf(51),e=Hf(54),f=Hf(57),h=Hf(60),k=Hf(63),q=Hf(69),w=Hf(75),y=Hf(87);B(1);D("disabled",b.isAnonymous)("matMenuTriggerFor",c);B(4);D("disabled",b.isAnonymous);B(1);If(" ",b.readStatePrompt," ");B(1);D("disabled",b.isAnonymous)("matMenuTriggerFor",w);B(4);D("disabled",b.isAnonymous)("matMenuTriggerFor",y);B(10);D("matMenuTriggerFor",d);B(2);D("matMenuTriggerFor",e);B(2);D("matMenuTriggerFor",f);B(2);D("matMenuTriggerFor",h);B(10);D("matMenuTriggerFor",k);B(8);D("matMenuTriggerFor",
q);B(7);D("ngForOf",b.constants.protoPriorities);B(3);D("ngForOf",b.constants.protoSeverities);B(3);D("ngForOf",b.constants.protoStatuses);B(3);D("ngForOf",b.constants.protoIssueTypes)}},dependencies:[QE,OE,TE,wx,uH,eH,pB,$H,$E],encapsulation:2,changeDetection:0});
var bI=function(a){this.activeSession=a;this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new Iw;this.flagAsSpamClicked=new Iw;this.isAnonymous=this.activeSession.isAnonymous()};bI.\u0275fac=function(a){return new (a||bI)(F(pH))};
bI.\u0275cmp=v({type:bI,selectors:[["b-app-bar-more-menu"]],inputs:{showExportCsv:"showExportCsv",showFlagIssuesAsSpam:"showFlagIssuesAsSpam"},outputs:{exportCsvClicked:"exportCsvClicked",flagAsSpamClicked:"flagAsSpamClicked"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["moreMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&
O(0,Una,9,4,"ng-container",0);a&2&&D("ngIf",b.showExportCsv||b.showFlagIssuesAsSpam)},dependencies:[QE,OE,TE,sx,uH,pB],encapsulation:2,changeDetection:0});
var cI=function(){};cI.\u0275fac=function(a){return new (a||cI)};cI.\u0275mod=rc({type:cI});cI.\u0275inj=fc({imports:[[Mx]]});
var dI=function(){};dI.\u0275fac=function(a){return new (a||dI)};dI.\u0275mod=rc({type:dI});dI.\u0275inj=fc({imports:[[Mx,dF]]});
var eI=function(){};eI.\u0275fac=function(a){return new (a||eI)};eI.\u0275mod=rc({type:eI});eI.\u0275inj=fc({imports:[[VA],VA]});
var fI=function(){};fI.\u0275fac=function(a){return new (a||fI)};fI.\u0275mod=rc({type:fI});fI.\u0275inj=fc({imports:[[UE,Mx,dI,cI,jG,eI,bH]]});
var gI=function(a,b,c){var d=this;this.activeSession=a;this.connectionChecker=b;this.ssoInterceptorState=c;this.notifyUserAndWaitForGoodConnection$=new T.Observable(function(e){d.ssoInterceptorState.showRefreshSso$.next(!0);var f=d.watchForRestoredConnection$.subscribe(e),h=new T.ReplaySubject(1);d.watchForRestoredConnection$.pipe(Ye(h)).subscribe(function(){d.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){h.next();f.unsubscribe()}});this.watchForRestoredConnection$=(0,T.fromEvent)(window,
"focus").pipe(Xe(function(){return d.connectionChecker.ok$}),De(function(e){return e}),Me(),C(function(){}),Te())};gI.prototype.intercept=function(a,b){return rH(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?yCb(this,b,a):b.handle(a)};
var yCb=function(a,b,c){return new T.Observable(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){zCb(a,b,c,h).pipe(Ye(f)).subscribe(d)}}),f=new T.ReplaySubject(1);return function(){f.next();e.unsubscribe()}})},zCb=function(a,b,c,d){return 403===d.status||404===d.status||429===d.status?(0,T.throwError)(d):a.connectionChecker.ok$.pipe(Xe(function(e){return e?(0,T.throwError)(d):a.notifyUserAndWaitForGoodConnection$.pipe(Xe(function(){return b.handle(c)}))}))};
gI.\u0275fac=function(a){return new (a||gI)(t(pH),t(hI),t(iI))};gI.\u0275prov=ec({token:gI,factory:gI.\u0275fac,providedIn:"root"});var iI=function(){this.showRefreshSso$=new T.BehaviorSubject(!1)};iI.\u0275fac=function(a){return new (a||iI)};iI.\u0275prov=ec({token:iI,factory:iI.\u0275fac,providedIn:"root"});
var hI=function(a){var b=this;this.ngZone=a;this.ok$=new T.Observable(function(c){var d=vi("action/yes",function(){b.ngZone.run(function(){d.isSuccess()?c.next("yes"===d.getResponseText()):c.next(!1);c.complete()})});return function(){d.dispose()}})};hI.\u0275fac=function(a){return new (a||hI)(t(ef))};hI.\u0275prov=ec({token:hI,factory:hI.\u0275fac,providedIn:"root"});var ACb={provide:BE,useClass:gI,multi:!0};
var BCb=function(a,b){return[a,b]},CCb=[[["b-callout-body"]],[["b-callout-actions"]]],jI=function(){this.messageType="info";this.format="default"};jI.prototype.getIconName=function(){if(null!=this.iconOverride)return this.iconOverride;switch(this.messageType){case "caution":return"warning";case "success":return"success";case "error":return"alert";default:return"info"}};jI.\u0275fac=function(a){return new (a||jI)};
jI.\u0275cmp=v({type:jI,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&tf(Of(2,BCb,b.messageType,b.format).join(" "))},inputs:{messageType:"messageType",format:"format",iconOverride:"iconOverride"},ngContentSelectors:["b-callout-body","b-callout-actions"],decls:6,vars:1,consts:[[1,"callout"],[3,"svgIcon"],["role","alert",1,"content"],[1,"actions"]],template:function(a,b){a&1&&(Cf(CCb),G(0,"div",0),J(1,"mat-icon",1),G(2,"div",2),Df(3),H(),G(4,"div",3),Df(5,1),H()());a&2&&(B(1),
D("svgIcon",b.getIconName()))},dependencies:[LE],styles:["[_nghost-%COMP%]{display:block;border-radius:8px;color:#3c4043;color:var(--c800);padding:4px}[_nghost-%COMP%]     .mat-button{min-height:28px;line-height:28px;padding:0px 8px}.app[_nghost-%COMP%]{border-radius:0;padding-left:24px}.app[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:0;margin-right:10px}.content[_ngcontent-%COMP%]{flex-grow:1}mat-icon[_ngcontent-%COMP%]{margin-left:8px;margin-right:4px}.callout[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:36px}.info[_nghost-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50)}.info[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.info[_nghost-%COMP%]    .mat-button, .info[_nghost-%COMP%]    .mat-stroked-button, .info[_nghost-%COMP%]    .mat-icon-button{color:#1a73e8;color:var(--link)}.info[_nghost-%COMP%]    .mat-flat-button, .info[_nghost-%COMP%]    .mat-raised-button{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse)}.archived[_nghost-%COMP%], .caution[_nghost-%COMP%]{background-color:#feefc3;background-color:var(--warn-c50);border-color:#fbbc04;border-color:var(--warn-gfx-muted)}.archived[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%], .caution[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx)}.archived[_nghost-%COMP%]    .mat-button, .archived[_nghost-%COMP%]    .mat-stroked-button, .archived[_nghost-%COMP%]    .mat-icon-button, .caution[_nghost-%COMP%]    .mat-button, .caution[_nghost-%COMP%]    .mat-stroked-button, .caution[_nghost-%COMP%]    .mat-icon-button{color:rgba(0,0,0,.7);color:var(--text-warn)}.archived[_nghost-%COMP%]    .mat-flat-button, .archived[_nghost-%COMP%]    .mat-raised-button, .caution[_nghost-%COMP%]    .mat-flat-button, .caution[_nghost-%COMP%]    .mat-raised-button{background-color:#e37400;background-color:var(--warn-gfx);color:#fff;color:var(--text-inverse)}.error[_nghost-%COMP%]{background-color:#fef4f3;background-color:var(--bad-bg-pale);border-color:#f6aea9;border-color:var(--bad-gfx-muted)}.error[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-gfx)}.error[_nghost-%COMP%]    .mat-button, .error[_nghost-%COMP%]    .mat-stroked-button, .error[_nghost-%COMP%]    .mat-icon-button{color:#c5221f;color:var(--bad-link)}.error[_nghost-%COMP%]    .mat-flat-button, .error[_nghost-%COMP%]    .mat-raised-button{background-color:#a50e0e;background-color:var(--bad-bg-inverse);color:#fff;color:var(--text-inverse)}.success[_nghost-%COMP%]{background-color:#eafaef;background-color:var(--good-bg-pale);border-color:#1e8e3e;border-color:var(--good-gfx)}.success[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1e8e3e;color:var(--good-gfx)}.success[_nghost-%COMP%]    .mat-button, .success[_nghost-%COMP%]    .mat-stroked-button, .success[_nghost-%COMP%]    .mat-icon-button{color:#1e8e3e;color:var(--good-link)}.success[_nghost-%COMP%]    .mat-flat-button, .success[_nghost-%COMP%]    .mat-raised-button{background-color:#34a853;background-color:var(--good);color:#fff;color:var(--text-inverse)}\n/*# sourceMappingURL=callout.css.map */"]});
var kI=function(){};kI.\u0275fac=function(a){return new (a||kI)};kI.\u0275dir=v({type:kI,selectors:[["b-callout-body"],["b-callout-actions"]]});
var lI=function(a,b){this.activeSession=a;this.isAnonymous=this.activeSession.isAnonymous();this.showRefreshSsoMessage$=b.showRefreshSso$};lI.\u0275fac=function(a){return new (a||lI)(F(pH),F(iI))};
lI.\u0275cmp=v({type:lI,selectors:[["b-sso-expired-callout-outlet"]],decls:2,vars:3,consts:[["format","app",3,"messageType",4,"ngIf"],["format","app",3,"messageType"],[4,"ngIf","ngIfElse"],["signedInMessage",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(O(0,$na,7,4,"b-callout",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.showRefreshSsoMessage$))},dependencies:[sx,jI,kI,pB,Fx],encapsulation:2,changeDetection:0});
var aoa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var DCb=Symbol("ic"),ECb=Symbol("jc"),mI=Symbol("kc"),nI=function(){};nI.prototype.schedule=function(a,b){b=void 0===b?0:b;var c=Jj(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[mI]=!0;return}c.resolve(e);d[mI]=!0},b);d[DCb]=b;d[ECb]=c.reject;d[mI]=!1;return c.promise};nI.prototype.cancel=function(a){var b=a[DCb];if(null==b||a[mI])return!1;clearTimeout(b);var c;null==(c=a[ECb])||c.call(a,Error("lc"));return a[mI]=!0};nI.\u0275fac=function(a){return new (a||nI)};
nI.\u0275prov=ec({token:nI,factory:nI.\u0275fac,providedIn:"root"});
var oI=function(a){this.timeout=a};oI.prototype.adapt=function(a){return new FCb(this.timeout,a)};oI.\u0275fac=function(a){return new (a||oI)(t(nI))};oI.\u0275prov=ec({token:oI,factory:oI.\u0275fac,providedIn:"root"});var FCb=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
FCb.prototype.get=function(a){var b=Jj(),c=this.batchedInputs[this.batchedInputs.length-1],d=this.batchedDeferreds[this.batchedDeferreds.length-1];100>c.length?(c.push(a),d.push(b)):(this.batchedInputs.push([a]),this.batchedDeferreds.push([b]));this.isBatchScheduled||GCb(this);return b.promise};
var GCb=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={$jscomp$loop$prop$batchedDeferred$1620:b.$jscomp$loop$prop$batchedDeferred$1620},c++){var d=a.batchedInputs[c];b.$jscomp$loop$prop$batchedDeferred$1620=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.$jscomp$loop$prop$batchedDeferred$1620.length;h++)e.$jscomp$loop$prop$batchedDeferred$1620[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=
r(e.$jscomp$loop$prop$batchedDeferred$1620),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];a.isBatchScheduled=!1})};
var Kj=function(a){Z.call(this,a)};U(Kj,Z);Kj.prototype.toObject=function(){return HCb(void 0,this)};var HCb=function(a,b){if(null!=b){var c={principalType:n(p(b,1)),detailedUserType:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var pI=function(a){this.http=a};g=pI.prototype;g.get=function(a){return this.request("get",a)};g.delete=function(a){return this.request("delete",a)};g.post=function(a){return this.request("post",a,a.body)};g.put=function(a){return this.request("put",a,a.body)};
g.request=function(a,b,c){var d=b.options;d=void 0===d?{}:d;d={headers:d.headers||{},params:Object.assign({},d.params,{enable_jspb:"true"})};var e;c=null!=(e=null==c?void 0:c.toJSON())?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(C(eoa(b.responseConstructor)))};pI.\u0275fac=function(a){return new (a||pI)(t(AE))};pI.\u0275prov=ec({token:pI,factory:pI.\u0275fac,providedIn:"root"});var qI=function(a){this.jspbExecutor=a};qI.prototype.get=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.get(a))};
qI.prototype.delete=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.delete(a))};qI.prototype.post=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.post(a))};qI.prototype.put=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.put(a))};qI.\u0275fac=function(a){return new (a||qI)(t(pI))};qI.\u0275prov=ec({token:qI,factory:qI.\u0275fac,providedIn:"root"});
var ct={COMPONENT_CREATE:"/components/new",HOTLIST_SEARCH:function(a){return"/issues?q=hotlistid:"+a},HOTLIST_VIEW:function(a){return"/hotlists/"+(void 0===a?"":a)},ISSUE:function(a){return"/issues/"+a},ISSUE_LIST:"/issues",ISSUE_CREATE:"/issues/new"},ICb={ISSUE_ID:"issueId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId"},co=function(a){return"hotlists/"+a};
var JCb=function(a){Z.call(this,a)};U(JCb,Z);JCb.prototype.toObject=function(){var a=null!=this?{principalTypeInfoMap:Db(Yi(this,1,Kj),void 0,HCb)}:void 0;return a};JCb.messageId="b.PrincipalTypeInfoBatchResponse";
var rI=function(a,b){this.principalResources=a;this.principalTypeGetter=b.adapt(KCb(this,!1));this.principalTypeWithDetailGetter=b.adapt(KCb(this,!0))},KCb=function(a,b){return function(c){return LCb(a.principalResources,c,b).then(function(d){return coa(c,d)})}};rI.prototype.get=function(a){return sI(this,a,!1)};var sI=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(doa)};rI.\u0275fac=function(a){return new (a||rI)(t(tI),t(oI))};
rI.\u0275prov=ec({token:rI,factory:rI.\u0275fac,providedIn:"root"});var tI=function(a){this.executor=a},LCb=function(a,b,c){var d={};d.email=Cj(b,Bj);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:JCb}).then(boa).then(function(e){for(var f={},h=r(b),k=h.next();!k.done;k=h.next()){k=k.value;var q=e[k];if(q){var w=new Kj;w=l(w,1,q.principalType);q=l(w,2,q.detailedUserType)}else q=null;f[k]=q}return f})};
tI.\u0275fac=function(a){return new (a||tI)(t(qI))};tI.\u0275prov=ec({token:tI,factory:tI.\u0275fac,providedIn:"root"});
var uI=function(a,b){this.cdr=a;this.zone=b;this.destroyed=!1};uI.prototype.ngOnDestroy=function(){this.destroyed=!0};uI.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};uI.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};uI.\u0275fac=function(a){return new (a||uI)(t(lx),t(ef))};uI.\u0275prov=ec({token:uI,factory:uI.\u0275fac});
var vI=function(a,b,c){var d=this;this.session=a;this.principalTypes=b;this.cdr=c;this.showHiringBanner=!1;rH(this.session,"weAreHiring")&&sI(this.principalTypes,this.session.getUserEmail(),!0).then(function(e){d.showHiringBanner=1===X(e,2,0);d.cdr.detectChanges()}).catch(function(){})};vI.\u0275fac=function(a){return new (a||vI)(F(pH),F(rI),F(uI,2))};
vI.\u0275cmp=v({type:vI,selectors:[["b-hiring-banner"]],features:[Lf([uI])],decls:1,vars:1,consts:[["class","hiring-banner","title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",4,"ngIf"],["title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",1,"hiring-banner"]],template:function(a,b){a&1&&O(0,foa,2,0,"a",0);a&2&&D("ngIf",b.showHiringBanner)},dependencies:[sx],styles:[".hiring-banner[_ngcontent-%COMP%]{background:#a02160;color:#fff !important;display:block;font-size:11px;left:50px;overflow:hidden;padding-bottom:3px;position:absolute;text-align:center;top:-85px;transform:rotate(-45deg) translate(-100%, 0);transform-origin:0 0;width:10em;z-index:1000}"],
changeDetection:0});var wI=function(){};wI.\u0275fac=function(a){return new (a||wI)};wI.\u0275mod=rc({type:wI});wI.\u0275inj=fc({imports:[[Mx]]});
var Lj=function(a,b){this.char=a;this.modifiers=b};
var MCb={category:"Edit Issue Page",keys:[Mj("r")],displayAs:"Shift + r",description:"Refresh"},xI={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[Mj("a")],displayAs:"Shift + a",description:"Assign issue to the default assignee for this component"},CHANGE_ASSIGNEE:{category:"Edit Issue Page",keys:["a"],displayAs:"a",description:"Change assignee"},CHANGE_ISSUE_PRIORITY:{category:"Edit Issue Page",keys:[Nj("p","0"),Nj("p","1"),Nj("p","2"),Nj("p","3"),Nj("p","4")],displayAs:"p <n>",
description:"Mark issue as priority [0-4]"},FOCUS_COMMENT_BOX:{category:"Edit Issue Page",keys:["r"],displayAs:"r",description:"Focus the comment box"},GO_TO_NEXT_ISSUE:{category:"Edit Issue Page",keys:["j"],displayAs:"j",description:"Move to the next issue"},GO_TO_PREVIOUS_ISSUE:{category:"Edit Issue Page",keys:["k"],displayAs:"k",description:"Move to the previous issue"},GO_UP_TO_LIST:{category:"Edit Issue Page",keys:["u"],displayAs:"u",description:"Up to issue list"},HIGHLIGHT_ISSUE_ID:{category:"Edit Issue Page",
keys:["i"],displayAs:"i",description:"Highlight issue ID"},OPEN_HOTLIST_PICKER:{category:"Edit Issue Page",keys:["h"],displayAs:"h",description:"Edit hotlists"},REFRESH:MCb,TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},TOGGLE_STAR:{category:"Edit Issue Page",keys:["s"],displayAs:"s",description:"Star/Unstar this issue"}};
/*

 Copyright 2016 Craig Campbell

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 Mousetrap is a simple keyboard shortcut library for Javascript with
 no external dependencies

 @version 1.6.0
 @url craig.is/killing/mice
*/
(function(a,b,c){function d(L,S,Y){L.addEventListener?L.addEventListener(S,Y,!1):L.attachEvent("on"+S,Y)}function e(L){if("keypress"==L.type){var S=String.fromCharCode(L.which);L.shiftKey||(S=S.toLowerCase());return S}return w[L.which]?w[L.which]:y[L.which]?y[L.which]:String.fromCharCode(L.which).toLowerCase()}function f(L){return"shift"==L||"ctrl"==L||"alt"==L||"meta"==L}function h(L,S){var Y,ka=[];"+"===L?L=["+"]:(L=L.replace(/\+{2}/g,"+plus"),L=L.split("+"));for(Y=0;Y<L.length;++Y){var ha=L[Y];
I[ha]&&(ha=I[ha]);S&&"keypress"!=S&&E[ha]&&(ha=E[ha],ka.push("shift"));f(ha)&&ka.push(ha)}L=ha;Y=S;if(!Y){if(!N){N={};for(var ya in w)95<ya&&112>ya||w.hasOwnProperty(ya)&&(N[w[ya]]=ya)}Y=N[L]?"keydown":"keypress"}"keypress"==Y&&ka.length&&(Y="keydown");return{key:ha,modifiers:ka,action:Y}}function k(L,S){return null===L||L===b?!1:L===S?!0:k(L.parentNode,S)}function q(L){function S(ta){ta=ta||{};var Aa=!1,xa;for(xa in Ka)ta[xa]?Aa=!0:Ka[xa]=0;Aa||(Lb=!1)}function Y(ta,Aa,xa,Xa,eb,yc){var Ua,bb,Sa=
[],ub=xa.type;if(!Ja._callbacks[ta])return[];"keyup"==ub&&f(ta)&&(Aa=[ta]);for(Ua=0;Ua<Ja._callbacks[ta].length;++Ua)if(bb=Ja._callbacks[ta][Ua],(Xa||!bb.seq||Ka[bb.seq]==bb.level)&&ub==bb.action){var cb;(cb="keypress"==ub&&!xa.metaKey&&!xa.ctrlKey)||(cb=bb.modifiers,cb=Aa.sort().join(",")===cb.sort().join(","));cb&&(cb=Xa&&bb.seq==Xa&&bb.level==yc,(!Xa&&bb.combo==eb||cb)&&Ja._callbacks[ta].splice(Ua,1),Sa.push(bb))}return Sa}function ka(ta,Aa,xa,Xa){Ja.stopCallback(Aa,Aa.target||Aa.srcElement,xa,
Xa)||!1!==ta(Aa,xa)||(Aa.preventDefault?Aa.preventDefault():Aa.returnValue=!1,Aa.stopPropagation?Aa.stopPropagation():Aa.cancelBubble=!0)}function ha(ta){"number"!==typeof ta.which&&(ta.which=ta.keyCode);var Aa=e(ta);if(Aa)if("keyup"==ta.type&&hb===Aa)hb=!1;else{var xa=Ja,Xa=xa.handleKey,eb=[];ta.shiftKey&&eb.push("shift");ta.altKey&&eb.push("alt");ta.ctrlKey&&eb.push("ctrl");ta.metaKey&&eb.push("meta");Xa.call(xa,Aa,eb,ta)}}function ya(ta,Aa,xa,Xa){function eb(Sa){return function(){Lb=Sa;++Ka[ta];
clearTimeout(Ma);Ma=setTimeout(S,1E3)}}function yc(Sa){ka(xa,Sa,ta);"keyup"!==Xa&&(hb=e(Sa));setTimeout(S,10)}for(var Ua=Ka[ta]=0;Ua<Aa.length;++Ua){var bb=Ua+1===Aa.length?yc:eb(Xa||h(Aa[Ua+1]).action);Ha(Aa[Ua],bb,Xa,ta,Ua)}}function Ha(ta,Aa,xa,Xa,eb){Ja._directMap[ta+":"+xa]=Aa;ta=ta.replace(/\s+/g," ");var yc=ta.split(" ");1<yc.length?ya(ta,yc,Aa,xa):(xa=h(ta,xa),Ja._callbacks[xa.key]=Ja._callbacks[xa.key]||[],Y(xa.key,xa.modifiers,{type:xa.action},Xa,ta,eb),Ja._callbacks[xa.key][Xa?"unshift":
"push"]({callback:Aa,modifiers:xa.modifiers,action:xa.action,seq:Xa,level:eb,combo:ta}))}var Ja=this;L=L||b;if(!(Ja instanceof q))return new q(L);Ja.target=L;Ja._callbacks={};Ja._directMap={};var Ka={},Ma,hb=!1,fb=!1,Lb=!1;Ja._handleKey=function(ta,Aa,xa){var Xa=Y(ta,Aa,xa),eb;Aa={};var yc=0,Ua=!1;for(eb=0;eb<Xa.length;++eb)Xa[eb].seq&&(yc=Math.max(yc,Xa[eb].level));for(eb=0;eb<Xa.length;++eb)Xa[eb].seq?Xa[eb].level==yc&&(Ua=!0,Aa[Xa[eb].seq]=1,ka(Xa[eb].callback,xa,Xa[eb].combo,Xa[eb].seq)):Ua||
ka(Xa[eb].callback,xa,Xa[eb].combo);Xa="keypress"==xa.type&&fb;xa.type!=Lb||f(ta)||Xa||S(Aa);fb=Ua&&"keydown"==xa.type};Ja._bindMultiple=function(ta,Aa,xa){for(var Xa=0;Xa<ta.length;++Xa)Ha(ta[Xa],Aa,xa)};d(L,"keypress",ha);d(L,"keydown",ha);d(L,"keyup",ha)}if(a){var w={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},
y={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},I={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},N;for(c=1;20>c;++c)w[111+c]="f"+c;for(c=0;9>=c;++c)w[c+96]=c;q.prototype.bind=
function(L,S,Y){L=L instanceof Array?L:[L];this._bindMultiple.call(this,L,S,Y);return this};q.prototype.unbind=function(L,S){return this.bind.call(this,L,function(){},S)};q.prototype.trigger=function(L,S){if(this._directMap[L+":"+S])this._directMap[L+":"+S]({},L);return this};q.prototype.reset=function(){this._callbacks={};this._directMap={};return this};q.prototype.stopCallback=function(L,S){return-1<(" "+S.className+" ").indexOf(" mousetrap ")||k(S,this.target)?!1:"INPUT"==S.tagName||"SELECT"==
S.tagName||"TEXTAREA"==S.tagName||S.isContentEditable};q.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};q.addKeycodes=function(L){for(var S in L)L.hasOwnProperty(S)&&(w[S]=L[S]);N=null};q.init=function(){var L=q(b),S;for(S in L)"_"!==S.charAt(0)&&(q[S]=function(Y){return function(){return L[Y].apply(L,arguments)}}(S))};q.init();a.Mousetrap=q;"undefined"!==typeof module&&module.exports&&(module.exports=q);"function"===typeof define&&define.amd&&define(function(){return q})}})("undefined"!==
typeof window?window:null,"undefined"!==typeof window?document:null);
var yI=function(a){this.executor=a},NCb=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:sj,body:Hna(b)}).pipe(C(function(c){return zna(c)}))};yI.\u0275fac=function(a){return new (a||yI)(t(pI))};yI.\u0275prov=ec({token:yI,factory:yI.\u0275fac,providedIn:"root"});
var zI=function(a){this.userPreferencesManagerBase=a;this.destroyed$=new T.ReplaySubject(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(C(Fi));this.textDisplayPreferences$=this.preferences$.pipe(C(function(b){return b.textDisplayPreferences||{}}));this.textDisplayPreferencesSubject$=Oj(this.textDisplayPreferences$.pipe(Ye(this.destroyed$)),{});this.lastPublishMode$=this.textDisplayPreferences$.pipe(C(function(b){return b.lastPublishMode}),
Le());this.lastPublishModeProto$=this.lastPublishMode$.pipe(C(qna));this.themePreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.themePreferences)?c:Fi(oH.themePreferences)}),Qj());this.listViewPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.listViewPreferences)?c:Fi(oH.listViewPreferences)}),Qj());this.layoutPreferences$=this.preferences$.pipe(C(this.getLayoutPreferences),Qj());this.dateTimePreferences$=this.preferences$.pipe(C(function(b){var c;return null!=
(c=b.dateTimePreferences)?c:Fi(oH.dateTimePreferences)}),Qj());this.homepagePreferences$=this.preferences$.pipe(C(this.getHomepagePreferences),Qj());this.keyboardPrefs$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.keyboardPreferences)?c:Fi(oH.keyboardPreferences)}),Qj());this.displayColumnsPreferences$=this.preferences$.pipe(C(function(b){var c,d;return null!=(d=null==(c=b.displayColumns)?void 0:c.column)?d:[]}),Qj());this.sortColumnsPreferences$=this.preferences$.pipe(C(function(b){var c,
d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}),Qj());this.bugScreensaverPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.bugScreensaverPreferences)?c:Fi(oH.bugScreensaverPreferences)}),Qj());this.bugScreensaverSubject$=Oj(this.bugScreensaverPreferences$.pipe(Ye(this.destroyed$)),oH.bugScreensaverPreferences);this.g3nPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.g3nPreferences)?c:Fi(oH.g3nPreferences)}),Qj());this.g3nSubject$=
Oj(this.g3nPreferences$.pipe(Ye(this.destroyed$)),oH.g3nPreferences);this.newIssueDetailsPagePreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.newIssueDetailsPagePreferences)?c:Fi(oH.newIssueDetailsPagePreferences)}),Qj());this.newIssueDetailsPagePreferencesSubject$=Oj(this.newIssueDetailsPagePreferences$.pipe(Ye(this.destroyed$)),oH.newIssueDetailsPagePreferences);this.teamWarningPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.teamWarningPreferences)?
c:Fi(oH.teamWarningPreferences)}),Qj());this.teamWarningPreferencesSubject$=Oj(this.teamWarningPreferences$.pipe(Ye(this.destroyed$)),oH.teamWarningPreferences);this.codeFont$=this.preferences$.pipe(C(function(b){return!!b.useCodefont}),Le());this.autoCcOnComment$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.autoCcOnComment)?c:!1}),Le());this.showFullHistory$=this.preferences$.pipe(C(function(b){return!!b.showFullHistory}),Le());this.showRecentEventsFirst$=this.preferences$.pipe(C(function(b){return!!b.showRecentEventsFirst}),
Le())};zI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};zI.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};var OCb=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(C(a.getLayoutPreferences))},PCb=function(a,b){return a.save({homepagePreferences:b}).pipe(C(a.getHomepagePreferences))};zI.prototype.clearHomepagePreferences=function(){return PCb(this,{})};
var QCb=function(a,b){return a.save({displayColumns:{column:b}}).pipe(C(function(c){var d,e;return null!=(e=null==(d=c.displayColumns)?void 0:d.column)?e:[]}))};zI.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(C(function(b){var c,d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}))};var RCb=function(a,b){return a.save({teamWarningPreferences:b}).pipe(C(function(c){var d;return null!=(d=c.teamWarningPreferences)?d:Fi(oH.teamWarningPreferences)}))};
zI.prototype.getLayoutPreferences=function(a){var b;return null!=(b=a.layoutPreferences)?b:Fi(oH.layoutPreferences)};zI.prototype.getHomepagePreferences=function(a){var b;return null!=(b=a.homepagePreferences)?b:Fi(oH.homepagePreferences)};zI.\u0275fac=function(a){return new (a||zI)(t(AI))};zI.\u0275prov=ec({token:zI,factory:zI.\u0275fac,providedIn:"root"});
var AI=function(a,b){this.activeSession=a;this.userPreferencesResources=b;this.preferences$=new T.BehaviorSubject(Fi(oH));a=this.preferences$.value;if(b=this.activeSession.getUserPreferences())a=Object.assign({},a,b),SCb(a);this.preferences$.next(a)};AI.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?(0,T.of)(TCb(this,a)):NCb(this.userPreferencesResources,a).pipe(C(function(){return TCb(b,a)}))};
var TCb=function(a,b){var c=Fi(a.preferences$.value);c=Object.assign({},c,b);SCb(c);a.preferences$.next(c);return c},SCb=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=oH.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=oH.dateTimePreferences.timeFormat))};AI.\u0275fac=function(a){return new (a||AI)(t(pH),t(yI))};AI.\u0275prov=ec({token:AI,factory:AI.\u0275fac,providedIn:"root"});
var BI=function(){this.destroyed$=new T.ReplaySubject(1);this.subscriptions=new T.Subscription};BI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};BI.\u0275fac=function(a){return new (a||BI)};BI.\u0275dir=v({type:BI});
var CI=function(){BI.apply(this,arguments);this.routeChangeStart=new T.Subject;this.routeChangeSuccess=new T.Subject;this.locationChangeStart=new T.Subject;this.locationChangeSuccess=new T.Subject;this.routeUpdate=new T.Subject;this.viewContentLoaded=new T.Subject};U(CI,BI);CI.\u0275dir=BI.\u0275dir;CI.\u0275fac=function(){var a;return function(b){return(a||(a=cd(CI)))(b||CI)}}();CI.\u0275prov=ec({token:CI,factory:CI.\u0275fac,providedIn:"root"});
var DI=function(a,b){this.id=a;this.url=b},EI=function(a,b,c,d){c=void 0===c?"imperative":c;d=void 0===d?null:d;DI.call(this,a,b);this.navigationTrigger=c;this.restoredState=d};U(EI,DI);EI.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var FI=function(a,b,c){DI.call(this,a,b);this.urlAfterRedirects=c};U(FI,DI);FI.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};
var GI=function(a,b,c){DI.call(this,a,b);this.reason=c};U(GI,DI);GI.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var UCb=function(a,b,c){DI.call(this,a,b);this.error=c};U(UCb,DI);UCb.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var VCb=function(a,b,c,d){DI.call(this,a,b);this.urlAfterRedirects=c;this.state=d};U(VCb,DI);
VCb.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var WCb=function(a,b,c,d){DI.call(this,a,b);this.urlAfterRedirects=c;this.state=d};U(WCb,DI);WCb.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var XCb=function(a,b,c,d,e){DI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e};U(XCb,DI);XCb.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var YCb=function(a,b,c,d){DI.call(this,a,b);this.urlAfterRedirects=c;this.state=d};U(YCb,DI);
YCb.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var ZCb=function(a,b,c,d){DI.call(this,a,b);this.urlAfterRedirects=c;this.state=d};U(ZCb,DI);ZCb.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var $Cb=function(a){this.route=a};
$Cb.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var aDb=function(a){this.route=a};aDb.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var lpa=function(a){this.snapshot=a};lpa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var bDb=function(a){this.snapshot=a};
bDb.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var Gk=function(a){this.snapshot=a};Gk.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var cDb=function(a){this.snapshot=a};cDb.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var dDb=function(a,b){this.position=a;this.anchor=b};dDb.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};
var HI=function(a){this.params=a||{}};HI.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};HI.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};HI.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};ki.Object.defineProperties(HI.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});
var qoa={exact:uoa,subset:xoa},roa={exact:toa,subset:voa,ignored:function(){return!0}},lk=function(a,b,c){this.root=a;this.queryParams=b;this.fragment=c};lk.prototype.toString=function(){return eDb.serialize(this)};ki.Object.defineProperties(lk.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new HI(this.queryParams));return this._queryParamMap}}});
var mk=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;Sj(b,function(d){return d.parent=c})};mk.prototype.hasChildren=function(){return 0<this.numberOfChildren};mk.prototype.toString=function(){return Xj(this)};ki.Object.defineProperties(mk.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var gk=function(a,b){this.path=a;this.parameters=b};gk.prototype.toString=function(){return Wj(this.path)+Aoa(this.parameters)};
var fDb=function(){},gDb=function(){};gDb.prototype.parse=function(a){a=new hDb(a);II(a,"/");var b=""===a.remaining||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new mk([],{}):new mk([],iDb(a));return new lk(b,a.parseQueryParams(),II(a,"#")?decodeURIComponent(a.remaining):null)};gDb.prototype.serialize=function(a){var b="/"+Yj(a.root,!0),c=Coa(a.queryParams);a="string"===typeof a.fragment?"#"+encodeURI(a.fragment):"";return b+c+a};
var eDb=new gDb,Doa=/^[^\/()?;=#]+/,jDb=/^[^=?&#]+/,kDb=/^[^&#]+/,hDb=function(a){this.remaining=this.url=a};
hDb.prototype.parseQueryParams=function(){var a={};if(II(this,"?")){do{var b,c=this.remaining.match(jDb);if(b=c?c[0]:""){this.capture(b);c="";if(II(this,"=")){var d;if(d=(d=this.remaining.match(kDb))?d[0]:"")c=d,this.capture(c)}b=decodeURIComponent(b.replace(/\+/g,"%20"));c=decodeURIComponent(c.replace(/\+/g,"%20"));a.hasOwnProperty(b)?(d=a[b],Array.isArray(d)||(d=[d],a[b]=d),d.push(c)):a[b]=c}}while(II(this,"&"))}return a};
var iDb=function(a){if(""===a.remaining)return{};II(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(lDb(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(lDb(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=mDb(a,!0));var d={};a.remaining.startsWith("(")&&(d=mDb(a,!1));if(0<b.length||0<Object.keys(c).length)d.primary=new mk(b,c);return d},lDb=function(a){var b=ak(a.remaining);if(""===b&&a.remaining.startsWith(";"))throw Error("oc`"+
a.remaining);a.capture(b);b=decodeURIComponent(b);for(var c={};II(a,";");){var d=a,e=ak(d.remaining);if(e){d.capture(e);var f="";if(II(d,"=")){var h=ak(d.remaining);h&&(f=h,d.capture(f))}c[decodeURIComponent(e)]=decodeURIComponent(f)}}return new gk(b,c)},mDb=function(a,b){var c={};for(a.capture("(");!II(a,")")&&0<a.remaining.length;){var d=ak(a.remaining),e=a.remaining[d.length];if("/"!==e&&")"!==e&&";"!==e)throw Error("pc`"+a.url);e=void 0;-1<d.indexOf(":")?(e=d.slice(0,d.indexOf(":")),a.capture(e),
a.capture(":")):b&&(e="primary");d=iDb(a);c[e]=1===Object.keys(d).length?d.primary:new mk([],d);II(a,"//")}return c},II=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};hDb.prototype.capture=function(a){if(!II(this,a))throw Error("qc`"+a);};
var JI=function(a){this._root=a};JI.prototype.parent=function(a){a=this.pathFromRoot(a);return 1<a.length?a[a.length-2]:null};JI.prototype.children=function(a){return(a=Eoa(a,this._root))?a.children.map(function(b){return b.value}):[]};JI.prototype.firstChild=function(a){return(a=Eoa(a,this._root))&&0<a.children.length?a.children[0].value:null};JI.prototype.pathFromRoot=function(a){return Foa(a,this._root).map(function(b){return b.value})};
ki.Object.defineProperties(JI.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var dk=function(a,b){this.value=a;this.children=b};dk.prototype.toString=function(){return"TreeNode("+this.value+")"};
var hk=function(a,b){this._root=a;this.snapshot=b;Joa(this,a)};U(hk,JI);hk.prototype.toString=function(){return this.snapshot.toString()};var fk=function(a,b,c,d,e,f,h,k){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;this._futureSnapshot=k};fk.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
ki.Object.defineProperties(fk.prototype,{routeConfig:{configurable:!0,enumerable:!0,get:function(){return this._futureSnapshot.routeConfig}},root:{configurable:!0,enumerable:!0,get:function(){return this._routerState.root}},parent:{configurable:!0,enumerable:!0,get:function(){return this._routerState.parent(this)}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this._routerState.firstChild(this)}},children:{configurable:!0,enumerable:!0,get:function(){return this._routerState.children(this)}},
pathFromRoot:{configurable:!0,enumerable:!0,get:function(){return this._routerState.pathFromRoot(this)}},paramMap:{configurable:!0,enumerable:!0,get:function(){this._paramMap||(this._paramMap=this.params.pipe(C(function(a){return new HI(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(C(function(a){return new HI(a)})));return this._queryParamMap}}});
var ek=function(a,b,c,d,e,f,h,k,q,w,y,E){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;this.routeConfig=k;this._urlSegment=q;this._lastPathIndex=w;this._correctedLastPathIndex=null!=E?E:w;this._resolve=y};ek.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
ki.Object.defineProperties(ek.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._routerState.root}},parent:{configurable:!0,enumerable:!0,get:function(){return this._routerState.parent(this)}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this._routerState.firstChild(this)}},children:{configurable:!0,enumerable:!0,get:function(){return this._routerState.children(this)}},pathFromRoot:{configurable:!0,enumerable:!0,get:function(){return this._routerState.pathFromRoot(this)}},
paramMap:{configurable:!0,enumerable:!0,get:function(){this._paramMap||(this._paramMap=new HI(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new HI(this.queryParams));return this._queryParamMap}}});var ck=function(a,b){this._root=b;this.url=a;Joa(this,b)};U(ck,JI);ck.prototype.toString=function(){return Koa(this._root)};
var Roa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&0<c.length&&jk(c[0]))throw Error("rc");if((a=c.find(kk))&&a!==(0<c.length?c[c.length-1]:null))throw Error("sc");},nDb=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};
var oDb=function(){this.resolver=this.route=this.outlet=null;this.children=new KI;this.attachRef=null},KI=function(){this.contexts=new Map},pDb=function(a){var b=a.contexts;a.contexts=new Map;return b},qDb=function(a,b){var c=a.getContext(b);c||(c=new oDb,a.contexts.set(b,c));return c};KI.prototype.getContext=function(a){return this.contexts.get(a)||null};
var LI=function(a,b,c,d,e){this.parentContexts=a;this.location=b;this.resolver=c;this.changeDetector=e;this._activatedRoute=this.activated=null;this.activateEvents=new Iw;this.deactivateEvents=new Iw;this.attachEvents=new Iw;this.detachEvents=new Iw;b=this.name=d||"primary";c=qDb(a,b);c.outlet=this;a.contexts.set(b,c)};g=LI.prototype;g.ngOnDestroy=function(){var a=this.parentContexts.getContext(this.name);a&&(a.outlet=null,a.attachRef=null)};
g.ngOnInit=function(){if(!this.activated){var a=this.parentContexts.getContext(this.name);a&&a.route&&(a.attachRef?this.attach(a.attachRef,a.route):rDb(this,a.route,a.resolver||null))}};g.detach=function(){if(!this.activated)throw Error("uc");this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};g.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);this.attachEvents.emit(a.instance)};
g.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};var rDb=function(a,b,c){if(a.isActivated)throw Error("vc");a._activatedRoute=b;var d=b._futureSnapshot.routeConfig.component;c=c||a.resolver;c=Qv(c,d);d=qDb(a.parentContexts,a.name).children;a.activated=a.location.createComponent(c,a.location.length,new sDb(b,d,a.location.injector));a.changeDetector.markForCheck();a.activateEvents.emit(a.activated.instance)};
ki.Object.defineProperties(LI.prototype,{isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("uc");return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("uc");return this._activatedRoute}}});LI.\u0275fac=function(a){return new (a||LI)(F(KI),F(Wf),F(Jv),Xc("name"),F(lx))};
LI.\u0275dir=v({type:LI,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]});var sDb=function(a,b,c){this.route=a;this.childContexts=b;this.parent=c};sDb.prototype.get=function(a,b){return a===fk?this.route:a===KI?this.childContexts:this.parent.get(a,b)};
var pk=function(){};pk.\u0275fac=function(a){return new (a||pk)};pk.\u0275cmp=v({type:pk,selectors:[["ng-component"]],decls:1,vars:0,template:function(a){a&1&&J(0,"router-outlet")},dependencies:[LI],encapsulation:2});
var uDb=function(a,b,c){return C(function(d){(new tDb(b,d.targetRouterState,d.currentRouterState,c)).activate(a);return d})},tDb=function(a,b,c,d){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d};tDb.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;vDb(this,b,c,a);Loa(this.futureState.root);MI(this,b,c,a)};
var vDb=function(a,b,c,d){var e=bk(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,w=k?k.value:null;q===w?q.component?(q=d.getContext(q.outlet))&&vDb(a,f,k,q.children):vDb(a,f,k,d):w&&wDb(a,k,d);delete e[h]});Sj(e,function(f){wDb(a,f,d)})},wDb=function(a,b,c){if(b.value.component&&a.routeReuseStrategy.shouldDetach()){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;for(var e=bk(b),f=r(Object.keys(e)),h=f.next();!h.done;h=f.next())wDb(a,e[h.value],c);d&&
d.outlet&&(c=d.outlet.detach(),d=pDb(d.children),a.routeReuseStrategy.store(b.value.snapshot,{componentRef:c,route:b,contexts:d}))}else{c=(d=c.getContext(b.value.outlet))&&b.value.component?d.children:c;b=bk(b);e=r(Object.keys(b));for(f=e.next();!f.done;f=e.next())wDb(a,b[f.value],c);d&&d.outlet&&(d.outlet.deactivate(),pDb(d.children),d.attachRef=null,d.resolver=null,d.route=null)}},MI=function(a,b,c,d){var e=bk(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;
Loa(k);if(k===q)k.component?(k=qDb(d,k.outlet),MI(a,f,h,k.children)):MI(a,f,h,d);else if(k.component){h=qDb(d,k.outlet);if(a.routeReuseStrategy.shouldAttach()){var w=a.routeReuseStrategy.retrieve();a.routeReuseStrategy.store(k.snapshot,null);h.children.contexts=w.contexts;h.attachRef=w.componentRef;h.route=w.route.value;h.outlet&&h.outlet.attach(w.componentRef,w.route.value);Loa(w.route.value)}else{var y,E;q=null!=(E=null==(w=Zoa(k.snapshot))?void 0:null==(y=w.get(Kv))?void 0:y.componentFactoryResolver)?
E:null;h.attachRef=null;h.route=k;h.resolver=q;h.outlet&&rDb(h.outlet,k,q)}MI(a,f,null,h.children)}else MI(a,f,null,d);a.forwardEvent(new cDb(f.value.snapshot))});b.children.length&&a.forwardEvent(new bDb(b.value.snapshot))};
var tk=Symbol("wc");
var $oa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
var yk=function(a){this.segmentGroup=a||null},xDb=function(a){this.urlTree=a},Ak=function(a,b,c,d,e){this.injector=a;this.configLoader=b;this.urlSerializer=c;this.urlTree=d;this.config=e;this.allowRedirects=!0};
Ak.prototype.apply=function(){var a=this,b=xk(this.urlTree.root,[],[],this.config).segmentGroup;b=new mk(b.segments,b.children);return yDb(this,this.injector,this.config,b,"primary").pipe(C(function(c){return a.createUrlTree(dpa(c),a.urlTree.queryParams,a.urlTree.fragment)})).pipe(Ie(function(c){if(c instanceof xDb)return a.allowRedirects=!1,a.match(c.urlTree);if(c instanceof yk)throw Error("yc`"+c.segmentGroup);throw c;}))};
Ak.prototype.match=function(a){var b=this;return yDb(this,this.injector,this.config,a.root,"primary").pipe(C(function(c){return b.createUrlTree(dpa(c),a.queryParams,a.fragment)})).pipe(Ie(function(c){if(c instanceof yk)throw Error("yc`"+c.segmentGroup);throw c;}))};Ak.prototype.createUrlTree=function(a,b,c){var d={};a=0<a.segments.length?new mk([],(d.primary=a,d)):a;return new lk(a,b,c)};
var yDb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?zDb(a,b,c,d).pipe(C(function(f){return new mk([],f)})):ADb(a,b,d,c,d.segments,e,!0)},zDb=function(a,b,c,d){for(var e=[],f=r(Object.keys(d.children)),h=f.next();!h.done;h=f.next())h=h.value,"primary"===h?e.unshift(h):e.push(h);return(0,T.from)(e).pipe(we(function(k){var q=d.children[k],w=Yoa(c,k);return yDb(a,b,w,q,k).pipe(C(function(y){return{segment:y,outlet:k}}))},1),Qe(function(k,q){k[q.outlet]=q.segment;return k},{}),wga())},
ADb=function(a,b,c,d,e,f,h){return(0,T.from)(d).pipe(we(function(k){return BDb(a,b,c,d,k,e,f,h).pipe(Ie(function(q){if(q instanceof yk)return(0,T.of)(null);throw q;}))},1),Oe(function(k){return!!k}),Ie(function(k){if(k instanceof T.EmptyError||"EmptyError"===k.name)return 0!==e.length||c.children[f]?zk(c):(0,T.of)(new mk([],{}));throw k;}))},BDb=function(a,b,c,d,e,f,h,k){if(cpa(e,c,f,h))if(void 0===e.redirectTo)a=CDb(a,b,c,e,f,h);else{var q;k&&a.allowRedirects?q="**"===e.path?DDb(a,b,d,e,h):EDb(a,
b,c,d,e,f,h):q=zk(c);a=q}else a=zk(c);return a},DDb=function(a,b,c,d,e){var f=FDb(a,[],d.redirectTo,{});return d.redirectTo.startsWith("/")?(0,T.throwError)(new xDb(f)):GDb(d,f).pipe(we(function(h){var k=new mk(h,{});return ADb(a,b,k,c,h,e,!1)}))},EDb=function(a,b,c,d,e,f,h){f=vk(c,e,f);var k=f.consumedSegments,q=f.remainingSegments,w=f.positionalParamSegments;if(!f.matched)return zk(c);f=FDb(a,k,e.redirectTo,w);return e.redirectTo.startsWith("/")?(0,T.throwError)(new xDb(f)):GDb(e,f).pipe(we(function(y){return ADb(a,
b,c,d,y.concat(q),h,!1)}))},CDb=function(a,b,c,d,e,f){if("**"===d.path)return d.loadChildren?(d._loadedRoutes?(0,T.of)({routes:d._loadedRoutes,injector:d._loadedInjector}):a.configLoader.load(b,d)).pipe(C(function(w){d._loadedRoutes=w.routes;d._loadedInjector=w.injector;return new mk(e,{})})):(0,T.of)(new mk(e,{}));var h=vk(c,d,e),k=h.consumedSegments,q=h.remainingSegments;return h.matched?HDb(a,b,d,e).pipe(we(function(w){var y,E=null!=(y=w.injector)?y:b;w=w.routes;var I=xk(c,k,q,w);y=I.segmentGroup;
I=I.slicedSegments;y=new mk(y.segments,y.children);return 0===I.length&&y.hasChildren()?zDb(a,E,w,y).pipe(C(function(N){return new mk(k,N)})):0===w.length&&0===I.length?(0,T.of)(new mk(k,{})):ADb(a,E,y,w,I,qk(d)===f?"primary":f,!0).pipe(C(function(N){return new mk(k.concat(N.segments),N.children)}))})):zk(c)},HDb=function(a,b,c,d){return c.children?(0,T.of)({routes:c.children,injector:b}):c.loadChildren?void 0!==c._loadedRoutes?(0,T.of)({routes:c._loadedRoutes,injector:c._loadedInjector}):IDb(a,b,
c,d).pipe(we(function(e){return e?a.configLoader.load(b,c).pipe(C(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector;return f})):(0,T.throwError)(noa("Cannot load children because the guard of the route \"path: '"+c.path+"'\" returned false"))})):(0,T.of)({routes:[],injector:b})},IDb=function(a,b,c,d){var e=c.canLoad;if(!e||0===e.length)return(0,T.of)(!0);e=e.map(function(f){if((f=b.get(f))&&rk(f.canLoad))f=f.canLoad(c,d);else if(rk(f))f=f(c,d);else throw Error("zc");return Tj(f)});
return(0,T.of)(e).pipe(uk(),Ze(function(f){if(sk(f)){var h=noa('Redirecting to "'+a.urlSerializer.serialize(f)+'"');h.url=f;throw h;}}),C(function(f){return!0===f}))},GDb=function(a,b){var c=[];for(b=b.root;;){c=c.concat(b.segments);if(0===b.numberOfChildren)return(0,T.of)(c);if(1<b.numberOfChildren||!b.children.primary)return(0,T.throwError)(Error("xc`"+a.redirectTo));b=b.children.primary}},FDb=function(a,b,c,d){var e=a.urlSerializer.parse(c);b=JDb(a,c,e.root,b,d);return new lk(b,KDb(e.queryParams,
a.urlTree.queryParams),e.fragment)},KDb=function(a,b){var c={};Sj(a,function(d,e){c[e]="string"===typeof d&&d.startsWith(":")?b[d.substring(1)]:d});return c},JDb=function(a,b,c,d,e){var f=LDb(b,c.segments,d,e),h={};Sj(c.children,function(k,q){h[q]=JDb(a,b,k,d,e)});return new mk(f,h)},LDb=function(a,b,c,d){return b.map(function(e){if(e.path.startsWith(":")){var f=d[e.path.substring(1)];if(!f)throw Error("Ac`"+a+"`"+e.path);e=f}else a:{f=0;for(var h=r(c),k=h.next();!k.done;k=h.next()){k=k.value;if(k.path===
e.path){c.splice(f);e=k;break a}f++}}return e})};
var gpa=function(a){this.path=a;this.route=this.path[this.path.length-1]},Ek=function(a,b){this.component=a;this.route=b};
var qpa=function(){},ppa=function(a,b,c,d,e,f){this.rootComponentType=a;this.config=b;this.urlTree=c;this.url=d;this.paramsInheritanceStrategy=e;this.relativeLinkResolution=f};
ppa.prototype.recognize=function(){var a=xk(this.urlTree.root,[],[],this.config.filter(function(c){return void 0===c.redirectTo}),this.relativeLinkResolution).segmentGroup;a=MDb(this,this.config,a,"primary");if(null===a)return null;var b=new ek([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{});a=new ck(this.url,new dk(b,a));NDb(this,a._root);return a};
var NDb=function(a,b){var c=b.value,d=Ioa(c,a.paramsInheritanceStrategy);c.params=Object.freeze(d.params);c.data=Object.freeze(d.data);b.children.forEach(function(e){return NDb(a,e)})},MDb=function(a,b,c,d){return 0===c.segments.length&&c.hasChildren()?a.processChildren(b,c):ODb(a,b,c,c.segments,d)};
ppa.prototype.processChildren=function(a,b){for(var c=[],d=r(Object.keys(b.children)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b.children[e],h=Yoa(a,e);e=MDb(this,h,f,e);if(null===e)return null;c.push.apply(c,u(e))}a=upa(c);spa(a);return a};
var ODb=function(a,b,c,d,e){b=r(b);for(var f=b.next();!f.done;f=b.next())if(f=PDb(a,f.value,c,d,e),null!==f)return f;return 0!==d.length||c.children[e]?null:[]},PDb=function(a,b,c,d,e){if(b.redirectTo||!cpa(b,c,d,e))return null;var f=[],h=[];if("**"===b.path){var k=wpa(c)+d.length;d=new ek(d,0<d.length?(0<d.length?d[d.length-1]:null).parameters:{},Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,b.data||{},qk(b),b.component,b,vpa(c),k,b.resolve||{},k)}else{d=vk(c,b,d);if(!d.matched)return null;
f=d.consumedSegments;h=d.remainingSegments;k=wpa(c)+f.length;d=new ek(f,d.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,b.data||{},qk(b),b.component,b,vpa(c),k,b.resolve||{},k)}k=b.children?b.children:b.loadChildren?b._loadedRoutes:[];f=xk(c,f,h,k.filter(function(q){return void 0===q.redirectTo}),a.relativeLinkResolution);c=f.segmentGroup;f=f.slicedSegments;if(0===f.length&&c.hasChildren())return a=a.processChildren(k,c),null===a?null:[new dk(d,a)];if(0===k.length&&
0===f.length)return[new dk(d,[])];a=ODb(a,k,c,f,qk(b)===e?"primary":e);return null===a?null:[new dk(d,a)]};
var Apa=Symbol("Ec");
var QDb=function(){},RDb=function(){};g=RDb.prototype;g.shouldDetach=function(){return!1};g.store=function(){};g.shouldAttach=function(){return!1};g.retrieve=function(){return null};g.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var SDb=function(){};U(SDb,RDb);
var TDb=new jd("ROUTES"),NI=function(a){this.injector=a;this.routeLoaders=new WeakMap};
NI.prototype.load=function(a,b){var c=this;if(this.routeLoaders.get(b))return this.routeLoaders.get(b);if(b._loadedRoutes)return(0,T.of)({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=UDb(this,b.loadChildren).pipe(C(function(e){if(c.onLoadEndListener)c.onLoadEndListener(b);e=e.create(a).injector;return{routes:Array.prototype.concat.apply([],e.get(TDb,[],10)).map(ok),injector:e}}),rga(function(){c.routeLoaders.delete(b)}));d=(new T.ConnectableObservable(d,
function(){return new T.Subject})).pipe(je());this.routeLoaders.set(b,d);return d};var UDb=function(a,b){return"string"===typeof b?(0,T.from)(a.injector.get(Rmb).load(b)):Tj(b()).pipe(we(function(c){return c instanceof mlb?(0,T.of)(c):(0,T.from)(Promise.resolve(new Tv(c)))}))};NI.\u0275fac=function(a){return new (a||NI)(t(Hv),t(Yv))};NI.\u0275prov=ec({token:NI,factory:NI.\u0275fac});
var VDb=function(){};VDb.prototype.extract=function(a){return a};VDb.prototype.merge=function(a){return a};
var WDb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},XDb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Hk=function(a,b,c,d,e,f,h){var k=this;this.rootComponentType=a;this.urlSerializer=b;this.rootContexts=c;this.location=d;this.config=h;this.currentNavigation=this.lastSuccessfulNavigation=null;this.disposed=!1;this.currentPageId=this.navigationId=0;this.events=new T.Subject;this.errorHandler=Fpa;this.malformedUriErrorHandler=Gpa;this.navigated=
!1;this.lastSuccessfulId=-1;this.hooks={beforePreactivation:Hpa,afterPreactivation:Hpa};this.urlHandlingStrategy=new VDb;this.routeReuseStrategy=new SDb;this.onSameUrlNavigation="ignore";this.paramsInheritanceStrategy="emptyOnly";this.urlUpdateStrategy="deferred";this.relativeLinkResolution="corrected";this.canceledNavigationResolution="replace";this.configLoader=e.get(NI);this.configLoader.onLoadEndListener=function(q){k.events.next(new aDb(q))};this.configLoader.onLoadStartListener=function(q){k.events.next(new $Cb(q))};
this.ngModule=e.get(Kv);this.console=e.get(Xv);e.get(ef)instanceof ef&&Jw();this.config=h.map(ok);this.navigated=!1;this.lastSuccessfulId=-1;this.browserUrlTree=this.rawUrlTree=this.currentUrlTree=new lk(new mk([],{}),{},null);this.routerState=Goa(this.currentUrlTree,this.rootComponentType);this.transitions=new T.BehaviorSubject({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=YDb(this,this.transitions);ZDb(this)},YDb=function(a,b){var c=a.events;return b.pipe(De(function(d){return 0!==d.id}),C(function(d){return Object.assign({},d,{extractedUrl:a.urlHandlingStrategy.extract(d.rawUrl)})}),
Xe(function(d){var e=!1,f=!1;return(0,T.of)(d).pipe(Ze(function(h){a.currentNavigation={id:h.id,initialUrl:h.rawUrl,extractedUrl:h.extractedUrl,trigger:h.source,extras:h.extras,previousNavigation:a.lastSuccessfulNavigation?Object.assign({},a.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Xe(function(h){var k=a.browserUrlTree.toString();k=!a.navigated||h.extractedUrl.toString()!==k||k!==a.currentUrlTree.toString();if("reload"===a.onSameUrlNavigation||k)return"imperative"!==h.source&&(a.browserUrlTree=
h.extractedUrl),(0,T.of)(h).pipe(Xe(function(E){var I=a.transitions.getValue();c.next(new EI(E.id,OI(a,E.extractedUrl),E.source,E.restoredState));return I!==a.transitions.getValue()?T.EMPTY:Promise.resolve(E)}),epa(a.ngModule.injector,a.configLoader,a.urlSerializer,a.config),Ze(function(E){a.currentNavigation=Object.assign({},a.currentNavigation,{finalUrl:E.urlAfterRedirects})}),xpa(a.rootComponentType,a.config,function(E){return OI(a,E)},a.paramsInheritanceStrategy,a.relativeLinkResolution),Ze(function(E){if("eager"===
a.urlUpdateStrategy){if(!E.extras.skipLocationChange){var I=a.urlHandlingStrategy.merge(E.urlAfterRedirects,E.rawUrl);$Db(a,I,E)}a.browserUrlTree=E.urlAfterRedirects}E=new VCb(E.id,OI(a,E.extractedUrl),OI(a,E.urlAfterRedirects),E.targetSnapshot);c.next(E)}));if(k&&a.rawUrlTree){k=h.extractedUrl;var q=h.source,w=h.restoredState,y=h.extras;q=new EI(h.id,OI(a,k),q,w);c.next(q);q=Goa(k,a.rootComponentType).snapshot;return(0,T.of)(Object.assign({},h,{targetSnapshot:q,urlAfterRedirects:k,extras:Object.assign({},
y,{skipLocationChange:!1,replaceUrl:!1})}))}a.rawUrlTree=h.rawUrl;h.resolve(null);return T.EMPTY}),Epa(function(h){var k=h.extras;return a.hooks.beforePreactivation(h.targetSnapshot,{navigationId:h.id,appliedUrlTree:h.extractedUrl,rawUrlTree:h.rawUrl,skipLocationChange:!!k.skipLocationChange,replaceUrl:!!k.replaceUrl})}),Ze(function(h){h=new WCb(h.id,OI(a,h.extractedUrl),OI(a,h.urlAfterRedirects),h.targetSnapshot);a.events.next(h)}),C(function(h){var k=Object,q=k.assign;var w=h.currentSnapshot;var y=
h.targetSnapshot._root;w=Ck(y,w?w._root:null,a.rootContexts,[y.value]);return q.call(k,{},h,{guards:w})}),jpa(a.ngModule.injector,function(h){a.events.next(h)}),Ze(function(h){if(sk(h.guardsResult)){var k=noa('Redirecting to "'+OI(a,h.guardsResult)+'"');k.url=h.guardsResult;throw k;}h=new XCb(h.id,OI(a,h.extractedUrl),OI(a,h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);a.events.next(h)}),De(function(h){return h.guardsResult?!0:(aEb(a,h),bEb(a,h,""),!1)}),Epa(function(h){if(h.guards.canActivateChecks.length)return(0,T.of)(h).pipe(Ze(function(k){k=
new YCb(k.id,OI(a,k.extractedUrl),OI(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}),Xe(function(k){var q=!1;return(0,T.of)(k).pipe(zpa(a.paramsInheritanceStrategy,a.ngModule.injector),Ze({next:function(){return q=!0},complete:function(){q||(aEb(a,k),bEb(a,k,"At least one route resolver didn't emit any value."))}}))}),Ze(function(k){k=new ZCb(k.id,OI(a,k.extractedUrl),OI(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}))}),Epa(function(h){var k=h.extras;return a.hooks.afterPreactivation(h.targetSnapshot,
{navigationId:h.id,appliedUrlTree:h.extractedUrl,rawUrlTree:h.rawUrl,skipLocationChange:!!k.skipLocationChange,replaceUrl:!!k.replaceUrl})}),C(function(h){var k=h.targetSnapshot;var q=h.currentRouterState;q=ik(a.routeReuseStrategy,k._root,q?q._root:void 0);k=new hk(q,k);return Object.assign({},h,{targetRouterState:k})}),Ze(function(h){a.currentUrlTree=h.urlAfterRedirects;a.rawUrlTree=a.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);a.routerState=h.targetRouterState;"deferred"===a.urlUpdateStrategy&&
(h.extras.skipLocationChange||$Db(a,a.rawUrlTree,h),a.browserUrlTree=h.urlAfterRedirects)}),uDb(a.rootContexts,a.routeReuseStrategy,function(h){a.events.next(h)}),Ze({next:function(){e=!0},complete:function(){e=!0}}),rga(function(){e||f||bEb(a,d,"Navigation ID "+d.id+" is not equal to the current navigation id "+a.navigationId);var h;(null==(h=a.currentNavigation)?void 0:h.id)===d.id&&(a.currentNavigation=null)}),Ie(function(h){f=!0;if(h&&h.ngNavigationCancelingError){var k=sk(h.url);k||(a.navigated=
!0,aEb(a,d,!0));var q=new GI(d.id,OI(a,d.extractedUrl),h.message);c.next(q);k?setTimeout(function(){var w=a.urlHandlingStrategy.merge(h.url,a.rawUrlTree);cEb(a,w,"imperative",null,{skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===a.urlUpdateStrategy||"imperative"!==d.source},{resolve:d.resolve,reject:d.reject,promise:d.promise})},0):d.resolve(!1)}else{aEb(a,d,!0);k=new UCb(d.id,OI(a,d.extractedUrl),h);c.next(k);try{d.resolve(a.errorHandler(h))}catch(w){d.reject(w)}}return T.EMPTY}))}))};
Hk.prototype.setTransition=function(a){this.transitions.next(Object.assign({},this.transitions.value,a))};Hk.prototype.initialNavigation=function(){dEb(this);0===this.navigationId&&bt(this,this.location.path(!0),{replaceUrl:!0})};
var dEb=function(a){a.locationSubscription||(a.locationSubscription=a.location.subscribe(function(b){var c="popstate"===b.type?"popstate":"hashchange";"popstate"===c&&setTimeout(function(){var d={replaceUrl:!0},e,f=(null==(e=b.state)?0:e.navigationId)?b.state:null;f&&(e=Object.assign({},f),delete e.navigationId,delete e.\u0275routerPageId,0!==Object.keys(e).length&&(d.state=e));e=eEb(a,b.url);cEb(a,e,c,f,d)},0)}))};Hk.prototype.ngOnDestroy=function(){this.dispose()};
Hk.prototype.dispose=function(){this.transitions.complete();this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0);this.disposed=!0};
Hk.prototype.createUrlTree=function(a,b){b=void 0===b?{}:b;var c=b.queryParams,d=b.fragment,e=b.relativeTo||this.routerState.root;d=b.preserveFragment?this.currentUrlTree.fragment:d;switch(b.queryParamsHandling){case "merge":c=Object.assign({},this.currentUrlTree.queryParams,c);break;case "preserve":c=this.currentUrlTree.queryParams;break;default:c=c||null}null!==c&&(c=fEb(c));b=this.currentUrlTree;d=null!=d?d:null;if(0===a.length)b=Qoa(b.root,b.root,b.root,c,d);else if(a=Soa(a),a.isAbsolute&&1===
a.commands.length&&"/"==a.commands[0])b=Qoa(b.root,b.root,new mk([],{}),c,d);else{var f,h=null==(f=e.snapshot)?void 0:f._lastPathIndex,k;f=null==(k=e.snapshot)?void 0:k._urlSegment;if(a.isAbsolute)k=new nDb(b.root,!0,0);else if(-1===h)k=new nDb(f,f===b.root,0);else{k=f;f=h+(jk(a.commands[0])?0:1);for(e=a.numberOfDoubleDots;e>f;){e-=f;k=k.parent;if(!k)throw Error("tc");f=k.segments.length}k=new nDb(k,!1,f-e)}a=k.processChildren?nk(k.segmentGroup,k.index,a.commands):Voa(k.segmentGroup,k.index,a.commands);
b=Qoa(b.root,k.segmentGroup,a,c,d)}return b};var bt=function(a,b,c){c=void 0===c?{skipLocationChange:!1}:c;b=sk(b)?b:eEb(a,b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return cEb(a,b,"imperative",null,c)};Hk.prototype.navigate=function(a,b){b=void 0===b?{skipLocationChange:!1}:b;for(var c=0;c<a.length;c++){var d=a[c];if(null==d)throw Error("Fc`"+d+"`"+c);}return bt(this,this.createUrlTree(a,b),b)};
var OI=function(a,b){return a.urlSerializer.serialize(b)},eEb=function(a,b){try{var c=a.urlSerializer.parse(b)}catch(d){c=a.malformedUriErrorHandler(d,a.urlSerializer,b)}return c};Hk.prototype.isActive=function(a,b){var c;!0===b?c=Object.assign({},WDb):!1===b?c=Object.assign({},XDb):c=b;if(sk(a))return soa(this.currentUrlTree,a,c);a=eEb(this,a);return soa(this.currentUrlTree,a,c)};
var fEb=function(a){return Object.keys(a).reduce(function(b,c){var d=a[c];null!==d&&void 0!==d&&(b[c]=d);return b},{})},ZDb=function(a){a.navigations.subscribe(function(b){a.navigated=!0;a.lastSuccessfulId=b.id;a.currentPageId=b.targetPageId;a.events.next(new FI(b.id,OI(a,b.extractedUrl),OI(a,a.currentUrlTree)));a.lastSuccessfulNavigation=a.currentNavigation;var c;null==(c=a.titleStrategy)||c.updateTitle(a.routerState.snapshot);b.resolve(!0)},function(b){a.console.warn("Unhandled Navigation Error: "+
b)})},cEb=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var h=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(I,N){h=I;k=N});var q=++a.navigationId;if("computed"===a.canceledNavigationResolution)if(0===a.currentPageId&&(d=a.location.getState()),d&&d.\u0275routerPageId)var w=d.\u0275routerPageId;else if(e.replaceUrl||e.skipLocationChange){var y;w=null!=(y=a.browserPageId)?y:0}else{var E;w=(null!=(E=a.browserPageId)?E:0)+1}else w=0;a.setTransition({id:q,targetPageId:w,
source:c,restoredState:d,currentUrlTree:a.currentUrlTree,currentRawUrl:a.rawUrlTree,rawUrl:b,extras:e,resolve:h,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(I){return Promise.reject(I)})},$Db=function(a,b,c){b=a.urlSerializer.serialize(b);var d=Object.assign({},c.extras.state,gEb(a,c.id,c.targetPageId)),e=a.location;var f=void 0===f?"":f;e.path()==e.normalize(b+yg(f))||c.extras.replaceUrl?a.location.replaceState(b,"",d):a.location.go(b,
"",d)},aEb=function(a,b,c){c=void 0===c?!1:c;if("computed"===a.canceledNavigationResolution){c=a.currentPageId-b.targetPageId;var d;if("popstate"!==b.source&&"eager"!==a.urlUpdateStrategy&&a.currentUrlTree!==(null==(d=a.currentNavigation)?void 0:d.finalUrl)||0===c){var e;a.currentUrlTree===(null==(e=a.currentNavigation)?void 0:e.finalUrl)&&0===c&&(a.resetState(b),a.browserUrlTree=b.currentUrlTree,hEb(a))}else a.location.historyGo(c)}else"replace"===a.canceledNavigationResolution&&(c&&a.resetState(b),
hEb(a))};Hk.prototype.resetState=function(a){this.routerState=a.currentRouterState;this.currentUrlTree=a.currentUrlTree;this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)};
var hEb=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",gEb(a,a.lastSuccessfulId,a.currentPageId))},bEb=function(a,b,c){c=new GI(b.id,OI(a,b.extractedUrl),c);a.events.next(c);b.resolve(!1)},gEb=function(a,b,c){return"computed"===a.canceledNavigationResolution?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
ki.Object.defineProperties(Hk.prototype,{browserPageId:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this.location.getState())?void 0:a.\u0275routerPageId}},url:{configurable:!0,enumerable:!0,get:function(){return OI(this,this.currentUrlTree)}}});Hk.\u0275fac=function(){wf()};Hk.\u0275prov=ec({token:Hk,factory:Hk.\u0275fac});
var PI=function(a,b,c,d,e){this.router=a;this.route=b;this.tabIndexAttribute=c;this.renderer=d;this.el=e;this.commands=null;this.onChanges=new T.Subject;iEb(this,"0")},iEb=function(a,b){if(null==a.tabIndexAttribute){var c=a.renderer;a=a.el.nativeElement;null!==b?c.setAttribute(a,"tabindex",b):c.removeAttribute(a,"tabindex")}};PI.prototype.ngOnChanges=function(){this.onChanges.next(this)};
PI.prototype.onClick=function(){if(null===this.urlTree)return!0;bt(this.router,this.urlTree,{skipLocationChange:ig(this.skipLocationChange),replaceUrl:ig(this.replaceUrl),state:this.state});return!0};
ki.Object.defineProperties(PI.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?(this.commands=Array.isArray(a)?a:[a],iEb(this,"0")):(this.commands=null,iEb(this,null))}},urlTree:{configurable:!0,enumerable:!0,get:function(){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:ig(this.preserveFragment)})}}});
PI.\u0275fac=function(a){return new (a||PI)(F(Hk),F(fk),Xc("tabindex"),F(Mv),F(nd))};PI.\u0275dir=v({type:PI,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(a,b){a&1&&K("click",function(){return b.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Ac]});
var QI=function(a,b,c){var d=this;this.router=a;this.route=b;this.locationStrategy=c;this.href=this.commands=null;this.onChanges=new T.Subject;this.subscription=a.events.subscribe(function(e){e instanceof FI&&jEb(d)})};QI.prototype.ngOnChanges=function(){jEb(this);this.onChanges.next(this)};QI.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
QI.prototype.onClick=function(a,b,c,d,e){if(0!==a||b||c||d||e||"string"===typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;bt(this.router,this.urlTree,{skipLocationChange:ig(this.skipLocationChange),replaceUrl:ig(this.replaceUrl),state:this.state});return!1};var jEb=function(a){a.href=null!==a.urlTree?a.locationStrategy.prepareExternalUrl(OI(a.router,a.urlTree)):null};
ki.Object.defineProperties(QI.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?this.commands=Array.isArray(a)?a:[a]:this.commands=null}},urlTree:{configurable:!0,enumerable:!0,get:function(){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:ig(this.preserveFragment)})}}});
QI.\u0275fac=function(a){return new (a||QI)(F(Hk),F(fk),F(Px))};
QI.\u0275dir=v({type:QI,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(a,b){a&1&&K("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&nf("target",b.target)("href",b.href,Kd)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",
routerLink:"routerLink"},features:[Ac]});
var RI=function(a,b,c,d,e,f){var h=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.link=e;this.linkWithHref=f;this.classes=[];this.isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new Iw;this.routerEventsSubscription=a.events.subscribe(function(k){k instanceof FI&&h.update()})};RI.prototype.ngAfterContentInit=function(){var a=this;(0,T.of)(this.links.changes,this.linksWithHrefs.changes,(0,T.of)(null)).pipe(xe()).subscribe(function(){a.update();kEb(a)})};
var kEb=function(a){var b;null==(b=a.linkInputChangesSubscription)||b.unsubscribe();b=[].concat(u(a.links.toArray()),u(a.linksWithHrefs.toArray()),[a.link,a.linkWithHref]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=(0,T.from)(b).pipe(xe()).subscribe(function(c){a.isActive!==lEb(a,a.router)(c)&&a.update()})};RI.prototype.ngOnChanges=function(){this.update()};
RI.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;null==(a=this.linkInputChangesSubscription)||a.unsubscribe()};RI.prototype.update=function(){var a=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var b=mEb(a);a.isActive!==b&&(a.isActive=b,a.cdr.markForCheck(),a.classes.forEach(function(c){b?a.renderer.addClass(a.element.nativeElement,c):a.renderer.removeClass(a.element.nativeElement,c)}),a.isActiveChange.emit(b))})};
var lEb=function(a,b){var c=a.routerLinkActiveOptions.paths?a.routerLinkActiveOptions:a.routerLinkActiveOptions.exact||!1;return function(d){return d.urlTree?b.isActive(d.urlTree,c):!1}},mEb=function(a){var b=lEb(a,a.router);return a.link&&b(a.link)||a.linkWithHref&&b(a.linkWithHref)||a.links.some(b)||a.linksWithHrefs.some(b)};ki.Object.defineProperties(RI.prototype,{routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});
RI.\u0275fac=function(a){return new (a||RI)(F(Hk),F(nd),F(Mv),F(lx),F(PI,8),F(QI,8))};RI.\u0275dir=v({type:RI,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&($f(c,PI,5),$f(c,QI,5));if(a&2){var d;Yf(d=ag())&&(b.links=d);Yf(d=ag())&&(b.linksWithHrefs=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ac]});
var nEb=function(){},oEb=function(a){for(a=a.root;void 0!==a;){var b=void 0;var c=null!=(b=a.data[Apa])?b:c;a=a.children.find(function(d){return"primary"===d.outlet})}return c},SI=function(a){this.title=a};U(SI,nEb);SI.prototype.updateTitle=function(a){a=oEb(a);void 0!==a&&this.title.setTitle(a)};SI.\u0275fac=function(a){return new (a||SI)(t($y))};SI.\u0275prov=ec({token:SI,factory:SI.\u0275fac,providedIn:"root"});
var pEb=function(){},qEb=function(){};qEb.prototype.preload=function(a,b){return b().pipe(Ie(function(){return(0,T.of)(null)}))};var rEb=function(){};rEb.prototype.preload=function(){return(0,T.of)(null)};var TI=function(a,b,c,d,e){this.router=a;this.injector=c;this.preloadingStrategy=d;this.loader=e},sEb=function(a){a.subscription=a.router.events.pipe(De(function(b){return b instanceof FI}),we(function(){return a.preload()},1)).subscribe(function(){})};
TI.prototype.preload=function(){return tEb(this,this.injector,this.router.config)};TI.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var tEb=function(a,b,c){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e.loadChildren&&!e.canLoad&&e._loadedRoutes){var f=void 0;d.push(tEb(a,null!=(f=e._loadedInjector)?f:b,e._loadedRoutes))}else e.loadChildren&&!e.canLoad?d.push(uEb(a,b,e)):e.children&&d.push(tEb(a,b,e.children));return(0,T.from)(d).pipe(xe(),C(function(){}))},uEb=function(a,b,c){return a.preloadingStrategy.preload(c,function(){return(c._loadedRoutes?(0,T.of)({routes:c._loadedRoutes,injector:c._loadedInjector}):
a.loader.load(b,c)).pipe(we(function(d){c._loadedRoutes=d.routes;c._loadedInjector=d.injector;var e;return tEb(a,null!=(e=d.injector)?e:b,d.routes)}))})};TI.\u0275fac=function(a){return new (a||TI)(t(Hk),t(Yv),t(Hv),t(pEb),t(NI))};TI.\u0275prov=ec({token:TI,factory:TI.\u0275fac});
var UI=function(a,b,c){c=void 0===c?{}:c;this.router=a;this.viewportScroller=b;this.options=c;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};c.scrollPositionRestoration=c.scrollPositionRestoration||"disabled";c.anchorScrolling=c.anchorScrolling||"disabled"};
UI.prototype.init=function(){if("disabled"!==this.options.scrollPositionRestoration){var a=this.viewportScroller;try{if(Ux(a)){var b=Object.getOwnPropertyDescriptor(a.window.history,"scrollRestoration")||Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a.window.history),"scrollRestoration");var c=!!b&&!(!b.writable&&!b.set)}else c=!1}catch(d){c=!1}c&&(a=a.window.history)&&a.scrollRestoration&&(a.scrollRestoration="manual")}this.routerEventsSubscription=vEb(this);this.scrollEventsSubscription=
wEb(this)};
var vEb=function(a){return a.router.events.subscribe(function(b){b instanceof EI?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof FI&&(a.lastId=b.id,b=eEb(a.router,b.urlAfterRedirects).fragment,a.router.events.next(new dDb("popstate"===a.lastSource?a.store[a.restoredId]:null,b)))})},wEb=function(a){return a.router.events.subscribe(function(b){if(b instanceof dDb)if(b.position)"top"===a.options.scrollPositionRestoration?
enb(a.viewportScroller,[0,0]):"enabled"===a.options.scrollPositionRestoration&&enb(a.viewportScroller,b.position);else if(b.anchor&&"enabled"===a.options.anchorScrolling){var c=a.viewportScroller;if(Ux(c)){a:{var d=c.document;b=b.anchor;var e=d.getElementById(b)||d.getElementsByName(b)[0];if(e)b=e;else{if("function"===typeof d.createTreeWalker&&d.body&&(d.body.createShadowRoot||d.body.attachShadow))for(d=d.createTreeWalker(d.body,NodeFilter.SHOW_ELEMENT),e=d.currentNode;e;){if(e=e.shadowRoot)if(e=
e.getElementById(b)||e.querySelector('[name="'+b+'"]')){b=e;break a}e=d.nextNode()}b=null}}if(b){e=b.getBoundingClientRect();d=e.left+c.window.pageXOffset;e=e.top+c.window.pageYOffset;var f=c.offset();c.window.scrollTo(d-f[0],e-f[1]);b.focus()}}}else"disabled"!==a.options.scrollPositionRestoration&&enb(a.viewportScroller,[0,0])})};UI.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe();this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()};
UI.\u0275fac=function(){wf()};UI.\u0275prov=ec({token:UI,factory:UI.\u0275fac});
var VI=new jd("ROUTER_CONFIGURATION"),xEb=new jd("ROUTER_FORROOT_GUARD"),yEb=[Tx,{provide:fDb,useClass:gDb},{provide:Hk,useFactory:Jpa,deps:[fDb,KI,Tx,Hv,Yv,TDb,VI,SI,[nEb,new Ev],[function(){},new Ev],[QDb,new Ev]]},KI,{provide:fk,useFactory:Kpa,deps:[Hk]},TI,rEb,qEb,{provide:VI,useValue:{enableTracing:!1}},NI],WI=function(){};WI.\u0275fac=function(a){return new (a||WI)(t(xEb,8),t(Hk,8))};WI.\u0275mod=rc({type:WI});WI.\u0275inj=fc({});
var XI=function(a){this.injector=a;this.destroyed=this.initNavigation=!1;this.resultOfPreactivationDone=new T.Subject};
XI.prototype.appInitializer=function(){var a=this;return this.injector.get($mb,Promise.resolve(null)).then(function(){if(a.destroyed)return Promise.resolve(!0);var b=null,c=new Promise(function(f){return b=f}),d=a.injector.get(Hk),e=a.injector.get(VI);"disabled"===e.initialNavigation?(dEb(d),b(!0)):"enabled"===e.initialNavigation||"enabledBlocking"===e.initialNavigation?(d.hooks.afterPreactivation=function(){if(a.initNavigation)return(0,T.of)(null);a.initNavigation=!0;b(!0);return a.resultOfPreactivationDone},
d.initialNavigation()):b(!0);return c})};XI.prototype.bootstrapListener=function(a){var b=this.injector.get(VI),c=this.injector.get(TI),d=this.injector.get(UI),e=this.injector.get(Hk),f=this.injector.get(hx);a===f.components[0]&&("enabledNonBlocking"!==b.initialNavigation&&void 0!==b.initialNavigation||e.initialNavigation(),sEb(c),d.init(),e.rootComponentType=f.componentTypes[0],e.routerState.root.component=e.rootComponentType,this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())};
XI.prototype.ngOnDestroy=function(){this.destroyed=!0};XI.\u0275fac=function(a){return new (a||XI)(t(Hv))};XI.\u0275prov=ec({token:XI,factory:XI.\u0275fac});var zEb=new jd("Router Initializer");
var AEb=[FI,UCb,GI],ZI=function(a,b){CI.call(this);var c=this;this.router=a;this.activatedRoute=b;YI(this,Gk).subscribe(function(d){c.routeChangeStart.next({originalPath:"/"+d.snapshot.url.join("/"),params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)})});a=this.router.events.pipe(De(function(d){return AEb.some(function(e){return d instanceof e})}),Ye(this.destroyed$));b=YI(this,cDb);(0,T.merge)(a.pipe(Pe(T.NEVER)),this.routeChangeStart.pipe(Pe(b))).pipe(Xe(de),Ye(this.destroyed$),De(function(d){return d.snapshot.routeConfig.isRootRoute}),
C(function(d){return{originalPath:Lpa(d.snapshot._urlSegment.segments),params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)}})).subscribe(function(d){c.routeChangeSuccess.next(d)});YI(this,EI).pipe(C(function(d){return d.url}),Le()).subscribe(function(){c.locationChangeStart.next()});YI(this,FI).pipe(C(function(d){return d.url}),Le()).subscribe(function(){c.locationChangeSuccess.next()});b=this.activatedRoute.queryParams.pipe($e(YI(this,VCb)));(0,T.merge)(this.routeChangeStart.pipe(Pe(T.NEVER)),
a.pipe(Pe(b))).pipe(Xe(de),Ye(this.destroyed$)).subscribe(function(d){d=r(d);d.next();d=d.next().value;c.routeUpdate.next({params:d.state.root.params,originalPath:d.url.includes("?")?d.url.split("?")[0]:d.url})});YI(this,FI).subscribe(function(){c.viewContentLoaded.next()})};U(ZI,CI);ZI.\u0275dir=CI.\u0275dir;var YI=function(a,b){return a.router.events.pipe(De(function(c){return c instanceof b}),C(function(c){return c}),Ye(a.destroyed$))};ZI.\u0275fac=function(a){return new (a||ZI)(t(Hk),t(fk))};
ZI.\u0275prov=ec({token:ZI,factory:ZI.\u0275fac,providedIn:"root"});
var $I=new jd("RouterEvents",{factory:function(){return t(ZI)}});
/*

 The MIT License (MIT)

 Copyright (c) 2016 Nick Richardson

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var BEb=function(a,b,c,d,e,f){this.combo=a;this.callback=b;this.allowIn=c;this.description=d;this.action=e;this.persistent=f;this.combo=Array.isArray(a)?a:[a];this.allowIn=c||[];this.description=d||""};
ki.Object.defineProperties(BEb.prototype,{formatted:{configurable:!0,enumerable:!0,get:function(){if(!this._formatted){for(var a=this.combo[0].split(/[\s]/),b=0;b<a.length;b++){for(var c=b,d={command:"\u2318",shift:"\u21e7",left:"\u2190",right:"\u2192",up:"\u2191",down:"\u2193","return":"\u23ce",backspace:"\u232b"},e=a[b].split("+"),f=0;f<e.length;f++)"mod"===e[f]&&(window.navigator&&0<=window.navigator.platform.indexOf("Mac")?e[f]="command":e[f]="ctrl"),e[f]=d[e[f]]||e[f];a[c]=e.join(" + ")}this._formatted=
a}return this._formatted}}});
var CEb=new jd("HotkeyOptions");
var aJ=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new T.Subject;this.preventIn=["INPUT","SELECT","TEXTAREA"];Mousetrap.prototype.stopCallback=function(b,c){return-1<(" "+c.className+" ").indexOf(" mousetrap ")?!1:c.contentEditable&&"true"===c.contentEditable};this.mousetrap=new Mousetrap;this.options.disableCheatSheet||this.add(new BEb(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new BEb("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=aJ.prototype;
g.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=r(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(h,k){var q=!0;if(h){var w=h.target,y=w.nodeName.toUpperCase();-1<(" "+w.className+" ").indexOf(" mousetrap ")?q=!0:-1<c.preventIn.indexOf(y)&&-1===a.allowIn.map(function(E){return E.toUpperCase()}).indexOf(y)&&(q=!1)}if(q)return a.callback.apply(c,[h,k])},b);return a};
g.remove=function(a){var b=[];if(!a){var c=r(this.hotkeys);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}if(Array.isArray(a)){c=r(a);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}b=this.hotkeys.indexOf(a);return-1<b?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
g.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(this.get(c.value));return b}for(b=0;b<this.hotkeys.length;b++)if(-1<this.hotkeys[b].combo.indexOf(a))return this.hotkeys[b];return null};g.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
g.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return-1<b?(this.add(a),this.pausedHotkeys.splice(b,1)):null};g.reset=function(){this.mousetrap.reset()};aJ.\u0275fac=function(a){return new (a||aJ)(t(CEb))};aJ.\u0275prov=ec({token:aJ,factory:aJ.\u0275fac});
var bJ=function(){};bJ.\u0275fac=function(a){return new (a||bJ)};bJ.\u0275mod=rc({type:bJ});bJ.\u0275inj=fc({imports:[[Mx]]});
var DEb;
Jja("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));
var EEb="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),cJ=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},dJ=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(DEb||(c={},DEb=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort=
"none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=DEb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},eJ=function(a,b){var c="";b&&(c=b.id);dJ(a,"activedescendant",c)};
var fJ=function(a,b,c,d){BI.call(this);var e=this;this.rawHotkeysService=c;this.ngZone=d;this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;this.stopCallback=function(f,h){if(!e.enabled||e.paused)h=!0;else if(-1<(" "+h.className+" ").indexOf(" mousetrap "))h=!1;else{if(f=h.getAttribute)f=h.getAttribute("role")||null,f=sa(EEb,f);h=f||"true"===h.contentEditable||"INPUT"===h.tagName&&"text"===h.type||"SELECT"===h.tagName||"TEXTAREA"===h.tagName||FEb(h)?!0:!1}return h};b.keyboardPrefs$.pipe(Ye(this.destroyed$)).subscribe(function(f){f&&
(e.enabled=!!f.enableAllHotkeys)});a.routeChangeStart.pipe(Ye(this.destroyed$)).subscribe(function(){e.unpause()});this.rawHotkeysService.mousetrap.stopCallback=this.stopCallback;this.destroyed$.subscribe(function(){GEb(e)})};U(fJ,BI);fJ.\u0275dir=BI.\u0275dir;fJ.prototype.isEnabled=function(){return this.enabled};
var gJ=function(a,b){var c=b.title,d=b.hotkeys,e;b=null!=(e=a.hotkeyGroups.get(c))?e:[];a.hotkeyGroups.set(c,[].concat(u(b),u(d)));HEb(a);return function(){var f=new Set(d.map(function(q){return q.onPress})),h,k=(null!=(h=a.hotkeyGroups.get(c))?h:[]).filter(function(q){return!f.has(q.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);HEb(a)}},GEb=function(a){var b=[].concat(u(a.rawHotkeysService.hotkeys));b=r(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},HEb=function(a){GEb(a);for(var b=r(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){var d=IEb(a,c.value);c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$binding$1624:c.$jscomp$loop$prop$binding$1624},e=d.next())c.$jscomp$loop$prop$binding$1624=e.value,e=new BEb(koa(c.$jscomp$loop$prop$binding$1624.key),function(f){return function(h){a.ngZone.run(function(){f.$jscomp$loop$prop$binding$1624.command()});h.stopPropagation();return!1}}(c)),a.rawHotkeysService.add(e)}},
FEb=function(a){return[].concat(u(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return"static"===b.style.position}).some(function(b){return b.contains(a)})},IEb=function(a,b){var c=[],d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$hotkeySpec$1626:d.$jscomp$loop$prop$hotkeySpec$1626},e=b.next()){d.$jscomp$loop$prop$hotkeySpec$1626=e.value;e={};for(var f=r(d.$jscomp$loop$prop$hotkeySpec$1626.keys.entries()),h=f.next();!h.done;e={$jscomp$loop$prop$index$1628:e.$jscomp$loop$prop$index$1628},
h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$index$1628=h;c.push(new JEb(k,function(q,w){return function(){a.ngZone.run(function(){q.$jscomp$loop$prop$hotkeySpec$1626.onPress(w.$jscomp$loop$prop$index$1628)})}}(d,e)))}}oaa(c,function(q,w){return q.strokeLength>w.strokeLength?-1:q.strokeLength<w.strokeLength?1:0});return c};fJ.prototype.pause=function(){this.paused=!0};fJ.prototype.unpause=function(){this.paused=!1};
var KEb=function(a){return[].concat(u(a.hotkeyGroups.entries())).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:Cj(c,Mpa)}})};fJ.\u0275fac=function(a){return new (a||fJ)(t($I),t(zI),t(aJ),t(ef))};fJ.\u0275prov=ec({token:fJ,factory:fJ.\u0275fac,providedIn:"root"});var JEb=function(a,b){this.key=a;this.command=b;a instanceof Array&&(this.strokeLength=a.length);this.strokeLength=1};
var hJ=function(a,b){BI.call(this);this.hotkeys=a;this.tooltip=b;this.onHotkey=new Iw};U(hJ,BI);hJ.prototype.ngOnChanges=function(a){if("matTooltip"in a&&this.tooltip){var b;a=null!=(b=this.hotkey.displayAs)?b:this.hotkey.keys.join("+");this.tooltip.message=this.matTooltip+" (Shortcut: "+a+")"}};hJ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(gJ(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};
hJ.\u0275fac=function(a){return new (a||hJ)(F(fJ),F($E,8))};hJ.\u0275dir=v({type:hJ,selectors:[["","hotkey",""]],inputs:{hotkey:"hotkey",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},features:[gf,Ac]});
var iJ=function(){};iJ.\u0275fac=function(a){return new (a||iJ)};iJ.\u0275mod=rc({type:iJ});iJ.\u0275inj=fc({providers:[],imports:[[]]});
var jJ=function(a){this.hotkeys=a};jJ.prototype.ngOnInit=function(){this.hotkeys.pause()};jJ.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};jJ.\u0275fac=function(a){return new (a||jJ)(F(fJ))};
jJ.\u0275cmp=v({type:jJ,selectors:[["b-hotkeys-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-button","","mat-dialog-close","","type","button",1,"gmat-button","medium","primary"],["colspan","2"],[1,"bv2-hotkeys-header"],[1,"bv2-hotkeys-key"],[1,"bv2-hotkeys-value"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Keyboard shortcuts"),H(),G(2,"mat-dialog-content")(3,"table"),O(4,Opa,6,2,"thead",1),H()(),G(5,"mat-dialog-actions")(6,"button",2),P(7,"Close"),H()());
a&2&&(B(4),D("ngForOf",KEb(b.hotkeys)))},dependencies:[wx,pB,IB,JB,KB,LB],encapsulation:2});var kJ=function(){};kJ.\u0275fac=function(a){return new (a||kJ)};kJ.\u0275mod=rc({type:kJ});kJ.\u0275inj=fc({imports:[[Mx,jG,MB]]});
var jcb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"4:"+a.alias}));
var lJ=function(a){this.customFieldId=a.customFieldId;this.displayValues=a.displayValues;this.textValue=a.textValue;this.dateValue=a.dateValue;this.enumValue=a.enumValue;this.numericValue=a.numericValue;this.repeatedTextValue=a.repeatedTextValue;this.repeatedDateValue=a.repeatedDateValue;this.repeatedEnumValue=a.repeatedEnumValue;this.repeatedNumericValue=a.repeatedNumericValue};
lJ.prototype.getValue=function(){return 0===this.numericValue?this.numericValue:this.textValue||this.dateValue||this.enumValue||this.numericValue||this.repeatedTextValue||this.repeatedDateValue||this.repeatedEnumValue||this.repeatedNumericValue||null};lJ.prototype.isEmpty=function(){var a=this.getValue();return null==a?!0:"string"===typeof a?""===a:"number"===typeof a?!1:null!=a.values?0===a.values.length:!a||!a.day||!a.month||!a.year};
var LEb=function(a){return a?Mk(Li(a)):null},MEb=function(a){return a?(a=iC(a),isNaN(a)?null:a):null};
var el=function(a){Z.call(this,a)};U(el,Z);el.prototype.getCustomFieldId=function(){return dj(this,qb(this,mJ,1))};el.prototype.setCustomFieldId=function(a){return ao(this,1,mJ,a)};el.prototype.hasCustomFieldId=function(){return ul(this,1,mJ)};el.prototype.setStandardField=function(a){ao(this,2,mJ,a)};var mJ=[1,2];el.prototype.toObject=function(){return nJ(void 0,this)};var nJ=function(a,b){if(null!=b){var c={customFieldId:n(Or(b,1,mJ)),standardField:n(Or(b,2,mJ))};a&&(c.$jspbMessageInstance=b);return c}};
el.messageId="b.FieldId";
var oJ=function(a){Z.call(this,a)};U(oJ,Z);oJ.prototype.setStateOnIssues=function(a){l(this,2,a)};oJ.prototype.setEnabledOnIssues=function(a){l(this,3,a)};oJ.prototype.toObject=function(){var a=null!=this?{fieldId:nJ(void 0,m(this,el,1)),stateOnIssues:n(p(this,2)),enabledOnIssues:n(Ro(this,3))}:void 0;return a};var NEb={UNSPECIFIED:0,INHERIT:1,DISABLED:2,ENABLED:3};oJ.messageId="b.FieldConfig";
var As=function(){this.required=!1;this.allowedValue=null;this.stateOnIssues=1;this.type="TEXT";this.fieldSignificance="MINOR"};As.prototype.isDate=function(){return"DATE"===this.type};As.prototype.isText=function(){return"TEXT"===this.type};As.prototype.isRepeated=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var fl=function(a){var b=new As;b.customFieldId=a.customFieldId;b.componentId=a.componentId;b.name=a.name;b.type=a.type;b.description=a.description||"";a.typedDefaultValue&&(b.typedDefaultValue=new lJ(a.typedDefaultValue));b.required=!!a.required;b.fieldSignificance=a.fieldSignificance||"MINOR";b.allowedValue=a.allowedValue||null;b.stateOnIssues=NEb[a.stateOnIssues]||1;a=a.enabledOnIssues;b.enabledOnIssues=null==a?!0:a;return b};
var Nk=function(a){Z.call(this,a)};U(Nk,Z);Nk.prototype.getAccessLevel=function(){return X(this,1,0)};Nk.prototype.setAccessLevel=function(a){l(this,1,a)};Nk.prototype.toObject=function(){return OEb(void 0,this)};var OEb=function(a,b){if(null!=b){var c={accessLevel:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};Nk.messageId="b.AccessLimit";
var gl=function(a){Z.call(this,a,-1,PEb)};U(gl,Z);g=gl.prototype;g.getCustomFieldId=function(){return kj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return cj(this,1)};g.setTextValue=function(a){ao(this,4,pJ,a)};g.getDateValue=function(){return wl(this,Rk,5,pJ)};g.setDateValue=function(a){xu(this,5,pJ,a)};g.setEnumValue=function(a){ao(this,6,pJ,a)};g.setNumericValue=function(a){ao(this,7,pJ,a)};g.getRepeatedTextValue=function(){return wl(this,il,8,pJ)};
g.setRepeatedTextValue=function(a){xu(this,8,pJ,a)};g.getRepeatedDateValue=function(){return wl(this,kl,9,pJ)};g.setRepeatedDateValue=function(a){xu(this,9,pJ,a)};g.getRepeatedEnumValue=function(){return wl(this,il,10,pJ)};g.setRepeatedEnumValue=function(a){xu(this,10,pJ,a)};g.getRepeatedNumericValue=function(){return wl(this,jl,11,pJ)};g.setRepeatedNumericValue=function(a){xu(this,11,pJ,a)};var il=function(a){Z.call(this,a,-1,QEb)};U(il,Z);il.prototype.getValuesList=function(){return jb(this,1)};
il.prototype.setValuesList=function(a){hl(this,1,a)};var kl=function(a){Z.call(this,a,-1,REb)};U(kl,Z);kl.prototype.getValuesList=function(){return rb(this,Rk,1)};kl.prototype.setValuesList=function(a){zb(this,1,a)};var jl=function(a){Z.call(this,a,-1,SEb)};U(jl,Z);jl.prototype.getValuesList=function(){return kb(this,1,Number)};jl.prototype.setValuesList=function(a){hl(this,1,a)};var PEb=[12],pJ=[4,5,6,7,8,9,10,11];gl.prototype.toObject=function(){return TEb(void 0,this)};
var TEb=function(a,b){if(null!=b){var c={customFieldId:n(p(b,1)),displayValuesList:n(jb(b,12)),textValue:n(Or(b,4,pJ)),dateValue:gF(a,b.getDateValue()),enumValue:n(Or(b,6,pJ)),numericValue:n(tu(b,qb(b,pJ,7))),repeatedTextValue:UEb(a,b.getRepeatedTextValue()),repeatedDateValue:VEb(a,b.getRepeatedDateValue()),repeatedEnumValue:UEb(a,b.getRepeatedEnumValue()),repeatedNumericValue:WEb(a,b.getRepeatedNumericValue())};a&&(c.$jspbMessageInstance=b);return c}},QEb=[1];
il.prototype.toObject=function(){return UEb(void 0,this)};var UEb=function(a,b){if(null!=b){var c={valuesList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},REb=[1];kl.prototype.toObject=function(){return VEb(void 0,this)};var VEb=function(a,b){if(null!=b){var c={valuesList:Bb(b.getValuesList(),gF,a)};a&&(c.$jspbMessageInstance=b);return c}},SEb=[1];jl.prototype.toObject=function(){return WEb(void 0,this)};
var WEb=function(a,b){if(null!=b){var c={valuesList:n(kb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var ll=function(a){Z.call(this,a,-1,XEb)};U(ll,Z);g=ll.prototype;g.getCustomFieldId=function(){return kj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return cj(this,1)};g.getComponentId=function(){return kj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return cj(this,2)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return cj(this,3)};
g.setRequired=function(a){l(this,4,a)};g.getName=function(){return V(this,5)};g.setName=function(a){return l(this,5,a)};g.hasName=function(){return cj(this,5)};g.getDescription=function(){return V(this,6)};g.setDescription=function(a){return l(this,6,a)};g.getTypedDefaultValue=function(){return m(this,gl,10)};g.setTypedDefaultValue=function(a){Ab(this,10,a)};g.setFieldSignificance=function(a){return l(this,9,a)};g.setStateOnIssues=function(a){l(this,11,a)};
g.setEnabledOnIssues=function(a){l(this,12,a)};var XEb=[8];ll.prototype.toObject=function(){return qJ(void 0,this)};var qJ=function(a,b){if(null!=b){var c={customFieldId:n(p(b,1)),componentId:n(p(b,2)),type:n(p(b,3)),required:n(Ro(b,4)),name:n(p(b,5)),description:n(p(b,6)),typedDefaultValue:TEb(a,b.getTypedDefaultValue()),allowedValueList:n(jb(b,8)),fieldSignificance:n(p(b,9)),stateOnIssues:n(p(b,11)),enabledOnIssues:n(Ro(b,12))};a&&(c.$jspbMessageInstance=b);return c}};
var ml=function(a){Z.call(this,a)};U(ml,Z);g=ml.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return ko(this,1,a)};g.getId=function(){return dj(this,2)};g.setId=function(a){return Sk(this,2,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return tl(this,3,a)};var pqa=function(a,b){xu(a,4,vl,b)},yl=function(a){return wl(a,ol,5,vl)},rqa=function(a,b){xu(a,5,vl,b)};ml.prototype.getCustomFieldId=function(){return dj(this,100)};
ml.prototype.setCustomFieldId=function(a){return Sk(this,100,a)};var nl=function(a){Z.call(this,a)};U(nl,Z);var qqa=function(a,b){return nb(a,1,b,0)},ol=function(a){Z.call(this,a,-1,YEb)};U(ol,Z);ol.prototype.getOptionsList=function(){return rb(this,pl,1)};ol.prototype.setOptionsList=function(a){return zb(this,1,a)};var pl=function(a){Z.call(this,a)};U(pl,Z);pl.prototype.getLabel=function(){return V(this,1)};pl.prototype.setLabel=function(a){return tl(this,1,a)};
pl.prototype.getValue=function(){return xl(this,2)};pl.prototype.setValue=function(a){return nb(this,2,a,0)};var vl=[4,5];ml.prototype.toObject=function(){return ZEb(void 0,this)};var ZEb=function(a,b){if(null!=b){var c={inherit:W(b,1),id:dj(b,2),name:V(b,3),numericSpec:$Eb(a,wl(b,nl,4,vl)),enumSpec:aFb(a,yl(b)),aggregationType:X(b,6,0),customFieldId:dj(b,100)};a&&(c.$jspbMessageInstance=b);return c}},bFb={AGGREGATION_TYPE_UNSPECIFIED:0,SUM:1,MAX:2};
nl.prototype.toObject=function(){return $Eb(void 0,this)};var $Eb=function(a,b){if(null!=b){var c={multiplier:xl(b,1)};a&&(c.$jspbMessageInstance=b);return c}},YEb=[1];ol.prototype.toObject=function(){return aFb(void 0,this)};var aFb=function(a,b){if(null!=b){var c={optionsList:Bb(b.getOptionsList(),cFb,a)};a&&(c.$jspbMessageInstance=b);return c}};pl.prototype.toObject=function(){return cFb(void 0,this)};
var cFb=function(a,b){if(null!=b){var c={label:V(b,1),value:xl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Dl=function(a){Z.call(this,a)};U(Dl,Z);g=Dl.prototype;g.getResourcePath=function(){return V(this,2)};g.setResourcePath=function(a){return l(this,2,a)};g.hasResourcePath=function(){return cj(this,2)};g.getSeverity=function(){return X(this,3,0)};g.setSeverity=function(a){return l(this,3,a)};g.getJudgementReason=function(){return V(this,4)};g.setJudgementReason=function(a){return l(this,4,a)};g.toObject=function(){return rJ(void 0,this)};
var rJ=function(a,b){if(null!=b){var c={contentJudgementId:n(p(b,1)),resourcePath:n(p(b,2)),severity:n(p(b,3)),judgementReason:n(p(b,4)),contentJudge:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};Dl.messageId="b.ContentJudgement";
var dFb={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3};
var Gl=function(a){Z.call(this,a)};U(Gl,Z);Gl.prototype.getSeverity=function(){return X(this,1,0)};Gl.prototype.setSeverity=function(a){return l(this,1,a)};Gl.prototype.toObject=function(){return eFb(void 0,this)};var eFb=function(a,b){if(null!=b){var c={severity:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Yl=function(a){Z.call(this,a)};U(Yl,Z);Yl.prototype.toObject=function(){return fFb(void 0,this)};var fFb=function(a,b){if(null!=b){var c={piiVerdict:eFb(a,m(b,Gl,1))};a&&(c.$jspbMessageInstance=b);return c}};
var El=function(a){Z.call(this,a)};U(El,Z);El.prototype.hasRetentionSelection=function(){return cj(this,1)};El.prototype.toObject=function(){return gFb(void 0,this)};var gFb=function(a,b){if(null!=b){var c={retentionSelection:n(p(b,1)),retentionPeriodDays:n(p(b,2)),piiRetentionSelection:n(p(b,3)),piiRetentionPeriodDays:n(p(b,4)),spiiRetentionPeriodDays:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var gm=function(a){Z.call(this,a)};U(gm,Z);g=gm.prototype;g.getRetentionPeriod=function(){return m(this,hm,1)};g.setRetentionPeriod=function(a){Ab(this,1,a)};g.hasRetentionPeriod=function(){return cj(this,1)};g.getScheduledDeletionTime=function(){return m(this,rj,2)};g.setScheduledDeletionTime=function(a){Ab(this,2,a)};g.hasScheduledDeletionTime=function(){return cj(this,2)};g.toObject=function(){return sJ(void 0,this)};
var sJ=function(a,b){if(null!=b){var c={retentionPeriod:Ju(a,b.getRetentionPeriod()),scheduledDeletionTime:Pu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};gm.messageId="b.RetentionState";
var tJ=function(a){Z.call(this,a)};U(tJ,Z);tJ.prototype.getTeamId=function(){return dj(this,1)};tJ.prototype.setTeamId=function(a){return Sk(this,1,a)};tJ.prototype.getEffectiveSloEditPolicy=function(){return X(this,3,0)};tJ.prototype.toObject=function(){return hFb(this)};var hFb=function(a){if(null!=a)return{teamId:dj(a,1),sloEditPolicy:X(a,2,0),effectiveSloEditPolicy:X(a,3,0)}};
var Jl=function(a){Z.call(this,a)};U(Jl,Z);g=Jl.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getSource=function(){return X(this,2,0)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return cj(this,2)};g.getId=function(){return kj(this,3)};g.setId=function(a){return l(this,3,a)};g.getSourceTeamId=function(){return kj(this,5)};g.setSourceTeamId=function(a){l(this,5,a)};g.getComment=function(){return V(this,4)};
g.setComment=function(a){return l(this,4,a)};g.toObject=function(){return iFb(void 0,this)};var iFb=function(a,b){if(null!=b){var c={inherit:n(Ro(b,1)),source:n(p(b,2)),id:n(p(b,3)),sourceTeamId:n(p(b,5)),sourceComponentId:n(p(b,6)),comment:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Il=function(a){Z.call(this,a)};U(Il,Z);g=Il.prototype;g.getStartTime=function(){return m(this,rj,1)};g.setStartTime=function(a){Ab(this,1,a)};g.getEndTime=function(){return m(this,rj,2)};g.setEndTime=function(a){Ab(this,2,a)};g.hasEndTime=function(){return cj(this,2)};g.getTargetTime=function(){return m(this,rj,3)};g.setTargetTime=function(a){Ab(this,3,a)};g.hasTargetTime=function(){return cj(this,3)};g.toObject=function(){return jFb(void 0,this)};
var jFb=function(a,b){if(null!=b){var c={startTime:Pu(a,b.getStartTime()),endTime:Pu(a,b.getEndTime()),targetTime:Pu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};
var im=function(a){Z.call(this,a)};U(im,Z);g=im.prototype;g.getAssignmentBounds=function(){return m(this,Il,1)};g.setAssignmentBounds=function(a){Ab(this,1,a)};g.hasAssignmentBounds=function(){return cj(this,1)};g.getResponseBounds=function(){return m(this,Il,2)};g.setResponseBounds=function(a){Ab(this,2,a)};g.hasResponseBounds=function(){return cj(this,2)};g.getClosureBounds=function(){return m(this,Il,3)};g.setClosureBounds=function(a){Ab(this,3,a)};
g.hasClosureBounds=function(){return cj(this,3)};g.toObject=function(){return kFb(void 0,this)};var kFb=function(a,b){if(null!=b){var c={assignmentBounds:jFb(a,b.getAssignmentBounds()),responseBounds:jFb(a,b.getResponseBounds()),closureBounds:jFb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};
var Rl=function(a){Z.call(this,a,-1,lFb)};U(Rl,Z);g=Rl.prototype;g.getEmailAddress=function(){return V(this,1)};g.setEmailAddress=function(a){l(this,1,a)};g.getObfuscatedEmailAddress=function(){return V(this,2)};g.setObfuscatedEmailAddress=function(a){l(this,2,a)};g.getUserGaiaStatus=function(){return X(this,3,0)};g.setUserGaiaStatus=function(a){l(this,3,a)};g.getAliasesList=function(){return jb(this,4)};g.setAliasesList=function(a){hl(this,4,a)};var lFb=[4];
Rl.prototype.toObject=function(){return uJ(void 0,this)};var uJ=function(a,b){if(null!=b){var c={emailAddress:n(p(b,1)),obfuscatedEmailAddress:n(p(b,2)),userGaiaStatus:n(p(b,3)),aliasesList:n(jb(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var vJ=function(a){Z.call(this,a)};U(vJ,Z);vJ.prototype.getIssueId=function(){return kj(this,1)};vJ.prototype.setIssueId=function(a){return l(this,1,a)};vJ.prototype.setReason=function(a){l(this,2,a)};vJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),reason:n(p(this,2))}:void 0;return a};vJ.messageId="b.DeleteIssueRequest";
var $l=function(a){Z.call(this,a)};U($l,Z);$l.prototype.getFieldName=function(){return V(this,1)};var gra=function(a,b){return l(a,1,b)};g=$l.prototype;g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};g.getActionType=function(){return X(this,3,0)};g.setActionType=function(a){l(this,3,a)};g.getCustomFieldValue=function(){return m(this,gl,5)};g.setCustomFieldValue=function(a){return Ab(this,5,a)};
g.clearCustomFieldValue=function(){return Ab(this,5)};g.hasCustomFieldValue=function(){return cj(this,5)};g.toObject=function(){return mFb(void 0,this)};var mFb=function(a,b){if(null!=b){var c={fieldName:n(p(b,1)),value:n(p(b,2)),actionType:n(p(b,3)),customFieldValue:TEb(a,b.getCustomFieldValue())};a&&(c.$jspbMessageInstance=b);return c}};
var fm=function(a){Z.call(this,a)};U(fm,Z);g=fm.prototype;g.setVoteCount=function(a){l(this,1,a)};g.getCreatedTimeMicros=function(){return dj(this,2)};g.setCreatedTimeMicros=function(a){l(this,2,a)};g.getModifiedTimeMicros=function(){return dj(this,3)};g.setModifiedTimeMicros=function(a){l(this,3,a)};g.getSloStatus=function(){return m(this,im,6)};g.setSloStatus=function(a){Ab(this,6,a)};g.getSloId=function(){return kj(this,7)};g.setSloId=function(a){return l(this,7,a)};
g.getTeamId=function(){return kj(this,9)};g.setTeamId=function(a){return l(this,9,a)};g.getRetentionState=function(){return m(this,gm,8)};g.setRetentionState=function(a){Ab(this,8,a)};g.toObject=function(){return nFb(void 0,this)};
var nFb=function(a,b){if(null!=b){var c={voteCount:n(p(b,1)),createdTimeMicros:n(p(b,2)),modifiedTimeMicros:n(p(b,3)),resolvedTimeMicros:n(p(b,4)),verifiedTimeMicros:n(p(b,5)),sloStatus:kFb(a,b.getSloStatus()),sloId:n(p(b,7)),teamId:n(p(b,9)),retentionState:sJ(a,b.getRetentionState())};a&&(c.$jspbMessageInstance=b);return c}};
var Vl=function(a){Z.call(this,a,-1,oFb)};U(Vl,Z);g=Vl.prototype;g.getCreatedTimeMicros=function(){return dj(this,2)};g.setCreatedTimeMicros=function(a){l(this,2,a)};g.getComponentId=function(){return kj(this,3)};g.setComponentId=function(a){return l(this,3,a)};g.hasComponentId=function(){return cj(this,3)};g.getVersion=function(){return dj(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getType=function(){return X(this,5,0)};g.setType=function(a){return l(this,5,a)};
g.hasType=function(){return cj(this,5)};g.getStatus=function(){return X(this,6,0)};g.setStatus=function(a){return l(this,6,a)};g.hasStatus=function(){return cj(this,6)};g.getPriority=function(){return X(this,7,0)};g.setPriority=function(a){return l(this,7,a)};g.getSeverity=function(){return X(this,8,0)};g.setSeverity=function(a){return l(this,8,a)};g.getTitle=function(){return V(this,9)};g.setTitle=function(a){return l(this,9,a)};g.setPostmortemsList=function(a){hl(this,35,a)};
g.setInProd=function(a){l(this,22,a)};g.setHotlistIdList=function(a){hl(this,23,a)};g.getRetention=function(){return X(this,42,0)};g.setRetention=function(a){l(this,42,a)};g.setIsDeleted=function(a){l(this,27,a)};g.setDeletionReason=function(a){l(this,28,a)};g.setSignificanceOverride=function(a){l(this,29,a)};g.getIsArchived=function(){return W(this,31)};g.setIsArchived=function(a){l(this,31,a)};g.getComment=function(){return V(this,25)};g.setComment=function(a){return l(this,25,a)};
g.getFormattingMode=function(){return X(this,45,0)};g.setFormattingMode=function(a){return l(this,45,a)};g.getCommentContentVerdict=function(){return m(this,Yl,46)};g.setCommentContentVerdict=function(a){Ab(this,46,a)};g.hasCommentContentVerdict=function(){return cj(this,46)};g.getSloSnoozeUntil=function(){return m(this,rj,34)};g.setSloSnoozeUntil=function(a){Ab(this,34,a)};g.getEffort=function(){return m(this,sl,50)};g.setEffort=function(a){Ab(this,50,a)};
var oFb=[40,14,16,17,18,35,19,20,21,23,24,30];Vl.prototype.toObject=function(){return wJ(void 0,this)};
var wJ=function(a,b){if(null!=b){var c={authorUser:uJ(a,m(b,Rl,36)),createdTimeMicros:n(p(b,2)),componentId:n(p(b,3)),version:n(p(b,4)),type:n(p(b,5)),status:n(p(b,6)),priority:n(p(b,7)),severity:n(p(b,8)),title:n(p(b,9)),reporterUser:uJ(a,m(b,Rl,37)),assigneeUser:uJ(a,m(b,Rl,38)),verifierUser:uJ(a,m(b,Rl,39)),ccUsersList:Bb(rb(b,Rl,40),uJ,a),attachmentIdList:n(jb(b,14)),duplicateOfIssueId:n(p(b,15)),blockedByIssueIdList:n(jb(b,16)),blockingIssueIdList:n(jb(b,17)),changelistList:n(jb(b,18)),postmortemsList:n(jb(b,
35)),foundInVersionList:n(jb(b,19)),targetedToVersionList:n(jb(b,20)),verifiedInVersionList:n(jb(b,21)),inProd:n(Ro(b,22)),hotlistIdList:n(jb(b,23)),customFieldList:Bb(rb(b,gl,24),TEb,a),retention:n(p(b,42)),isDeleted:n(Ro(b,27)),deletionReason:n(p(b,28)),significanceOverride:n(p(b,29)),duplicateIssueIdList:n(jb(b,30)),isArchived:n(Ro(b,31)),comment:n(p(b,25)),formattingMode:n(p(b,45)),commentRedacted:n(Ro(b,49)),snapshotNumber:n(p(b,26)),lastCommentEditorUser:uJ(a,m(b,Rl,41)),commentLastModifiedAtMicros:n(p(b,
33)),commentVersion:n(p(b,43)),commentDeletionStatus:n(p(b,44)),commentContentVerdict:fFb(a,b.getCommentContentVerdict()),commentRetention:n(p(b,47)),commentRetentionState:sJ(a,m(b,gm,48)),sloSnoozeUntil:Pu(a,b.getSloSnoozeUntil()),effort:WBb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var em=function(a){Z.call(this,a)};U(em,Z);g=em.prototype;g.getStarred=function(){return W(this,1)};g.setStarred=function(a){l(this,1,a)};g.hasStarred=function(){return cj(this,1)};g.getVoted=function(){return W(this,2)};g.setVoted=function(a){return l(this,2,a)};g.setNotificationSubscription=function(a){return l(this,4,a)};g.toObject=function(){return pFb(void 0,this)};
var pFb=function(a,b){if(null!=b){var c={starred:n(Ro(b,1)),voted:n(Ro(b,2)),notificationSubscription:n(p(b,4)),lastViewedTimeMicros:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};em.messageId="b.IssueUserData";
var dm=function(a){Z.call(this,a,-1,qFb)};U(dm,Z);g=dm.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getUserData=function(){return m(this,em,3)};g.setUserData=function(a){Ab(this,3,a)};g.getParentIssueIdsList=function(){return jb(this,8)};g.setParentIssueIdsList=function(a){hl(this,8,a)};g.getAccessLimit=function(){return m(this,Nk,5)};g.setAccessLimit=function(a){return Ab(this,5,a)};g.getVisibleFieldsList=function(){return rb(this,el,6)};
g.setVisibleFieldsList=function(a){zb(this,6,a)};g.getAncestorsMap=function(){return Yi(this,9,jm)};g.getChildIssueCount=function(){return dj(this,10)};g.setChildIssueCount=function(a){l(this,10,a)};g.getIsArchived=function(){return W(this,11)};g.setIsArchived=function(a){l(this,11,a)};g.getRelatedLinksList=function(){return rb(this,JBb,12)};var qFb=[2,8,6,12];dm.prototype.toObject=function(){return xJ(void 0,this)};
var xJ=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),snapshotList:Bb(rb(b,Vl,2),wJ,a),userData:pFb(a,b.getUserData()),aggregatedData:nFb(a,m(b,fm,4)),parentIssueIdsList:n(jb(b,8)),accessLimit:OEb(a,b.getAccessLimit()),visibleFieldsList:Bb(b.getVisibleFieldsList(),nJ,a),majorModifiedTimeMicros:n(p(b,7)),ancestorsMap:Db(b.getAncestorsMap(),a,UBb),childIssueCount:n(p(b,10)),isArchived:n(Ro(b,11)),relatedLinksList:Bb(b.getRelatedLinksList(),KBb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var cm=function(a){Z.call(this,a)};U(cm,Z);g=cm.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getPosition=function(){return dj(this,2)};g.setPosition=function(a){return l(this,2,a)};g.getIssue=function(){return m(this,dm,3)};g.setIssue=function(a){Ab(this,3,a)};g.toObject=function(){return rFb(this)};var rFb=function(a){if(null!=a)return{issueId:n(p(a,1)),position:n(p(a,2)),issue:xJ(void 0,a.getIssue())}};cm.messageId="b.HotlistIssue";
var tFb=function(a){Z.call(this,a,-1,sFb)};U(tFb,Z);g=tFb.prototype;g.getSnapshot=function(){return m(this,Vl,1)};g.setSnapshot=function(a){Ab(this,1,a)};g.getAttachmentsList=function(){return kb(this,2,Za)};g.setAttachmentsList=function(a){hl(this,2,a)};g.getTemplateId=function(){return kj(this,4)};g.setTemplateId=function(a){l(this,4,a)};g.getContentJudgement=function(){return m(this,Dl,5)};g.setContentJudgement=function(a){return Ab(this,5,a)};var sFb=[2,3];
tFb.prototype.toObject=function(){var a=null!=this?{snapshot:wJ(void 0,this.getSnapshot()),attachmentsList:Eb(this.getAttachmentsList()),attachmentStringsList:n(jb(this,3)),templateId:n(p(this,4)),contentJudgement:rJ(void 0,this.getContentJudgement())}:void 0;return a};
var am=function(a){Z.call(this,a,-1,uFb)};U(am,Z);g=am.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getActionsList=function(){return rb(this,$l,2)};g.setActionsList=function(a){zb(this,2,a)};g.getAttachmentsList=function(){return kb(this,3,Za)};g.setAttachmentsList=function(a){hl(this,3,a)};g.setSignificanceOverride=function(a){l(this,4,a)};g.getCommentDisplayOverride=function(){return X(this,6,0)};
g.setCommentDisplayOverride=function(a){l(this,6,a)};var uFb=[2,3,5];am.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),actionsList:Bb(this.getActionsList(),mFb),attachmentsList:Eb(this.getAttachmentsList()),significanceOverride:n(p(this,4)),attachmentStringsList:n(jb(this,5)),commentDisplayOverride:n(p(this,6))}:void 0;return a};
var yJ=function(a){Z.call(this,a)};U(yJ,Z);yJ.prototype.getCount=function(){return dj(this,2)};yJ.prototype.setCount=function(a){l(this,2,a)};yJ.prototype.getNextPageToken=function(){return V(this,5)};yJ.prototype.toObject=function(){var a=null!=this?{q:n(p(this,1)),count:n(p(this,2)),s:n(p(this,3)),p:n(p(this,4)),nextPageToken:n(p(this,5))}:void 0;return a};
var dra=function(a){Z.call(this,a)};U(dra,Z);g=dra.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComponentId=function(){return kj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return cj(this,2)};g.getCommentDisplayOverride=function(){return X(this,3,0)};g.setCommentDisplayOverride=function(a){l(this,3,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),componentId:n(p(this,2)),commentDisplayOverride:n(p(this,3))}:void 0;return a};
var bra=function(a){Z.call(this,a)};U(bra,Z);g=bra.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComponentId=function(){return kj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return cj(this,2)};g.getCommentDisplayOverride=function(){return X(this,3,0)};g.setCommentDisplayOverride=function(a){l(this,3,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),componentId:n(p(this,2)),commentDisplayOverride:n(p(this,3))}:void 0;return a};
var km=function(a){Z.call(this,a,-1,vFb)};U(km,Z);g=km.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getRelation=function(){return X(this,3,0)};g.setRelation=function(a){l(this,3,a)};g.getActionType=function(){return X(this,4,0)};g.setActionType=function(a){l(this,4,a)};g.getCommentDisplayOverride=function(){return X(this,5,0)};g.setCommentDisplayOverride=function(a){l(this,5,a)};var vFb=[2];
km.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),targetIdsList:n(jb(this,2)),relation:n(p(this,3)),actionType:n(p(this,4)),commentDisplayOverride:n(p(this,5))}:void 0;return a};
var Zl=function(a){Z.call(this,a)};U(Zl,Z);g=Zl.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentDisplayOverride=function(){return X(this,2,0)};g.setCommentDisplayOverride=function(a){l(this,2,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentDisplayOverride:n(p(this,2))}:void 0;return a};Zl.messageId="b.UnCcUserActionRequest";
var zJ=function(a){Z.call(this,a)};U(zJ,Z);zJ.prototype.getIssueId=function(){return kj(this,1)};zJ.prototype.setIssueId=function(a){return l(this,1,a)};zJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};zJ.messageId="b.UndeleteIssueRequest";
var bm=function(a){Z.call(this,a,-1,wFb)};U(bm,Z);bm.prototype.setAddHotlistIdsList=function(a){hl(this,1,a)};bm.prototype.setRemoveHotlistIdsList=function(a){hl(this,2,a)};var lra=function(a,b){Ab(a,3,b)};bm.prototype.setSignificanceOverride=function(a){l(this,4,a)};bm.prototype.getCommentDisplayOverride=function(){return X(this,5,0)};bm.prototype.setCommentDisplayOverride=function(a){l(this,5,a)};var wFb=[1,2];
bm.prototype.toObject=function(){var a=null!=this?{addHotlistIdsList:n(jb(this,1)),removeHotlistIdsList:n(jb(this,2)),hotlistIssue:rFb(m(this,cm,3)),significanceOverride:n(p(this,4)),commentDisplayOverride:n(p(this,5))}:void 0;return a};
var qra=function(a){Z.call(this,a)};U(qra,Z);g=qra.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getRetention=function(){return X(this,2,0)};g.setRetention=function(a){l(this,2,a)};g.setSignificanceOverride=function(a){l(this,3,a)};g.getCommentDisplayOverride=function(){return X(this,4,0)};g.setCommentDisplayOverride=function(a){l(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),retention:n(p(this,2)),significanceOverride:n(p(this,3)),commentDisplayOverride:n(p(this,4))}:void 0;return a};
var lm=function(a){Z.call(this,a)};U(lm,Z);lm.prototype.getTeamId=function(){return dj(this,1)};lm.prototype.setTeamId=function(a){return Sk(this,1,a)};lm.prototype.toObject=function(){return xFb(void 0,this)};var xFb=function(a,b){if(null!=b){var c={teamId:dj(b,1),score:xl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var mm=function(a){Z.call(this,a)};U(mm,Z);g=mm.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getId=function(){return kj(this,2)};g.setId=function(a){return l(this,2,a)};g.toObject=function(){return yFb(void 0,this)};var yFb=function(a,b){if(null!=b){var c={inherit:n(Ro(b,1)),id:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var nm=function(a){Z.call(this,a,-1,zFb)};U(nm,Z);var zFb=[1,2,4];nm.prototype.toObject=function(){return AFb(void 0,this)};var AFb=function(a,b){if(null!=b){var c={componentPathIdList:n(jb(b,1)),componentPathNameList:n(jb(b,2)),allCustomFieldList:Bb(rb(b,ll,4),qJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var pm=function(a){Z.call(this,a,-1,BFb)};U(pm,Z);g=pm.prototype;g.getComponentId=function(){return kj(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return cj(this,1)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return cj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getArchived=function(){return W(this,5)};
g.setArchived=function(a){l(this,5,a)};g.setHotlistIdList=function(a){hl(this,8,a)};g.getAccessLimit=function(){return m(this,Nk,12)};g.setAccessLimit=function(a){return Ab(this,12,a)};g.setCommentEditState=function(a){return l(this,15,a)};g.getSloId=function(){return kj(this,16)};g.setSloId=function(a){return l(this,16,a)};g.getSlo=function(){return m(this,Jl,19)};g.setSlo=function(a){Ab(this,19,a)};g.hasSlo=function(){return cj(this,19)};g.getRetentionSettings=function(){return m(this,El,21)};
g.setRetentionSettings=function(a){Ab(this,21,a)};g.hasRetentionSettings=function(){return cj(this,21)};g.getTeam=function(){return m(this,mm,22)};g.setTeam=function(a){Ab(this,22,a)};g.hasTeam=function(){return cj(this,22)};g.getEffortSpec=function(){return m(this,ml,24)};g.getTeamSuggestionsList=function(){return rb(this,lm,25)};g.setTeamSuggestionsList=function(a){zb(this,25,a)};var BFb=[6,7,8,9,25];pm.prototype.toObject=function(){return AJ(void 0,this)};
var AJ=function(a,b){if(null!=b){var c={componentId:n(p(b,1)),parentComponentId:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),archived:n(Ro(b,5)),codenameList:n(jb(b,6)),customFieldIdList:n(jb(b,7)),hotlistIdList:n(jb(b,8)),templateIdList:n(jb(b,9)),componentPathInfo:AFb(a,m(b,nm,10)),accessLimit:OEb(a,b.getAccessLimit()),emailAlias:n(p(b,13)),userHasEditAccess:n(Ro(b,14)),commentEditState:n(p(b,15)),sloId:n(p(b,16)),effectiveSloId:n(p(b,17)),defaultTemplateId:n(p(b,18)),slo:iFb(a,b.getSlo()),bugscopeSloId:n(p(b,
20)),retentionSettings:gFb(a,b.getRetentionSettings()),team:yFb(a,b.getTeam()),fieldOrdering:n(p(b,23)),effortSpec:ZEb(a,b.getEffortSpec()),teamSuggestionsList:Bb(b.getTeamSuggestionsList(),xFb,a)};a&&(c.$jspbMessageInstance=b);return c}};pm.messageId="b.Component";
var qm=function(a){Z.call(this,a)};U(qm,Z);g=qm.prototype;g.getTemplateId=function(){return dj(this,1)};g.setTemplateId=function(a){l(this,1,a)};g.getComponentId=function(){return kj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return cj(this,2)};g.getDefault=function(){return W(this,6)};g.setDefault=function(a){l(this,6,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return cj(this,3)};
g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getSnapshot=function(){return m(this,Vl,5)};g.setSnapshot=function(a){Ab(this,5,a)};g.toObject=function(){return CFb(void 0,this)};var CFb=function(a,b){if(null!=b){var c={templateId:n(p(b,1)),componentId:n(p(b,2)),pb_default:n(Ro(b,6)),name:n(p(b,3)),description:n(p(b,4)),snapshot:wJ(a,b.getSnapshot())};a&&(c.$jspbMessageInstance=b);return c}};
var BJ=function(a){Z.call(this,a)};U(BJ,Z);BJ.prototype.getSlo=function(){return m(this,Jl,1)};BJ.prototype.setSlo=function(a){Ab(this,1,a)};BJ.prototype.hasSlo=function(){return cj(this,1)};BJ.prototype.toObject=function(){var a=null!=this?{slo:iFb(void 0,this.getSlo())}:void 0;return a};BJ.messageId="b.UpdateComponentSloRequest";
var CJ=function(a){Z.call(this,a)};U(CJ,Z);CJ.prototype.getTeam=function(){return m(this,mm,1)};CJ.prototype.setTeam=function(a){Ab(this,1,a)};CJ.prototype.hasTeam=function(){return cj(this,1)};CJ.prototype.toObject=function(){var a=null!=this?{team:yFb(void 0,this.getTeam())}:void 0;return a};CJ.messageId="b.UpdateComponentTeamRequest";
var Ira={results:[]};
var DFb=function(){};DFb.prototype.get=function(a,b){return this.request(Object.assign({},b||{},{method:"get",url:a}))};DFb.prototype.delete=function(a,b){return this.request(Object.assign({},b||{},{method:"delete",url:a}))};DFb.prototype.post=function(a,b,c){return this.request(Object.assign({},c||{},{method:"post",url:a,data:b}))};var DJ=function(a){this.http=a};U(DJ,DFb);
DJ.prototype.request=function(a){a=Kra(a);a=this.http.request(a).pipe(De(function(b){return 4===b.type}),C(function(b){return b}));return(0,T.firstValueFrom)(a).then(function(b){return{data:null!==b.body?b.body:void 0,headers:Lra(b.headers),status:b.status,statusText:b.statusText}},function(b){return Promise.reject({data:null!==b.error?b.error:void 0,headers:Lra(b.headers),status:b.status,statusText:b.statusText})})};DJ.\u0275fac=function(a){return new (a||DJ)(t(AE))};
DJ.\u0275prov=ec({token:DJ,factory:DJ.\u0275fac,providedIn:"root"});
var EFb=function(a){Z.call(this,a)};U(EFb,Z);EFb.prototype.toObject=function(){var a=null!=this?{component:AJ(void 0,m(this,pm,1))}:void 0;return a};EFb.messageId="b.CreateComponentResponse";
var GFb=function(a){Z.call(this,a,-1,FFb)};U(GFb,Z);var FFb=[1];GFb.prototype.toObject=function(){var a=null!=this?{componentList:Bb(rb(this,pm,1),AJ)}:void 0;return a};GFb.messageId="b.ListComponentsResponse";
var HFb=function(){},IFb=function(){},EJ=function(a){this.http=a};U(EJ,IFb);EJ.prototype.fetchComponent=function(a,b){b=void 0===b?{}:b;if(b.checkEditAccess)throw Error("Hc");return this.http.get("action/components/"+a).pipe(C(Hra))};
EJ.prototype.query=function(a){if(a.id)return a="action/components?"+a.id.map(function(c){return"id="+c}).join("&"),this.http.get(a).pipe(C(function(c){return Array.isArray(c)?c.map(tm).filter(sm):[]}));if(a.query){var b={params:{query:a.query}};a.includearchived&&(b.params.includearchived=!0);return this.http.get("action/components",b).pipe(C(function(c){return Array.isArray(c)?c.map(tm).filter(sm):[]}))}return(0,T.of)([])};EJ.\u0275fac=function(a){return new (a||EJ)(t(AE))};
EJ.\u0275prov=ec({token:EJ,factory:EJ.\u0275fac,providedIn:"root"});var FJ=function(a){this.$http=a};U(FJ,HFb);g=FJ.prototype;g.get=function(a){return this.query({id:[a]}).then(function(b){return b.length?b[0]:null})};g.getChildren=function(a,b){a={parentId:String(a)};if(void 0===b?0:b)a.includearchived=!0;return this.query(a)};g.fetchComponent=function(a,b){return this.$http.get("action/components/"+a,{params:b}).then(function(c){return rm(c.data)})};
g.query=function(a){return this.$http.get("action/components",{params:a}).then(function(b){return b.data.map(rm)})};g.create=function(a){return this.$http.post("action/components",a).then(function(b){return rm(b.data)})};g.update=function(a){var b=Fra(a);return this.$http.post("action/components/"+a.componentId,b).then(function(c){return rm(c.data)})};g.move=function(a,b){return this.$http.post("action/components/"+a+"/move",{},{params:{parentId:b}}).then(function(c){return rm(c.data)})};
g.updateSlo=function(a,b){return this.$http.post("action/components/"+a+"/updateSlo",{slo:b}).then(function(c){return rm(c.data)})};g.updateTeam=function(a,b){return this.$http.post("action/components/"+a+"/updateTeam",{team:b}).then(function(c){return rm(c.data)})};FJ.\u0275fac=function(a){return new (a||FJ)(t(DJ))};FJ.\u0275prov=ec({token:FJ,factory:FJ.\u0275fac,providedIn:"root"});var GJ=function(a){this.executor=a};U(GJ,IFb);g=GJ.prototype;
g.get=function(a){return this.query({id:[a]}).pipe(C(function(b){return b.length?b[0]:null}))};g.getChildren=function(a,b){a={parentId:String(a)};if(void 0===b?0:b)a.includearchived=!0;return this.query(a)};g.fetchComponent=function(a,b){var c={};b.checkEditAccess&&(c.checkEditAccess="true");return this.executor.get({url:"action/components/"+a,options:{params:c},responseConstructor:pm}).pipe(C(om))};
g.query=function(a){var b={};a.id&&(b.id=a.id.map(String));a.parentId&&(b.parentId=String(a.parentId));a.query&&(b.query=a.query);a.includearchived&&(b.includearchived="true");return this.executor.get({url:"action/components",options:{params:b},responseConstructor:GFb}).pipe(C(Gra))};g.create=function(a){a=zra(a);return this.executor.post({url:"action/components",body:a,responseConstructor:EFb}).pipe(C(function(b){return om(m(b,pm,1))}))};
g.update=function(a){var b=a.componentId,c=new pm;c.setComponentId(String(a.componentId));l(c,2,String(a.parentComponentId));c.setName(a.name);c.setDescription(a.description);c.setArchived(a.archived);if(a.customFieldId){var d=a.customFieldId.map(String);hl(c,7,d)}if(a.componentPathInfo){var e=a.componentPathInfo;d=new nm;if(e.componentPathId){var f=e.componentPathId.map(String);hl(d,1,f)}e.componentPathName&&(f=e.componentPathName.map(String),hl(d,2,f));e.allCustomField&&(e=e.allCustomField.map(oqa),
zb(d,4,e));Ab(c,10,d)}a.accessLimit&&c.setAccessLimit(Upa(a.accessLimit));l(c,13,a.emailAlias);a.userHasEditAccess&&l(c,14,a.userHasEditAccess);a.commentEditState&&c.setCommentEditState("ENABLED"===a.commentEditState?1:2);a.slo&&c.setSlo(Dqa(a.slo));l(c,20,a.bugscopeSloId);a.retentionSettings&&c.setRetentionSettings(yqa(a.retentionSettings));a.fieldOrdering&&l(c,23,bAb[a.fieldOrdering]);a.effortSpec&&(d=rl(a.effortSpec),Ab(c,24,d));a.team&&c.setTeam(vra(a.team));var h;c.setTeamSuggestionsList((null!=
(h=a.teamSuggestions)?h:[]).map(ura));return this.executor.post({url:"action/components/"+b,body:c,responseConstructor:pm}).pipe(C(om))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:String(b)}},responseConstructor:pm}).pipe(C(om))};g.updateSlo=function(a,b){var c=new BJ;c.setSlo(Dqa(b));return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:pm}).pipe(C(om))};
g.updateTeam=function(a,b){var c=new CJ;c.setTeam(vra(b));return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:pm}).pipe(C(om))};GJ.\u0275fac=function(a){return new (a||GJ)(t(pI))};GJ.\u0275prov=ec({token:GJ,factory:GJ.\u0275fac,providedIn:"root"});var HJ=function(a){this.observableApi=a};U(HJ,HFb);g=HJ.prototype;g.get=function(a){return(0,T.firstValueFrom)(this.observableApi.get(a))};
g.getChildren=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getChildren(a,void 0===b?!1:b))};g.fetchComponent=function(a,b){return(0,T.firstValueFrom)(this.observableApi.fetchComponent(a,b))};g.query=function(a){return(0,T.firstValueFrom)(this.observableApi.query(a))};g.create=function(a){return(0,T.firstValueFrom)(this.observableApi.create(a))};g.update=function(a){return(0,T.firstValueFrom)(this.observableApi.update(a))};
g.move=function(a,b){return(0,T.firstValueFrom)(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateTeam(a,b))};HJ.\u0275fac=function(a){return new (a||HJ)(t(GJ))};HJ.\u0275prov=ec({token:HJ,factory:HJ.\u0275fac,providedIn:"root"});
var JFb=function(a,b,c){if(!(200<=c&&299>=c)||void 0===a.customFieldMap)return a;a=Fi(a);b={};c=r(Object.keys(a.customFieldMap));for(var d=c.next();!d.done;d=c.next())d=d.value,b[d]=fl(a.customFieldMap[d]);a.customFieldMap=b;return a},KFb=function(a,b,c){if(!(200<=c&&299>=c&&a.issue&&a.issue.snapshot))return a;Pra(a.issue);return a},LFb=function(a,b,c){if(!(200<=c&&299>=c&&a.issues))return a;b=r(a.issues);for(c=b.next();!c.done;c=b.next())Pra(c.value);return a},MFb=function(a,b,c){b=a.affectedIssues;
if(!(200<=c&&299>=c&&b))return a;c=r(Object.keys(b).map(Number));for(var d=c.next();!d.done;d=c.next())Pra(b[d.value]);return a},NFb=function(a){var b=a.stateOnIssues;return Object.assign({},a,{stateOnIssues:b?iqa[b]:null})};
var PFb=function(a,b,c){var d=this;this.http=a;this.path=b;this.actions=c;a={};c=r(Object.keys(c));for(b=c.next();!b.done;a={$jscomp$loop$prop$k$1630:a.$jscomp$loop$prop$k$1630},b=c.next())a.$jscomp$loop$prop$k$1630=b.value,this[a.$jscomp$loop$prop$k$1630]=function(e){return function(f,h){return OFb(d,e.$jscomp$loop$prop$k$1630,f,h)}}(a)},QFb=function(a,b,c,d){b=a.actions[b];var e,f=null!=(e=b.url)?e:a.path;c=r(Qra(f,c));a=c.next().value;c=c.next().value;var h;return{method:null!=(h=b.method)?h:"GET",
url:a,params:c,data:d,transformRequest:b.transformRequest,transformResponse:b.transformResponse}},OFb=function(a,b,c,d){var e=QFb(a,b,c,d);return a.http.request(Rra(e)).then(function(f){var h,k=null==(h=e.transformResponse)?void 0:h.call(e,f.data,f.headers,f.status);return Object.assign({},f,{data:null!=k?k:f.data})}).then(function(f){return f.data})};
var RFb=function(a,b){this.http=a;this.path=b;this.actions={}};RFb.prototype.with=function(a,b){if(Object.keys(this.actions).includes(a))throw Error("Ic`"+a);this.actions[a]=b;return this};
var IJ=function(a,b){b=void 0===b?{}:b;return a.with("get",Object.assign({},{method:"GET"},b))},SFb=function(a){var b=void 0===b?{}:b;return a.with("query",Object.assign({},{method:"GET"},b))},TFb=function(a,b){b=void 0===b?{}:b;return a.with("save",Object.assign({},{method:"POST"},b))},UFb=function(a,b){b=void 0===b?{}:b;return a.with("update",Object.assign({},{method:"POST"},b))},VFb=function(a){var b=void 0===b?{}:b;return a.with("delete",Object.assign({},{method:"DELETE"},b))},WFb=function(a,
b){b=void 0===b?{}:b;return a.with("create",Object.assign({},{method:"POST"},b))};RFb.prototype.build=function(){return new PFb(this.http,this.path,this.actions)};var JJ=function(a){this.http=a},KJ=function(a,b){return new RFb(a.http,b)},LJ=function(a,b,c){return TFb(KJ(a,b),c).build()};JJ.prototype.only=function(a,b,c){return KJ(this,a).with(b,c).build()};JJ.\u0275fac=function(a){return new (a||JJ)(t(DJ))};JJ.\u0275prov=ec({token:JJ,factory:JJ.\u0275fac,providedIn:"root"});
var XFb=function(a){Z.call(this,a)};U(XFb,Z);g=XFb.prototype;g.getUser=function(){return m(this,Rl,5)};g.setUser=function(a){Ab(this,5,a)};g.getResourceType=function(){return X(this,2,0)};g.setResourceType=function(a){l(this,2,a)};g.hasResourceType=function(){return cj(this,2)};g.getResourceId=function(){return kj(this,3)};g.setResourceId=function(a){l(this,3,a)};g.hasResourceId=function(){return cj(this,3)};g.getName=function(){return V(this,4)};g.setName=function(a){return l(this,4,a)};
g.hasName=function(){return cj(this,4)};g.toObject=function(){return YFb(this)};var YFb=function(a){if(null!=a)return{user:uJ(void 0,a.getUser()),resourceType:n(p(a,2)),resourceId:n(p(a,3)),name:n(p(a,4))}};
var Bm=function(a){Z.call(this,a)};U(Bm,Z);g=Bm.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return cj(this,1)};g.getCustomFieldId=function(){return kj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return cj(this,2)};g.getCustomFieldName=function(){return V(this,3)};g.toObject=function(){return ZFb(void 0,this)};
var ZFb=function(a,b){if(null!=b){var c={type:n(p(b,1)),customFieldId:n(p(b,2)),customFieldName:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Cm=function(a){Z.call(this,a)};U(Cm,Z);g=Cm.prototype;g.getField=function(){return m(this,Bm,1)};g.setField=function(a){Ab(this,1,a)};g.getDirection=function(){return X(this,2,0)};g.setDirection=function(a){return l(this,2,a)};g.toObject=function(){return $Fb(void 0,this)};var $Fb=function(a,b){if(null!=b){var c={field:ZFb(a,b.getField()),direction:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Dm=function(a){Z.call(this,a,-1,aGb)};U(Dm,Z);g=Dm.prototype;g.getHotlistId=function(){return kj(this,1)};g.setHotlistId=function(a){l(this,1,a)};g.getOwnerUser=function(){return m(this,Rl,13)};g.setOwnerUser=function(a){Ab(this,13,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return cj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getArchived=function(){return W(this,6)};
g.setArchived=function(a){l(this,6,a)};g.getDisplayColumnList=function(){return rb(this,Bm,8)};g.setDisplayColumnList=function(a){zb(this,8,a)};g.getSortOrderList=function(){return rb(this,Cm,9)};g.setSortOrderList=function(a){zb(this,9,a)};g.getCreatedTimeMicros=function(){return dj(this,10)};g.setCreatedTimeMicros=function(a){l(this,10,a)};g.getModifiedTimeMicros=function(){return dj(this,11)};g.setModifiedTimeMicros=function(a){l(this,11,a)};g.getAdminUsersList=function(){return rb(this,Rl,14)};
g.setAdminUsersList=function(a){zb(this,14,a)};g.getEtag=function(){return V(this,15)};g.setEtag=function(a){l(this,15,a)};g.hasEtag=function(){return cj(this,15)};var aGb=[8,9,14];Dm.prototype.toObject=function(){return bGb(void 0,this)};
var bGb=function(a,b){if(null!=b){var c={hotlistId:n(p(b,1)),ownerUser:uJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),archived:n(Ro(b,6)),displayColumnList:Bb(b.getDisplayColumnList(),ZFb,a),sortOrderList:Bb(b.getSortOrderList(),$Fb,a),createdTimeMicros:n(p(b,10)),modifiedTimeMicros:n(p(b,11)),adminUsersList:Bb(b.getAdminUsersList(),uJ,a),etag:n(p(b,15))};a&&(c.$jspbMessageInstance=b);return c}};Dm.messageId="b.Hotlist";
var Fm=function(a){Z.call(this,a,-1,cGb)};U(Fm,Z);g=Fm.prototype;g.getOwnerUser=function(){return m(this,Rl,10)};g.setOwnerUser=function(a){Ab(this,10,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return cj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getQuery=function(){return V(this,7)};g.setQuery=function(a){return l(this,7,a)};g.clearQuery=function(){mb(this,7)};
g.hasQuery=function(){return cj(this,7)};g.getSortOrderList=function(){return rb(this,Cm,8)};g.setSortOrderList=function(a){zb(this,8,a)};g.getDisplayColumnList=function(){return rb(this,Bm,6)};g.setDisplayColumnList=function(a){zb(this,6,a)};g.getAdminUsersList=function(){return rb(this,Rl,11)};g.setAdminUsersList=function(a){zb(this,11,a)};var cGb=[8,6,11];Fm.prototype.toObject=function(){return dGb(void 0,this)};
var dGb=function(a,b){if(null!=b){var c={searchId:n(p(b,1)),ownerUser:uJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),query:n(p(b,7)),sortOrderList:Bb(b.getSortOrderList(),$Fb,a),displayColumnList:Bb(b.getDisplayColumnList(),ZFb,a),adminUsersList:Bb(b.getAdminUsersList(),uJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var MJ=function(a){Z.call(this,a)};U(MJ,Z);MJ.prototype.getFavorite=function(){return m(this,XFb,1)};MJ.prototype.toObject=function(){var a=null!=this?{favorite:YFb(this.getFavorite())}:void 0;return a};MJ.messageId="b.Favorite";
var NJ=function(a){Z.call(this,a,-1,eGb)};U(NJ,Z);NJ.prototype.addHotlist=function(a){yu(this,1,Dm,a)};var eGb=[1];NJ.prototype.toObject=function(){var a=null!=this?{hotlistList:Bb(rb(this,Dm,1),bGb)}:void 0;return a};NJ.messageId="b.HotlistBatchResponse";
var Gm=function(a){Z.call(this,a)};U(Gm,Z);g=Gm.prototype;g.getId=function(){return kj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return cj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Rl,7)};g.setOwnerUser=function(a){Ab(this,7,a)};g.getStarred=function(){return W(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return cj(this,5)};g.getResourceType=function(){return V(this,6)};g.setResourceType=function(a){l(this,6,a)};g.hasResourceType=function(){return cj(this,6)};g.toObject=function(){return fGb(void 0,this)};var fGb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:uJ(a,b.getOwnerUser()),starred:n(Ro(b,5)),resourceType:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}};
var Hm=function(a){Z.call(this,a,-1,gGb)};U(Hm,Z);g=Hm.prototype;g.getId=function(){return kj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return cj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Rl,7)};g.setOwnerUser=function(a){Ab(this,7,a)};g.getStarred=function(){return W(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return cj(this,5)};var gGb=[6];Hm.prototype.toObject=function(){return hGb(void 0,this)};var hGb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:uJ(a,b.getOwnerUser()),starred:n(Ro(b,5)),sublinksList:Bb(rb(b,Gm,6),fGb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var OJ=function(a){Z.call(this,a,-1,iGb)};U(OJ,Z);OJ.prototype.getHotlistsList=function(){return rb(this,Gm,1)};OJ.prototype.getBookmarkGroupsList=function(){return rb(this,Hm,2)};var iGb=[1,2,3,4];OJ.prototype.toObject=function(){var a=null!=this?{hotlistsList:Bb(this.getHotlistsList(),fGb),bookmarkGroupsList:Bb(this.getBookmarkGroupsList(),hGb),archivedHotlistsList:Bb(rb(this,Gm,3),fGb),archivedBookmarkGroupsList:Bb(rb(this,Hm,4),hGb)}:void 0;return a};OJ.messageId="b.SidebarInfo";
var kGb=function(a){Z.call(this,a,-1,jGb)};U(kGb,Z);var jGb=[1];kGb.prototype.toObject=function(){var a=null!=this?{componentsList:Bb(rb(this,pm,1),AJ)}:void 0;return a};kGb.messageId="b.UserRecentComponentResponse";
var mGb=function(a){Z.call(this,a,-1,lGb)};U(mGb,Z);var lGb=[1];mGb.prototype.toObject=function(){var a=null!=this?{searchesList:Bb(rb(this,Fm,1),dGb)}:void 0;return a};mGb.messageId="b.UserSavedSearchesResponse";
var PJ=function(){},QJ=function(a){this.apiResourceFactory=a;this.userHotlistsResource=SFb(KJ(this.apiResourceFactory,"action/current_user/hotlists")).build();this.userSidebarResource=IJ(KJ(this.apiResourceFactory,"action/current_user/sidebar")).build();this.recentComponentsResource=SFb(KJ(this.apiResourceFactory,"action/current_user/recent_components")).build();this.userSavedSearchesResource=SFb(KJ(this.apiResourceFactory,"action/current_user/searches")).build();this.favoritesResource=VFb(TFb(IJ(KJ(this.apiResourceFactory,
"action/favorites/:resourceType/:resourceId")))).build()};U(QJ,PJ);g=QJ.prototype;g.getUserHotlists=function(){return this.userHotlistsResource.query({})};g.getUserSidebar=function(){return this.userSidebarResource.get({})};g.getRecentComponents=function(){return this.recentComponentsResource.query({})};g.getUserSavedSearches=function(){return this.userSavedSearchesResource.query({})};g.getFavorite=function(a,b){return this.favoritesResource.get({resourceType:a,resourceId:b})};
g.saveFavorite=function(a){return this.favoritesResource.save({},a)};g.deleteFavorite=function(a){return this.favoritesResource.delete({resourceType:a.resourceType,resourceId:a.resourceId}).then(function(){})};QJ.\u0275fac=function(a){return new (a||QJ)(t(JJ))};QJ.\u0275prov=ec({token:QJ,factory:QJ.\u0275fac,providedIn:"root"});var RJ=function(){};RJ.\u0275fac=function(a){return new (a||RJ)};RJ.\u0275prov=ec({token:RJ,factory:RJ.\u0275fac,providedIn:"root"});var SJ=function(a){this.http=a};U(SJ,RJ);
SJ.prototype.getRecentComponents=function(){return this.http.get("action/current_user/recent_components").pipe(C(function(a){return Array.isArray(a)?a.map(tm).filter(sm):[]}))};SJ.prototype.getUserSavedSearches=function(){return this.http.get("action/current_user/searches",{}).pipe(C(function(a){return Array.isArray(a)?a.filter(hsa):[]}))};SJ.\u0275fac=function(a){return new (a||SJ)(t(AE))};SJ.\u0275prov=ec({token:SJ,factory:SJ.\u0275fac,providedIn:"root"});var TJ=function(a){this.executor=a};
U(TJ,RJ);g=TJ.prototype;g.getUserHotlists=function(){return this.executor.get({url:"action/current_user/hotlists",responseConstructor:NJ}).pipe(C(bsa))};g.getUserSidebar=function(){return this.executor.get({url:"action/current_user/sidebar",responseConstructor:OJ}).pipe(C(gsa))};g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:kGb}).pipe(C(Ara))};
g.getUserSavedSearches=function(){return this.executor.get({url:"action/current_user/searches",responseConstructor:mGb}).pipe(C(dsa))};g.getFavorite=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:MJ}).pipe(C(Tra))};g.saveFavorite=function(a){var b=new XFb;b.setResourceType(dAb[a.resourceType]);b.setResourceId(String(a.resourceId));return this.executor.post({url:"action/favorites",body:b,responseConstructor:MJ}).pipe(C(Tra))};
g.deleteFavorite=function(a){return this.executor.delete({url:"action/favorites/"+a.resourceType+"/"+a.resourceId,responseConstructor:null})};TJ.\u0275fac=function(a){return new (a||TJ)(t(pI))};TJ.\u0275prov=ec({token:TJ,factory:TJ.\u0275fac,providedIn:"root"});var UJ=function(a){this.observableApi=a};U(UJ,PJ);g=UJ.prototype;g.getUserHotlists=function(){return(0,T.firstValueFrom)(this.observableApi.getUserHotlists())};g.getUserSidebar=function(){return(0,T.firstValueFrom)(this.observableApi.getUserSidebar())};
g.getRecentComponents=function(){return(0,T.firstValueFrom)(this.observableApi.getRecentComponents())};g.getUserSavedSearches=function(){return(0,T.firstValueFrom)(this.observableApi.getUserSavedSearches())};g.getFavorite=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getFavorite(a,b))};g.saveFavorite=function(a){return(0,T.firstValueFrom)(this.observableApi.saveFavorite(a))};g.deleteFavorite=function(a){return(0,T.firstValueFrom)(this.observableApi.deleteFavorite(a))};
UJ.\u0275fac=function(a){return new (a||UJ)(t(TJ))};UJ.\u0275prov=ec({token:UJ,factory:UJ.\u0275fac,providedIn:"root"});
var VJ=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()},WJ=function(a){return Date.now()-a.lastValidated};VJ.prototype.isFresh=function(){return WJ(this)<this.cfg.freshUntil};VJ.prototype.isAncient=function(){return WJ(this)>this.cfg.ancientAfter};VJ.prototype.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};VJ.prototype.toString=function(){var a=String(this.data);return Math.ceil(WJ(this)/1E3)+"s old -- "+a};
var nGb=function(a){this.cfg=a;this.cache=new Map},oGb=function(a,b){a=XJ(a,b);return null==a?Infinity:a},XJ=function(a,b){return(a=a.get(b,!0))?WJ(a):void 0};nGb.prototype.isFresh=function(a){return oGb(this,a)<this.cfg.freshUntil};var pGb=function(a,b){return oGb(a,b)<=a.cfg.ancientAfter};g=nGb.prototype;g.isAncient=function(a){return WJ(a)>this.cfg.ancientAfter};g.getStatus=function(a){a=this.get(a,!0);if(null!=a)return a.getStatus()};
g.get=function(a,b){b=void 0===b?!1:b;var c=this.cache.get(a);if(null!=c)return this.isAncient(c)&&!b&&this.cache.delete(a),this.cache.get(a)};g.getData=function(a,b){return(a=this.get(a,void 0===b?!1:b))?a.data:void 0};g.set=function(a,b){this.cache.set(a,new VJ(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new VJ(b.data,this.cfg))};g.validate=function(a,b,c){return(a=this.get(a))?c(a.data,b):!1};
g.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};g.toString=function(){return Array.from(this.cache,function(a){a=r(a);var b=a.next().value;a=a.next().value;b=String(b).slice(-16);var c=a.toString();return a.getStatus()+"  "+b+": "+c}).join("\n")};
var qGb=function(){},rGb={trustMemory:!0},sGb=function(){},Zma=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],tGb=function(a){this.ids=[];Object.assign(this,a)};U(tGb,sGb);tGb.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var uGb={freshUntil:1E4,ancientAfter:792E5},ZJ=function(a){var b=this;a=void 0===a?{}:a;this.error$=new T.Subject;this.defaultQuery={};this.idKey="id";this.idForRecord=function(c){var d=c[b.idKey];if("string"===typeof d)return d;if("number"===typeof d)return String(d);c=JSON.stringify(c).slice(0,128);if(null==d)throw Error("Qc`"+b.idKey+"`"+c);throw Error("Rc`"+c);};this.vals$ById=new Map;this.collections$ById=new Map;this.sets$ByLabel=new Map;this.inFlightGets$=new T.BehaviorSubject(Object.freeze({}));
this.inFlightSaves$=new T.BehaviorSubject(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(C(Im));this.saving$=this.inFlightSaves$.pipe(C(Im));this.thinking$=(0,T.combineLatest)(this.getting$,this.saving$).pipe(C(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Le());this.gotOne=function(c){return function(d,e){e=void 0===e?{}:e;e=e.doNotTrack?qGb:YJ({label:c,value:XJ(b.memory,c)});if(b.memory.validate(c,d,b.isEqual))e("one-isSame"),b.memory.touch(c);else{b.memory.set(c,
d);var f=b.vals$ById.get(c);e("one-isChanged");f?f.next(d):Pk("gotOne("+c+"). !isEqual but nobody's listening")}}};this.gotSet=function(c){return function(d){for(var e=r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=b.idForRecord(f);b.gotOne(h)(f,{doNotTrack:!0})}(e=vGb(b,c))?e.next(d):Qk("gotSet("+c+"), but no channel is set up")}};this.gotAll=function(c){return function(d){for(var e=YJ({label:c,value:XJ(b.collectiveMemory,c)}),f=r(d.results),h=f.next();!h.done;h=f.next()){h=h.value;var k=b.idForRecord(h);
b.gotOne(k)(h,{doNotTrack:!0})}f=b.normalize(d);b.collectiveMemory.validate(c,f,Yma);b.collectiveMemory.set(c,f);e("all-isChanged");(e=b.collections$ById.get(c))?(d=wGb(b,f,d.results),e.next(d)):Wpa(c+" gotAll but don't have a behaviorSubject set up to broadcast on. Strange...",d)}};this.dereferenceOne=function(c){return function(d){var e=c.find(function(f){return b.idForRecord(f)===d});null==e&&Qk("Couldn't find a record for id "+d);return e}};this.debug=function(){return{recordType:b.recordType,
isThinking:b.isThinking(),inFlightGets:Object.entries(b.inFlightGets).map(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves).map(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),records:b.memory.debug(),lists:b.collectiveMemory.debug()}};this.implementsFn=function(){return function(){try{b.doSave()}catch(d){var c=d;if((void 0===c.message?"":c.message).match("Default no-op for Fridge"))return!1}return!0}};
this.canSave=this.implementsFn();this.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=function(c){return null==c?Im(b.inFlightSaves):!!b.inFlightSaves[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(C(function(d){return!!d[c]}),Le())};this.isGetting=function(c){return null==c?Im(b.inFlightGets):!!b.inFlightGets[c]};this.watchOne=this.watch;this.save=function(c){var d=b.idForRecord(c);if(null==d)throw Error("Sc");c=b.doSave(c).pipe(Ke(0,T.asapScheduler),Bga(),
je());b.setIsSaving(d);c.subscribe(b.gotOne(d),b.gotErr(d,b.inFlightSaves$),xGb(d,b.inFlightSaves$));return c};this.setIsSaving=function(c){var d={};isa(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){Jm(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};isa(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){Jm(b.inFlightGets$,c)};this.announce=function(c,d){d=void 0===d?{}:d;if(null!=c){var e=b.idForRecord(c);if(null==e)throw Error("Tc");b.gotOne(e)(c,Object.assign({},
{doNotTrack:!0},d))}};this.memory=new nGb(Object.assign({},uGb,a));this.collectiveMemory=new nGb(Object.assign({},uGb,a))};g=ZJ.prototype;g.fetchOne=function(){throw Error("Uc");};g.fetchAll=function(){throw Error("Vc");};g.fetchSet=function(){throw Error("Wc");};g.doSave=function(){throw Error("Xc");};g.copy=function(){throw Error("Yc");};g.isEqual=function(a,b){return Yma(a,b,100)};
var zGb=function(a,b,c){c=void 0===c?{}:c;var d=c.trustMemory,e=c.trustUncertainMemory;c=YJ({label:b,value:XJ(a.memory,b)});d=d&&a.memory.isFresh(b);e=e&&pGb(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),nsa(c);if(a.inFlightGets[b])return c("one-inFlight"),c=yGb(a,b),msa(c).then(nsa);c("one-fetch");var f=a.fetchOne(b).pipe(Ke(0,T.asapScheduler));a.setIsGetting(b);return new Promise(function(h,k){f.subscribe(function(q){a.gotOne(b)(q);h(q)},function(q){a.gotErr(b,a.inFlightGets$)(q);
k(q)},xGb(b,a.inFlightGets$))})},CGb=function(a,b,c){c=(void 0===c?{}:c).trustMemory;var d=[].concat(u(b)).sort().join("-"),e=YJ({label:d});if(c&&AGb(a,b))e("set-trustMemory");else if(BGb(a,b))e("set-inFlight");else{e("set-fetch");c=a.fetchSet(b).pipe(Ke(0,T.asapScheduler));e={};e=(e[d]=!0,e);for(var f=r(b),h=f.next();!h.done;h=f.next())e[h.value]=!0;isa(a.inFlightGets$,e);c.subscribe(a.gotSet(b),function(k){jsa(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){jsa(a.inFlightGets$,[d].concat(u(b)))})}},
AGb=function(a,b){if(!b.every(function(d){return a.memory.isFresh(d)}))return!1;var c=DGb(a,b);if(c.length!==b.length)return Qk("broadcastFresh("+b+"): cached records ("+c.length+") !== ids ("+b.length+")"),!1;vGb(a,b).next(c);return!0},BGb=function(a,b){if(!b.every(function(d){return!!a.inFlightGets[d]}))return!1;var c=b.map(function(d){return yGb(a,d)});if(c.length!==b.length)return Qk("broadcastSetIfInFlight("+b+"): single-record channels ("+c.length+") !== ids ("+b.length+")"),!1;(0,T.combineLatest)(c).pipe(Me()).subscribe(function(d){vGb(a,
b).next(d.filter($k))});return!0};
ZJ.prototype.getAll=function(a,b){var c=(void 0===b?{}:b).trustMemory;b=Km(a);var d=YJ({label:b,value:XJ(this.collectiveMemory,b)});if(c&&this.collectiveMemory.isFresh(b))return d("all-trustMemory"),a=this.collectiveMemory.getData(b),b=DGb(this,a.ids),a=wGb(this,a,b),Promise.resolve(a);if(this.inFlightGets[b])return d("all-inFlight"),a=EGb(this,a),msa(a);d("all-fetch");c=this.fetchAll(a).pipe(Ke(0,T.asapScheduler));this.setIsGetting(b);c.subscribe(this.gotAll(b),this.gotErr(b,this.inFlightGets$),
xGb(b,this.inFlightGets$));a=EGb(this,a);return msa(a)};ZJ.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);Xpa(a+" gotErr()",d);Jm(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};var xGb=function(a,b){return function(){Jm(b,a)}};ZJ.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new tGb(Object.assign({},lsa(a),{ids:b}))};
var wGb=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},lsa(b),{results:a})},DGb=function(a,b){return b.map(function(c){return a.memory.getData(c)}).filter($k)},EGb=function(a,b){b=Km(b);return ksa(a.collections$ById,b,new T.ReplaySubject(1))},vGb=function(a,b){b=[].concat(u(b)).sort().join("-");return ksa(a.sets$ByLabel,b,new T.ReplaySubject(1))},yGb=function(a,b,c){var d=new T.ReplaySubject(1);null!=c&&d.next(c);return ksa(a.vals$ById,b,d)};
ZJ.prototype.watch=function(a,b){b=void 0===b?rGb:b;if(null==a)return(0,T.of)();"number"===typeof a&&(a=String(a));var c=yGb(this,a,this.memory.getData(a));zGb(this,a,b).catch(function(){});return Olb(c)};
var $J=function(a,b){var c=void 0===c?rGb:c;b=b.map(function(e){return"number"===typeof e?String(e):e});var d=vGb(a,b);CGb(a,b,c);return d},FGb=function(a,b){var c=void 0===c?rGb:c;b=Object.assign({},a.defaultQuery,b);var d=EGb(a,b);a.getAll(b,c);return Olb(d)},et=function(a,b){return null==b?GGb():zGb(a,String(b))},HGb=function(a,b){return null==b?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},IGb=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):
a.collectiveMemory.getStatus(Km(b))};ZJ.prototype.invalidate=function(a){null==a?(this.memory.cache.clear(),this.collectiveMemory.cache.clear()):["string","number"].includes(typeof a)?this.memory.cache.delete(String(a)):this.collectiveMemory.cache.delete(Km(a))};var aK=function(a,b,c,d){d=void 0===d?{}:d;if(void 0!==d.evenWhenInFlight&&d.evenWhenInFlight||!a.inFlightGets[b])if(b=a.copy(a.memory.getData(String(b))))c(b),a.announce(b)};
ki.Object.defineProperties(ZJ.prototype,{inFlightGets:{configurable:!0,enumerable:!0,get:function(){return this.inFlightGets$.getValue()}},inFlightSaves:{configurable:!0,enumerable:!0,get:function(){return this.inFlightSaves$.getValue()}}});var YJ=function(a){for(var b=r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,null==a[c]&&delete a[c];return function(){}},GGb=function(){return new Promise(function(){})};
var bK=function(a,b){ZJ.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.observableComponentApi=a;this.observableUserResourcesApi=b;this.recordType="component";this.idKey="componentId"};U(bK,ZJ);g=bK.prototype;g.fetchOne=function(a){return this.observableComponentApi.fetchComponent(a,{})};
g.fetchAll=function(a){a=void 0===a?{}:a;if("recent"===a.custom)return this.observableUserResourcesApi.getRecentComponents().pipe(C(Jra));if(null!=a.filter)return this.search(a.filter,a.includeArchived).pipe(C(Jra));Qk("Fridge<"+this.recordType+"> unsupported query",a);return(0,T.of)(Ira)};g.fetchSet=function(a){return this.observableComponentApi.query({id:a})};g.search=function(a,b){return this.maybeAmendAndroidSearch(a,this.observableComponentApi.query({query:a,includearchived:void 0===b?!1:b}))};
g.maybeAmendAndroidSearch=function(a,b){if(a.match(/^\s*android\s*$/i)){var c=psa();if(c)return a=this.fetchOne(String(c)),(0,T.combineLatest)([a,b]).pipe(C(function(d){var e=r(d);d=e.next().value;e=e.next().value;return qsa(c,d,e)}))}return b};bK.\u0275fac=function(a){return new (a||bK)(t(IFb),t(RJ))};bK.\u0275prov=ec({token:bK,factory:bK.\u0275fac,providedIn:"root"});var osa={QA:124156,NIGHTLY:190923,PROD:190923};
var cK=function(a){Z.call(this,a)};U(cK,Z);cK.prototype.getSnapshot=function(){return m(this,Vl,1)};cK.prototype.setSnapshot=function(a){Ab(this,1,a)};cK.prototype.toObject=function(){var a=null!=this?{snapshot:wJ(void 0,this.getSnapshot()),customFieldMapMap:Db(Yi(this,2,ll),void 0,qJ)}:void 0;return a};cK.messageId="b.IssueTemplateResponse";
var KGb=function(a){Z.call(this,a,-1,JGb)};U(KGb,Z);var JGb=[1];KGb.prototype.toObject=function(){var a=null!=this?{templatesList:Bb(rb(this,qm,1),CFb)}:void 0;return a};KGb.messageId="b.ListTemplatesResponse";
var dK=function(a){Z.call(this,a)};U(dK,Z);dK.prototype.toObject=function(){var a=null!=this?{template:CFb(void 0,m(this,qm,1))}:void 0;return a};dK.messageId="b.TemplateResponse";
var eK=function(){},fK=function(a){this.apiResourceFactory=a;this.templateApi=VFb(UFb(WFb(SFb(IJ(KJ(this.apiResourceFactory,"action/components/:componentId/templates/:templateId")))))).build();this.issueTemplateApi=IJ(KJ(this.apiResourceFactory,"action/components/:componentId/issue_template"),{transformResponse:JFb}).build()};U(fK,eK);g=fK.prototype;g.get=function(a,b){return this.templateApi.get({componentId:a,templateId:b})};g.query=function(a,b){return this.templateApi.query({componentId:a,templateId:b})};
g.create=function(a,b){return this.templateApi.create({componentId:a},b)};g.update=function(a,b,c){return this.templateApi.update({componentId:a,templateId:b},c)};g.delete=function(a,b){return this.templateApi.delete({componentId:a,templateId:b}).then(function(){})};g.getIssueTemplate=function(a,b){return this.issueTemplateApi.get({componentId:a,templateId:b})};fK.\u0275fac=function(a){return new (a||fK)(t(JJ))};fK.\u0275prov=ec({token:fK,factory:fK.\u0275fac,providedIn:"root"});
var gK=function(a){this.executor=a};g=gK.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:dK}).pipe(C(rsa))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:KGb}).pipe(C(ssa))};g.create=function(a,b){b=Dra(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:dK,body:b}).pipe(C(rsa))};
g.update=function(a,b,c){c=Dra(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:dK,body:c}).pipe(C(rsa))};g.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};g.getIssueTemplate=function(a,b){return this.executor.get({url:"action/components/"+a+"/issue_template",responseConstructor:cK,options:{params:{templateId:String(b)}}}).pipe(C(Era))};gK.\u0275fac=function(a){return new (a||gK)(t(pI))};
gK.\u0275prov=ec({token:gK,factory:gK.\u0275fac,providedIn:"root"});var hK=function(a){this.observableApi=a};U(hK,eK);g=hK.prototype;g.get=function(a,b){return(0,T.firstValueFrom)(this.observableApi.get(a,b))};g.query=function(a){return(0,T.firstValueFrom)(this.observableApi.query(a))};g.create=function(a,b){return(0,T.firstValueFrom)(this.observableApi.create(a,b))};g.update=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.update(a,b,c))};
g.delete=function(a,b){return(0,T.firstValueFrom)(this.observableApi.delete(a,b))};g.getIssueTemplate=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getIssueTemplate(a,b))};hK.\u0275fac=function(a){return new (a||hK)(t(gK))};hK.\u0275prov=ec({token:hK,factory:hK.\u0275fac,providedIn:"root"});
var iK=function(a){Z.call(this,a,-1,LGb)};U(iK,Z);iK.prototype.getIssueId=function(){return kj(this,1)};iK.prototype.setIssueId=function(a){return l(this,1,a)};iK.prototype.getAttachmentsList=function(){return kb(this,2,Za)};iK.prototype.setAttachmentsList=function(a){hl(this,2,a)};var Mm=function(a){Z.call(this,a)};U(Mm,Z);Mm.prototype.getContentJudgement=function(){return m(this,Dl,2)};Mm.prototype.setContentJudgement=function(a){return Ab(this,2,a)};var LGb=[2,3];
iK.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),attachmentsList:Eb(this.getAttachmentsList()),attachmentsWithJudgementsList:Bb(rb(this,Mm,3),MGb)}:void 0;return a};Mm.prototype.toObject=function(){return MGb(void 0,this)};var MGb=function(a,b){if(null!=b){var c={attachment:Eb(Lm(b,1)),contentJudgement:rJ(a,b.getContentJudgement())};a&&(c.$jspbMessageInstance=b);return c}};
var NGb=function(a){Z.call(this,a)};U(NGb,Z);g=NGb.prototype;g.getFilename=function(){return V(this,1)};g.setFilename=function(a){l(this,1,a)};g.getMimeType=function(){return V(this,2)};g.setMimeType=function(a){l(this,2,a)};g.getSize=function(){return dj(this,5)};g.setSize=function(a){return l(this,5,a)};g.toObject=function(){var a=null!=this?{filename:n(p(this,1)),mimeType:n(p(this,2)),encryptedBlobId:n(p(this,3)),docId:n(p(this,4)),size:n(p(this,5))}:void 0;return a};
var PGb=function(a){Z.call(this,a,-1,OGb)};U(PGb,Z);g=PGb.prototype;g.setSignificanceOverride=function(a){l(this,3,a)};g.setIssueIdsList=function(a){hl(this,1,a)};g.addIssueIds=function(a){ob(this,1,a)};g.getActionsList=function(){return rb(this,$l,2)};g.setActionsList=function(a){zb(this,2,a)};var dn=function(a){Z.call(this,a,-1,QGb)};U(dn,Z);dn.prototype.getActionsList=function(){return rb(this,$l,1)};dn.prototype.setActionsList=function(a){zb(this,1,a)};
dn.prototype.setIssueIdsList=function(a){hl(this,2,a)};dn.prototype.addIssueIds=function(a){ob(this,2,a)};var OGb=[4,1,2];PGb.prototype.toObject=function(){var a=null!=this?{bulkEditOpsList:Bb(rb(this,dn,4),RGb),significanceOverride:n(p(this,3)),issueIdsList:n(jb(this,1)),actionsList:Bb(this.getActionsList(),mFb)}:void 0;return a};var QGb=[1,2];dn.prototype.toObject=function(){return RGb(void 0,this)};
var RGb=function(a,b){if(null!=b){var c={actionsList:Bb(b.getActionsList(),mFb,a),issueIdsList:n(jb(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var kn=function(a){Z.call(this,a)};U(kn,Z);kn.prototype.getContent=function(){return m(this,Vm,1)};kn.prototype.setContent=function(a){Ab(this,1,a)};kn.prototype.hasContent=function(){return cj(this,1)};kn.prototype.toObject=function(){return SGb(void 0,this)};var SGb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Ep=function(a){Z.call(this,a)};U(Ep,Z);Ep.prototype.getContent=function(){return m(this,Vm,1)};Ep.prototype.setContent=function(a){Ab(this,1,a)};Ep.prototype.hasContent=function(){return cj(this,1)};Ep.prototype.toObject=function(){return TGb(void 0,this)};var TGb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Hp=function(a){Z.call(this,a)};U(Hp,Z);g=Hp.prototype;g.getIsQuoted=function(){return W(this,1)};g.getContent=function(){return m(this,Vm,2)};g.setContent=function(a){Ab(this,2,a)};g.hasContent=function(){return cj(this,2)};g.toObject=function(){return UGb(void 0,this)};var UGb=function(a,b){if(null!=b){var c={isQuoted:n(Ro(b,1)),content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Gp=function(a){Z.call(this,a,-1,VGb)};U(Gp,Z);Gp.prototype.getPlainSectionList=function(){return rb(this,Hp,1)};Gp.prototype.addPlainSection=function(a){yu(this,1,Hp,a)};var VGb=[1];Gp.prototype.toObject=function(){return WGb(void 0,this)};var WGb=function(a,b){if(null!=b){var c={plainSectionList:Bb(b.getPlainSectionList(),UGb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var jn=function(a){Z.call(this,a)};U(jn,Z);g=jn.prototype;g.getKindCase=function(){return pb(this,jK)};g.getPlainFormat=function(){return wl(this,Gp,1,jK)};g.setPlainFormat=function(a){xu(this,1,jK,a)};g.hasPlainFormat=function(){return ul(this,1,jK)};g.getMarkdownFormat=function(){return wl(this,Ep,2,jK)};g.setMarkdownFormat=function(a){xu(this,2,jK,a)};g.hasMarkdownFormat=function(){return ul(this,2,jK)};g.getLiteralFormat=function(){return wl(this,kn,3,jK)};
g.setLiteralFormat=function(a){xu(this,3,jK,a)};g.hasLiteralFormat=function(){return ul(this,3,jK)};var jK=[1,2,3];jn.prototype.toObject=function(){return XGb(void 0,this)};var XGb=function(a,b){if(null!=b){var c={plainFormat:WGb(a,b.getPlainFormat()),markdownFormat:TGb(a,b.getMarkdownFormat()),literalFormat:SGb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var en=function(a){Z.call(this,a)};U(en,Z);en.prototype.getIssueId=function(){return kj(this,1)};en.prototype.setIssueId=function(a){return l(this,1,a)};en.prototype.getMessage=function(){return V(this,2)};en.prototype.toObject=function(){return YGb(void 0,this)};var YGb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),message:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var $Gb=function(a){Z.call(this,a,-1,ZGb)};U($Gb,Z);var ZGb=[2];$Gb.prototype.toObject=function(){var a=null!=this?{affectedIssuesMap:Db(Yi(this,1,dm),void 0,xJ),errorsList:Bb(rb(this,en,2),YGb),componentMapMap:Db(Yi(this,3,pm),void 0,AJ)}:void 0;return a};$Gb.messageId="b.BulkEditResponse";
var kK=function(a){Z.call(this,a)};U(kK,Z);kK.prototype.getIssueId=function(){return kj(this,1)};kK.prototype.setIssueId=function(a){return l(this,1,a)};kK.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};kK.messageId="b.IssueCreateResponse";
var aHb=function(a){Z.call(this,a)};U(aHb,Z);aHb.prototype.toObject=function(){return bHb(void 0,this)};var bHb=function(a,b){if(null!=b){var c={blobId:n(p(b,1)),blobGeneration:n(p(b,5)),readToken:n(p(b,2)),uploadMetadataContainer:Eb(uu(b,3)),downloadReadHandle:Eb(uu(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var cHb=function(a){Z.call(this,a)};U(cHb,Z);cHb.prototype.toObject=function(){return dHb(void 0,this)};var dHb=function(a,b){if(null!=b){var c={bucketName:n(p(b,1)),objectName:n(p(b,2)),generation:n(p(b,7))};a&&(c.$jspbMessageInstance=b);return c}};
var lK=function(a){Z.call(this,a)};U(lK,Z);g=lK.prototype;g.getPath=function(){return p(this,3)};g.setPath=function(a){return l(this,3,a)};g.hasPath=function(){return cj(this,3)};g.getBlobRef=function(){return uu(this,4)};g.getInline=function(){return uu(this,5)};g.getObjectId=function(){return m(this,cHb,6)};g.setObjectId=function(a){Ab(this,6,a)};g.getBlobstore2Info=function(){return m(this,aHb,7)};g.getCosmoBinaryReference=function(){return uu(this,8)};g.getMd5Hash=function(){return uu(this,10)};
g.getSha1Hash=function(){return uu(this,11)};g.toObject=function(){return mK(void 0,this)};var mK=function(a,b){if(null!=b){var c={length:n(p(b,1)),referenceType:n(p(b,2)),path:n(p(b,3)),blobRef:Eb(b.getBlobRef()),inline:Eb(b.getInline()),objectId:dHb(a,b.getObjectId()),blobstore2Info:bHb(a,b.getBlobstore2Info()),cosmoBinaryReference:Eb(b.getCosmoBinaryReference()),crc32cHash:n(p(b,9)),md5Hash:Eb(b.getMd5Hash()),sha1Hash:Eb(b.getSha1Hash())};a&&(c.$jspbMessageInstance=b);return c}};
var eHb=function(a){Z.call(this,a)};U(eHb,Z);eHb.prototype.toObject=function(){return fHb(void 0,this)};var fHb=function(a,b){if(null!=b){var c={bestGuess:n(p(b,1)),fromHeader:n(p(b,2)),fromFileName:n(p(b,3)),fromUrlPath:n(p(b,4)),fromBytes:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var gHb=function(a){Z.call(this,a)};U(gHb,Z);gHb.prototype.getObjectLocation=function(){return m(this,lK,5)};gHb.prototype.toObject=function(){return hHb(void 0,this)};var hHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2)),chunkSizeBytes:n(p(b,3)),checksumsLocation:mK(a,m(b,lK,4)),objectLocation:mK(a,b.getObjectLocation())};a&&(c.$jspbMessageInstance=b);return c}};
var iHb=function(a){Z.call(this,a)};U(iHb,Z);iHb.prototype.getObjectLocation=function(){return m(this,lK,1,1)};iHb.prototype.toObject=function(){return jHb(void 0,this)};var jHb=function(a,b){if(null!=b){var c={objectLocation:mK(a,m(b,lK,1))};a&&(c.$jspbMessageInstance=b);return c}};
var kHb=function(a){Z.call(this,a)};U(kHb,Z);kHb.prototype.toObject=function(){return lHb(void 0,this)};var lHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectInfo:mK(a,m(b,lK,2)),checksumsInfo:mK(a,m(b,lK,3))};a&&(c.$jspbMessageInstance=b);return c}};
var mHb=function(a){Z.call(this,a)};U(mHb,Z);mHb.prototype.toObject=function(){return nHb(void 0,this)};var nHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),originalObject:mK(a,m(b,lK,2))};a&&(c.$jspbMessageInstance=b);return c}};
var oHb=function(a){Z.call(this,a)};U(oHb,Z);oHb.prototype.toObject=function(){return pHb(void 0,this)};var pHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var qHb=function(a){Z.call(this,a)};U(qHb,Z);qHb.prototype.toObject=function(){return rHb(void 0,this)};var rHb=function(a,b){if(null!=b){var c={allowGzipCompression:n(Ro(b,1)),ignoreRange:n(Ro(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Om=function(a){Z.call(this,a,-1,sHb)};U(Om,Z);g=Om.prototype;g.getTimestamp=function(){return p(this,2)};g.setTimestamp=function(a){return l(this,2,a)};g.hasTimestamp=function(){return cj(this,2)};g.getToken=function(){return p(this,3)};g.setToken=function(a){return l(this,3,a)};g.getFilename=function(){return p(this,5)};g.setFilename=function(a){l(this,5,a)};g.getPath=function(){return p(this,7)};g.setPath=function(a){return l(this,7,a)};g.hasPath=function(){return cj(this,7)};
g.getBlobRef=function(){return uu(this,8)};g.getInline=function(){return uu(this,9)};g.getHash=function(){return p(this,11)};g.setHash=function(a){return l(this,11,a)};g.getObjectId=function(){return m(this,cHb,15)};g.setObjectId=function(a){Ab(this,15,a)};g.getBlobstore2Info=function(){return m(this,aHb,16)};g.getMd5Hash=function(){return uu(this,25)};g.getSha1Hash=function(){return uu(this,26)};g.getCosmoBinaryReference=function(){return uu(this,28)};var sHb=[13];
Om.prototype.toObject=function(){return tHb(void 0,this)};
var tHb=function(a,b){if(null!=b){var c={contentType:n(p(b,1)),timestamp:n(p(b,2)),token:n(p(b,3)),length:n(p(b,4)),filename:n(p(b,5)),referenceType:n(p(b,6)),path:n(p(b,7)),blobRef:Eb(b.getBlobRef()),inline:Eb(b.getInline()),mediaId:Eb(uu(b,10)),hash:n(p(b,11)),algorithm:n(p(b,12)),compositeMediaList:Bb(rb(b,lK,13),mK,a),bigstoreObjectRef:Eb(uu(b,14)),objectId:dHb(a,b.getObjectId()),blobstore2Info:bHb(a,b.getBlobstore2Info()),diffVersionResponse:pHb(a,m(b,oHb,17)),diffChecksumsResponse:hHb(a,m(b,
gHb,18)),diffDownloadResponse:jHb(a,m(b,iHb,19)),diffUploadRequest:lHb(a,m(b,kHb,20)),diffUploadResponse:nHb(a,m(b,mHb,21)),contentTypeInfo:fHb(a,m(b,eHb,22)),downloadParameters:rHb(a,m(b,qHb,23)),crc32cHash:n(p(b,24)),md5Hash:Eb(b.getMd5Hash()),sha1Hash:Eb(b.getSha1Hash()),sha256Hash:Eb(uu(b,30)),isPotentialRetry:W(b,27,!0),cosmoBinaryReference:Eb(b.getCosmoBinaryReference()),hashVerified:n(Ro(b,29))};a&&(c.$jspbMessageInstance=b);return c}};
var nK=function(a){Z.call(this,a)};U(nK,Z);g=nK.prototype;g.getStatus=function(){return X(this,1,0)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return cj(this,1)};g.setReason=function(a){l(this,2,a)};g.toObject=function(){return uHb(void 0,this)};var uHb=function(a,b){if(null!=b){var c={status:n(p(b,1)),reason:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var an=function(a){Z.call(this,a)};U(an,Z);g=an.prototype;g.getAttachmentId=function(){return kj(this,1)};g.setAttachmentId=function(a){l(this,1,a)};g.getDescription=function(){return V(this,2)};g.setDescription=function(a){return l(this,2,a)};g.getFilename=function(){return V(this,5)};g.setFilename=function(a){l(this,5,a)};g.getEtag=function(){return V(this,8)};g.setEtag=function(a){l(this,8,a)};g.hasEtag=function(){return cj(this,8)};g.getContentVerdict=function(){return m(this,Yl,9)};
g.getEntityStatus=function(){return m(this,nK,10)};g.getPiiRetentionState=function(){return m(this,gm,12)};g.hasPiiRetentionState=function(){return cj(this,12)};g.getPiiRetention=function(){return X(this,13,0)};g.setPiiRetention=function(a){return l(this,13,a)};g.toObject=function(){return vHb(void 0,this)};
var vHb=function(a,b){if(null!=b){var c={attachmentId:n(p(b,1)),description:n(p(b,2)),media:tHb(a,m(b,Om,3)),contentType:n(p(b,4)),filename:n(p(b,5)),length:n(p(b,6)),filecompUrl:n(p(b,7)),etag:n(p(b,8)),contentVerdict:fFb(a,b.getContentVerdict()),entityStatus:uHb(a,b.getEntityStatus()),piiRetentionState:sJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,13))};a&&(c.$jspbMessageInstance=b);return c}};an.messageId="b.Attachment";
var oK=function(a){Z.call(this,a)};U(oK,Z);oK.prototype.getCustomFieldId=function(){return dj(this,3)};oK.prototype.setCustomFieldId=function(a){return l(this,3,a)};oK.prototype.hasCustomFieldId=function(){return cj(this,3)};oK.prototype.toObject=function(){return wHb(void 0,this)};var wHb=function(a,b){if(null!=b){var c={oldValue:n(p(b,1)),newValue:n(p(b,2)),customFieldId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var xHb=function(a){Z.call(this,a)};U(xHb,Z);g=xHb.prototype;g.getHref=function(){return V(this,1)};g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};g.toObject=function(){return yHb(void 0,this)};var yHb=function(a,b){if(null!=b){var c={href:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Um=function(a){Z.call(this,a,-1,zHb)};U(Um,Z);Um.prototype.getAddedList=function(){return rb(this,xHb,1)};Um.prototype.getRemovedList=function(){return rb(this,xHb,2)};var zHb=[1,2];Um.prototype.toObject=function(){return AHb(void 0,this)};var AHb=function(a,b){if(null!=b){var c={addedList:Bb(b.getAddedList(),yHb,a),removedList:Bb(b.getRemovedList(),yHb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var BHb=function(a){Z.call(this,a)};U(BHb,Z);BHb.prototype.toObject=function(){return CHb(void 0,this)};var CHb=function(a,b){if(null!=b){var c={oldValue:n(p(b,1)),newValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Sm=function(a){Z.call(this,a)};U(Sm,Z);Sm.prototype.toObject=function(){return DHb(void 0,this)};var DHb=function(a,b){if(null!=b){var c={oldUser:uJ(a,m(b,Rl,1)),newUser:uJ(a,m(b,Rl,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Qm=function(a){Z.call(this,a)};U(Qm,Z);var Rm=[1,2];Qm.prototype.toObject=function(){return EHb(void 0,this)};var EHb=function(a,b){if(null!=b){var c={userDiff:DHb(a,wl(b,Sm,1,Rm)),stringDiff:CHb(a,wl(b,BHb,2,Rm))};a&&(c.$jspbMessageInstance=b);return c}};
var pK=function(a){Z.call(this,a,-1,FHb)};U(pK,Z);pK.prototype.getAddedList=function(){return jb(this,1)};pK.prototype.getRemovedList=function(){return jb(this,2)};var FHb=[1,2];pK.prototype.toObject=function(){return GHb(void 0,this)};var GHb=function(a,b){if(null!=b){var c={addedList:n(jb(b,1)),removedList:n(jb(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Tm=function(a){Z.call(this,a,-1,HHb)};U(Tm,Z);Tm.prototype.getAddedList=function(){return rb(this,Rl,1)};Tm.prototype.getRemovedList=function(){return rb(this,Rl,2)};var HHb=[1,2];Tm.prototype.toObject=function(){return IHb(void 0,this)};var IHb=function(a,b){if(null!=b){var c={addedList:Bb(b.getAddedList(),uJ,a),removedList:Bb(b.getRemovedList(),uJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Ym=function(a){Z.call(this,a)};U(Ym,Z);g=Ym.prototype;g.getName=function(){return V(this,1)};g.setName=function(a){return l(this,1,a)};g.hasName=function(){return cj(this,1)};g.getDisplayName=function(){return V(this,2)};g.setDisplayName=function(a){return l(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return cj(this,3)};g.getTimestamp=function(){return m(this,rj,4)};g.setTimestamp=function(a){return Ab(this,4,a)};
g.hasTimestamp=function(){return cj(this,4)};var Pm=[6,7,8,9,10];Ym.prototype.toObject=function(){return JHb(void 0,this)};var JHb=function(a,b){if(null!=b){var c={name:n(p(b,1)),displayName:n(p(b,2)),type:n(p(b,3)),timestamp:Pu(a,b.getTimestamp()),important:n(Ro(b,5)),singleValueDiff:EHb(a,wl(b,Qm,6,Pm)),collectionDiff:GHb(a,wl(b,pK,7,Pm)),linkedCollectionDiff:AHb(a,wl(b,Um,8,Pm)),customFieldDiff:wHb(a,wl(b,oK,9,Pm)),userCollectionDiff:IHb(a,wl(b,Tm,10,Pm))};a&&(c.$jspbMessageInstance=b);return c}};
Ym.messageId="b.EventDiff";
var qK=function(a){Z.call(this,a,-1,KHb)};U(qK,Z);qK.prototype.getMentionedUser=function(){return m(this,Rl,1)};qK.prototype.getState=function(){return X(this,2,0)};var KHb=[3];qK.prototype.toObject=function(){return LHb(void 0,this)};var LHb=function(a,b){if(null!=b){var c={mentionedUser:uJ(a,b.getMentionedUser()),state:n(p(b,2)),displayEmailList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var rK=function(a){Z.call(this,a,-1,MHb)};U(rK,Z);g=rK.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentId=function(){return dj(this,2)};g.getComment=function(){return V(this,3)};g.setComment=function(a){return l(this,3,a)};g.getMentionsList=function(){return rb(this,qK,16)};g.getCommentContentVerdict=function(){return m(this,Yl,14)};g.setCommentContentVerdict=function(a){Ab(this,14,a)};
g.hasCommentContentVerdict=function(){return cj(this,14)};g.getLastModified=function(){return dj(this,5)};g.getVersion=function(){return dj(this,6)};g.setVersion=function(a){return l(this,6,a)};g.getEntityStatus=function(){return m(this,nK,9)};g.getFormattingMode=function(){return X(this,10,0)};g.setFormattingMode=function(a){return l(this,10,a)};g.getFormattedComment=function(){return m(this,jn,13)};g.getPiiRetentionState=function(){return m(this,gm,11)};
g.hasPiiRetentionState=function(){return cj(this,11)};g.getPiiRetention=function(){return X(this,12,0)};g.setPiiRetention=function(a){return l(this,12,a)};g.getEtag=function(){return V(this,17)};g.setEtag=function(a){l(this,17,a)};g.hasEtag=function(){return cj(this,17)};var MHb=[16];rK.prototype.toObject=function(){return NHb(void 0,this)};
var NHb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),commentId:n(p(b,2)),comment:n(p(b,3)),mentionsList:Bb(b.getMentionsList(),LHb,a),commentContentVerdict:fFb(a,b.getCommentContentVerdict()),lastEditorUser:uJ(a,m(b,Rl,8)),lastModified:n(p(b,5)),version:n(p(b,6)),unlinkifiedComment:n(p(b,7)),entityStatus:uHb(a,b.getEntityStatus()),formattingMode:n(p(b,10)),formattedComment:XGb(a,b.getFormattedComment()),piiRetentionState:sJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,12)),redacted:n(Ro(b,
15)),etag:n(p(b,17))};a&&(c.$jspbMessageInstance=b);return c}};rK.messageId="b.IssueComment";
var Zm=function(a){Z.call(this,a)};U(Zm,Z);Zm.prototype.getTag=function(){return V(this,1)};Zm.prototype.toObject=function(){return OHb(void 0,this)};var OHb=function(a,b){if(null!=b){var c={tag:n(p(b,1)),text:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var bn=function(a){Z.call(this,a,-1,PHb)};U(bn,Z);g=bn.prototype;g.getComment=function(){return m(this,rK,6)};g.setComment=function(a){return Ab(this,6,a)};g.getAttachmentsList=function(){return rb(this,an,10)};g.setAttachmentsList=function(a){zb(this,10,a)};g.getVersion=function(){return dj(this,7)};g.setVersion=function(a){return l(this,7,a)};var PHb=[1,2,3,10,9];bn.prototype.toObject=function(){return QHb(void 0,this)};
var QHb=function(a,b){if(null!=b){var c={addedAttachmentIdsList:n(jb(b,1)),preDiffsList:Bb(rb(b,Ym,2),JHb,a),postDiffsList:Bb(rb(b,Ym,3),JHb,a),modifiedDate:Pu(a,m(b,rj,4)),userPerformingAction:uJ(a,m(b,Rl,5)),isHumanAuthor:n(Ro(b,11)),isCollaboratorAuthor:n(Ro(b,12)),comment:NHb(a,b.getComment()),attachmentsList:Bb(b.getAttachmentsList(),vHb,a),version:n(p(b,7)),isMajorEvent:n(Ro(b,8)),taggedSummaryList:Bb(rb(b,Zm,9),OHb,a)};a&&(c.$jspbMessageInstance=b);return c}};bn.messageId="b.IssueEvent";
var nn=function(a){Z.call(this,a,-1,RHb)};U(nn,Z);nn.prototype.getIssue=function(){return m(this,dm,1)};nn.prototype.setIssue=function(a){Ab(this,1,a)};nn.prototype.getCustomFieldsList=function(){return rb(this,ll,3)};var RHb=[2,3];nn.prototype.toObject=function(){return SHb(void 0,this)};
var SHb=function(a,b){if(null!=b){var c={issue:xJ(a,b.getIssue()),eventsList:Bb(rb(b,bn,2),QHb,a),firstEvent:QHb(a,m(b,bn,5)),customFieldsList:Bb(b.getCustomFieldsList(),qJ,a),attachmentMapMap:Db(Yi(b,4,an),a,vHb)};a&&(c.$jspbMessageInstance=b);return c}};nn.messageId="b.IssueFetchResponse";
var sK=function(a){Z.call(this,a,-1,THb)};U(sK,Z);sK.prototype.getIssuesList=function(){return rb(this,dm,1)};sK.prototype.getNumTotalResults=function(){return dj(this,2)};sK.prototype.getNextPageToken=function(){return V(this,5)};var THb=[1];sK.prototype.toObject=function(){var a=null!=this?{issuesList:Bb(this.getIssuesList(),xJ),numTotalResults:n(p(this,2)),componentsMap:Db(Yi(this,3,pm),void 0,AJ),positionsMap:Db(Yi(this,4)),nextPageToken:n(p(this,5))}:void 0;return a};sK.messageId="b.IssueSearchResponse";
var uK=function(a){Z.call(this,a)};U(uK,Z);g=uK.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getStatus=function(){return X(this,2,0)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return cj(this,2)};g.getTitle=function(){return V(this,3)};g.setTitle=function(a){return l(this,3,a)};g.getVersion=function(){return dj(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getIsArchived=function(){return W(this,5)};
g.setIsArchived=function(a){l(this,5,a)};g.toObject=function(){return UHb(void 0,this)};var UHb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),status:n(p(b,2)),title:n(p(b,3)),version:n(p(b,4)),isArchived:n(Ro(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var vK=function(a){Z.call(this,a,-1,VHb)};U(vK,Z);vK.prototype.getIssueDigestsList=function(){return rb(this,uK,1)};vK.prototype.getNumTotalResults=function(){return dj(this,2)};var VHb=[1];vK.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Bb(this.getIssueDigestsList(),UHb),numTotalResults:n(p(this,2))}:void 0;return a};vK.messageId="b.RelatedIssuesResponse";
var wK=function(){},yK=function(a){this.apiResourceFactory=a;this.issueResource=UFb(WFb(IJ(KJ(this.apiResourceFactory,"action/issues/:issueId"),{transformResponse:KFb})),{transformResponse:KFb}).build();this.issueExternalMoveResource=xK(this,"action/issues/:issueId/external_move");this.moveIssueResource=xK(this,"action/issues/:issueId/move");this.unCcUserResource=xK(this,"action/issues/:issueId/unccuser");this.relateIssueResource=xK(this,"action/issues/:issueId/relate");this.updateIssueHotlistsResource=
xK(this,"action/issues/:issueId/hotlists");this.updateIssueRetentionResource=xK(this,"action/issues/:issueId/update_retention");this.issueListResource=this.apiResourceFactory.only("action/issues/list","get",{method:"POST",transformResponse:LFb});this.issueBulkEditResource=LJ(this.apiResourceFactory,"action/issues/bulk_edit",{transformResponse:MFb});this.relatedIssuesResource=IJ(KJ(this.apiResourceFactory,"action/related/:resourceType/:resourceId")).build()};U(yK,wK);
var xK=function(a,b){return LJ(a.apiResourceFactory,b,{transformResponse:KFb})};g=yK.prototype;g.createIssue=function(a){return this.issueResource.create({},a)};g.getIssue=function(a,b){a={issueId:a};if(void 0===b?0:b)a.omitLegacyComment=1;return this.issueResource.get(a)};g.updateIssue=function(a,b){return this.issueResource.update({issueId:a},b)};g.moveIssueExternal=function(a,b){return this.issueExternalMoveResource.save({issueId:a},b)};
g.moveIssue=function(a,b){return this.moveIssueResource.save({issueId:a},b)};g.unCcUser=function(a){return this.unCcUserResource.save({issueId:a},{issueId:a})};g.relateIssue=function(a,b){return this.relateIssueResource.save({issueId:a},b)};g.updateIssueHotlists=function(a,b){return this.updateIssueHotlistsResource.save({issueId:a},b)};g.updateIssueRetention=function(a,b){return this.updateIssueRetentionResource.save({issueId:a},b)};
g.listIssues=function(a,b){b=void 0===b?{}:b;return this.issueListResource.get({},Object.assign({},b,{q:a}))};g.issueBulkEdit=function(a){return this.issueBulkEditResource.save({},a)};g.getRelatedIssues=function(a){return this.relatedIssuesResource.get(Object.assign({},a))};yK.\u0275fac=function(a){return new (a||yK)(t(JJ))};yK.\u0275prov=ec({token:yK,factory:yK.\u0275fac,providedIn:"root"});var zK=function(a){this.executor=a};g=zK.prototype;
g.createIssue=function(a){var b=new tFb;b.setSnapshot(Zqa(a.snapshot));a.attachments&&b.setAttachmentsList(a.attachments);a.templateId&&b.setTemplateId(String(a.templateId));a.contentJudgement&&b.setContentJudgement(wqa(a.contentJudgement));return this.executor.post({url:"action/issues",body:b,responseConstructor:kK}).pipe(C(sra))};g.getIssue=function(a,b){var c={};(void 0===b?0:b)&&(c.omitLegacyComment="1");return this.executor.get({url:"action/issues/"+a,options:{params:c},responseConstructor:nn}).pipe(C(function(d){return cn(d)}))};
g.updateIssue=function(a,b){b=jra(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:nn}).pipe(C(function(c){return cn(c)}))};g.moveIssueExternal=function(a,b){b=era(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:nn}).pipe(C(function(c){return cn(c)}))};g.moveIssue=function(a,b){b=cra(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:nn}).pipe(C(function(c){return cn(c)}))};
g.unCcUser=function(a){var b=ara(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:nn}).pipe(C(function(c){return cn(c)}))};g.relateIssue=function(a,b){b=pra(b);return this.executor.post({url:"action/issues/"+a+"/relate",body:b,responseConstructor:nn}).pipe(C(function(c){return cn(c)}))};g.updateIssueHotlists=function(a,b){b=mra(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:nn}).pipe(C(function(c){return cn(c)}))};
g.updateIssueRetention=function(a,b){b=rra(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:nn}).pipe(C(function(c){return cn(c)}))};g.listIssues=function(a,b){b=void 0===b?{}:b;var c=new yJ;l(c,1,a);b.count&&c.setCount(b.count);b.s&&l(c,3,b.s);b.p&&l(c,4,b.p);return this.executor.post({url:"action/issues/list",body:c,responseConstructor:sK}).pipe(C(Ssa))};
g.issueBulkEdit=function(a){var b=new PGb;if(void 0!==a.actions)b.setIssueIdsList(a.issueIds.map(String)),b.setActionsList(a.actions.map(ira));else{var c=a.bulkEditOps.map(Hsa);zb(b,4,c);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride)}return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:$Gb}).pipe(C(Jsa))};
g.getRelatedIssues=function(a){var b={};a.q&&(b.q=a.q);a.s&&(b.s=a.s);a.count&&(b.count=String(a.count));a.p&&(b.p=String(a.p));var c="action/related";a.resourceType&&(c+="/"+a.resourceType,a.resourceId&&(c+="/"+a.resourceId));return this.executor.get({url:c,options:{params:b},responseConstructor:vK}).pipe(C(nra))};zK.\u0275fac=function(a){return new (a||zK)(t(pI))};zK.\u0275prov=ec({token:zK,factory:zK.\u0275fac,providedIn:"root"});var AK=function(a){this.observableApi=a};U(AK,wK);g=AK.prototype;
g.createIssue=function(a){return(0,T.firstValueFrom)(this.observableApi.createIssue(a))};g.getIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getIssue(a,void 0===b?!1:b))};g.updateIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return(0,T.firstValueFrom)(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return(0,T.firstValueFrom)(this.observableApi.unCcUser(a))};
g.relateIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateIssueHotlists(a,b))};g.updateIssueRetention=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateIssueRetention(a,b))};g.listIssues=function(a,b){b=void 0===b?{}:b;return(0,T.firstValueFrom)(this.observableApi.listIssues(a,b))};g.issueBulkEdit=function(a){return(0,T.firstValueFrom)(this.observableApi.issueBulkEdit(a))};
g.getRelatedIssues=function(a){return(0,T.firstValueFrom)(this.observableApi.getRelatedIssues(a))};AK.\u0275fac=function(a){return new (a||AK)(t(zK))};AK.\u0275prov=ec({token:AK,factory:AK.\u0275fac,providedIn:"root"});
var ln=function(a){Z.call(this,a)};U(ln,Z);ln.prototype.getResource=function(){return V(this,1)};ln.prototype.getRelation=function(){return X(this,2,0)};ln.prototype.setRelation=function(a){l(this,2,a)};ln.prototype.toObject=function(){return WHb(void 0,this)};var WHb=function(a,b){if(null!=b){var c={resource:n(p(b,1)),relation:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};ln.messageId="b.ResourceRelation";
var BK=function(a){Z.call(this,a,-1,XHb)};U(BK,Z);var XHb=[1];BK.prototype.toObject=function(){var a=null!=this?{grantedList:Bb(rb(this,ln,1),WHb)}:void 0;return a};BK.messageId="b.UserAccessBatchResponse";
var CK=function(a,b){var c=this;this.userAccess=a;this.accesses={};this.resourceNamePattern=RegExp("^((components|issues|hotlists|savedSearches|bookmarkGroups|templates|slos|teams)\\/\\d+|components\\/\\d+\\/issueDefaults|teams\\/\\d+\\/slo|issues\\/\\d+\\/(attachments|comments)\\/\\d+)$");this.accessGetter=b.adapt(function(d){return YHb(c,d)})},YHb=function(a,b){return ZHb(a,b).then(function(c){return Wsa(b,c)})},DK=function(a,b,c){return a.resourceNamePattern.test(c)?$Hb(a,b,c):Promise.reject("invalid resource name: "+
c)},ZHb=function(a,b){var c=[],d=[];b=r(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return a.userAccess.bulkGetUserAccess(c,d)},$Hb=function(a,b,c){var d=b+"/"+c;a.accesses[d]||(a.accesses[d]=a.accessGetter.get({relation:b,resourceName:c}).then(function(e){return null==e?!1:e}),a.accesses[d].then(function(){delete a.accesses[d]}));return a.accesses[d]};CK.\u0275fac=function(a){return new (a||CK)(t(EK),t(oI))};
CK.\u0275prov=ec({token:CK,factory:CK.\u0275fac,providedIn:"root"});var FK=function(a){this.executor=a};FK.prototype.bulkGetUserAccess=function(a,b){return this.executor.get({url:"action/user_access",options:{params:{relations:a.join(","),resourceNames:b.join(",")}},responseConstructor:BK}).pipe(C(Vsa))};FK.\u0275fac=function(a){return new (a||FK)(t(pI))};FK.\u0275prov=ec({token:FK,factory:FK.\u0275fac,providedIn:"root"});var EK=function(a){this.observableApi=a};
EK.prototype.bulkGetUserAccess=function(a,b){return(0,T.firstValueFrom)(this.observableApi.bulkGetUserAccess(a,b))};EK.\u0275fac=function(a){return new (a||EK)(t(FK))};EK.\u0275prov=ec({token:EK,factory:EK.\u0275fac,providedIn:"root"});
var aIb=new jd("MatSnackBarData"),mn=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};
var bIb=Dh("state",[Gh("void, hidden",Fh({transform:"scale(0.8)",opacity:0})),Gh("visible",Fh({transform:"scale(1)",opacity:1})),Hh("* => visible",Eh("150ms cubic-bezier(0, 0, 0.2, 1)")),Hh("* => void, * => hidden",Eh("75ms cubic-bezier(0.4, 0.0, 1, 1)",Fh({opacity:0})))]);
var GK=function(a,b,c,d,e){this._isDisposed=!1;this._ngZone=a;this._elementRef=b;this._changeDetectorRef=c;this._platform=d;this.snackBarConfig=e;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new T.Subject;this._onExit=new T.Subject;this._onEnter=new T.Subject;this._animationState="void";this._live="assertive"!==e.politeness||e.announcementMessage?"off"===e.politeness?"off":"polite":"assertive";this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&
(this._role="alert"))};U(GK,NA);GK.prototype.attachComponentPortal=function(a){this._applySnackBarClasses();return this._portalOutlet.attachComponentPortal(a)};GK.prototype.attachTemplatePortal=function(a){this._applySnackBarClasses();return this._portalOutlet.attachTemplatePortal(a)};var cIb=function(a,b){var c=b.fromState;b=b.toState;("void"===b&&"void"!==c||"hidden"===b)&&a._completeExit();if("visible"===b){var d=a._onEnter;a._ngZone.run(function(){d.next();d.complete()})}};g=GK.prototype;
g.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};g.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)})};g.ngOnDestroy=function(){this._destroyed=!0;this._completeExit()};
g._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(Me()).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};
g._applySnackBarClasses=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center");"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")};g._assertNotAttached=function(){};
g._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var b=a._elementRef.nativeElement.querySelector("[aria-hidden]"),c=a._elementRef.nativeElement.querySelector("[aria-live]");if(b&&c){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&b.contains(document.activeElement)&&(d=document.activeElement);b.removeAttribute("aria-hidden");c.appendChild(b);var e;null==(e=d)||
e.focus();a._onAnnounce.next();a._onAnnounce.complete()}},150)})};GK.\u0275fac=function(a){return new (a||GK)(F(ef),F(nd),F(lx),F(yy),F(mn))};
GK.\u0275cmp=v({type:GK,selectors:[["snack-bar-container"]],viewQuery:function(a,b){a&1&&Zf(PA,7);if(a&2){var c;Yf(c=ag())&&(b._portalOutlet=c.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,b){a&1&&wha("@state.done",function(c){return cIb(b,c)});a&2&&Bf("@state",b._animationState)},features:[gf],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(G(0,"div",0),O(1,Xsa,0,0,"ng-template",1),H(),J(2,"div"));a&2&&(B(2),
nf("aria-live",b._live)("role",b._role))},dependencies:[PA],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[bIb]}});
var dIb=Math.pow(2,31)-1,HK=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new T.Subject;this._afterOpened=new T.Subject;this._onAction=new T.Subject;this._dismissedByAction=!1;this.containerInstance=a;this.onAction().subscribe(function(){return c.dismiss()});a._onExit.subscribe(function(){return c._finishDismiss()})};HK.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
var bta=function(a){a._onAction.closed||(a._dismissedByAction=!0,a._onAction.next(),a._onAction.complete());clearTimeout(a._durationTimeoutId)};g=HK.prototype;g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,dIb))};g._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
g._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};g.afterOpened=function(){return this.containerInstance._onEnter};g.onAction=function(){return this._onAction};
var IK=function(a,b){this.snackBarRef=a;this.data=b};IK.prototype.action=function(){bta(this.snackBarRef)};ki.Object.defineProperties(IK.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});IK.\u0275fac=function(a){return new (a||IK)(F(HK),F(aIb))};
IK.\u0275cmp=v({type:IK,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,b){a&1&&(G(0,"span",0),P(1),H(),O(2,Ysa,3,1,"div",1));a&2&&(B(1),Jf(b.data.message),B(1),D("ngIf",b.hasAction))},dependencies:[sx,pB],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],
encapsulation:2,changeDetection:0});
var JK=function(){};JK.\u0275fac=function(a){return new (a||JK)};JK.\u0275mod=rc({type:JK});JK.\u0275inj=fc({imports:[[UA,QA,Mx,jG,VA],VA]});
var eIb=new jd("mat-snack-bar-default-options",{providedIn:"root",factory:Zsa}),KK=function(a,b,c,d,e,f){this._overlay=a;this._live=b;this._injector=c;this._breakpointObserver=d;this._parentSnackBar=e;this._defaultConfig=f;this._snackBarRefAtThisLevel=null};g=KK.prototype;g.open=function(a,b,c){b=void 0===b?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this._attach(this.simpleSnackBarComponent,d)};
g.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};g.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};g._attachSnackBarContainer=function(a,b){var c=cf({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:mn,useValue:b}]});a=a.attach(new LA(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new mn,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new HK(b,e);if(a instanceof Vf)f.instance=b.attachTemplatePortal(new MA(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new LA(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ye(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
g._animateSnackBar=function(a,b){var c=this;a._afterDismissed.subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});this._openedSnackBarRef?(this._openedSnackBarRef._afterDismissed.subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter();b.duration&&0<b.duration&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)})};
g._createOverlay=function(a){var b=new AA;b.direction=a.direction;var c=this._overlay.position().global(),d="rtl"===a.direction;d="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!d||"end"===a.horizontalPosition&&d;var e=!d&&"center"!==a.horizontalPosition;d?c.left("0"):e?c.right("0"):(c.left(""),c._xPosition="center");"top"===a.verticalPosition?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return cf({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:HK,useValue:b},{provide:aIb,useValue:a.data}]})};ki.Object.defineProperties(KK.prototype,{_openedSnackBarRef:{configurable:!0,enumerable:!0,get:function(){var a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}}});
KK.\u0275fac=function(a){return new (a||KK)(t(RA),t(Qz),t(Hv),t(XE),t(KK,12),t(eIb))};KK.\u0275prov=ec({token:KK,factory:KK.\u0275fac});var LK=function(a,b,c,d,e,f){KK.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=IK;this.snackBarContainerComponent=GK;this.handsetCssClass="mat-snack-bar-handset"};U(LK,KK);LK.\u0275fac=function(a){return new (a||LK)(t(RA),t(Qz),t(Hv),t(XE),t(LK,12),t(eIb))};LK.\u0275prov=ec({token:LK,factory:LK.\u0275fac,providedIn:JK});
var MK=function(a){this.snackBar=a};MK.prototype.open=function(a){var b=a.message,c=a.duration,d=a.snackbarType;a={dismissLabel:a.dismissLabel,actionLabel:a.actionLabel,snackbarType:d};"string"===typeof b?a.message=b:a.htmlMessage=Zg(qh(b).toString());switch(d){case "ERROR":b="error";break;default:b=void 0}b={data:a,panelClass:b};c&&(b.duration=c);return this.snackBar._attach(NK,b)};MK.\u0275fac=function(a){return new (a||MK)(t(LK))};MK.\u0275prov=ec({token:MK,factory:MK.\u0275fac,providedIn:"root"});
var NK=function(a,b){this.data=a;this.snackBarRef=b};NK.\u0275fac=function(a){return new (a||NK)(F(aIb),F(HK))};
NK.\u0275cmp=v({type:NK,selectors:[["ng-component"]],decls:7,vars:5,consts:[[1,"snackbar-content"],["class","message",4,"ngIf"],["class","message",3,"innerHtml",4,"ngIf"],[1,"actions"],["mat-button","",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Dismiss",3,"click",4,"ngIf"],[1,"message"],[1,"message",3,"innerHtml"],["mat-button","",3,"click"],["mat-icon-button","","aria-label","Dismiss",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,$sa,2,1,"span",1),O(2,
ata,1,1,"span",2),G(3,"div",3),O(4,cta,2,1,"button",4),O(5,dta,2,1,"button",4),O(6,eta,2,0,"button",5),H()());a&2&&(B(1),D("ngIf",!b.data.htmlMessage),B(1),D("ngIf",b.data.htmlMessage),B(2),D("ngIf",b.data.actionLabel),B(1),D("ngIf",b.data.dismissLabel),B(1),D("ngIf",!b.data.dismissLabel))},dependencies:[sx,pB,LE],styles:[".snackbar-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;word-break:break-word}button[_ngcontent-%COMP%]:not(.mat-icon-button){height:24px;line-height:24px;padding:0 10px}.mat-icon-button[_ngcontent-%COMP%]{line-height:24px}.actions[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;margin-left:5px;align-items:center}\n/*# sourceMappingURL=snackbar_content.css.map */"]});
var OK=function(a){this.snackbar=a};OK.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var PK=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},fIb=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},QK=function(a,b,c){a.open({message:b,duration:void 0===c?0:c,snackbarType:"ERROR"})};OK.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};OK.\u0275fac=function(a){return new (a||OK)(t(MK))};
OK.\u0275prov=ec({token:OK,factory:OK.\u0275fac,providedIn:"root"});
var RK=function(){};g=RK.prototype;g.debug=function(){Pk.apply(null,u(oc.apply(0,arguments)))};g.error=function(){Xpa.apply(null,u(oc.apply(0,arguments)))};g.info=function(){Vpa.apply(null,u(oc.apply(0,arguments)))};g.log=function(){Wpa.apply(null,u(oc.apply(0,arguments)))};g.warn=function(){Qk.apply(null,u(oc.apply(0,arguments)))};RK.\u0275fac=function(a){return new (a||RK)};RK.\u0275prov=ec({token:RK,factory:RK.\u0275fac,providedIn:"root"});
var SK=function(a,b,c,d){this.butterBar=a;this.activeSession=b;this.$log=c;this.timeout=d};
SK.prototype.errorHandler=function(a,b){var c=this,d=!1;-1===b.status&&(a=Mra(b)&&b.config&&b.config.timeout&&dna(b.config.timeout)?b.config.timeout:void 0,a&&a.then(function(){d=!0}));this.timeout.schedule(function(){if(!d){var e=403===b.status?"Access denied for: "+c.activeSession.getUserEmail():429===b.status?"Request throttled for: "+c.activeSession.getUserEmail()+". Please wait a few seconds and try again.":ym(b)?ym(b):404===b.status?"Invalid ID.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";
c.$log.error(e,b);QK(c.butterBar,e)}})};var TK=function(a,b){a.$log.warn(b);QK(a.butterBar,b)},UK=function(a,b){if(xm(b))a.errorHandler(null,b);else throw b;};SK.\u0275fac=function(a){return new (a||SK)(t(OK),t(pH),t(RK),t(nI))};SK.\u0275prov=ec({token:SK,factory:SK.\u0275fac,providedIn:"root"});
var VK=function(a,b,c,d){this.issueApi=a;this.templatesApi=b;this.errorHandler=c;this.userAccess=d},hIb=function(a,b){b=a.issueApi.getIssue(b).then(function(c){var d=pa(c.issue.snapshot);c=c.events[0].unlinkifiedComment;d.comment=c?c.trim():"";d.status="NEW";delete d.createdTimeMicros;delete d.version;delete d.changelist;delete d.significanceOverride;delete d.duplicateIssueId;delete d.duplicateOfIssueId;return{snapshot:d,customFieldMap:{}}}).then(function(c){return gIb(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,
c)});return b},gIb=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return DK(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,h){return e[h]});return b})};VK.\u0275fac=function(a){return new (a||VK)(t(wK),t(eK),t(SK),t(CK))};VK.\u0275prov=ec({token:VK,factory:VK.\u0275fac,providedIn:"root"});
var WK=function(){this.bookmarkGroupModified=new T.Subject;this.commentSubmitted=new T.Subject;this.commentRendered=new T.Subject;this.componentModified=new T.Subject;this.contactChipsRevertChanges=new T.Subject;this.customFieldsModified=new T.Subject;this.dashboardPanels={moveDown:new T.Subject,moveUp:new T.Subject,moveToTop:new T.Subject,moveToBottom:new T.Subject,remove:new T.Subject};this.favoritesModified=new T.Subject;this.hotlistCreated=new T.Subject;this.onClickAppMenuIcon=new T.Subject;this.openEditField=
new T.Subject;this.sidebarWidthChanged=new T.Subject;this.hotlistChanged=new T.Subject;this.savedSearchModified=new T.Subject;this.sidebarUpdated=new T.Subject;this.topBarEvents={browseComponents:new T.Subject,manageHotlists:new T.Subject,manageSlos:new T.Subject,setDensity:new T.Subject,openSettings:new T.Subject};this.templateModified=new T.Subject;this.issueViewed=new T.Subject;this.issueEdited=new T.Subject;this.focusCommentBox=new T.Subject;this.scrollToCommentBox=new T.Subject};
WK.\u0275fac=function(a){return new (a||WK)};WK.\u0275prov=ec({token:WK,factory:WK.\u0275fac,providedIn:"root"});
var XK=function(a,b){ZJ.call(this,{freshUntil:3E5,ancientAfter:6048E5});var c=this;this.template=a;this.appEvents=b;this.recordType="componentTemplates";this.idKey="componentId";this.defaultTemplate$=function(d){return c.watch(d).pipe(De($k),C(function(e){return e.templates}),C(function(e){var f;return null!=(f=e.find(function(h){return h.default}))?f:e[0]}))};this.appEvents.templateModified.pipe(De(function(d){return!!d&&"0"!==d})).subscribe(function(d){et(c,d)})};U(XK,ZJ);
XK.prototype.fetchOne=function(a){return(0,T.from)(this.template.templatesApi.query(Number(a)).then(function(b){return{componentId:a,templates:b}}))};XK.\u0275fac=function(a){return new (a||XK)(t(VK),t(WK))};XK.\u0275prov=ec({token:XK,factory:XK.\u0275fac,providedIn:"root"});
var fta=function(a){Z.call(this,a,-1,iIb)};U(fta,Z);var iIb=[1];fta.prototype.toObject=function(){var a=null!=this?{issueDetailsList:Bb(rb(this,nn,1),SHb)}:void 0;return a};
var jIb=!1;
var YK=function(){};YK.prototype.adapt=function(a){var b,c=new kIb(a.call.bind(a),a.split.bind(a),null!=(b=a.bufferTimeMs)?b:500,a.maxBatchSize||100);return c.get.bind(c)};YK.\u0275fac=function(a){return new (a||YK)};YK.\u0275prov=ec({token:YK,factory:YK.\u0275fac,providedIn:"root"});
var kIb=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new T.Subject;this.inputs$=this.inputSubject.pipe(aga(this.inputSubject.pipe(He(this.bufferTimeMs,T.asapScheduler))));this.removeDuplicates=C(function(f){return[].concat(u(new Set(f)))});this.limitInputSize=C(function(f){for(var h=r(f.slice(e.maxBatchSize)),k=h.next();!k.done;k=h.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=
(0,T.pipe)(we(function(f){try{return e.batchCall(f).pipe(Me(),C(function(h){return{inputs:f,batchResponse:h,error:void 0}}),Ie(function(h){return(0,T.of)({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return(0,T.of)({inputs:f,batchResponse:void 0,error:h})}}),Te());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
kIb.prototype.get=function(a){var b=this;return new T.Observable(function(c){c=b.batchResults$.pipe(De(function(d){return d.inputs.has(a)}),Me(),C(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw new lIb(d.error,d.inputs);})).subscribe(c);b.inputSubject.next(a);return c})};var lIb=function(a,b){var c=Error.call(this,"Error in batch call");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.err=a;this.inputs=b;Object.setPrototypeOf(this,lIb.prototype)};
U(lIb,Error);
var nIb=function(a){Z.call(this,a,-1,mIb)};U(nIb,Z);g=nIb.prototype;g.getComponentId=function(){return dj(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return cj(this,1)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return cj(this,2)};g.getPriority=function(){return X(this,3,0)};g.setPriority=function(a){return l(this,3,a)};g.getSeverity=function(){return X(this,4,0)};
g.setSeverity=function(a){return l(this,4,a)};g.getStatus=function(){return X(this,5,0)};g.setStatus=function(a){return l(this,5,a)};g.hasStatus=function(){return cj(this,5)};g.getReporter=function(){return m(this,Rl,6)};g.setReporter=function(a){Ab(this,6,a)};g.getAssignee=function(){return m(this,Rl,7)};g.setAssignee=function(a){Ab(this,7,a)};g.clearAssignee=function(){return Ab(this,7)};g.getVerifier=function(){return m(this,Rl,8)};g.setVerifier=function(a){Ab(this,8,a)};
g.clearVerifier=function(){return Ab(this,8)};g.getCcsList=function(){return rb(this,Rl,9)};g.addHotlistIds=function(a,b){return ob(this,10,a,b)};g.setInProd=function(a){l(this,15,a)};g.getSloSnoozeUntil=function(){return m(this,rj,16)};g.setSloSnoozeUntil=function(a){Ab(this,16,a)};g.getRetention=function(){return X(this,17,0)};g.setRetention=function(a){l(this,17,a)};g.getEntityStatus=function(){return m(this,nK,18)};g.getIsArchived=function(){return W(this,19)};
g.setIsArchived=function(a){l(this,19,a)};var mIb=[9,10,11,12,14];nIb.prototype.toObject=function(){return oIb(this)};
var oIb=function(a){if(null!=a)return{componentId:n(p(a,1)),type:n(p(a,2)),priority:n(p(a,3)),severity:n(p(a,4)),status:n(p(a,5)),reporter:uJ(void 0,a.getReporter()),assignee:uJ(void 0,a.getAssignee()),verifier:uJ(void 0,a.getVerifier()),ccsList:Bb(a.getCcsList(),uJ),hotlistIdsList:n(jb(a,10)),blockedByIssueIdsList:n(jb(a,11)),blockingIssueIdsList:n(jb(a,12)),canonicalIssueId:n(p(a,13)),duplicateIssueIdsList:n(jb(a,14)),inProd:n(Ro(a,15)),sloSnoozeUntil:Pu(void 0,a.getSloSnoozeUntil()),retention:n(p(a,
17)),entityStatus:uHb(void 0,a.getEntityStatus()),isArchived:n(Ro(a,19))}};
var pIb=function(a){Z.call(this,a)};U(pIb,Z);g=pIb.prototype;g.getIssueId=function(){return dj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getIssueState=function(){return m(this,nIb,2)};g.getVersion=function(){return dj(this,3)};g.setVersion=function(a){return l(this,3,a)};g.getCreatedTime=function(){return m(this,rj,4)};g.getModifiedTime=function(){return m(this,rj,5)};g.getResolvedTime=function(){return m(this,rj,6)};g.getVerifiedTime=function(){return m(this,rj,7)};
g.getSloId=function(){return dj(this,9)};g.setSloId=function(a){return l(this,9,a)};g.getSloStatus=function(){return m(this,im,10)};g.setSloStatus=function(a){Ab(this,10,a)};g.getRetentionState=function(){return m(this,gm,11)};g.setRetentionState=function(a){Ab(this,11,a)};g.getAccessLimit=function(){return m(this,Nk,12)};g.setAccessLimit=function(a){return Ab(this,12,a)};g.getTeamId=function(){return dj(this,13)};g.setTeamId=function(a){return l(this,13,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),issueState:oIb(this.getIssueState()),version:n(p(this,3)),createdTime:Pu(void 0,this.getCreatedTime()),modifiedTime:Pu(void 0,this.getModifiedTime()),resolvedTime:Pu(void 0,this.getResolvedTime()),verifiedTime:Pu(void 0,this.getVerifiedTime()),sloId:n(p(this,9)),sloStatus:kFb(void 0,this.getSloStatus()),retentionState:sJ(void 0,this.getRetentionState()),accessLimit:OEb(void 0,this.getAccessLimit()),teamId:n(p(this,13))}:void 0;return a};
pIb.messageId="b.IssueMetadata";
var ZK=function(a){Z.call(this,a,-1,qIb)};U(ZK,Z);ZK.prototype.setIssueIdsList=function(a){hl(this,1,a)};ZK.prototype.addIssueIds=function(a){ob(this,1,a)};var qIb=[1];ZK.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(jb(this,1)),read:n(Ro(this,2))}:void 0;return a};
var rIb=function(a){Z.call(this,a)};U(rIb,Z);rIb.prototype.toObject=function(){var a=null!=this?{readTimestamp:n(p(this,1))}:void 0;return a};rIb.messageId="b.UpdateIssueReadTimestampResponse";
var $K=function(a){this.executor=a};$K.prototype.delete=function(a,b){var c=new vJ;c.setIssueId(String(a));c.setReason(Yqa[b]);return this.executor.post({url:"action/issues/"+a+"/delete",body:c,responseConstructor:null})};$K.prototype.undelete=function(a){var b=new zJ;b.setIssueId(String(a));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};$K.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:pIb}).then(Nsa)};
var sIb=function(a,b,c){c=void 0===c?!0:c;var d=new ZK;d.setIssueIdsList(b.map(Number));l(d,2,c);return a.executor.post({url:"action/issues/read_timestamp",body:d,responseConstructor:rIb}).then(Msa)};$K.\u0275fac=function(a){return new (a||$K)(t(qI))};$K.\u0275prov=ec({token:$K,factory:$K.\u0275fac,providedIn:"root"});
var aL=function(){};aL.\u0275fac=function(a){return new (a||aL)};aL.\u0275prov=ec({token:aL,factory:aL.\u0275fac,providedIn:"root"});
var tIb=function(a){this.allowExecution=a;this.queue=[]};tIb.prototype.addTask=function(a){this.queue.push(a);uIb(this)};var uIb=function(a){if(0!==a.queue.length)if(a.allowExecution()){var b=r(a.queue),c=b.next().value;a.queue=Ce(b);c();uIb(a)}else setTimeout(function(){uIb(a)},0)};
var bL=function(a,b,c,d){var e=this;this.location=a;this.platformLocation=b;this.activatedRoute=c;this.router=d;this.scheduler=new tIb(function(){return!e.router.currentNavigation})};U(bL,aL);g=bL.prototype;g.absUrl=function(){return this.platformLocation.href};g.hash=function(a,b){return"undefined"===typeof a?this.getHash():this.setHash(null!=a?a:"",b)};g.getHash=function(){var a;return null!=(a=this.activatedRoute.snapshot.fragment)?a:""};
g.setHash=function(a,b){var c=this;a=void 0===a?"":a;b=void 0===b?!1:b;this.addTask(function(){c.router.navigate([],{fragment:a,replaceUrl:b})});return this};g.path=function(a,b){return"undefined"===typeof a?this.getPath():this.setPath(a,b)};var vIb=function(a,b){a.path(b,!0)};g=bL.prototype;g.getPath=function(){var a=r(this.location.path().split("?")).next().value;return r(a.split("#")).next().value};
g.setPath=function(a,b){var c=this;a=void 0===a?"":a;b=void 0===b?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};g.search=function(a,b,c){if("undefined"===typeof a)return this.getSearch();this.setSearch(a,b,c);return this};g.getSearch=function(){return ota(this.activatedRoute.snapshot.queryParamMap)};
g.setSearch=function(a,b,c){var d=this;c=void 0===c?!1:c;this.addTask(function(){var e={};d.router.navigate([],{relativeTo:d.activatedRoute,queryParams:(e[a]=b,e),queryParamsHandling:"merge",replaceUrl:c})})};g.url=function(a,b){return"undefined"===typeof a?this.getUrl():this.setUrl(a,b)};g.replaceUrl=function(a){return this.url(a,!0)};g.setUrl=function(a,b){var c=this;b=void 0===b?!1:b;return new Promise(function(d,e){c.addTask(function(){bt(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};
g.getUrl=function(){return this.location.path(!0)};g.addTask=function(a){this.scheduler.addTask(a)};bL.\u0275fac=function(a){return new (a||bL)(t(Tx),t(Nx),t(fk),t(Hk))};bL.\u0275prov=ec({token:bL,factory:bL.\u0275fac,providedIn:"root"});
var cL=new jd("BuganizerLocation",{factory:function(){return t(bL)}});
var dL=function(a){this.bLocation=a};dL.prototype.createIssue=function(a){return qn("issues/new",{params:a})};dL.prototype.editIssue=function(a,b){return pn(a,b)};dL.prototype.listIssues=function(a){return rn(a)};dL.prototype.viewSavedSearch=function(a){return on("savedsearches/:savedSearchId",{id:a,params:void 0})};
var wIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;return a.bLocation.path()===b},xIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;a=a.bLocation.url();a=new bp(a);b=new bp(b);return a.getPath()===b.getPath()&&IG(a.queryData_.toString())===IG(b.queryData_.toString())};g=dL.prototype;g.viewHotlist=function(a){return on("hotlists/:hotlistId",{id:a})};g.editHotlist=function(a){return qn("hotlists/:hotlistId/edit",{id:a,tab:void 0})};g.createHotlist=function(){return"hotlists/new"};g.createBookmarkGroup=function(){return"bookmark-groups/new"};
g.viewBookmarkGroup=function(a){return on("bookmark-groups/:groupId",{id:a})};g.editBookmarkGroup=function(a){return qn("bookmark-groups/:groupId/edit",{id:a})};g.editSavedSearch=function(a){return qn("savedsearches/:savedSearchId/edit",{id:a})};g.dashboard=function(a){return qn("dashboard/:groupId",{id:a})};g.issuesCsvAction=function(a,b,c,d){b=hta(b);c=ita(c);return KD("action/issues/csv","q",a,"s",b,"c",c,"h",d)};
g.hotlistIssuesCsvAction=function(a,b,c,d){a="action/hotlists/"+a+"/issues/csv";b=hta(b);(c=ita(c))&&(c="position,"+c);return KD(a,"s",b,"c",c,"h",d)};g.toApiSortParamValue=function(a){return hta(a)};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return qn("components",{params:void 0})};g.viewComponent=function(a,b){return on("components/:componentId",{id:a,tab:b})};g.manageComponent=function(a,b){return jta(a,b)};
g.manageComponentAcl=function(a){return on("components/:componentId/manage#access",{id:a,tab:void 0})};g.createComponent=function(a){return qn("components/new",{params:a})};g.editComponent=function(a,b){return qn("components/:componentId/edit",{id:a,tab:b})};g.createSlo=function(){return qn("slos/new",{params:void 0})};g.editSlo=function(a){return un(a).path};g.listSlos=function(){return qn("slos",{params:void 0})};
g.getBaseUrl=function(){var a=this.bLocation.absUrl();a=a.slice(0,a.length-this.bLocation.url().length);"/"===a.charAt(a.length-1)&&(a=a.slice(0,a.length-1));return a};g.listHotlists=function(){return"hotlists"};dL.\u0275fac=function(a){return new (a||dL)(t(cL))};dL.\u0275prov=ec({token:dL,factory:dL.\u0275fac,providedIn:"root"});
var yIb=function(a,b){this.childIterator_=a[ba.Symbol.iterator]();this.mapFn_=b};yIb.prototype[Symbol.iterator]=function(){return this};yIb.prototype.next=function(){var a=this.childIterator_.next();return{value:a.done?void 0:this.mapFn_.call(void 0,a.value),done:a.done}};var zIb=function(a,b){return new yIb(a,b)};
var eL=function(){};eL.prototype.next=function(){return AIb};var AIb={done:!0,value:void 0};eL.prototype.__iterator__=function(){return this};
var BIb=function(a){if(a instanceof fL||a instanceof gL||a instanceof hL)return a;if("function"==typeof a.next)return new fL(function(){return a});if("function"==typeof a[Symbol.iterator])return new fL(function(){return a[Symbol.iterator]()});if("function"==typeof a.__iterator__)return new fL(function(){return a.__iterator__()});throw Error("$c");},fL=function(a){this.func_=a};fL.prototype.__iterator__=function(){return new gL(this.func_())};fL.prototype[Symbol.iterator]=function(){return new hL(this.func_())};
fL.prototype.toEs6=function(){return new hL(this.func_())};var gL=function(a){this.iter_=a};U(gL,eL);gL.prototype.next=function(){return this.iter_.next()};gL.prototype[Symbol.iterator]=function(){return new hL(this.iter_)};gL.prototype.toEs6=function(){return new hL(this.iter_)};var hL=function(a){fL.call(this,function(){return a});this.iter_=a};U(hL,fL);hL.prototype.next=function(){return this.iter_.next()};
var iL=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("ad");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};g=iL.prototype;g.getCount=function(){return this.size};g.getValues=function(){jL(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){jL(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return kL(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(kL(this.map_,c)&&this.map_[c]==a)return!0}return!1};g.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||CIb;jL(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var CIb=function(a,b){return a===b};iL.prototype.isEmpty=function(){return 0==this.size};
iL.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};iL.prototype.remove=function(a){return this.delete(a)};iL.prototype.delete=function(a){return kL(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&jL(this),!0):!1};
var jL=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];kL(a.map_,d)&&(a.keys_[c++]=d);b++}a.keys_.length=c}if(a.size!=a.keys_.length){var e={};for(c=b=0;b<a.keys_.length;)d=a.keys_[b],kL(e,d)||(a.keys_[c++]=d,e[d]=1),b++;a.keys_.length=c}};g=iL.prototype;g.get=function(a,b){return kL(this.map_,a)?this.map_[a]:b};g.set=function(a,b){kL(this.map_,a)||(this.setSizeInternal_(this.size+1),this.keys_.push(a),this.version_++);this.map_[a]=b};
g.addAll=function(a){if(a instanceof iL)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};g.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new iL(this)};g.toObject=function(){jL(this);for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.map_[c]}return a};g.keys=function(){return BIb(this.__iterator__(!0)).toEs6()};g.values=function(){return BIb(this.__iterator__(!1)).toEs6()};
g.entries=function(){var a=this;return zIb(this.keys(),function(b){return[b,a.get(b)]})};g.__iterator__=function(a){jL(this);var b=0,c=this.version_,d=this,e=new eL;e.next=function(){if(c!=d.version_)throw Error("bd");if(b>=d.keys_.length)return AIb;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var kL=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var lL=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new iL;this.head_=new DIb("");this.head_.next=this.head_.prev=this.head_},FIb=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),EIb(a,b));return b};lL.prototype.get=function(a,b){return(a=FIb(this,a))?a.value:b};var GIb=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=lL.prototype;g.set=function(a,b){var c=FIb(this,a);c?c.value=b:(c=new DIb(a,b),this.map_.set(a,c),EIb(this,c))};
g.shift=function(){return HIb(this,this.head_.next)};g.pop=function(){return HIb(this,this.head_.prev)};g.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};g.removeNode=function(a){a.remove();this.map_.remove(a.key)};g.getCount=function(){return this.map_.getCount()};g.isEmpty=function(){return this.map_.isEmpty()};g.getKeys=function(){return this.map(function(a,b){return b})};g.getValues=function(){return this.map(function(a){return a})};
g.contains=function(a){return this.some(function(b){return b==a})};g.containsKey=function(a){return this.map_.containsKey(a)};g.clear=function(){IIb(this,0)};g.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};g.map=function(a,b){for(var c=[],d=this.head_.next;d!=this.head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};g.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};
g.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
var EIb=function(a,b){a.cache_?(b.next=a.head_.next,b.prev=a.head_,a.head_.next=b,b.next.prev=b):(b.prev=a.head_.prev,b.next=a.head_,a.head_.prev=b,b.prev.next=b);null!=a.maxCount_&&IIb(a,a.maxCount_)},IIb=function(a,b){for(;a.getCount()>b;){var c=a.cache_?a.head_.prev:a.head_.next;a.removeNode(c);a.evictionCallback_&&a.evictionCallback_(c.key,c.value)}},HIb=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},DIb=function(a,b){this.key=a;this.value=b};
DIb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};
var mL=function(){this.caches=new Map};mL.prototype.create=function(a,b){if(this.caches.has(a))throw Error("cd`"+a);b=new nL(null==b?void 0:b.capacity);this.caches.set(a,b);return b};mL.prototype.get=function(a){return this.caches.get(a)};mL.\u0275fac=function(a){return new (a||mL)};mL.\u0275prov=ec({token:mL,factory:mL.\u0275fac,providedIn:"root"});var nL=function(a){this.lruCache=new lL(a,!0)};nL.prototype.get=function(a){return this.lruCache.get(a)};
nL.prototype.put=function(a,b){void 0!==b&&this.lruCache.set(a,b);return b};nL.prototype.remove=function(a){this.lruCache.remove(a)};nL.prototype.removeAll=function(){this.lruCache.clear()};
var oL=function(a){Z.call(this,a,-1,JIb)};U(oL,Z);oL.prototype.getHotlistsList=function(){return rb(this,Dm,1)};var JIb=[1];oL.prototype.toObject=function(){var a=null!=this?{hotlistsList:Bb(this.getHotlistsList(),bGb)}:void 0;return a};oL.messageId="b.ListHotlistsResponse";
var pL=function(a,b){this.hotlistApi=b;this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:250})};pL.prototype.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};pL.prototype.bulkLoad=function(a){var b=this;a=a.filter(function(d){return!b.hotlistCache.get(String(d))});if(!a.length)return Promise.resolve(void 0);var c=this.hotlistApi.bulkLoad(a);KIb(this,a,c);return c};
var KIb=function(a,b,c){c=c.then(function(f){if(f){var h={};f=r(f);for(var k=f.next();!k.done;k=f.next())k=k.value,h[k.hotlistId]=k;return h}});var d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$id$1632:d.$jscomp$loop$prop$id$1632},e=b.next())d.$jscomp$loop$prop$id$1632=e.value,a.hotlistCache.put(String(d.$jscomp$loop$prop$id$1632),c.then(function(f){return function(h){return h&&h[f.$jscomp$loop$prop$id$1632]?h[f.$jscomp$loop$prop$id$1632]:Promise.reject({data:{message:"Could not load hotlist "+
f.$jscomp$loop$prop$id$1632}})}}(d)))};g=pL.prototype;g.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};g.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};g.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};g.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};g.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};
g.getPagedHotlistContent=function(a,b,c,d){return this.hotlistApi.getPagedHotlistContent(a,b,c,d)};pL.\u0275fac=function(a){return new (a||pL)(t(mL),t(qL))};pL.\u0275prov=ec({token:pL,factory:pL.\u0275fac,providedIn:"root"});var rL=function(a,b){this.paths=a;this.executor=b};g=rL.prototype;g.get=function(a){return this.executor.get({url:"action/hotlists/"+a,responseConstructor:Dm}).pipe(C(Em))};g.bulkLoad=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:oL,options:{params:{id:a.map(String)}}}).pipe(C(asa))};
g.repositionHotlistIssue=function(a,b,c){var d=new cm;d.setIssueId(String(Number(b)));d.setPosition(c);return this.executor.put({url:"action/hotlists/"+a+"/issues",body:d,responseConstructor:null})};g.createHotlist=function(a,b){var c=new Dm;c.setName(a);b&&c.setDescription(b);return this.executor.post({url:"action/hotlists",body:c,responseConstructor:Dm}).pipe(C(Em))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:oL,options:{params:{q:a}}}).pipe(C(function(b){var c;return(null!=(c=b.getHotlistsList())?c:[]).map(Em)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:$ra(b),responseConstructor:Dm}).pipe(C(Em))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:$ra(b),options:{headers:c},responseConstructor:Dm}).pipe(C(Em))};g.getPagedHotlistContent=function(a,b,c,d){b={p:String(b),count:String(c)};(d=this.paths.toApiSortParamValue(d))&&(b.s=d);return this.executor.get({url:"action/hotlists/"+a+"/issues",options:{params:b},responseConstructor:sK}).pipe(C(Ssa))};rL.\u0275fac=function(a){return new (a||rL)(t(dL),t(pI))};
rL.\u0275prov=ec({token:rL,factory:rL.\u0275fac,providedIn:"root"});var qL=function(a){this.observableApi=a};g=qL.prototype;g.get=function(a){return(0,T.firstValueFrom)(this.observableApi.get(a))};g.bulkLoad=function(a){return(0,T.firstValueFrom)(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.repositionHotlistIssue(a,b,c))};g.createHotlist=function(a,b){return(0,T.firstValueFrom)(this.observableApi.createHotlist(a,b))};
g.queryHotlists=function(a){return(0,T.firstValueFrom)(this.observableApi.queryHotlists(a))};g.archiveHotlist=function(a,b){return(0,T.firstValueFrom)(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateMetadata(a,b))};g.getPagedHotlistContent=function(a,b,c,d){return(0,T.firstValueFrom)(this.observableApi.getPagedHotlistContent(a,b,c,d))};qL.\u0275fac=function(a){return new (a||qL)(t(rL))};
qL.\u0275prov=ec({token:qL,factory:qL.\u0275fac,providedIn:"root"});
var LIb={parent:"me"},sL=function(a,b,c){ZJ.call(this,{freshUntil:3E5});var d=this;this.observableHotlistResources=a;this.observableUserResources=b;this.appEvents=c;this.recordType="hotlist";this.idKey="hotlistId";(0,T.merge)(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified).subscribe(function(){HGb(d,LIb)})};U(sL,ZJ);sL.prototype.fetchOne=function(a){return this.observableHotlistResources.get(a)};
sL.prototype.fetchAll=function(a){if("me"===a.parent)return this.observableUserResources.getUserHotlists().pipe(C(function(b){return{results:b}}));Qk("Unsupported query for Fridge['"+this.recordType+"']",a);return(0,T.of)({results:[]})};sL.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a).pipe(C(function(b){return(null!=b?b:[]).filter($k)}))};sL.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};
var MIb=function(a){return FGb(a,LIb).pipe(C(function(b){return b.results}))};sL.\u0275fac=function(a){return new (a||sL)(t(rL),t(TJ),t(WK))};sL.\u0275prov=ec({token:sL,factory:sL.\u0275fac,providedIn:"root"});
var pta={enable_jspb:"true"},tL=function(a){this.http=a};tL.prototype.get=function(a,b){return this.http.get(a,vn(b.httpOptions||{})).pipe(C(function(c){if(b.responseCtor)return new b.responseCtor(c[0])}))};tL.prototype.post=function(a,b){return this.http.post(a,b.request?b.request.toJSON():void 0,vn(b.httpOptions)).pipe(C(function(c){if(b.responseCtor)return ho(b.responseCtor,JSON.stringify(c[0]))}))};
tL.prototype.put=function(a,b){return this.http.put(a,b.request?b.request.toJSON():void 0,vn(b.httpOptions)).pipe(C(function(c){if(b.responseCtor)return ho(b.responseCtor,JSON.stringify(c[0]))}))};tL.prototype.delete=function(a,b){b=void 0===b?{}:b;return this.http.delete(a,vn(b))};tL.\u0275fac=function(a){return new (a||tL)(t(AE))};tL.\u0275prov=ec({token:tL,factory:tL.\u0275fac,providedIn:"root"});
var uL=function(){this.refreshRequest=new T.Subject};uL.prototype.getObservable=function(){return this.refreshRequest};var NIb=function(a,b){return a.getObservable().pipe(We(void 0)).pipe(Xe(function(){return b}))};uL.\u0275fac=function(a){return new (a||uL)};uL.\u0275prov=ec({token:uL,factory:uL.\u0275fac,providedIn:"root"});
var vL=function(a){Z.call(this,a)};U(vL,Z);vL.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};vL.messageId="f.mt";
var wL=function(a){Z.call(this,a,-1,OIb)};U(wL,Z);wL.prototype.setIssueIdsList=function(a){hl(this,1,a)};wL.prototype.addIssueIds=function(a){ob(this,1,a)};var OIb=[1];wL.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(jb(this,1))}:void 0;return a};wL.messageId="b.BatchGetIssuesRequest";
var xL=function(a){Z.call(this,a,-1,PIb)};U(xL,Z);xL.prototype.getIssuesList=function(){return rb(this,dm,1)};var PIb=[1];xL.prototype.toObject=function(){var a=null!=this?{issuesList:Bb(this.getIssuesList(),xJ)}:void 0;return a};xL.messageId="b.BatchGetIssuesResponse";
var yL=function(a,b,c,d,e,f){ZJ.call(this);var h=this;this.batchApiAdapter=a;this.jspbClient=b;this.refreshMonitor=c;this.issueService=d;this.activeSession=e;this.hotlistFridge=f;this.recordType="issue";this.idForRecord=function(k){return String(k.issueId)};this.isEqual=Ei;this.issueFetchResponse$=new T.Subject;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(k){return h.call(k)},split:function(k,q){return q.get(k)}});this.refreshMonitor.getObservable().subscribe(function(){h.invalidate()})};
U(yL,ZJ);yL.prototype.fetchOne=function(a){return this.get(Number(a)).pipe(C(Wm),Ie(function(){return(0,T.of)(void 0)}))};yL.prototype.fetchSet=function(a){var b=this;return(0,T.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter($k)}))};yL.prototype.copy=function(a){return a&&Fi(a)};
var QIb=function(a,b,c){var d={id:b,star:String(c)};ona()&&(d.vote=String(c));return a.jspbClient.post("action/current_user/issue_data",{responseCtor:vL,httpOptions:{params:d}}).pipe(Ze(function(){aK(a,b,function(e){e.userData&&(e.userData.starred=c,ona()&&(e.userData.voted=c))})}))};
yL.prototype.setVoted=function(a,b){var c=this;return this.jspbClient.post("action/current_user/issue_data",{responseCtor:vL,httpOptions:{params:{id:a,vote:String(b)}}}).pipe(Ze(function(){aK(c,a,function(d){d.userData&&(d.userData.voted=b)})}))};
yL.prototype.setNotificationSubscription=function(a,b){var c=this;return me(function(d){if(1==d.nextAddress)return ne(d,(0,T.firstValueFrom)(c.jspbClient.post("action/current_user/issue_data",{responseCtor:vL,httpOptions:{params:{id:a,subscription:b}}})),2);aK(c,a,function(e){e.userData&&(e.userData.notificationSubscription=b)});oe(d)})};
var RIb=function(a,b,c){var d=new am,e=gra(new $l,"title").setValue(c);d.setIssueId(b);d.setActionsList([e]);aK(a,b,function(f){f.snapshot[0].title=c});return a.jspbClient.post("action/issues/"+b,{request:d,responseCtor:nn}).pipe(C(cn),Ze(function(f){f&&a.announce(f.issue)}))},SIb=function(a,b,c,d){var e,f,h,k,q,w,y,E,I;return me(function(N){if(1==N.nextAddress){e="action/issues/"+b+"/hotlists";f=new bm;f.setRemoveHotlistIdsList(d);f.setAddHotlistIdsList(c);lra(f,(new cm).setIssueId(b));h=r([].concat(u(c),
u(d)));for(k=h.next();!k.done;k=h.next())q=k.value,a.hotlistFridge.setIsSaving(q);Lt(N,2);return ne(N,(0,T.firstValueFrom)(a.jspbClient.post(e,{request:f,responseCtor:nn})).finally(function(){for(var L=r([].concat(u(c),u(d))),S=L.next();!S.done;S=L.next())a.hotlistFridge.clearIsSaving(S.value)}),4)}if(2!=N.nextAddress)return w=N.yieldResult,(y=cn(w))&&a.announce(y.issue),N.return(null==(E=y)?void 0:E.issue);I=Nt(N);et(a,b);throw I;})},TIb=function(a,b,c){"number"===typeof b&&(b=String(b));return zL(a,
1,3,c,[b]).then(function(){return et(a,b)})};yL.prototype.removeDuplicate=function(a,b){var c=this;"number"===typeof a&&(a=String(a));return zL(this,2,3,b,[a]).then(function(){return et(c,a)})};
var zL=function(a,b,c,d,e){if(0===e.length||null==d)return Promise.resolve(void 0);d=String(d);var f=new km;f.setActionType(b);f.setRelation(c);f.setIssueId(d);hl(f,2,e);UIb(a,f);var h=[d].concat(u(e));b=r(h);for(c=b.next();!c.done;c=b.next())a.setIsSaving(c.value);return(0,T.firstValueFrom)(a.jspbClient.post("action/issues/"+d+"/relate",{request:f,responseCtor:nn})).then(cn).then(function(k){k&&a.announce(k.issue)}).catch(function(k){et(a,d);throw k;}).finally(function(){for(var k=r(h),q=k.next();!q.done;q=
k.next())a.clearIsSaving(q.value)})},AL=function(a,b,c){c=void 0===c?!0:c;var d,e,f,h;return me(function(k){if(1==k.nextAddress)return a.activeSession.isAnonymous()?k.return():ne(k,sIb(a.issueService,b.map(Number),c),2);d=k.yieldResult;e=r(b);for(f=e.next();!f.done;f=e.next())h=f.value,aK(a,String(h),function(q){q.userData&&(q.userData.lastViewedTimeMicros=d.readTimestamp)});return k.return(d.readTimestamp?Math.round(d.readTimestamp/1E3):void 0)})},UIb=function(a,b){aK(a,b.getIssueId(),function(c){switch(b.getRelation()){case 2:if(1===
b.getActionType()){var d;c.snapshot[0].blockedByIssueId=[].concat(u(null!=(d=c.snapshot[0].blockedByIssueId)?d:[]),u(jb(b,2).map(Number)))}else if(2===b.getActionType()){var e,f;c.snapshot[0].blockedByIssueId=null!=(f=null==(e=c.snapshot[0].blockedByIssueId)?void 0:e.filter(function(h){return!jb(b,2).includes(String(h))}))?f:[]}}})};
yL.prototype.call=function(a){var b=this;if(1===a.size){var c=[].concat(u(a))[0];return this.jspbClient.get("action/issues/"+String(c),{responseCtor:nn,httpOptions:{params:{excludeEvents:"1"}}}).pipe(Ze(function(f){b.issueFetchResponse$.next(f)}),C(function(f){return new Map([[c,f.getIssue()]])}))}var d=new wL;a=r(a);for(var e=a.next();!e.done;e=a.next())d.addIssueIds(e.value);return this.jspbClient.post("action/issues/batch",{responseCtor:xL,request:d}).pipe(C(function(f){return new Map(f.getIssuesList().map(function(h){return[Number(h.getIssueId()),
h]}))}))};yL.\u0275fac=function(a){return new (a||yL)(t(YK),t(tL),t(uL),t($K),t(pH),t(sL))};yL.\u0275prov=ec({token:yL,factory:yL.\u0275fac,providedIn:"root"});
var BL=function(a,b){ZJ.call(this);this.jspb=a;this.issueFridge=b;this.recordType="issue-fr";this.idForRecord=function(c){return c.issueId};this.isEqual=Ei;this.destroyed$=new T.ReplaySubject(1);jIb?a=void 0:(jIb=!0,a=gta());a&&VIb(this,a);this.issueFridge.issueFetchResponse$.pipe(C(cn),De($k),C(qta),Ye(this.destroyed$)).subscribe(this.announce)};U(BL,ZJ);
var CL=function(a,b){return a.watch(b).pipe(Xe(function(c){return a.issueFridge.watch(b).pipe(C(function(d){return c&&d&&Object.assign({},c,{issue:d})}))}))},DL=function(a,b){return et(a,b).then(function(){return(0,T.firstValueFrom)(CL(a,b))})},VIb=function(a,b){var c=Object.assign({},b);b=b.issue;c=(delete c.issue,c);a.announce(Object.assign({},c,{issueId:String(b.issueId)}));a.issueFridge.announce(b)};
BL.prototype.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.jspb.get("action/issues/"+a,{responseCtor:nn,httpOptions:{params:{excludeEvents:"1"}}}).pipe(C(cn),Ze(function(c){(null==c?0:c.issue)&&b.issueFridge.announce(c.issue);b.issueFridge.clearIsGetting(a)}),C(function(c){return c&&qta(c)}),Ie(function(c){b.issueFridge.clearIsGetting(a);return(0,T.throwError)(c)}))};BL.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
BL.prototype.copy=function(a){return a&&Object.assign({},a)};BL.\u0275fac=function(a){return new (a||BL)(t(tL),t(yL))};BL.\u0275prov=ec({token:BL,factory:BL.\u0275fac,providedIn:"root"});
var tta=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);
var EL=function(a,b,c,d,e){this.status=a;this.displayValue=b;this.open=c;this.assigneeRequirement=d;this.sortOrder=e},FL={},zn=(FL.NEW=new EL("NEW","New",!0,"FORBIDDEN",10),FL.ASSIGNED=new EL("ASSIGNED","Assigned",!0,"REQUIRED",20),FL.ACCEPTED=new EL("ACCEPTED","Accepted",!0,"REQUIRED",30),FL.FIXED=new EL("FIXED","Fixed",!1,"REQUIRED",40),FL.VERIFIED=new EL("VERIFIED","Fixed (Verified)",!1,"REQUIRED",50),FL.DUPLICATE=new EL("DUPLICATE","Duplicate",!1,"ALLOWED",60),FL.INFEASIBLE=new EL("INFEASIBLE",
"Won't Fix (Infeasible)",!1,"ALLOWED",70),FL.NOT_REPRODUCIBLE=new EL("NOT_REPRODUCIBLE","Won't Fix (Not reproducible)",!1,"ALLOWED",80),FL.OBSOLETE=new EL("OBSOLETE","Won't Fix (Obsolete)",!1,"ALLOWED",90),FL.INTENDED_BEHAVIOR=new EL("INTENDED_BEHAVIOR","Won't Fix (Intended behavior)",!1,"ALLOWED",100),FL),WIb=[zn.NEW,zn.ASSIGNED,zn.ACCEPTED,zn.FIXED,zn.VERIFIED,zn.NOT_REPRODUCIBLE,zn.INTENDED_BEHAVIOR,zn.OBSOLETE,zn.INFEASIBLE,zn.DUPLICATE],XIb=WIb.map(function(a){return{value:a.status,displayText:a.displayValue}}),
YIb=new Set(Object.values(dh(zn,function(a){return"REQUIRED"===a.assigneeRequirement})));
var GL={},HL=(GL[0]="",GL[1]="New",GL[2]="Assigned",GL[3]="In Progress",GL[4]="Fixed",GL[5]="Verified",GL[10]="Duplicate",GL[9]="Infeasible",GL[6]="Can't Repro",GL[8]="Obsolete",GL[7]="WAI",GL[901]="Blocked",GL[902]="Archived",GL),IL={},Mta=(IL[0]=0,IL[1]=10,IL[2]=20,IL[3]=30,IL[4]=40,IL[5]=50,IL[10]=60,IL[9]=70,IL[6]=80,IL[8]=90,IL[7]=100,IL[901]=35,IL[902]=110,IL),JL={},ZIb=(JL[4]=!0,JL[5]=!0,JL[10]=!0,JL[9]=!0,JL[6]=!0,JL[8]=!0,JL[7]=!0,JL[901]=!0,JL[902]=!0,JL),KL={},LL=Object.assign({},HL,(KL[3]=
"Accepted (In Progress)",KL[5]="Fixed (Verified)",KL[9]="Won't fix (Infeasible)",KL[6]="Won't fix (Not reproducible)",KL[8]="Won't fix (Obsolete)",KL[7]="Won't fix (Intended behavior)",KL)),$Ib=new Map([[1,"P0"],[2,"P1"],[3,"P2"],[4,"P3"],[5,"P4"],[0,"--"]]),aJb=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"],["PRIORITY_UNSPECIFIED","--"]]),bJb=new Map([["S0","S0"],["S1","S1"],["S2","S2"],["S3","S3"],["S4","S4"],["SEVERITY_UNSPECIFIED","--"]]),cJb=new Map([[1,"Bug"],[2,"Feature Request"],
[3,"Customer Issue"],[4,"Internal Cleanup"],[5,"Process"],[6,"Vulnerability"],[7,"Privacy Issue"],[8,"Project"],[9,"Feature"],[10,"Milestone"],[11,"Epic"],[12,"Story"],[13,"Task"]]);
var dJb=function(a){Z.call(this,a)};U(dJb,Z);g=dJb.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComment=function(){return V(this,2)};g.setComment=function(a){return l(this,2,a)};g.getFormattingMode=function(){return X(this,3,0)};g.setFormattingMode=function(a){return l(this,3,a)};g.getContentJudgement=function(){return m(this,Dl,4)};g.setContentJudgement=function(a){return Ab(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),comment:n(p(this,2)),formattingMode:n(p(this,3)),contentJudgement:rJ(void 0,this.getContentJudgement())}:void 0;return a};
var ML=function(a){Z.call(this,a,-1,eJb)};U(ML,Z);var eJb=[1];ML.prototype.toObject=function(){var a=null!=this?{issueEventsList:Bb(rb(this,bn,1),QHb)}:void 0;return a};ML.messageId="b.ListIssueEventsResponse";
var fJb=function(a){return function(b){b=rb(b,bn,1).map(Fsa).filter($k);return{id:a,events:b}}},NL=function(a,b){ZJ.call(this);this.jspb=a;this.issueFetchResponseFridge=b;this.recordType="eventsForIssue"};U(NL,ZJ);NL.prototype.isEqual=function(a,b){return(null==a?void 0:a.id)!==(null==b?void 0:b.id)?!1:Lta(null==a?void 0:a.events,null==b?void 0:b.events)};NL.prototype.copy=function(a){return a&&Fi(a)};NL.prototype.fetchOne=function(a){return this.jspb.get("action/issues/"+a+"/events",{responseCtor:ML}).pipe(C(fJb(a)))};
NL.\u0275fac=function(a){return new (a||NL)(t(tL),t(BL))};NL.\u0275prov=ec({token:NL,factory:NL.\u0275fac,providedIn:"root"});
var OL=function(a){Z.call(this,a,-1,gJb)};U(OL,Z);OL.prototype.getIssueId=function(){return dj(this,1)};OL.prototype.setIssueId=function(a){return l(this,1,a)};var gJb=[2];OL.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumbersList:n(jb(this,2))}:void 0;return a};OL.messageId="b.BatchGetIssueCommentsRequest";
var PL=function(a){Z.call(this,a,-1,hJb)};U(PL,Z);PL.prototype.getIssueCommentsList=function(){return rb(this,rK,1)};var hJb=[1];PL.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Bb(this.getIssueCommentsList(),NHb)}:void 0;return a};PL.messageId="b.BatchGetIssueCommentsResponse";
var QL=function(a){this.jspbExecutor=a};QL.prototype.batchGet=function(a,b){a=(new OL).setIssueId(a);b=hl(a,2,b);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:PL,body:b}).pipe(C(Ksa))};QL.\u0275fac=function(a){return new (a||QL)(t(pI))};QL.\u0275prov=ec({token:QL,factory:QL.\u0275fac,providedIn:"root"});
var RL=function(a){ZJ.call(this);this.issueCommentsBatchApi=a;this.recordType="formattedCommentsForIssue";this.idForRecord=function(b){return b.id.issueId+"-"+b.id.commentId}};U(RL,ZJ);
RL.prototype.fetchSet=function(a){var b="",c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=r(d.value.split("-"));d=e.next().value;e=e.next().value;""!==b&&b===d?c.push(Number(e)):""===b&&(b=d,c.push(Number(e)))}return this.issueCommentsBatchApi.batchGet(Number(b),c).pipe(C(function(f){var h=b,k=[];f=r(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var w=void 0,y={issueId:Number(h),commentId:null!=(w=q.commentNumber)?w:0};k.push({id:y,formattedComment:q})}return k}))};
RL.\u0275fac=function(a){return new (a||RL)(t(QL))};RL.\u0275prov=ec({token:RL,factory:RL.\u0275fac,providedIn:"root"});
var Cn=function(a){Z.call(this,a)};U(Cn,Z);g=Cn.prototype;g.getUser=function(){return wl(this,Rl,1,SL)};g.setUser=function(a){xu(this,1,SL,a)};g.getGroup=function(){return wl(this,Rl,2,SL)};g.setGroup=function(a){xu(this,2,SL,a)};g.getAlias=function(){return V(this,qb(this,SL,3))};g.setAlias=function(a){ao(this,3,SL,a)};var SL=[1,2,3];Cn.prototype.toObject=function(){return TL(void 0,this)};
var TL=function(a,b){if(null!=b){var c={user:uJ(a,b.getUser()),group:uJ(a,b.getGroup()),alias:n(Or(b,3,SL))};a&&(c.$jspbMessageInstance=b);return c}};
var Hn=function(a){Z.call(this,a,-1,iJb)};U(Hn,Z);g=Hn.prototype;g.getInheritance=function(){return X(this,1,0)};g.setInheritance=function(a){l(this,1,a)};g.getAdminsList=function(){return rb(this,Cn,2)};g.setAdminsList=function(a){zb(this,2,a)};g.getInheritedAdminsList=function(){return rb(this,Cn,3)};g.getEditorsList=function(){return rb(this,Cn,4)};g.setEditorsList=function(a){zb(this,4,a)};g.getImplicitEditorsList=function(){return rb(this,Cn,5)};
g.getAppendersList=function(){return rb(this,Cn,6)};g.setAppendersList=function(a){zb(this,6,a)};g.getImplicitAppendersList=function(){return rb(this,Cn,7)};g.getReadersList=function(){return rb(this,Cn,8)};g.setReadersList=function(a){zb(this,8,a)};g.getImplicitReadersList=function(){return rb(this,Cn,9)};g.getRestrictedReadersList=function(){return rb(this,Cn,11)};g.setRestrictedReadersList=function(a){zb(this,11,a)};g.getRestrictedPlusReadersList=function(){return rb(this,Cn,12)};
g.setRestrictedPlusReadersList=function(a){zb(this,12,a)};g.getImplicitAccess=function(){return X(this,10,0)};g.setImplicitAccess=function(a){return l(this,10,a)};var iJb=[2,3,4,5,6,7,8,9,11,12];
Hn.prototype.toObject=function(){var a=null!=this?{inheritance:n(p(this,1)),adminsList:Bb(this.getAdminsList(),TL),inheritedAdminsList:Bb(this.getInheritedAdminsList(),TL),editorsList:Bb(this.getEditorsList(),TL),implicitEditorsList:Bb(this.getImplicitEditorsList(),TL),appendersList:Bb(this.getAppendersList(),TL),implicitAppendersList:Bb(this.getImplicitAppendersList(),TL),readersList:Bb(this.getReadersList(),TL),implicitReadersList:Bb(this.getImplicitReadersList(),TL),restrictedReadersList:Bb(this.getRestrictedReadersList(),
TL),restrictedPlusReadersList:Bb(this.getRestrictedPlusReadersList(),TL),implicitAccess:n(p(this,10))}:void 0;return a};Hn.messageId="b.AccessPolicy";
var UL=function(a){ZJ.call(this);this.jspb=a;this.recordType="hotlistAccessPolicy";this.isEqual=Ei};U(UL,ZJ);UL.prototype.fetchOne=function(a){return this.jspb.get("action/access_policies/"+encodeURIComponent(co(a)),{responseCtor:Hn}).pipe(C(Gn),C(function(b){return Object.assign({},{id:a},b)}))};
UL.prototype.doSave=function(a){var b=a.id;a=aua(a);return this.jspb.post("action/access_policies/"+encodeURIComponent(co(b)),{request:a,responseCtor:Hn}).pipe(C(Gn),C(function(c){return Object.assign({},{id:b},c)}))};UL.\u0275fac=function(a){return new (a||UL)(t(tL))};UL.\u0275prov=ec({token:UL,factory:UL.\u0275fac,providedIn:"root"});
var VL=function(a){Z.call(this,a)};U(VL,Z);var WL=function(a,b){return Sk(a,1,b)},jJb=function(a,b){return Sk(a,2,b)};VL.prototype.toObject=function(){return XL(void 0,this)};var XL=function(a,b){if(null!=b){var c={targetIssueId:dj(b,1),afterIssueId:dj(b,2),targetIssue:RBb(a,m(b,MBb,3))};a&&(c.$jspbMessageInstance=b);return c}};
var YL=function(a){Z.call(this,a,-1,kJb)};U(YL,Z);YL.prototype.getSourceIssueIdsList=function(){return jb(this,1)};YL.prototype.setSourceIssueIdsList=function(a){return hl(this,1,a)};YL.prototype.setRelationshipType=function(a){return l(this,2,a)};YL.prototype.setIncludeArchived=function(a){return l(this,3,a)};var kJb=[1];YL.prototype.toObject=function(){var a=null!=this?{sourceIssueIdsList:n(jb(this,1)),relationshipType:n(p(this,2)),includeArchived:n(Ro(this,3))}:void 0;return a};YL.messageId="b.BatchGetIssueRelationshipsRequest";
var ZL=function(a){Z.call(this,a,-1,lJb)};U(ZL,Z);ZL.prototype.getIssueRelationshipsList=function(){return rb(this,VL,1)};ZL.prototype.getTotalSize=function(){return dj(this,2)};var lJb=[1];ZL.prototype.toObject=function(){return mJb(void 0,this)};var mJb=function(a,b){if(null!=b){var c={sourceIssueId:dj(b,3),issueRelationshipsList:Bb(b.getIssueRelationshipsList(),XL,a),totalSize:dj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var oJb=function(a){Z.call(this,a,-1,nJb)};U(oJb,Z);var nJb=[1];oJb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesList:Bb(rb(this,ZL,1),mJb)}:void 0;return a};oJb.messageId="b.BatchGetIssueRelationshipsResponse";
var $L=function(a){Z.call(this,a)};U($L,Z);$L.prototype.getIssueRelationship=function(){return m(this,VL,1)};$L.prototype.toObject=function(){var a=null!=this?{issueRelationship:XL(void 0,this.getIssueRelationship())}:void 0;return a};$L.messageId="b.CreateIssueRelationshipResponse";
var aM=function(a){Z.call(this,a,-1,pJb)};U(aM,Z);var qJb=function(a,b){return hl(a,1,b)};aM.prototype.setRelationshipType=function(a){return l(this,2,a)};aM.prototype.setIncludeArchived=function(a){return l(this,3,a)};var rJb=function(a,b){return l(a,4,b)},sJb=function(a,b){return l(a,5,b)},pJb=[1];
aM.prototype.toObject=function(){var a=null!=this?{rootIssueIdsList:n(jb(this,1)),relationshipType:n(p(this,2)),includeArchived:n(Ro(this,3)),depthLimit:n(p(this,4)),prefixSizeLimit:n(p(this,5))}:void 0;return a};aM.messageId="b.GetIssueDescendantsRequest";
var tJb=function(a){Z.call(this,a)};U(tJb,Z);tJb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesMap:Db(Yi(this,1,ZL),void 0,mJb)}:void 0;return a};tJb.messageId="b.GetIssueDescendantsResponse";
var bM=function(a){Z.call(this,a,-1,uJb)};U(bM,Z);bM.prototype.getIssueRelationshipsList=function(){return rb(this,VL,1)};var uJb=[1];bM.prototype.toObject=function(){var a=null!=this?{issueRelationshipsList:Bb(this.getIssueRelationshipsList(),XL)}:void 0;return a};bM.messageId="b.ListIssueRelationshipsResponse";
var cM=function(a){Z.call(this,a)};U(cM,Z);cM.prototype.getIssueRelationship=function(){return m(this,VL,1)};cM.prototype.toObject=function(){var a=null!=this?{issueRelationship:XL(void 0,this.getIssueRelationship())}:void 0;return a};cM.messageId="b.UpdateIssueRelationshipResponse";
var dM=function(a){this.executor=a};g=dM.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+b,responseConstructor:bM}).pipe(C(function(c){return c.getIssueRelationshipsList()}))};g.create=function(a,b,c){return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:$L}).pipe(C(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new VL}))};
g.update=function(a,b,c){return this.executor.put({url:"action/issues/"+a+"/relationships/"+dj(c,1)+"?relationshipType="+b,body:c,responseConstructor:cM}).pipe(C(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new VL}))};g.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+b,responseConstructor:null})};
g.batchGet=function(a,b){a=(new YL).setSourceIssueIdsList(a).setRelationshipType(b).setIncludeArchived();return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:oJb}).pipe(C(function(c){return rb(c,ZL,1)}))};
g.getDescendants=function(a){var b=a.issueIds,c=a.relationshipType,d=a.includeArchived,e=a.depthLimit;a=a.prefixSizeLimit;b=sJb(rJb(qJb(new aM,b).setRelationshipType(c).setIncludeArchived(d),e),a);return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:tJb}).pipe(C(function(f){var h=new Map;f=r(Yi(f,1,ZL).entries());for(var k=f.next();!k.done;k=f.next()){var q=r(k.value);k=q.next().value;q=q.next().value;h.set(String(k),q)}return h}))};
dM.\u0275fac=function(a){return new (a||dM)(t(pI))};dM.\u0275prov=ec({token:dM,factory:dM.\u0275fac,providedIn:"root"});
var eM=function(a,b,c){ZJ.call(this,{freshUntil:6E4,ancientAfter:792E5});var d=this;this.issueRelationshipService=a;this.issueFridge=b;this.refreshMonitor=c;this.recordType="issueRelationships";this.idForRecord=function(e){return e.issueId};this.isEqual=Ei;this.activeMoveOperation$=new T.BehaviorSubject(new Set);this.assignParentToIssues=fua(function(e,f){return vJb(d,e,f)});this.assignParentToOneIssue=function(e,f){return vJb(d,String(e),[{issueId:String(f)}])};this.moveChildrenInAPI=eua(function(e){return d.moveChildrenInAPISequentially(e)});
this.moveChildrenInAPISequentially=fua(function(e){var f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta,Aa,xa,Xa;return me(function(eb){switch(eb.nextAddress){case 1:h=lua(e);if(0===h.length)return eb.return();k=h.map(function(yc){return yc.issues.map(function(Ua){return Ua.parentId})}).flat();q=h.map(function(yc){return yc.newParentId});w=Cj([].concat(u(k),u(q)),Bj);y=r(w);for(E=y.next();!E.done;E=y.next())I=E.value,d.setIsSaving(I);Lt(eb,2);N=r(h);L=N.next();case 4:if(L.done){Mt(eb,3);break}S=
L.value;Y={};ka=r(S.newRelations);ha=ka.next();case 7:if(ha.done){L=N.next();eb.jumpTo(4);break}Y.$jscomp$loop$prop$newRelation$1636=ha.value;ya=S.issues.find(function(yc){return function(Ua){return Ua.issueId===yc.$jscomp$loop$prop$newRelation$1636.targetIssueId}}(Y)).parentId;if(S.newParentId===ya)return Ja=void 0,ne(eb,(0,T.firstValueFrom)(d.issueRelationshipService.update(S.newParentId,1,WL(jJb(new VL,null!=(Ja=Vk(Y.$jscomp$loop$prop$newRelation$1636.afterIssueId))?Ja:0),Number(Y.$jscomp$loop$prop$newRelation$1636.targetIssueId)))),
8);Ha=void 0;return ne(eb,(0,T.firstValueFrom)(d.issueRelationshipService.create(S.newParentId,1,WL(jJb(new VL,null!=(Ha=Vk(Y.$jscomp$loop$prop$newRelation$1636.afterIssueId))?Ha:0),Number(Y.$jscomp$loop$prop$newRelation$1636.targetIssueId)))).catch(function(yc){var Ua,bb;if(!(null==yc?0:null==(Ua=yc.error)?0:null==(bb=Ua.details)?0:bb.includes("ALREADY_EXISTS")))throw yc;}),12);case 12:return ne(eb,(0,T.firstValueFrom)(d.issueRelationshipService.delete(ya,1,Y.$jscomp$loop$prop$newRelation$1636.targetIssueId)),
8);case 8:Y={$jscomp$loop$prop$newRelation$1636:Y.$jscomp$loop$prop$newRelation$1636};ha=ka.next();eb.jumpTo(7);break;case 2:f=Ka=Nt(eb);case 3:Ma=d.activeMoveOperation$.value;hb=r(e.map(function(yc){return yc.eventTimestamps}).flat());for(fb=hb.next();!fb.done;fb=hb.next())Lb=fb.value,Ma.delete(Lb);d.activeMoveOperation$.next(Ma);ta=r(w);for(E=ta.next();!E.done;E=ta.next())Aa=E.value,d.clearIsSaving(Aa);Promise.all(w.map(function(yc){return et(d,yc)}));xa=r(h);for(L=xa.next();!L.done;L=xa.next())Xa=
L.value,f&&Xa.done.reject(f),Xa.done.resolve();oe(eb)}})});this.refreshMonitor.getObservable().subscribe(function(){d.invalidate()})};U(eM,ZJ);eM.prototype.fetchOne=function(a){var b=this;return wJb(this,function(){return b.issueRelationshipService.list(a,1).pipe(C(function(c){return{issueId:a,relatedChildren:c.map($qa),totalChildCount:c.length}}))})};
eM.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(u(null!=(c=a.ids)?c:[]));return 0===d.length?(0,T.of)({results:[]}):wJb(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:1,includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(C(Gsa),C(function(e){return{results:e}}))});default:bh(a.type)}};eM.prototype.copy=function(a){return a&&Fi(a)};
var wJb=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(De(function(d){return 0===d.size}),Xe(function(){return b()}),Xe(function(d){return 0===a.activeMoveOperation$.value.size?(0,T.of)(d):c()}),Me())};return c()},xJb=function(a,b){return a.watch(b).pipe(Xe(function(c){return c&&c.totalChildCount===c.relatedChildren.length?(0,T.of)(c):a.watch(b,{trustMemory:!1})}))},yJb=function(a,b,c){return FGb(a,{type:"descendants",ids:new Set([b]),depth:void 0===c?100:c})};
eM.prototype.unlinkFromParent=function(a,b,c){c=void 0===c?!1:c;var d=this,e;return me(function(f){switch(f.nextAddress){case 1:aK(d.issueFridge,b,function(h){--h.childIssueCount});aK(d,b,function(h){h.relatedChildren=kua(h.relatedChildren,a);--h.totalChildCount});if(c)return f.return();Lt(f,2);return ne(f,(0,T.firstValueFrom)(d.issueRelationshipService.delete(b,1,a)),4);case 4:Mt(f,0);break;case 2:return e=Nt(f),ne(f,et(d,b),5);case 5:throw e;}})};
var vJb=function(a,b,c){var d,e,f,h,k,q,w,y,E,I;return me(function(N){switch(N.nextAddress){case 1:d=[];e=[];f=[];if(0===c.length)return N.return({added:d,notAdded:e});h=zJb(a,b);k=c.map(function(L,S){var Y="-1"===L.afterIssueId?h:L.afterIssueId;return{targetIssueId:L.issueId,afterIssueId:S?c[S-1].issueId:Y}});AJb(a,b,k);q=r(k);w=q.next();case 2:if(w.done){N.jumpTo(4);break}y=w.value;Lt(N,5);E=void 0;return ne(N,(0,T.firstValueFrom)(a.issueRelationshipService.create(b,1,WL(jJb(new VL,null!=(E=Vk(y.afterIssueId))?
E:0),Number(y.targetIssueId)))),7);case 7:d.push(y.targetIssueId);Mt(N,3);break;case 5:I=Nt(N);if(!xm(I))throw I;f.push(I);e.push(y.targetIssueId);case 3:w=q.next();N.jumpTo(2);break;case 4:return Promise.all([et(a,b),et(a.issueFridge,b)]),N.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},AJb=function(a,b,c){var d=0;aK(a,b,function(e){var f=jua(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});aK(a.issueFridge,
b,function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},BJb=function(a,b,c){var d,e,f,h,k,q,w,y,E,I,N,L;return me(function(S){if(1==S.nextAddress)return d=[],e=[],f=[],0===c.length?S.return({added:d,notAdded:e}):ne(S,Promise.allSettled(c.map(function(Y){return(0,T.firstValueFrom)(a.issueRelationshipService.create(Y,1,WL(jJb(new VL,Number(zJb(a,Y))),Number(b))))})),2);h=S.yieldResult;k=r(h.entries());for(q=k.next();!q.done;q=k.next())w=q.value,y=r(w),E=y.next().value,I=y.next().value,N=E,L=I,"fulfilled"===
L.status&&d.push(c[N]),"rejected"===L.status&&(e.push(c[N]),f.push(L.reason));Promise.all(c.map(function(Y){return et(a,Y)}));return S.return({added:d,notAdded:e,errors:f})})},CJb=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f={},h=r(c),k=h.next();!k.done;f={$jscomp$loop$prop$issue$1638:f.$jscomp$loop$prop$issue$1638},k=h.next())f.$jscomp$loop$prop$issue$1638=k.value,aK(a,f.$jscomp$loop$prop$issue$1638.parentId,function(ka){return function(ha){ha.relatedChildren=
kua(ha.relatedChildren,ka.$jscomp$loop$prop$issue$1638.issueId);--ha.totalChildCount}}(f));var q=void 0,w;if(null==(w=b.position)?0:w.issueId){var y;if("after"===(null==(y=b.position)?void 0:y.position))q=b.position.issueId;else{var E;if("before"===(null==(E=b.position)?void 0:E.position)){var I,N;f=null!=(N=null==(I=a.memory.getData(d))?void 0:I.relatedChildren)?N:[];I=r(f.entries());for(N=I.next();!N.done;N=I.next())if(h=r(N.value),N=h.next().value,h=h.next().value,h.targetIssueId===b.position.issueId){b=
void 0;q=null==(b=f[N-1])?void 0:b.targetIssueId;break}}}}var L=c.map(function(ka,ha){return{targetIssueId:ka.issueId,afterIssueId:ha?c[ha-1].issueId:q}});void 0!==IGb(a,d)?aK(a,d,function(ka){ka.relatedChildren=jua(ka.relatedChildren,L);ka.totalChildCount+=L.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:jua([],L),totalChildCount:L.length});b=new aoa;var S,Y;a.moveChildrenInAPI({newParentId:d,newRelations:L,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:null!=(Y=null==
(S=a.memory.getData(d))?void 0:S.relatedChildren)?Y:[],done:b});return b.promise},zJb=function(a,b){var c;a=null==(c=a.memory.getData(b))?void 0:c.relatedChildren;var d,e;return null!=(e=null==a?void 0:null==(d=a[(null==a?NaN:a.length)-1])?void 0:d.targetIssueId)?e:"0"};eM.\u0275fac=function(a){return new (a||eM)(t(dM),t(yL),t(uL))};eM.\u0275prov=ec({token:eM,factory:eM.\u0275fac,providedIn:"root"});
var DJb=Object.values({ADMIN:"admin",EDITOR:"writer",APPENDER:"appender",READER:"reader"}),fM=function(a){ZJ.call(this);this.jspb=a;this.recordType="permissions"};U(fM,ZJ);fM.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(C(function(b){return r(b).next().value}))};
fM.prototype.fetchSet=function(a){var b=a.map(function(c){return encodeURIComponent(c)});b={params:{relations:b.flatMap(function(){return DJb}).join(","),resourceNames:b.flatMap(function(c){return DJb.map(function(){return c})}).join(",")}};return this.jspb.get("action/user_access",{responseCtor:BK,httpOptions:b}).pipe(C(Tsa),C(function(c){return a.map(function(d){return c[d]})}))};fM.\u0275fac=function(a){return new (a||fM)(t(tL))};fM.\u0275prov=ec({token:fM,factory:fM.\u0275fac,providedIn:"root"});
var EJb=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new lL(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};EJb.prototype.get=function(a){var b=this;return new T.Observable(function(c){var d=b.lruCache.get(a);d||(d=FJb(b,a));return d.obs$.subscribe(c)})};
var FJb=function(a,b){var c=a.rawGet(b).pipe(Ue({refCount:!0,bufferSize:1})),d=c.subscribe({error:function(){var e=a.lruCache.get(b);e&&(a.lruCache.remove(b),e.subscription.unsubscribe())}});c=new GJb(c,d);a.lruCache.set(b,c);return c},GJb=function(a,b){this.obs$=a;this.subscription=b};
var IJb=function(a){Z.call(this,a,-1,HJb)};U(IJb,Z);var JJb=function(a,b){return hl(a,1,b)},HJb=[1];IJb.prototype.toObject=function(){var a=null!=this?{teamIdsList:n(jb(this,1))}:void 0;return a};IJb.messageId="b.BatchChildTeamsRequest";
var KJb=function(a){Z.call(this,a)};U(KJb,Z);g=KJb.prototype;g.getId=function(){return kj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return cj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.toObject=function(){return LJb(void 0,this)};
var LJb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var NJb=function(a){Z.call(this,a,-1,MJb)};U(NJb,Z);var MJb=[1];NJb.prototype.toObject=function(){return OJb(void 0,this)};var OJb=function(a,b){if(null!=b){var c={teamSummariesList:Bb(rb(b,KJb,1),LJb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var PJb=function(a){Z.call(this,a)};U(PJb,Z);PJb.prototype.toObject=function(){var a=null!=this?{childTeamsMap:Db(Yi(this,1,NJb),void 0,OJb)}:void 0;return a};PJb.messageId="b.BatchChildTeamsResponse";
var gM=function(a){Z.call(this,a)};U(gM,Z);gM.prototype.getUser=function(){return m(this,Rl,1)};gM.prototype.setUser=function(a){Ab(this,1,a)};gM.prototype.toObject=function(){return QJb(void 0,this)};var QJb=function(a,b){if(null!=b){var c={user:uJ(a,b.getUser()),isLead:n(Ro(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var zt=function(a){Z.call(this,a)};U(zt,Z);g=zt.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getSloId=function(){return kj(this,2)};g.setSloId=function(a){return l(this,2,a)};g.getComment=function(){return V(this,3)};g.setComment=function(a){return l(this,3,a)};g.getSourceTeamId=function(){return kj(this,4)};g.setSourceTeamId=function(a){l(this,4,a)};g.toObject=function(){return RJb(void 0,this)};
var RJb=function(a,b){if(null!=b){var c={inherit:n(Ro(b,1)),sloId:n(p(b,2)),comment:n(p(b,3)),sourceTeamId:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var hM=function(a){Z.call(this,a,-1,SJb)};U(hM,Z);g=hM.prototype;g.getTeamId=function(){return kj(this,1)};g.setTeamId=function(a){return l(this,1,a)};g.getVersion=function(){return dj(this,2)};g.setVersion=function(a){return l(this,2,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return cj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getPathNamesList=function(){return jb(this,5)};
g.getPathIdsList=function(){return jb(this,10)};g.getMembersList=function(){return rb(this,gM,7)};g.getDeleted=function(){return W(this,8)};g.getSlo=function(){return m(this,zt,11)};g.setSlo=function(a){Ab(this,11,a)};g.hasSlo=function(){return cj(this,11)};var SJb=[5,10,6,7];hM.prototype.toObject=function(){return TJb(void 0,this)};
var TJb=function(a,b){if(null!=b){var c={teamId:n(p(b,1)),version:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),pathNamesList:n(jb(b,5)),pathIdsList:n(jb(b,10)),collapsedPathNamesList:n(jb(b,6)),membersList:Bb(b.getMembersList(),QJb,a),deleted:n(Ro(b,8)),estimatedComponentCount:n(p(b,9)),slo:RJb(a,b.getSlo())};a&&(c.$jspbMessageInstance=b);return c}};hM.messageId="b.TeamState";
var iM=function(a){Z.call(this,a)};U(iM,Z);iM.prototype.toObject=function(){var a=null!=this?{teamsMap:Db(Yi(this,1,hM),void 0,TJb)}:void 0;return a};iM.messageId="b.BatchGetTeamsResponse";
var VJb=function(a){Z.call(this,a,-1,UJb)};U(VJb,Z);g=VJb.prototype;g.getPathIdsList=function(){return jb(this,1)};g.getPathNamesList=function(){return jb(this,2)};g.getId=function(){return kj(this,3)};g.setId=function(a){return l(this,3,a)};g.getName=function(){return V(this,4)};g.setName=function(a){return l(this,4,a)};g.hasName=function(){return cj(this,4)};g.getDescription=function(){return V(this,5)};g.setDescription=function(a){return l(this,5,a)};var UJb=[1,2];
VJb.prototype.toObject=function(){return WJb(void 0,this)};var WJb=function(a,b){if(null!=b){var c={pathIdsList:n(jb(b,1)),pathNamesList:n(jb(b,2)),id:n(p(b,3)),name:n(p(b,4)),description:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var jM=function(a){Z.call(this,a,-1,XJb)};U(jM,Z);jM.prototype.getTeamSuggestionsList=function(){return rb(this,VJb,1)};jM.prototype.setTeamSuggestionsList=function(a){zb(this,1,a)};var XJb=[1];jM.prototype.toObject=function(){var a=null!=this?{teamSuggestionsList:Bb(this.getTeamSuggestionsList(),WJb)}:void 0;return a};jM.messageId="b.TeamSuggestionResult";
var kM=function(a){Z.call(this,a)};U(kM,Z);kM.prototype.getTeamId=function(){return kj(this,1)};kM.prototype.setTeamId=function(a){return l(this,1,a)};kM.prototype.toObject=function(){var a=null!=this?{teamId:n(p(this,1)),sloMetadata:RJb(void 0,m(this,zt,2))}:void 0;return a};kM.messageId="b.UpdateTeamSloRequest";
var lM=function(a,b,c){var d=this;this.executor=a;this.teamsBatchApiConfig=b;this.batchApiAdapter=c;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new EJb(function(e){return d.batchAdaptedGet(e)},100)};lM.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var YJb=function(a,b){b=b.filter(function(c){return"0"!==c}).map(function(c){return a.getTeam(c)});return(0,T.forkJoin)(b).pipe(C(function(c){var d=new iM;c=r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Yi(d,1,hM).set(e.getTeamId(),e);return d}))};
lM.prototype.getChildTeams=function(a){a=JJb(new IJb,a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:PJb}).pipe(C(function(b){b=[].concat(u(Yi(b,1,NJb).entries()));return new Map(b.map(function(c){var d=r(c);c=d.next().value;d=d.next().value;return[c,rb(d,KJb,1)]}))}))};
var mM=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:jM})},ZJb=function(a,b,c){return"0"===b?(0,T.of)(!1):a.memoizingTeamStateMap.get(b).pipe(C(function(d){return void 0!==d.getMembersList().find(function(e){return e&&Pl(e.getUser())===c})}))},$Jb=function(a,b){return a.executor.get({url:"action/teams",options:{params:{teamIds:b.join(","),view:"full"}},responseConstructor:iM}).pipe(Ie(function(){return(0,T.of)(new iM)}),C(function(c){return new Map(Array.from(Yi(c,
1,hM).entries()).map(function(d){var e=r(d);d=e.next().value;e=e.next().value;return[d,dj(e,9)]}))}))},aKb=function(a,b,c){var d=(new kM).setTeamId(b);c=Ab(d,2,c);return a.executor.post({url:"/action/teams/"+b+"/update_slo",body:c,responseConstructor:hM})};lM.\u0275fac=function(a){return new (a||lM)(t(pI),t(nM),t(YK))};lM.\u0275prov=ec({token:lM,factory:lM.\u0275fac,providedIn:"root"});var nM=function(a){this.executor=a};
nM.prototype.call=function(a){return this.executor.get({url:"action/teams",options:{params:{teamIds:[].concat(u(a)).join(",")}},responseConstructor:iM}).pipe(Ie(function(){return(0,T.of)(new iM)}))};nM.prototype.split=function(a,b){return Yi(b,1,hM).get(a)||new hM};nM.\u0275fac=function(a){return new (a||nM)(t(pI))};nM.\u0275prov=ec({token:nM,factory:nM.\u0275fac,providedIn:"root"});
var oM=function(a){ZJ.call(this);this.teamsApi=a;this.recordType="team";this.idForRecord=function(b){return b.getTeamId()}};U(oM,ZJ);oM.prototype.fetchOne=function(a){return"0"===a?(0,T.of)(void 0):this.teamsApi.getTeam(a).pipe(Ie(function(){return(0,T.of)(void 0)}))};oM.prototype.fetchSet=function(a){var b=this;return(0,T.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter($k)}))};oM.\u0275fac=function(a){return new (a||oM)(t(lM))};
oM.\u0275prov=ec({token:oM,factory:oM.\u0275fac,providedIn:"root"});
var pM=function(a){Z.call(this,a,-1,bKb)};U(pM,Z);pM.prototype.getTrackersList=function(){return rb(this,lH,1)};var bKb=[1];pM.prototype.toObject=function(){var a=null!=this?{trackersList:Bb(this.getTrackersList(),mH)}:void 0;return a};pM.messageId="b.BatchGetTrackersResponse";
var qM=function(a){Z.call(this,a,-1,cKb)};U(qM,Z);qM.prototype.getTrackersList=function(){return rb(this,lH,1)};qM.prototype.getNextPageToken=function(){return V(this,2)};qM.prototype.getTotalSize=function(){return dj(this,3)};var cKb=[1];qM.prototype.toObject=function(){var a=null!=this?{trackersList:Bb(this.getTrackersList(),mH),nextPageToken:n(p(this,2)),totalSize:n(p(this,3))}:void 0;return a};qM.messageId="b.ListTrackersResponse";
var rM=function(a){this.jspbExecutor=a};rM.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:lH}).pipe(C(Kn))};rM.prototype.batchGet=function(a){return this.jspbExecutor.get({url:"action/trackers/batch",responseConstructor:pM,options:{params:{trackerIds:a}}}).pipe(C(nua))};
rM.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:qM,options:{params:{query:a,pageSize:String(b),pageToken:void 0===c?"":c}}}).pipe(C(oua))};rM.\u0275fac=function(a){return new (a||rM)(t(pI))};rM.\u0275prov=ec({token:rM,factory:rM.\u0275fac,providedIn:"root"});
var sM=function(a){ZJ.call(this);this.trackerApi=a;this.recordType="tracker";this.idKey="trackerId";if(a=m(Xi(),lH,11))a=Kn(a),this.announce(a)};U(sM,ZJ);sM.prototype.fetchOne=function(a){return this.trackerApi.get(a)};sM.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};sM.\u0275fac=function(a){return new (a||sM)(t(rM))};sM.\u0275prov=ec({token:sM,factory:sM.\u0275fac,providedIn:"root"});
var tM=function(a,b){BI.call(this);this.router=a;this.activatedRoute=b;this.params={};this.routeParams$=new T.BehaviorSubject({})};U(tM,BI);tM.\u0275dir=BI.\u0275dir;
var eKb=function(a){a.activatedRoute.queryParams.pipe(Ye(a.destroyed$)).subscribe(function(b){dKb(a,a.routeParams$.value,b)});a.router.events.pipe(De(function(b){return b instanceof Gk}),C(function(b){return b}),Ye(a.destroyed$)).subscribe(function(b){b=b.snapshot;var c={},d=b;do c=Object.assign({},d.params,c),d=d.parent;while(d&&d!==d.root);dKb(a,c,b.queryParams)})},uM=function(a,b){return a.routeParams$.pipe(C(function(c){return c[b]}))},dKb=function(a,b,c){for(var d=r(Object.keys(a.params)),e=
d.next();!e.done;e=d.next())delete a.params[pua(e.value)];a.routeParams$.next(b);c=r(Object.entries(c));for(d=c.next();!d.done;d=c.next())e=r(d.value),d=e.next().value,e=e.next().value,a.params[pua(d)]=e;b=r(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,a.params[pua(c)]=d};tM.\u0275fac=function(a){return new (a||tM)(t(Hk),t(fk))};tM.\u0275prov=ec({token:tM,factory:tM.\u0275fac,providedIn:"root"});
var vM=function(a,b,c){BI.call(this);var d=this;this.paramsService=b;this.issueFetchResponseFridge=c;this.componentIdOverride$=new T.BehaviorSubject(null);this.hotlistIdOverride$=new T.BehaviorSubject(null);this.routeIssueId$=uM(this.paramsService,"issueId").pipe(Le());this.routeComponentId$=uM(this.paramsService,"componentId").pipe(Le());this.routeHotlistId$=uM(this.paramsService,"hotlistId").pipe(Le());this.issueId$=this.routeIssueId$.pipe(C(qua),Ue({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=
this.issueId$.pipe(Xe(function(e){return e?CL(d.issueFetchResponseFridge,e):(0,T.of)(void 0)}),C(function(e){var f;return null==e?void 0:null==(f=e.issue)?void 0:f.snapshot[0].componentId}));this.componentId$=(0,T.combineLatest)([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(C(function(e){var f=r(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e||h||f}),C(qua),Le(),Ue({refCount:!0,bufferSize:1}));this.hotlistId$=(0,T.combineLatest)([this.hotlistIdOverride$,
this.routeHotlistId$]).pipe(C(function(e){var f=r(e);e=f.next().value;f=f.next().value;return e||f}),C(qua),Le(),Ue({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){d.componentIdOverride$.next(null);d.hotlistIdOverride$.next(null)}))};U(vM,BI);vM.\u0275dir=BI.\u0275dir;vM.prototype.getComponentId=function(){return this.componentId$};vM.prototype.getIssueId=function(){return this.issueId$};vM.prototype.getHotlistId=function(){return this.hotlistId$};
vM.\u0275fac=function(a){return new (a||vM)(t($I),t(tM),t(BL))};vM.\u0275prov=ec({token:vM,factory:vM.\u0275fac,providedIn:"root"});
var wM=new jd("buganizerWindow",{factory:function(){return window}});
var xM=function(a,b,c,d){BI.call(this);var e=this;this.$window=a;this.activeSession=b;this.trackerFridge=c;this.errorHandler=d;this.handleTrackerError=function(f){e.errorHandler.errorHandler(null,f)};this.trackerId$=new T.BehaviorSubject(this.$window.sessionStorage.getItem("buganizer.current_tracker_id")||"");this.enableTrackers=rH(this.activeSession,"enableTrackers");this.tracker$=this.trackerId$.pipe(Xe(function(f){return""===f?(0,T.of)(void 0):e.trackerFridge.watch(f).pipe(We(void 0))}));this.associatedTrackers$=
this.tracker$.pipe(Xe(function(f){var h;return $J(e.trackerFridge,null!=(h=null==f?void 0:f.associatedTrackerIds)?h:[])}));this.enableTrackers&&fKb(this);this.trackerFridge.error$.pipe(Ye(this.destroyed$)).subscribe(this.handleTrackerError)};U(xM,BI);xM.\u0275dir=BI.\u0275dir;xM.prototype.getTrackerId=function(){return this.trackerId$};var fKb=function(a){var b=(new URLSearchParams(a.$window.location.search)).get("tracker");b&&a.setTrackerId(b)};
xM.prototype.setTrackerId=function(a){this.trackerId$.next(a);this.$window.sessionStorage.setItem("buganizer.current_tracker_id",a)};xM.\u0275fac=function(a){return new (a||xM)(t(wM),t(pH),t(sM),t(SK))};xM.\u0275prov=ec({token:xM,factory:xM.\u0275fac,providedIn:"root"});
var sua=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),rua=RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),uua=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];
var yM=function(){this.transform=vua};yM.\u0275fac=function(a){return new (a||yM)};yM.\u0275pipe=tc({name:"toNewEmailPreference",type:yM,pure:!0});var zM=function(){this.transform=wua};zM.\u0275fac=function(a){return new (a||zM)};zM.\u0275pipe=tc({name:"enumToHuman",type:zM,pure:!0});var AM=function(){this.transform=xua};AM.\u0275fac=function(a){return new (a||AM)};AM.\u0275pipe=tc({name:"arrayToHuman",type:AM,pure:!0});var BM=function(){};BM.prototype.transform=function(a,b){return ph(yua(a,b)).toString()};
BM.\u0275fac=function(a){return new (a||BM)};BM.\u0275pipe=tc({name:"boldPrefixMatches",type:BM,pure:!0});var CM=function(){this.transform=zua};CM.\u0275fac=function(a){return new (a||CM)};CM.\u0275pipe=tc({name:"yesNo",type:CM,pure:!0});var DM=function(){this.transform=Aua};DM.\u0275fac=function(a){return new (a||DM)};DM.\u0275pipe=tc({name:"componentPath",type:DM,pure:!0});var EM=function(){this.transform=Bua};EM.\u0275fac=function(a){return new (a||EM)};
EM.\u0275pipe=tc({name:"teamPath",type:EM,pure:!0});var FM=function(){this.transform=Cua};FM.\u0275fac=function(a){return new (a||FM)};FM.\u0275pipe=tc({name:"v2StatusToHuman",type:FM,pure:!0});var GM=function(){this.transform=Dua};GM.\u0275fac=function(a){return new (a||GM)};GM.\u0275pipe=tc({name:"countOpenIssues",type:GM,pure:!0});var HM=function(){this.transform=Eua};HM.\u0275fac=function(a){return new (a||HM)};HM.\u0275pipe=tc({name:"formatNumberOrUndef",type:HM,pure:!0});
var IM=function(){this.transform=Fua};IM.\u0275fac=function(a){return new (a||IM)};IM.\u0275pipe=tc({name:"humanFileSize",type:IM,pure:!0});var gKb=6E4*(420-(new Ji).getTimezoneOffset()),JM=function(){this.transform=Hua};JM.\u0275fac=function(a){return new (a||JM)};JM.\u0275pipe=tc({name:"omitObfuscatedEmail",type:JM,pure:!0});var KM=function(){this.transform=Rn};KM.\u0275fac=function(a){return new (a||KM)};KM.\u0275pipe=tc({name:"toString",type:KM,pure:!0});var LM=function(){this.transform=Iua};
LM.\u0275fac=function(a){return new (a||LM)};LM.\u0275pipe=tc({name:"csv",type:LM,pure:!0});var MM=function(){};MM.\u0275fac=function(a){return new (a||MM)};MM.\u0275mod=rc({type:MM});MM.\u0275inj=fc({});
var hKb={clear:function(){},getItem:function(){},removeItem:function(){},setItem:function(){}},NM=window.localStorage||hKb,OM={getNumberAt:function(a){return function(){var b=NM.getItem(a);if(null!=b)return b=Number(b),isNaN(b)?void 0:b}},setNumberAt:function(a){return function(b){null==b?NM.removeItem(a):NM.setItem(a,String(b))}},getStringAt:function(a){return function(){var b=NM.getItem(a);if(null!=b)return String(b)}},setStringAt:function(a){return function(b){null==b?NM.removeItem(a):NM.setItem(a,
b)}},getBooleanAt:function(a){return function(){var b=NM.getItem(a);return null==b?!1:!!JSON.parse(b)}},setBooleanAt:function(a){return function(b){!0===b?NM.setItem(a,"1"):NM.removeItem(a)}},clear:function(){NM.clear()}};
var iKb=window,PM=function(){return iKb.performance&&iKb.PerformanceObserver&&"function"===typeof window.performance.getEntriesByType&&"function"===typeof window.performance.mark&&"function"===typeof window.performance.measure},Uua=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},jKb=function(a){if(PM())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};
var Xua=OM.getBooleanAt("debug-logging")(),Un=window,kKb,lKb=function(a){a=a.getEntries().map(Jua).map(Sua);a=r(a);for(var b=a.next();!b.done;b=a.next())Wua(b.value);setTimeout(Vua,100)},Tua=!1;
var QM=function(){this.segments=[];this.clickMain=new Iw;this.clickSegment=new Iw};QM.prototype.ngOnInit=function(){};ki.Object.defineProperties(QM.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return 0<this.segments.length}}});QM.\u0275fac=function(a){return new (a||QM)};
QM.\u0275cmp=v({type:QM,selectors:[["b-fab-segmented"]],inputs:{label:"label",icon:"icon",segments:"segments",href:"href"},outputs:{clickMain:"clickMain",clickSegment:"clickSegment"},decls:5,vars:6,consts:[[1,"shrink-wrap"],["mat-button","","role","button",1,"main","button-xl",3,"click"],[1,"icon-xl",3,"svgIcon"],[4,"ngIf"],["mat-button","","aria-label","More options",1,"more","button-xl","square-left",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],["createMenu","matMenu"],["mat-menu-item","",
3,"href","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"href","click"]],template:function(a,b){a&1&&(G(0,"span",0)(1,"a",1),K("click",function(){return b.clickMain.emit(b.label)}),J(2,"mat-icon",2),P(3),H(),O(4,Zua,6,2,"ng-container",3),H());a&2&&(B(1),sf("square-right",b.showMoreButton),nf("href",b.href||void 0,Kd),B(1),D("svgIcon",b.icon),B(1),If(" ",b.label," "),B(1),D("ngIf",b.showMoreButton))},dependencies:[wx,sx,pB,qB,QE,OE,TE,LE],styles:['[mat-button][_ngcontent-%COMP%]{vertical-align:middle;color:#202124;color:var(--text-default);font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500}.shrink-wrap[_ngcontent-%COMP%]{display:inline-block;border-radius:24px;white-space:nowrap;transition:box-shadow .2s ease-in-out;background-color:#fff;background-color:var(--fab-button-bg);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 1px 3px 1px rgba(0, 0, 0, 0.15)}.shrink-wrap[_ngcontent-%COMP%]:hover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.3),0px 4px 8px 3px rgba(0, 0, 0, 0.15)}.mat-button[_ngcontent-%COMP%]{border-radius:24px}.main[_ngcontent-%COMP%]{padding-left:10px;padding-right:24px}.main.square-right[_ngcontent-%COMP%]{padding-right:8px}.more[_ngcontent-%COMP%]{padding-right:10px;padding-left:4px;min-width:0;color:#80868b;color:var(--gfx-muted)}.more[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:24px}.more[_ngcontent-%COMP%]:hover, .more[_ngcontent-%COMP%]:focus{color:#202124;color:var(--text-default)}.more[_ngcontent-%COMP%]{transition:border .2s ease-in-out;border-left:1px solid transparent}.shrink-wrap[_ngcontent-%COMP%]:hover   .more[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}\n/*# sourceMappingURL=fab_segmented.css.map */']});
var RM=function(a,b,c,d){var e=this;this.paths=a;this.context=b;this.currentTracker=c;this.componentFridge=d;this.createIssuePath=this.paths.createIssue();this.visibleOptions$=(0,T.combineLatest)([this.context.getComponentId().pipe(Xe(function(f){return f?e.componentFridge.watch(f):(0,T.of)(null)}),C(function(f){return f&&!f.archived?f.componentId:null})),this.context.getIssueId(),this.context.getHotlistId()]).pipe(Ke(0),C(function(f){var h=r(f);f=h.next().value;var k=h.next().value;h=h.next().value;
return mKb(e,f,k,h)}));this.buttonLabel$=this.visibleOptions$.pipe(C(function(f){return f.length?"Create":"Create Issue"}));this.buttonIcon$=this.currentTracker.tracker$.pipe(C(function(f){var h;return"OPEN_SOURCE"===(null==f?void 0:null==(h=f.branding)?void 0:h.theme)?"create-open-source-36px":"create-color-36px"}))};RM.prototype.ngOnInit=function(){};RM.prototype.trackClick=function(a){Sn("create","click",a)};
var mKb=function(a,b,c,d){var e=new Map;null!==d&&e.set("in_same_hotlist",a.paths.createIssue({hotlistIds:d}));null!==b&&e.set("in_same_component",a.paths.createIssue({component:b}));null!==c&&(e.set("similar_to_current_issue",a.paths.createIssue({template_issue:c})),e.set("blocked_by_current_issue",a.paths.createIssue({blockedByIssueIds:c,component:b})),e.set("blocking_current_issue",a.paths.createIssue({blockingIssueIds:c,component:b})),e.set("parent_of_current_issue",a.paths.createIssue({childrenIssueIds:c,
component:b})),e.set("child_of_current_issue",a.paths.createIssue({parentIssueId:c,component:b})));return[].concat(u(e.entries())).map(function(f){var h=r(f);f=h.next().value;h=h.next().value;return{name:wua(f),path:h}})};RM.\u0275fac=function(a){return new (a||RM)(F(dL),F(vM),F(xM),F(bK))};
RM.\u0275cmp=v({type:RM,selectors:[["b-create-issue-button"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"label","icon","href","segments","clickMain","clickSegment"]],template:function(a,b){a&1&&(O(0,bva,3,3,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.visibleOptions$))},dependencies:[sx,QM,Fx],encapsulation:2,changeDetection:0});
var go={ADD_USER_WITHOUT_ACCESS:"addUserWithoutAccess",COMPONENT_PICKER:"componentPicker",CREATE_ISSUE:"createIssue",EDIT_ISSUE:"editIssue",EDIT_SLO:"editSlo",FIELD_ORDERING:"fieldOrdering",G3C_WIDGET:"g3cWidget",G3N:"g3n",ISSUE_CARD:"issueCard",ISSUE_EVENT_DETAIL:"issueEventDetail",ISSUE_PICKER:"issuePicker",ISSUE_SLO:"issueSlo",LINK_FIELD:"linkField",LIST_ISSUES:"listIssues",MAGIC_BOX:"magicBox",MANAGE_COMPONENT:"component",PERSON_CARD:"personCard",RESTRICTED_CONTENT:"restrictedContent",SEARCH:"search",
SIDEBAR:"sidebar",TEAM_CARD:"teamCard",TEAM_WARNING:"teamWarning",UPDATE_HISTORY_MODAL:"updateHistoryModal",WHATS_NEW:"whatsNew"};
var cva=OM.getNumberAt("last-visit"),dva=OM.getNumberAt("last-visit-count"),fva=OM.setNumberAt("last-visit"),eva=OM.setNumberAt("last-visit-count");null==Date.now&&(Date.now=function(){return(new Date).getTime()});
var nKb=OM.getBooleanAt("debug-logging")(),oKb=OM.getBooleanAt("onedev-darkmode"),SM=function(a,b,c,d,e){BI.call(this);var f=this;this.$log=c;this.ga=null;this.preapply=function(){var q=pKb;return function(w){return function(y,E){bo(f,q,w,y,E)}}};gva();c=d.getUserPreferences();Vn("dimension7",oKb()?"dark":"default");var h;Vn("dimension3",null==(h=c.themePreferences)?void 0:h.density);Vn("dimension4",bj(c));Vn("dimension6",Zi("readUnreadOptOut"));Vn("dimension2",c.showFullHistory?"fh":"comments");
Vn("dimension5",c.showRecentEventsFirst?"newestFirst":"oldestFirst");if(a.ga){var k=a.ga;this.subscriptions.add(b.viewContentLoaded.subscribe(function(){setTimeout(function(){for(var q=[],w=e.snapshot;w;){var y=void 0,E=void 0;q.push(null!=(E=null==(y=w.routeConfig)?void 0:y.path)?E:"");w=w.children[0]}k("send","pageview",q.join("/"))},0)}));this.ga=k}};U(SM,BI);SM.\u0275dir=BI.\u0275dir;
var bo=function(a,b,c,d,e){var f="boolean"===typeof e?e?1:0:e;a.ga?d?void 0!==e?a.ga("send","event",b,c,d,f):a.ga("send","event",b,c,d):a.ga("send","event",b,c):nKb&&a.$log.debug("[stub analytics.ts] ga('send', 'event')",b,c,d,f)},qKb=function(a,b,c,d){a.ga?d?a.ga("send","timing","userAction",b,c,d):a.ga("send","timing","userAction",b,c):nKb&&a.$log.debug("[stub analytics.ts] ga('send', 'timing')","userAction",b,c,d)},rKb=function(a,b,c){bo(a,go.ISSUE_PICKER,c+" duration","<"+Math.min(2*Math.ceil(b/
2E3),600)+"s",b)};SM.\u0275fac=function(a){return new (a||SM)(t(wM),t($I),t(RK),t(pH),t(fk))};SM.\u0275prov=ec({token:SM,factory:SM.\u0275fac,providedIn:"root"});
var sKb=function(){this.assignee=this.reporter=this.team=null;this.assigneeEmail=void 0;this.verifier=null;this.verifierEmail=void 0;this.duplicateOfIssueId=this.inProd=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.lastViewedTime=this.verifiedTime=this.resolvedTime=this.blockedByIssueId=this.blockingIssueId=this.hotlistId=this.postmortem=this.changelist=this.cc=null;this.customFieldMap={};this.customFieldNameToIdMap={};this.customFieldValueMap={};this.hotlists=[];this.lastModifier=
this.ccCount=this.duplicateCount=this.voteCount=null;this.isClosed=this.isRead=this.selected=!1;this.sloSnoozeUntil=this.sloStatus=this.position=this.effort=null},tKb=function(a){if(!a.aggregatedData)return 0;a=a.aggregatedData;var b=Date.now()-a.modifiedTimeMicros/1E3;return Math.pow(.5,b/6048E5)+1-Math.pow(.5,a.voteCount/50)},vKb=function(a,b){var c=new sKb;uKb(c,a,b);return c},uKb=function(a,b,c){var d=pa(b.snapshot),e=b.aggregatedData;var f=b&&b.accessLimit?b.accessLimit.accessLevel:void 0;a.accessLevel=
f;a.id=b.issueId;a.issueId=b.issueId;d.componentId&&(a.componentId=d.componentId);a.componentPath=c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?c.componentPathInfo.componentPathName.map(function(k){return String(k)}):[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var h;a.isClosed=!(null==(h=zn[d.status])?0:h.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=Ll(d.reporterUser);a.assignee=Ll(d.assigneeUser);
a.assigneeEmail=Pl(d.assigneeUser);a.verifier=Ll(d.verifierUser);a.verifierEmail=Pl(d.verifierUser);a.cc=Ml(d.ccUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:0;a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&e.resolvedTimeMicros?Math.round(e.resolvedTimeMicros/1E3):null;a.verifiedTime=
e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;d.inProd&&(a.inProd=d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;a.starred=
b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.magic=tKb(b);a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.lastModifier=Ll(d.authorUser);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(b=r(c.componentPathInfo.allCustomField),c=b.next();!c.done;c=b.next())c=c.value,a.customFieldMap[String(c.customFieldId)]=c,a.customFieldNameToIdMap[c.name.toLowerCase()]=
c.customFieldId;if(d.customField)for(b=r(d.customField),c=b.next();!c.done;c=b.next())c=c.value,a.customFieldValueMap[String(c.customFieldId)]=c;a.hotlists=[];a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?jva(e.sloStatus)||null:null;a.sloSnoozeUntil=d.sloSnoozeUntil;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort instanceof sl?d.effort:sqa(d.effort))};
var TM=function(a,b){this.params=a;this.searchResponse=b;this.internalIssues=[];var c=b.positionMap||{};this.internalIssues=b.issues.map(function(d){var e=vKb(d,b.componentMap[pa(d.snapshot).componentId||0]);c&&c[d.issueId]&&(e.position=c[d.issueId]);return e});this.numPages=Math.ceil(b.numTotalResults/a.resultsPerPage);this.startIndex=(a.page-1)*a.resultsPerPage+1;this.endIndex=Math.min(this.startIndex+a.resultsPerPage-1,b.numTotalResults);this.isPreSort=wKb(a.sortColumns);this.totalText=this.getTotalText(b.numTotalResults,
a.page,a.resultsPerPage,this.isPreSort);this.numResults=b.numTotalResults;this.changed$=new T.BehaviorSubject(this)};TM.prototype.hasPreviousPage=function(){return 1<this.params.page};TM.prototype.hasNextPage=function(){return this.params.page<this.numPages};var UM=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return-1!==c?c+a.startIndex:-1};
TM.prototype.getIssueIdFromIndex=function(a){return a>=this.startIndex&&a<=this.endIndex&&(a-=this.startIndex,a<this.issues.length)?this.issues[a].issueId:-1};
var xKb=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=UM(a,c.issueId);-1!==e&&(e-=a.startIndex,uKb(a.issues[e],c,d),a.issues[e].selected=!1)}a.changed$.next(a)},yKb=function(a,b,c,d){b=UM(a,b);-1!==b&&(b-=a.startIndex,void 0!==d&&(a.issues[b].lastViewedTime=null!=d?d:null),void 0!==c&&(a.issues[b].isRead=c),void 0===c&&void 0===d&&(a.issues[b].isRead=!!a.issues[b].lastViewedTime&&a.issues[b].lastViewedTime>=a.issues[b].majorModifiedTime));
a.changed$.next(a)};TM.prototype.clone=function(){var a=new TM(this.params,this.searchResponse);a.issues=this.internalIssues;a.numPages=this.numPages;a.startIndex=this.startIndex;a.endIndex=this.endIndex;a.isPreSort=this.isPreSort;a.totalText=this.totalText;a.numResults=this.numResults;a.changed$.next(a);return a};
var wKb=function(a){var b;!(b=0===a.length)&&(b=1===a.length)&&(a=a[0],b="ISSUE_ID"===a.fieldId.type&&"DESCENDING"===a.direction?!0:"CREATED_TIME"===a.fieldId.type?!0:"MODIFIED_TIME"===a.fieldId.type?!0:"POSITION"===a.fieldId.type?!0:!1);return b};TM.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};
ki.Object.defineProperties(TM.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});
var zKb=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise_=this.searchResultsPage_=null};
zKb.prototype.fetchIssues=function(){var a=this;if(1>this.params.page)return Promise.reject("Invalid page requested.");if(!this.resultPromise_)if(this.params.hotlistId)this.resultPromise_=this.hotlistApi.getPagedHotlistContent(this.params.hotlistId,this.params.page,this.params.resultsPerPage,this.params.sortColumns);else{var b={p:this.params.page,count:this.params.resultsPerPage},c=this.paths.toApiSortParamValue(this.params.sortColumns);c&&(b.s=c);var d;this.resultPromise_=this.issueApi.listIssues(null!=
(d=this.params.query)?d:"",b)}return this.resultPromise_.then(function(e){a.searchResultsPage_||(a.searchResultsPage_=new TM(a.params,e));return a.searchResultsPage_},function(e){return Promise.reject(e)})};var AKb=function(a){return a.searchResultsPage_?a.searchResultsPage_.hasNextPage():!0};
var VM=function(a,b,c,d){this.$window=a;this.issueApi=b;this.hotlistApi=c;this.paths=d;this.previousResultsFetcher_=this.nextResultsFetcher_=this.currentResultsFetcher_=null;this.focusedIssueIndex_=-1},DKb=function(a,b){var c=Jj();BKb(b.page)?(CKb(a,b),a.currentResultsFetcher_.fetchIssues().then(function(d){d.getIssueIdFromIndex&&(d.numPages&&b.page>d.numPages?c.reject(d.numPages):c.resolve(d))},function(d){c.reject(d)})):c.reject(1);return c.promise},FKb=function(a){var b=Jj(),c=null;a.currentResultsFetcher_?
c=a.currentResultsFetcher_.params:c=EKb(a);c?(CKb(a,c),a.currentResultsFetcher_.fetchIssues().then(function(d){d.getIssueIdFromIndex?b.resolve(d):b.reject(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},WM=function(a){a.currentResultsFetcher_=null;a.nextResultsFetcher_=null;a.previousResultsFetcher_=null;a.focusedIssueIndex_=-1},GKb=function(a,b){var c=Jj();a.focusedIssueIndex_=-1;if(!a.currentResultsFetcher_)return c.reject("No search results available."),
c.promise;var d=Math.floor((b-1)/a.currentResultsFetcher_.params.resultsPerPage)+1;if(1<Math.abs(d-a.currentResultsFetcher_.params.page))return c.reject("Requested index is out of range."),c.promise;var e=Fi(a.currentResultsFetcher_.params);e.page=d;CKb(a,e);a.currentResultsFetcher_.fetchIssues().then(function(f){f.getIssueIdFromIndex&&(f=f.getIssueIdFromIndex(b),-1!=f?(a.focusedIssueIndex_=b,c.resolve(f)):c.reject("No issue available at index "+b))},function(f){c.reject(f)});return c.promise},HKb=
function(a){a.currentResultsFetcher_?a.currentResultsFetcher_.fetchIssues().then(function(b){b.getIssueIdFromIndex&&(a.focusedIssueIndex_=b.endIndex>=b.startIndex?b.startIndex:-1)}).catch(function(b){Qk("unexpected error fetching:",b)}):a.focusedIssueIndex_=-1},EKb=function(a){if(a=a.$window.sessionStorage.getItem("buganizer.searchParams")){a=JSON.parse(a);if(!a.query||!a.page||!a.resultsPerPage)return null;a.sortColumns&&(a.sortColumns=a.sortColumns.map(function(b){return new Wi(new Si(b.fieldId),
b.direction)}));return a}return null},IKb=function(a,b,c){b=Fi(b);b.page=c;return new zKb(a.issueApi,a.hotlistApi,a.paths,b)},JKb=function(a,b){a.currentResultsFetcher_||(a.currentResultsFetcher_=IKb(a,b,b.page),a.currentResultsFetcher_.fetchIssues().catch(function(c){Qk("unexpected error fetching:",c)}));!a.previousResultsFetcher_&&1<b.page&&(a.previousResultsFetcher_=IKb(a,b,b.page-1),a.previousResultsFetcher_.fetchIssues().catch(function(c){Qk("unexpected error fetching:",c)}));!a.nextResultsFetcher_&&
AKb(a.currentResultsFetcher_)&&(a.nextResultsFetcher_=IKb(a,b,b.page+1),a.nextResultsFetcher_.fetchIssues().catch(function(c){Qk("unexpected error fetching:",c)}))},CKb=function(a,b){b.page=Ki(b.page);if(!b.resultsPerPage||isNaN(b.resultsPerPage))throw Error("fd");a.previousResultsFetcher_&&b.page==a.previousResultsFetcher_.params.page?(a.nextResultsFetcher_=a.currentResultsFetcher_,a.currentResultsFetcher_=a.previousResultsFetcher_,a.previousResultsFetcher_=null):a.nextResultsFetcher_&&b.page==a.nextResultsFetcher_.params.page&&
(a.previousResultsFetcher_=a.currentResultsFetcher_,a.currentResultsFetcher_=a.nextResultsFetcher_,a.nextResultsFetcher_=null);if(a.currentResultsFetcher_){var c=a.currentResultsFetcher_.params;b.page==c.page&&b.query==c.query&&Ei(b.sortColumns,c.sortColumns)&&b.resultsPerPage==c.resultsPerPage?a.currentResultsFetcher_.params.returnUrl=b.returnUrl:WM(a)}JKb(a,b);b=JSON.stringify(a.currentResultsFetcher_.params);a.$window.sessionStorage.setItem("buganizer.searchParams",b)},BKb=function(a){var b=Ki(""+
a);return isNaN(b)||b!=Number(a)||1>b||2147483647<b?!1:!0};VM.\u0275fac=function(a){return new (a||VM)(t(wM),t(wK),t(pL),t(dL))};VM.\u0275prov=ec({token:VM,factory:VM.\u0275fac,providedIn:"root"});
var $n=function(a){Z.call(this,a)};U($n,Z);g=$n.prototype;g.getHotlistId=function(){return kj(this,qb(this,Yn,1))};g.setHotlistId=function(a){ao(this,1,Yn,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return cj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};var Yn=[1,4];$n.prototype.toObject=function(){return KKb(void 0,this)};
var KKb=function(a,b){if(null!=b){var c={hotlistId:n(Or(b,1,Yn)),savedSearchId:n(Or(b,4,Yn)),name:n(p(b,2)),description:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var XM=function(a){Z.call(this,a,-1,LKb)};U(XM,Z);g=XM.prototype;g.getBookmarkGroupId=function(){return kj(this,1)};g.setBookmarkGroupId=function(a){l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return cj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Rl,8)};g.setOwnerUser=function(a){Ab(this,8,a)};
g.getArchived=function(){return W(this,5)};g.setArchived=function(a){l(this,5,a)};g.getItemList=function(){return rb(this,$n,6)};g.setItemList=function(a){zb(this,6,a)};g.addItem=function(a,b){return yu(this,6,$n,a,b)};g.getAdminUsersList=function(){return rb(this,Rl,9)};g.setAdminUsersList=function(a){zb(this,9,a)};var LKb=[6,9];XM.prototype.toObject=function(){return MKb(void 0,this)};
var MKb=function(a,b){if(null!=b){var c={bookmarkGroupId:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:uJ(a,b.getOwnerUser()),archived:n(Ro(b,5)),itemList:Bb(b.getItemList(),KKb,a),adminUsersList:Bb(b.getAdminUsersList(),uJ,a)};a&&(c.$jspbMessageInstance=b);return c}};XM.messageId="b.BookmarkGroup";
var YM=function(a){Z.call(this,a,-1,NKb)};U(YM,Z);YM.prototype.getBookmarkGroupsList=function(){return rb(this,XM,1)};var NKb=[1];YM.prototype.toObject=function(){var a=null!=this?{bookmarkGroupsList:Bb(this.getBookmarkGroupsList(),MKb)}:void 0;return a};YM.messageId="b.BookmarkGroupListResponse";
var ZM=function(a){this.executor=a};ZM.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:XM}).then(Zn).then(Xn)};ZM.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:YM}).then(nva).then(kva)};ZM.prototype.create=function(a){var b=new XM;b.setName(a.name);a.description&&b.setDescription(a.description);return this.executor.post({url:"action/bookmark_groups",body:b,responseConstructor:XM}).then(Zn).then(Xn)};
ZM.prototype.update=function(a){var b=new XM;b.setBookmarkGroupId(String(a.bookmarkGroupId));b.setName(a.name);a.description&&b.setDescription(a.description);a.ownerUser&&b.setOwnerUser(Sl(a.ownerUser));b.setArchived(a.archived);var c;b.setItemList((null!=(c=a.item)?c:[]).map(mva));var d;b.setAdminUsersList((null!=(d=a.adminUsers)?d:[]).map(Sl));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:XM}).then(Zn).then(Xn)};
ZM.\u0275fac=function(a){return new (a||ZM)(t(qI))};ZM.\u0275prov=ec({token:ZM,factory:ZM.\u0275fac,providedIn:"root"});
var $M=function(a,b){this.dialogRef=a;this.data=b;this.confirmButtonTheme=b.isDestructive?"warn":"primary";var c;this.cancelButtonText=null!=(c=b.cancelButtonText)?c:"Cancel";var d;this.confirmButtonText=null!=(d=b.confirmButtonText)?d:"Confirm";var e;this.showCancelButton=null!=(e=b.showCancelButton)?e:!0};$M.\u0275fac=function(a){return new (a||$M)(F(AB),F(FB))};
$M.\u0275cmp=v({type:$M,selectors:[["b-confirmation-dialog"]],decls:7,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","","class","gmat-button medium",3,"click",4,"ngIf"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium",3,"color","click"],["mat-button","",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),J(2,"div",1),G(3,"div",2),O(4,ova,2,1,"button",3),G(5,"button",4),K("click",
function(){return b.dialogRef.close(!0)}),P(6),H()());a&2&&(B(1),Jf(b.data.title),B(1),D("innerHTML",b.data.content,Jd),B(2),D("ngIf",b.showCancelButton),B(1),D("color",b.confirmButtonTheme),B(1),If(" ",b.confirmButtonText," "))},dependencies:[sx,pB,JB,KB,LB],encapsulation:2});var aN=function(a){this.dialog=a},OKb=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
aN.prototype.open=function(a){var b=a.title,c=a.onConfirm,d=a.onDismiss,e=a.isDestructive,f=a.cancelButtonText,h=a.confirmButtonText,k=a.showCancelButton;a=Zg(qh(a.content).toString());this.dialog.open($M,{data:{title:b,content:a,isDestructive:e,cancelButtonText:f,confirmButtonText:h,showCancelButton:k},maxWidth:"500px"})._afterClosed.subscribe(function(q){q?null==c||c():null==d||d()})};aN.\u0275fac=function(a){return new (a||aN)(t(HB))};aN.\u0275prov=ec({token:aN,factory:aN.\u0275fac,providedIn:"root"});
var PKb=function(){};
var bN=function(a,b){this.router=a;this.location=b};U(bN,PKb);bN.prototype.reload=function(){var a=this,b=this.location.url();bt(this.router,"/",{skipLocationChange:!0}).then(function(){return bt(a.router,b,{skipLocationChange:!0})})};bN.\u0275fac=function(a){return new (a||bN)(t(Hk),t(cL))};bN.\u0275prov=ec({token:bN,factory:bN.\u0275fac,providedIn:"root"});
var QKb=new jd("Route",{factory:function(){return t(bN)}});
var cN=function(a,b,c,d,e,f,h,k,q,w){BI.call(this);var y=this;this.$route=a;this.activeSession=b;this.userApi=c;this.errorHandler=d;this.bLocation=e;this.paths=f;this.issuePagination=h;this.sidebarItemFactory=k;this.appEvents=q;this.analytics=w;this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches_=[];this.userHotlists_=[];RKb(this);SKb(this);this.fetchUserHotlists();a=function(){RKb(y)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));
this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(a));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(a));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){SKb(y)}));a=function(){y.fetchUserHotlists()};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a))};U(cN,BI);cN.\u0275dir=BI.\u0275dir;
var RKb=function(a){a.userApi.getUserSidebar().then(function(b){a.sidebarData.hotlists=TKb(a,b.hotlists);a.sidebarData.bookmarkGroups=UKb(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=TKb(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=UKb(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})},SKb=function(a){a.userApi.getUserSavedSearches().then(function(b){b=VKb(a,b);a.sidebarData.userSearches=b;ua(a.userSavedSearches_);
kaa(a.userSavedSearches_,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};cN.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){WKb(a,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var TKb=function(a,b){return(b||[]).map(function(c){return XKb(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},UKb=function(a,b){return(b||[]).map(function(c){var d=a.sidebarItemFactory;return new YKb(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},VKb=function(a,b){return b.map(function(c){return{id:c.searchId,name:c.name,ownerUser:c.ownerUser,
description:c.description,starred:!1,resourceType:"SAVED_SEARCH"}}).map(function(c){return ZKb(a.sidebarItemFactory,c)})},WKb=function(a,b){b=b.map(function(c){c={id:c.hotlistId,name:c.name,description:c.description,ownerUser:c.ownerUser,starred:a.activeSession.getUserEmail()!==Ll(c.ownerUser),resourceType:"HOTLIST"};return XKb(a.sidebarItemFactory,c)});ua(a.userHotlists_);kaa(a.userHotlists_,b)};
cN.prototype.onAnchorClick=function(a,b){var c,d,e=null!=(d=null==(c=b.target)?void 0:c.innerText)?d:"";bo(this.analytics,"nav","click",e.trim());b.metaKey||b.ctrlKey||b.shiftKey||0!==b.button||(WM(this.issuePagination),xIb(this.paths,a)&&this.$route.reload(),this.bLocation.url(a),b.preventDefault(),b.stopPropagation())};cN.\u0275fac=function(a){return new (a||cN)(t(QKb),t(pH),t(PJ),t(SK),t(cL),t(dL),t(VM),t(dN),t(WK),t(SM))};cN.\u0275prov=ec({token:cN,factory:cN.\u0275fac,providedIn:"root"});
var eN=function(a,b,c,d,e,f,h,k){this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=h;this.userPreferencesManager=k;this.id=a.id;this.name=a.name;this.description=a.description;this.ownerUser=a.ownerUser;this.starred=a.starred;this.userEmail=b.getUserEmail()};eN.prototype.isEditable=function(){return!!this.ownerUser&&Ll(this.ownerUser)===this.userEmail};eN.prototype.isSelected=function(){return wIb(this.paths,this.href)};
eN.prototype.isUnstarable=function(){return!(this.ownerUser&&Ll(this.ownerUser)===this.userEmail)&&this.starred};
var $Kb=function(a,b){var c=Fi(a.userPreferencesManager.preferencesSubject$.getValue()).homepagePreferences;return(null==c?void 0:c.resourceId)===a.id&&c.resourceType===b},aLb=function(a,b){PK(a.butterBar,"Updating homepage...",0);PCb(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(Me()).subscribe(function(){PK(a.butterBar,"Homepage updated")})},bLb=function(a,b,c,d,e,f,h,k,q,w,y,E){eN.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=f;this.errorHandler=w;this.confirmationDialogService=
y;this.appEvents=E;this.href=k.viewHotlist(a.id);this.type="HOTLIST"};U(bLb,eN);g=bLb.prototype;g.isPreferredHomepage=function(){return $Kb(this,"HOTLIST")};g.setAsPreferredHomepage=function(){aLb(this,"HOTLIST")};
g.archive=function(){var a=this;PK(this.butterBar,'Archiving hotlist "'+this.name+'"...');this.hotlistApi.get(this.id).then(function(b){b.archived=!0;return a.hotlistApi.archiveHotlist(a.id,b)}).then(function(){a.appEvents.hotlistChanged.next({hotlistId:a.id});PK(a.butterBar,'Archived hotlist "'+a.name+'".');bo(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;PK(this.butterBar,'Unarchiving hotlist "'+this.name+'"...');this.hotlistApi.get(this.id).then(function(b){b.archived=!1;return a.hotlistApi.archiveHotlist(a.id,b)}).then(function(){a.appEvents.hotlistChanged.next({hotlistId:a.id});PK(a.butterBar,'Unarchived hotlist "'+a.name+'".');bo(a.analytics,"sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Nn("Unstarring a hotlist will remove it from your sidebar. You can restore the hotlist at any time from the hotlist's page."),onConfirm:function(){a.doUnstar_()}})};
g.doUnstar_=function(){var a=this;PK(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:this.id}).then(function(){PK(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var fN=function(a,b,c,d,e,f,h,k){eN.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};U(fN,eN);fN.prototype.isUnstarable=function(){return!1};
fN.prototype.unstar=function(){};fN.prototype.isPreferredHomepage=function(){return $Kb(this,"SAVED_SEARCH")};fN.prototype.setAsPreferredHomepage=function(){aLb(this,"SAVED_SEARCH")};
var YKb=function(a,b,c,d,e,f,h,k,q,w,y,E){eN.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=w;this.confirmationDialogService=y;this.appEvents=E;this.items=[];a=r(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(XKb(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(ZKb(this.sidebarItemFactory,b))}this.items.sort(function(I,N){return I.name.localeCompare(N.name)})};U(YKb,eN);g=YKb.prototype;
g.isPreferredHomepage=function(){return $Kb(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){aLb(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;PK(this.butterBar,'Archiving bookmark group "'+this.name+'"...');this.bookmarkGroupsApi.get(this.id).then(function(b){b.archived=!0;return a.bookmarkGroupsApi.update(b)}).then(function(){a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.id});PK(a.butterBar,'Archived bookmark group "'+a.name+'".');bo(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;PK(this.butterBar,'Unarchiving bookmark group "'+this.name+'"...');this.bookmarkGroupsApi.get(this.id).then(function(b){b.archived=!1;return a.bookmarkGroupsApi.update(b)}).then(function(){a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.id});PK(a.butterBar,'Unarchived bookmark group "'+a.name+'".');bo(a.analytics,"sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Nn("Unstarring a bookmark group will remove it from your sidebar. You can restore it at any time from the bookmark group's page."),onConfirm:function(){a.doUnstar_()}})};
g.doUnstar_=function(){var a=this;PK(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){PK(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var dN=function(a,b,c,d,e,f,h,k,q,w,y){this.activeSession=a;this.userApi=b;this.bookmarkGroupsApi=c;this.hotlistApi=d;this.errorHandler=e;this.paths=f;this.analytics=h;this.butterBar=k;this.userPreferencesManager=q;this.confirmationDialogService=w;this.appEvents=y},XKb=function(a,b){return new bLb(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},ZKb=function(a,b){return new fN(b,
a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};dN.\u0275fac=function(a){return new (a||dN)(t(pH),t(PJ),t(ZM),t(pL),t(SK),t(dL),t(SM),t(OK),t(zI),t(aN),t(WK))};dN.\u0275prov=ec({token:dN,factory:dN.\u0275fac,providedIn:"root"});
var gN=function(){this.expanded=!1;this.content=this.header=null};gN.\u0275fac=function(a){return new (a||gN)};
gN.\u0275cmp=v({type:gN,selectors:[["sidebar-zippy"]],inputs:{expanded:"expanded",header:"header",content:"content"},decls:3,vars:7,consts:[["tabindex","0","role","tab",1,"bv2-nav-expandable-header",3,"click","keydown.enter","keydown.space"],[4,"ngTemplateOutlet"],[4,"ngIf"]],template:function(a,b){a&1&&(G(0,"div",0),K("click",function(){return b.expanded=!b.expanded})("keydown.enter",function(c){b.expanded=!b.expanded;return c.stopPropagation()})("keydown.space",function(c){b.expanded=!b.expanded;
return c.preventDefault()}),O(1,pva,1,0,"ng-container",1),H(),O(2,rva,2,1,"ng-container",2));a&2&&(sf("opened",b.expanded)("closed",!b.expanded),nf("aria-expanded",b.expanded),B(1),D("ngTemplateOutlet",b.header),B(1),D("ngIf",b.expanded))},dependencies:[sx,Cx],encapsulation:2});
var hN=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[];this.hotlists=[]};g=hN.prototype;g.handleBookmarkGroupOpen=function(a){bo(this.analytics,"sidebarArchived","open");this.location.url(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){bo(this.analytics,"sidebarArchived","dashboard");this.location.url(this.paths.dashboard(a))};g.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};
g.openEditBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};g.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};hN.\u0275fac=function(a){return new (a||hN)(F(cL),F(SM),F(dL),F(cN))};
hN.\u0275cmp=v({type:hN,selectors:[["sidebar-archived"]],inputs:{bookmarkGroups:"bookmarkGroups",hotlists:"hotlists"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"header","content"],["zippyHeader",""],["zippyContent",""],[1,"archived-list"],[3,"title",4,"ngFor","ngForOf"],["class","bv2-nav-item bv2-user-hotlists-hotlist-item",3,"selected","id","title",4,"ngFor","ngForOf"],[3,"title"],["bgZippyHeader",""],["bgZippyContent",""],[1,"bv2-nav-item","bv2-nav-bookmark-group"],[1,"bv2-nav-item-text"],["mat-icon-button",
"","disableRipple","true","aria-label","Bookmark group actions","class","bv2-nav-item-menubutton keep-focus-ring",3,"matMenuTriggerFor","click",4,"ngIf"],["groupMenu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor","click"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item","","class","bv2-user-hotlists-edit-menuitem",
3,"click",4,"ngIf"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],["class","bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"href","click"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"href","click"],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions","class","bv2-nav-item-menubutton keep-focus-ring",
3,"matMenuTriggerFor",4,"ngIf"],["hotlistMenu",""],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&O(0,Hva,7,2,"div",0);a&2&&D("ngIf",b.hotlists.length||b.bookmarkGroups.length)},dependencies:[wx,sx,LE,pB,QE,OE,TE,NE,gN],encapsulation:2});
var iN=function(){this.admins=[]};iN.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Ml(this.bookmarkGroup.adminUsers)};iN.\u0275fac=function(a){return new (a||iN)};
iN.\u0275cmp=v({type:iN,selectors:[["b-bookmark-group-card"]],inputs:{bookmarkGroup:"bookmarkGroup"},decls:14,vars:6,consts:[["role","dialog","aria-label","Bookmark group hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bookmark-group-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),P(5),H()(),G(6,"ul")(7,"li"),P(8),H(),G(9,"li"),P(10),H()(),G(11,"div")(12,"p"),P(13),H()()()()());a&2&&(B(4),D("href",b.url,
Kd),B(1),Jf(b.bookmarkGroup.name),B(3),If("ID: ",b.bookmarkGroup.bookmarkGroupId,""),B(2),Kf("",1===b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),Jf(b.bookmarkGroup.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bookmark-group-card[_ngcontent-%COMP%]{max-width:450px}.bookmark-group-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.bookmark-group-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});
var jN=function(){this.admins=[]};jN.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Ml(this.hotlist.adminUsers)};jN.\u0275fac=function(a){return new (a||jN)};
jN.\u0275cmp=v({type:jN,selectors:[["b-hotlist-card"]],inputs:{hotlist:"hotlist"},decls:14,vars:6,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hotlist-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),P(5),H()(),G(6,"ul")(7,"li"),P(8),H(),G(9,"li"),P(10),H()(),G(11,"div")(12,"p"),P(13),H()()()()());a&2&&(B(4),D("href",b.url,Kd),B(1),Jf(b.hotlist.name),B(3),If("ID: ",b.hotlist.hotlistId,""),B(2),Kf("",1===
b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),Jf(b.hotlist.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.hotlist-card[_ngcontent-%COMP%]{max-width:450px}.hotlist-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.hotlist-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});
var kN=function(a,b){this.activeSession=a;this.cdr=b;this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new Iw;this.isAnonymous=this.activeSession.isAnonymous()};g=kN.prototype;g.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.detectChanges())};g.onEnter=function(a){this.onClick(a)};g.isDisabled=function(){return this.isAnonymous||this.disabled};
g.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};g.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};kN.\u0275fac=function(a){return new (a||kN)(F(pH),F(uI))};
kN.\u0275cmp=v({type:kN,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},features:[Lf([uI])],decls:4,vars:7,consts:[[1,"inline-block",3,"matTooltip"],["tooltip","matTooltip"],["mat-icon-button","","role","checkbox",1,"small",3,"disabled","keydown.enter","click","focus","blur"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){if(a&1){var c=x();G(0,"div",
0,1)(2,"button",2);K("keydown.enter",function(d){return b.onEnter(d)})("click",function(d){return b.onClick(d)})("focus",function(){z(c);var d=Hf(1);return A(d.show())})("blur",function(){z(c);var d=Hf(1);return A(d.hide())});J(3,"mat-icon",3);H()()}a&2&&(D("matTooltip",b.getLabel()),B(2),sf("starred",b.starred),D("disabled",b.isDisabled()),nf("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(1),D("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[pB,LE,$E],styles:["[_nghost-%COMP%]{opacity:.9;text-align:center}[_nghost-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   button.mat-icon-button[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}[_nghost-%COMP%]   button.mat-icon-button.starred[_ngcontent-%COMP%]{color:#e37400;color:var(--favorite-star)}[_nghost-%COMP%]   button.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px;margin-right:initial}"],
changeDetection:0});
var cLb=li(function(a){this._elementRef=a},"primary"),dLb=new jd("mat-progress-spinner-default-options",{providedIn:"root",factory:Kva}),lN=function(a,b,c,d,e,f,h,k){var q=cLb.call(this,a)||this;q._document=c;q._diameter=100;q._value=0;q._resizeSubscription=T.Subscription.EMPTY;q.mode="determinate";q._spinnerAnimationLabel=q._getSpinnerAnimationLabel();eLb.has(c.head)||eLb.set(c.head,new Set([100]));q._noopAnimations="NoopAnimations"===d&&!!e&&!e._forceAnimations;"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&
(q.mode="indeterminate");e&&(e.color&&(q.color=q.defaultColor=e.color),e.diameter&&(q.diameter=e.diameter),e.strokeWidth&&(q.strokeWidth=e.strokeWidth));b.isBrowser&&b.SAFARI&&h&&f&&k&&(q._resizeSubscription=h.change(150).subscribe(function(){"indeterminate"===q.mode&&k.run(function(){return f.markForCheck()})}));return q};U(lN,cLb);g=lN.prototype;g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=Ng(a)||this._document.head;this._attachStyleNode();a.classList.add("mat-progress-spinner-indeterminate-animation")};
g.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};g._getCircleRadius=function(){return(this.diameter-10)/2};g._getViewBox=function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 "+a+" "+a};g._getStrokeCircumference=function(){return 2*Math.PI*this._getCircleRadius()};g._getStrokeDashOffset=function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null};g._getCircleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
g._getCircleTransformOrigin=function(a){var b;a=50*(null!=(b=a.currentScale)?b:1);return a+"% "+a+"%"};g._attachStyleNode=function(){var a=this._styleRoot,b=this._diameter,c=eLb.get(a);if(!c||!c.has(b)){var d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel);d.textContent=this._getAnimationText();a.appendChild(d);c||(c=new Set,eLb.set(a,c));c.add(b)}};
g._getAnimationText=function(){var 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)};g._getSpinnerAnimationLabel=function(){return this.diameter.toString().replace(".","_")};
ki.Object.defineProperties(lN.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=Ug(a);this._spinnerAnimationLabel=this._getSpinnerAnimationLabel();this._styleRoot&&this._attachStyleNode()}},strokeWidth:{configurable:!0,enumerable:!0,get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=Ug(a)}},value:{configurable:!0,enumerable:!0,get:function(){return"determinate"===this.mode?this._value:0},
set:function(a){this._value=Math.max(0,Math.min(100,Ug(a)))}}});var eLb=new WeakMap;lN.\u0275fac=function(a){return new (a||lN)(F(nd),F(yy),F(ii,8),F(Wv,8),F(dLb),F(lx),F(wA),F(ef))};
lN.\u0275cmp=v({type:lN,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,b){a&2&&(nf("aria-valuemin","determinate"===b.mode?0:null)("aria-valuemax","determinate"===b.mode?100:null)("aria-valuenow","determinate"===b.mode?b.value:null)("mode",b.mode),rf("width",b.diameter,"px")("height",b.diameter,"px"),sf("_mat-animation-noopable",b._noopAnimations))},inputs:{color:"color",
diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[gf],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,b){a&1&&(Lc(),G(0,"svg",0,1),O(2,Iva,1,11,"circle",2),O(3,Jva,1,9,"circle",3),H());a&2&&(rf("width",b.diameter,"px")("height",b.diameter,"px"),D("ngSwitch","indeterminate"===b.mode),nf("viewBox",b._getViewBox()),B(2),D("ngSwitchCase",!0),B(1),D("ngSwitchCase",!1))},dependencies:[yx,zx],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});
var mN=function(){};mN.\u0275fac=function(a){return new (a||mN)};
mN.\u0275cmp=v({type:mN,selectors:[["b-spinner"]],inputs:{large:"large",gif:"gif"},decls:2,vars:2,consts:[[4,"ngIf"],["src","img/spinner-large.gif"],["class","large",3,"diameter",4,"ngIf"],["class","small",3,"diameter","strokeWidth",4,"ngIf"],[1,"large",3,"diameter"],[1,"small",3,"diameter","strokeWidth"]],template:function(a,b){a&1&&(O(0,Lva,2,4,"ng-container",0),O(1,Ova,3,2,"ng-container",0));a&2&&(D("ngIf",b.gif),B(1),D("ngIf",!b.gif))},dependencies:[sx,lN],styles:[".muted[_nghost-%COMP%]     .mat-progress-spinner circle, .muted[_nghost-%COMP%]     .mat-spinner circle{stroke:rgba(0,0,0,.4)}[_nghost-%COMP%]     .mat-progress-spinner circle, [_nghost-%COMP%]     .mat-spinner circle{stroke:var(--text-primary)}.muted[_nghost-%COMP%]   img[_ngcontent-%COMP%]{filter:grayscale(1)}.large[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;margin-left:-18px;margin-top:-18px}[_nghost-%COMP%]{animation-delay:150ms;animation-duration:200ms;animation-name:fade-in;animation-timing-function:linear;animation-fill-mode:both;display:inline-block;vertical-align:middle}[_nghost-%COMP%]     mat-spinner.small{margin-top:-2px}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}img.small[_ngcontent-%COMP%]{width:16px;height:16px}img.large[_ngcontent-%COMP%]{width:41px;height:41px}\n/*# sourceMappingURL=spinner.css.map */"]});
var Pva;
var nN=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Iw;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};nN.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};nN.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
nN.prototype.getRoot=function(){var a;return null!=(a=Qva(this.elementRef.nativeElement))?a:document};nN.\u0275fac=function(a){return new (a||nN)(F(nd))};nN.\u0275dir=v({type:nN,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var oN=function(){};oN.\u0275fac=function(a){return new (a||oN)};oN.\u0275mod=rc({type:oN});oN.\u0275inj=fc({imports:[[]]});
var fLb,gLb=Symbol("gd"),hLb=Symbol("hd"),pN=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new Iw;this[fLb]=new T.ReplaySubject(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new T.BehaviorSubject(!1);this.closeHovercard$=new T.Subject};pN.prototype.ngOnInit=function(){};var iLb=function(a){var b=a[hLb];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[gLb].pipe(Ke(0))):(0,T.of)(void 0)};fLb=gLb;
pN.\u0275fac=function(a){return new (a||pN)(F(Wf))};
pN.\u0275cmp=v({type:pN,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&Zf(Vf,7);if(a&2){var c;Yf(c=ag())&&(b.templateRef=c.first)}},inputs:{className:"className"},outputs:{onHide:"onHide"},exportAs:["onedevHovercard"],ngContentSelectors:["*"],decls:1,vars:0,consts:[["cdkTrapFocus","",3,"cdkTrapFocusAutoCapture","clickOutside","mouseenter","mouseleave"]],template:function(a){a&1&&(Cf(),O(0,Rva,2,3,"ng-template"))},dependencies:[Fy,nN],styles:[".onedev-hovercard{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 2px 6px 2px rgba(60,64,67,.15);border-radius:4px;overflow:hidden}"],
encapsulation:2});var qN=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[hLb]=this};qN.\u0275fac=function(a){return new (a||qN)(F(Vf),F(Wf),F(lx),F(pN))};qN.\u0275dir=v({type:qN,selectors:[["","onedevHovercardLazyBody",""]]});var rN=function(a){this.hovercard=a;this.destroyed$=new T.ReplaySubject(1)};rN.prototype.ngOnDestroy=function(){this.destroyed$.next()};rN.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(Ye(this.destroyed$)).subscribe(this.hovercard[gLb])};
rN.\u0275fac=function(a){return new (a||rN)(F(pN))};rN.\u0275dir=v({type:rN,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:["onedevIsHovercardReady","isHovercardReady$"]}});
var jLb=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:10,offsetY:10},{originX:"end",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:10,offsetY:-10}];
var kLb=function(){this.delay=600;this.position=jLb},sN=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new kLb;this.active=!1;this.hovercardShown$=new T.ReplaySubject(1);this.hide$=new T.Subject;this.hovercard$=new T.BehaviorSubject(null);this.isHovered$=new T.BehaviorSubject(!1);this.isKeyboardActivated$=new T.BehaviorSubject(!1);this.destroyed$=new T.ReplaySubject(1);this.onDocumentKeyDown=function(d){"Escape"===d.key&&(lLb(c),d.stopPropagation(),
d.preventDefault())};mLb(this);nLb(this)},mLb=function(a){oLb(a).pipe(Ye(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})},nLb=function(a){a.hovercard$.pipe(Xe(function(b){return(null==b?void 0:b.closeHovercard$)||T.NEVER}),Ye(a.destroyed$)).subscribe(function(){lLb(a)})};sN.prototype.dispose=function(){pLb(this);var a;null==(a=this.overlayRef)||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
sN.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};sN.prototype.toggle=function(a){this.isHovered$.next(a)};var lLb=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;null==(b=a.hovercard$.getValue())||b.isOnHover$.next(!1)};
sN.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,iLb(this.hovercard$.getValue()).pipe(Me(),Ye(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};sN.prototype.hide=function(){pLb(this);this.hide$.next()};
var pLb=function(a){if(a.overlayRef&&a.overlayRef.hasAttached()){document.removeEventListener("keydown",a.onDocumentKeyDown);var b;null!=(b=a.hovercard$.getValue())&&b.onHide.emit();a.overlayRef.detach()}};sN.prototype.getPositionStrategy=function(){return DA(EA(FA(JA(this.overlay.position(),this.origin)),8),this.config.position)};
var oLb=function(a){return(0,T.combineLatest)([qLb(a).pipe(We(!1)),a.isKeyboardActivated$]).pipe(Ve(1),C(function(b){var c=r(b);b=c.next().value;c=c.next().value;return b||c}),Xe(function(b){var c;return(null==(c=a.waitFor$)?void 0:c.pipe(Pe(b)))||(0,T.of)(b)}))},qLb=function(a){return a.hovercard$.pipe(Xe(function(b){return(0,T.combineLatest)([a.isHovered$,(null==b?void 0:b.isOnHover$)||(0,T.of)(!1)]).pipe(C(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Je(a.config.delay),
Ye(a.destroyed$))}))};
var rLb=new jd("onedevHovercardLoggingOn"),tN=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new kLb;this.destroyed$=new T.ReplaySubject(1);this.triggerControl=new sN(a,b);this.triggerControl.hovercardShown$.pipe($e(d||(0,T.of)(!1)),Ye(this.destroyed$)).subscribe(function(h){h=r(h);h.next();h.next().value&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(nE)),oE(f.clientStreamzService,"hovercardShown",!0))})};g=tN.prototype;
g.ngOnChanges=function(a){if(a.hovercard){var b;a=null==(b=a.hovercard)?void 0:b.currentValue;this.triggerControl.hovercard$.next(a);if(a){b=this.triggerControl;var c=this.viewContainerRef;b.config=this.config;b.overlayRef=b.overlay.create({positionStrategy:b.getPositionStrategy(),scrollStrategy:b.overlay.scrollStrategies.reposition()});b.templatePortal=new MA(a.templateRef,c);b.hovercard$.next(a)}}};g.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
g.isExpanded=function(){return this.triggerControl.isExpanded()};g.toggle=function(a){this.triggerControl.toggle(a)};g.hide=function(){this.triggerControl.hide()};ki.Object.defineProperties(tN.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});tN.\u0275fac=function(a){return new (a||tN)(F(RA),F(nd),F(Wf),F(rLb,8),F(Hv))};
tN.\u0275dir=v({type:tN,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&K("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("keydown.alt.arrowRight",function(c){var d=b.triggerControl;c.stopPropagation();c.preventDefault();d.isKeyboardActivated$.next(!0)});a&2&&nf("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:["onedevHovercardTrigger","hovercard"],enabled:["onedevHovercardActive",
"enabled"],config:["onedevHovercardConfig","config"]},features:[Ac]});
var sLb=["panel"],tLb=0,uLb=function(a,b){this.source=a;this.option=b},vLb=mi(function(){}),wLb=new jd("mat-autocomplete-default-options",{providedIn:"root",factory:Tva}),uN=function(a,b,c,d){var e=vLb.call(this)||this;e._changeDetectorRef=a;e._elementRef=b;e._activeOptionChanges=T.Subscription.EMPTY;e.showPanel=!1;e._isOpen=!1;e.displayWith=null;e.optionSelected=new Iw;e.opened=new Iw;e.closed=new Iw;e.optionActivated=new Iw;e._classList={};e.id="mat-autocomplete-"+tLb++;e.inertGroups=(null==d?void 0:
d.SAFARI)||!1;e._autoActiveFirstOption=!!c.autoActiveFirstOption;e._autoSelectActiveOption=!!c.autoSelectActiveOption;return e};U(uN,vLb);g=uN.prototype;g.ngAfterContentInit=function(){var a=this;this._keyManager=Yz(new fA(this.options));this._activeOptionChanges=this._keyManager.change.subscribe(function(b){a.isOpen&&a.optionActivated.emit({source:a,option:a.options.toArray()[b]||null})});this._setVisibility()};g.ngOnDestroy=function(){this._activeOptionChanges.unsubscribe()};
g._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};g._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};g._setVisibility=function(){this.showPanel=!!this.options.length;this._setVisibilityClasses(this._classList);this._changeDetectorRef.markForCheck()};g._emitSelectEvent=function(a){this.optionSelected.emit(new uLb(this,a))};
g._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};g._setVisibilityClasses=function(a){a[this._visibleClass]=this.showPanel;a[this._hiddenClass]=!this.showPanel};
ki.Object.defineProperties(uN.prototype,{isOpen:{configurable:!0,enumerable:!0,get:function(){return this._isOpen&&this.showPanel}},autoActiveFirstOption:{configurable:!0,enumerable:!0,get:function(){return this._autoActiveFirstOption},set:function(a){this._autoActiveFirstOption=Rg(a)}},autoSelectActiveOption:{configurable:!0,enumerable:!0,get:function(){return this._autoSelectActiveOption},set:function(a){this._autoSelectActiveOption=Rg(a)}},classList:{configurable:!0,enumerable:!0,set:function(a){a&&
a.length?this._classList=rja(a).reduce(function(b,c){b[c]=!0;return b},{}):this._classList={};this._setVisibilityClasses(this._classList);this._elementRef.nativeElement.className=""}}});uN.\u0275fac=function(a){return new (a||uN)(F(lx),F(nd),F(wLb),F(yy))};
uN.\u0275dir=v({type:uN,viewQuery:function(a,b){a&1&&(Zf(Vf,7),Zf(sLb,5));if(a&2){var c;Yf(c=ag())&&(b.template=c.first);Yf(c=ag())&&(b.panel=c.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
features:[gf]});var vN=function(){var a=uN.apply(this,arguments)||this;a._visibleClass="mat-autocomplete-visible";a._hiddenClass="mat-autocomplete-hidden";return a};U(vN,uN);vN.\u0275dir=uN.\u0275dir;vN.\u0275fac=function(){var a;return function(b){return(a||(a=cd(vN)))(b||vN)}}();
vN.\u0275cmp=v({type:vN,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&($f(c,Ppb,5),$f(c,lB,5));if(a&2){var d;Yf(d=ag())&&(b.optionGroups=d);Yf(d=ag())&&(b.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Lf([{provide:Opb,useExisting:vN}]),gf],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(a){a&1&&(Cf(),O(0,
Sva,3,4,"ng-template"))},dependencies:[vx],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});
var xLb=new jd("mat-autocomplete-scroll-strategy"),yLb={provide:xLb,deps:[RA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},zLb={provide:ux,useExisting:ac(function(){return wN}),multi:!0},xN=function(a,b,c,d,e,f,h,k,q,w,y){var E=this;this._element=a;this._overlay=b;this._viewContainerRef=c;this._zone=d;this._changeDetectorRef=e;this._dir=h;this._formField=k;this._document=q;this._viewportRuler=w;this._defaults=y;this._manuallyFloatingLabel=this._autocompleteDisabled=
this._componentDestroyed=!1;this._viewportSubscription=T.Subscription.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new T.Subject;this._windowBlurHandler=function(){E._canOpenOnNextFocus=E._document.activeElement!==E._element.nativeElement||E.panelOpen};this._onChange=function(){};this._onTouched=function(){};this.position="auto";this.autocompleteAttribute="off";this._overlayAttached=!1;this.optionSelections=(0,T.defer)(function(){var I=E.autocomplete?E.autocomplete.options:null;return I?
I.changes.pipe(We(I),Xe(function(){return T.merge.apply(null,u(I.map(function(N){return N.onSelectionChange})))})):E._zone.onStable.pipe(Me(),Xe(function(){return E.optionSelections}))});this._scrollStrategy=f};xN.prototype.ngAfterViewInit=function(){var a=this,b=this._getWindow();"undefined"!==typeof b&&this._zone.runOutsideAngular(function(){return b.addEventListener("blur",a._windowBlurHandler)})};
xN.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};xN.prototype.ngOnDestroy=function(){var a=this._getWindow();"undefined"!==typeof a&&a.removeEventListener("blur",this._windowBlurHandler);this._viewportSubscription.unsubscribe();this._componentDestroyed=!0;this._destroyPanel();this._closeKeyEventStream.complete()};
var us=function(a){a._resetLabel();a._overlayAttached&&(a.panelOpen&&a.autocomplete.closed.emit(),a.autocomplete._isOpen=a._overlayAttached=!1,a._pendingAutoselectedOption=null,a._overlayRef&&a._overlayRef.hasAttached()&&(a._overlayRef.detach(),a._closingActionsSubscription.unsubscribe()),a._componentDestroyed||a._changeDetectorRef.detectChanges())};g=xN.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return(0,T.merge)((0,T.fromEvent)(this._document,"click"),(0,T.fromEvent)(this._document,"auxclick"),(0,T.fromEvent)(this._document,"touchend")).pipe(De(function(b){b=Pg(b);var c=a._formField?a._formField._elementRef.nativeElement:null,d=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;return a._overlayAttached&&b!==a._element.nativeElement&&a._document.activeElement!==a._element.nativeElement&&(!c||!c.contains(b))&&(!d||!d.contains(b))&&!!a._overlayRef&&
!a._overlayRef.overlayElement.contains(b)}))};g.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this._element.nativeElement.disabled=a};
g._handleKeydown=function(a){var b=a.keyCode,c=gi(a);27!==b||c||a.preventDefault();if(this.activeOption&&13===b&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){var d=this.autocomplete._keyManager.activeItem,e=38===b||40===b;if(9===b||e&&!c&&this.panelOpen)this.autocomplete._keyManager.onKeydown(a);else e&&this._canOpen()&&(this._attachOverlay(),this._floatLabel());if(e||this.autocomplete._keyManager.activeItem!==d)this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||
0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value))}};
g._handleInput=function(a){var b=a.target,c=b.value;"number"===b.type&&(c=""==c?null:parseFloat(c));this._previousValue!==c&&(this._previousValue=c,this._pendingAutoselectedOption=null,this._onChange(c),this._canOpen()&&this._document.activeElement===a.target&&(this._attachOverlay(),this._floatLabel()))};g._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};
g._handleClick=function(){this._canOpen()&&!this.panelOpen&&(this._attachOverlay(),this._floatLabel())};g._floatLabel=function(a){this._formField&&"auto"===this._formField.floatLabel&&((void 0===a?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};g._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)};
g._subscribeToClosingActions=function(){var a=this,b=this._zone.onStable.pipe(Me()),c=this.autocomplete.options.changes.pipe(Ze(function(){return Cpb(a._positionStrategy)}),Ke(0));return(0,T.merge)(b,c).pipe(Xe(function(){a._zone.run(function(){var d=a.panelOpen;a._resetActiveItem();a.autocomplete._setVisibility();a._changeDetectorRef.detectChanges();a.panelOpen&&a._overlayRef.updatePosition();d!==a.panelOpen&&(a.panelOpen?a.autocomplete.opened.emit():a.autocomplete.closed.emit())});return a.panelClosingActions}),
Me()).subscribe(function(d){return a._setValueAndClose(d)})};g._destroyPanel=function(){this._overlayRef&&(us(this),this._overlayRef.dispose(),this._overlayRef=null)};g._assignOptionValue=function(a){a=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(a):a;this._updateNativeInputValue(null!=a?a:"")};g._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
g._setValueAndClose=function(a){if(a=a?a.source:this._pendingAutoselectedOption)this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),this.autocomplete._emitSelectEvent(a),this._element.nativeElement.focus();us(this)};g._clearPreviousSelectedOption=function(a){this.autocomplete.options.forEach(function(b){b!==a&&b.selected&&b.deselect()})};
g._attachOverlay=function(){var a=this,b=this._overlayRef;if(b)this._positionStrategy.setOrigin(this._getConnectedElement()),b.updateSize({width:this._getPanelWidth()});else{var c;this._portal=new MA(this.autocomplete.template,this._viewContainerRef,{id:null==(c=this._formField)?void 0:c.getLabelId()});this._overlayRef=b=this._overlay.create(this._getOverlayConfig());this._handleOverlayEvents(b);this._viewportSubscription=this._viewportRuler.change().subscribe(function(){a.panelOpen&&b&&b.updateSize({width:a._getPanelWidth()})})}b&&
!b.hasAttached()&&(b.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());c=this.panelOpen;this.autocomplete._setVisibility();this.autocomplete._isOpen=this._overlayAttached=!0;this.panelOpen&&c!==this.panelOpen&&this.autocomplete.opened.emit()};
g._getOverlayConfig=function(){var a;return new AA({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null==(a=this._defaults)?void 0:a.overlayPanelClass})};g._getOverlayPosition=function(){var a=GA(FA(JA(this._overlay.position(),this._getConnectedElement()),!1),!1);this._setStrategyPositions(a);return this._positionStrategy=a};
g._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass;c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];b="above"===this.position?c:"below"===this.position?b:[].concat(u(b),u(c));DA(a,b)};
g._getConnectedElement=function(){if(this.connectedTo)var a=this.connectedTo.elementRef;else this._formField?(a=this._formField,a=a._connectionContainerRef||a._elementRef):a=this._element;return a};g._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};g._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};g._resetActiveItem=function(){var a=this.autocomplete;a.autoActiveFirstOption?dA(a._keyManager):a._keyManager.setActiveItem(-1)};
g._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this._autocompleteDisabled};g._getWindow=function(){var a;return(null==(a=this._document)?void 0:a.defaultView)||window};g._scrollToOption=function(a){var b=this.autocomplete,c=ula(a,b.options,b.optionGroups);0===a&&1===c?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(vla(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
g._handleOverlayEvents=function(a){var b=this;a.keydownEvents().subscribe(function(c){if(27===c.keyCode&&!gi(c)||38===c.keyCode&&gi(c,"altKey")){if(b._pendingAutoselectedOption){var d;b._updateNativeInputValue(null!=(d=b._valueBeforeAutoSelection)?d:"");b._pendingAutoselectedOption=null}b._closeKeyEventStream.next();b._resetActiveItem();c.stopPropagation();c.preventDefault()}})};
ki.Object.defineProperties(xN.prototype,{autocompleteDisabled:{configurable:!0,enumerable:!0,get:function(){return this._autocompleteDisabled},set:function(a){this._autocompleteDisabled=Rg(a)}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},panelClosingActions:{configurable:!0,enumerable:!0,get:function(){var a=this;return(0,T.merge)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(De(function(){return a._overlayAttached})),
this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(De(function(){return a._overlayAttached})):(0,T.of)()).pipe(C(function(b){return b instanceof Zpb?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});xN.\u0275fac=function(a){return new (a||xN)(F(nd),F(RA),F(Wf),F(ef),F(lx),F(xLb),F(hA,8),F(WB,9),F(ii,8),F(wA),F(wLb,8))};
xN.\u0275dir=v({type:xN,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ac]});var wN=function(){xN.apply(this,arguments);this._aboveClass="mat-autocomplete-panel-above"};U(wN,xN);
wN.\u0275fac=function(){var a;return function(b){return(a||(a=cd(wN)))(b||wN)}}();
wN.\u0275dir=v({type:wN,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&K("focusin",function(){return b._handleFocus()})("blur",function(){return b._onTouched()})("input",function(c){return b._handleInput(c)})("keydown",function(c){return b._handleKeydown(c)})("click",function(){return b._handleClick()});a&2&&nf("autocomplete",b.autocompleteAttribute)("role",b.autocompleteDisabled?null:
"combobox")("aria-autocomplete",b.autocompleteDisabled?null:"list")("aria-activedescendant",b.panelOpen&&b.activeOption?b.activeOption.id:null)("aria-expanded",b.autocompleteDisabled?null:b.panelOpen.toString())("aria-owns",b.autocompleteDisabled||!b.panelOpen?null:null==b.autocomplete?null:b.autocomplete.id)("aria-haspopup",b.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Lf([zLb]),gf]});
var yN=function(){};yN.\u0275fac=function(a){return new (a||yN)};yN.\u0275mod=rc({type:yN});yN.\u0275inj=fc({providers:[yLb],imports:[[UA,oB,VA,Mx],xA,oB,VA]});
var ALb=["searchBox"],zN=function(a,b,c,d,e,f,h,k,q){this.cdr=a;this.userApi=c;this.bookmarkGroupsApi=d;this.hotlistApi=e;this.paths=f;this.analytics=h;this.errorHandler=k;this.appEvents=q;this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new Iw;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.query="";this.matches=[];this.currentUserEmail=b.getUserEmail()};
zN.prototype.ngOnInit=function(){this.allowStarring&&BLb(this)};
var BLb=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();a.userApi.getUserSidebar().then(function(b){if(a.showGroups){var c,d=r(null!=(c=b.bookmarkGroups)?c:[]);for(c=d.next();!c.done;c=d.next()){c=c.value;c.starred&&a.favoriteBookmarkGroups.add(c.id);var e=void 0;c=r(null!=(e=c.sublinks)?e:[]);for(e=c.next();!e.done;e=c.next())e=e.value,e.starred&&a.favoriteHotlists.add(e.id)}}if(a.showHotlists){var f;b=r(null!=(f=b.hotlists)?f:[]);for(e=b.next();!e.done;e=b.next())f=e.value,
f.starred&&a.favoriteHotlists.add(f.id)}a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g=zN.prototype;g.reset=function(){this.query="";this.matches=[]};g.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};g.onQueryChange=function(){this.matches=[];this.query&&"string"!==typeof this.query&&(this.query="");this.search()};
g.search=function(){var a=this,b=this.nextRequestIndex++;if(this.query){var c=this.showGroups?this.bookmarkGroupsApi.query(this.query):Promise.resolve([]);var d=this.showHotlists?this.hotlistApi.queryHotlists(this.query):Promise.resolve([]);Promise.all([c,d]).then(function(e){var f=r(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var h=r(e),k=h.next();!k.done;k=h.next()){k=k.value;var q=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(q);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(q)}h=
r(f);for(k=h.next();!k.done;k=h.next())k=k.value,q=k.hotlistId,k.href=a.paths.viewHotlist(q),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(q);a.matches=[].concat(u(e),u(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};g.shouldShowStar=function(a){return this.allowStarring&&!Ml(a.adminUsers).includes(this.currentUserEmail)};
g.toggleStar=function(a){var b=this;if(a.isGroup){var c=a.bookmarkGroupId;var d="BOOKMARK_GROUP"}else c=a.hotlistId,d="HOTLIST";a.isStarred=!a.isStarred;var e=function(){b.appEvents.hotlistChanged.next();b.appEvents.favoritesModified.next();BLb(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(bo(this.analytics,"hotlistSearch","starItem"),this.userApi.saveFavorite(c).then(e)):(bo(this.analytics,"hotlistSearch","unstarItem"),this.userApi.deleteFavorite(c).then(e))};
zN.\u0275fac=function(a){return new (a||zN)(F(uI,2),F(pH),F(PJ),F(ZM),F(pL),F(dL),F(SM),F(SK),F(WK))};
zN.\u0275cmp=v({type:zN,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(Zf(ALb,5),Zf(wN,5));if(a&2){var c;Yf(c=ag())&&(b.searchBoxEl=c.first);Yf(c=ag())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},features:[Lf([uI])],decls:13,vars:6,consts:[[1,"bv2-hotlist-search"],["id","hotlist-search-input-box","type","text","placeholder",
"Enter query","role","combobox",3,"ngModel","matAutocomplete","ngModelChange","keydown.space"],["searchBox",""],[4,"ngIf"],[1,"bv2-hotlist-search-dropdown",3,"optionSelected"],["auto","matAutocomplete"],["class","bv2-hotlist-search-dropdown-item",3,"value",4,"ngFor","ngForOf"],[1,"bv2-hotlist-search-subtext"],[1,"bv2-hotlist-search-dropdown-item",3,"value"],[1,"flex-kids-x","align-items-center","gap-xxs"],[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],["itemHovercard","onedevHovercard"],
[3,"hotlist",4,"ngIf"],[3,"bookmarkGroup",4,"ngIf"],[1,"bv2-hotlist-name",3,"onedevHovercardTrigger"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"hotlist"],[3,"bookmarkGroup"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"input",1,2),K("ngModelChange",function(d){return b.query=d})("ngModelChange",function(){return b.onQueryChange()})("keydown.space",function(d){var e;if(null==(e=b.autocomplete)?0:e.activeOption)b.toggleStar(b.autocomplete.activeOption.value),d.preventDefault(),
d.stopPropagation()}),H(),O(3,Uva,1,0,"b-spinner",3),G(4,"mat-autocomplete",4,5),K("optionSelected",function(d){b.itemSelect.emit(d.option.value)}),O(6,Yva,9,8,"mat-option",6),H(),G(7,"div",7),P(8,' e.g., "foo bar admin:user@google.com" '),J(9,"br"),P(10,' or "foo bar admin:group@google.com" '),J(11,"br"),P(12," Only identities directly listed as Admins can be searched. "),H()());if(a&2){var c=Hf(5);B(1);D("ngModel",b.query)("matAutocomplete",c);nf("autofocus",b.focusOnInit)("aria-label","Add query for searching "+
(b.showGroups?"bookmark groups":"hotlists"));B(2);D("ngIf",b.isLoading());B(3);D("ngForOf",b.matches)}},dependencies:[wx,sx,iN,jN,pN,tN,mN,kN,Fg,by,hy,vN,wN,lB],encapsulation:2});
var CLb=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],AN=function(){};AN.\u0275fac=function(a){return new (a||AN)};AN.\u0275dir=v({type:AN,selectors:[["xap-dialog-layout-subtitle"]]});var BN=function(a,b,c){this.el=a;this.cdRef=b;this.ngZone=c;this.destroyed=new T.ReplaySubject;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
BN.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){DLb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});ELb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};BN.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var DLb=function(a){if(!window.ResizeObserver)return(0,T.of)(FLb(a.el.nativeElement));var b;return(0,T.fromEventPattern)(function(c){b=new ResizeObserver(function(){c(FLb(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(Le(),Ye(a.destroyed))},ELb=function(a){return(0,T.fromEvent)(a.el.nativeElement,"scroll").pipe(Zva(),C(function(){return a.getScrollPosition(a.el.nativeElement)}),Le(),Ye(a.destroyed))},FLb=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
BN.prototype.getScrollPosition=function(a){return 0===a.scrollTop?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};ki.Object.defineProperties(BN.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});BN.\u0275fac=function(a){return new (a||BN)(F(nd),F(lx),F(ef))};
BN.\u0275dir=v({type:BN,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&sf("xap-dialog-layout-content-scrollable",b.scrollable)("xap-dialog-layout-bottom-scroll-stroke","bottom"!==b.scrollPosition)("xap-dialog-layout-top-scroll-stroke","top"!==b.scrollPosition)}});var CN=function(){};CN.\u0275fac=function(a){return new (a||CN)};
CN.\u0275cmp=v({type:CN,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&$f(c,AN,4);if(a&2){var d;Yf(d=ag())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&sf("xap-dialog-layout-bordered-header",b.subtitle)},ngContentSelectors:["xap-dialog-layout-title","xap-dialog-layout-subtitle","xap-dialog-layout-content","xap-dialog-layout-actions"],decls:5,vars:0,consts:[[1,"xap-dialog-header-container"]],template:function(a){a&1&&(Cf(CLb),
G(0,"header",0),Df(1),Df(2,1),H(),Df(3,2),Df(4,3))},styles:[".xap-dialog-layout{display:block;padding:24px 24px 8px;overflow-x:hidden}xap-dialog-layout-title{display:block;padding:0}xap-dialog-layout-subtitle{display:block;padding:0 0 16px}xap-dialog-layout-content{display:block;padding:0 0 16px}xap-dialog-layout-actions .mat-button-base,xap-dialog-layout-actions .mat-mdc-button-base{margin:8px 16px 0 -8px;padding:0 8px}"],encapsulation:2});
var GLb=Fh({opacity:0}),HLb=Fh({opacity:1}),ILb=Dh("dialogContainer",[Gh("void, hidden",GLb),Gh("visible",HLb),Hh("void => *, * => visible",Eh("200ms cubic-bezier(0.0,0.0,0.2,1)",HLb)),Hh("* => void, * => hidden",Eh("200ms cubic-bezier(0.4,0.0,0.2,1)",GLb))]);
var JLb=new jd("XAP_IDCO"),DN=function(a){this._isDisposed=!1;this.options=a;this.animationState="hidden"};U(DN,NA);DN.prototype.ngAfterViewInit=function(){};DN.prototype.attachComponentPortal=function(a){return this.portalOutlet.attachComponentPortal(a)};DN.prototype.attachTemplatePortal=function(a){return this.portalOutlet.attachTemplatePortal(a)};DN.\u0275fac=function(a){return new (a||DN)(F(JLb))};
DN.\u0275cmp=v({type:DN,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&Zf(PA,7);if(a&2){var c;Yf(c=ag())&&(b.portalOutlet=c.first)}},hostAttrs:["role","dialog","tabindex","-1",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:2,hostBindings:function(a,b){a&2&&(nf("aria-label",b.options.dialogLabel),Bf("@dialogContainer",b.animationState))},features:[gf],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(G(0,
"div"),O(1,$va,1,0,"ng-template",0),H())},dependencies:[PA],styles:[".xap-inline-dialog-container{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);border-radius:8px;overflow:auto}"],encapsulation:2,data:{animation:[ILb]},changeDetection:0});
var KLb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:8},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-8},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-8},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:8}],LLb={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},EN=function(a,b,c,d,e,f,h,k){var q=this;this.ngZone=a;this.overlay=b;this.elementRef=c;this.viewContainerRef=d;this.document=e;this.focusTrapFactory=
f;this.ariaDescriber=h;this.injector=k;this.disabledInternal=!1;this.dialogLabel=null;this.triggerDescription="Press space for more information.";this.beforeOpened=new Iw;this.opened=new Iw;this.closed=new Iw;this.destroyed=new T.ReplaySubject;this.openStatusChange=new T.BehaviorSubject(!1);this.openings=this.openStatusChange.pipe(De(function(w){return w&&!q.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;MLb(this,c.nativeElement);this.attachKeyboardCloseEventListeners(c.nativeElement);
NLb(this,c.nativeElement)};EN.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||npb(this.ariaDescriber,a,this.triggerDescription)};EN.prototype.ngOnDestroy=function(){FN(this);this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var MLb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(b,"keydown").pipe(Ye(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 13:a.openDialog();break;case 32:c.preventDefault()}});(0,T.fromEvent)(b,"keyup").pipe(Ye(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 32:a.openDialog()}})})},NLb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(b,"focus").pipe(De(function(){return 0<a.beforeOpened.observers.length}),Ye(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
EN.prototype.openDialog=function(){var a=this;if(!this.disabled){var b;if(null==(b=this.overlayRef)||!b.hasAttached()){var c=this.portal;null!=c&&this.ngZone.run(function(){a.dialogContainerRef=OLb(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);a.dialogContainerRef.instance.animationState="visible";a.opened.observers.length&&setTimeout(function(){a.opened.emit()},200)})}}};
var FN=function(a){var b;null!=(b=a.overlayRef)&&b.hasAttached()&&(a.dialogContainerRef.instance.animationState="hidden",setTimeout(function(){a.ngZone.run(function(){a.overlayRef&&a.overlayRef.detach();a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0);a.restoreFocus();a.dialogContainerRef&&(a.dialogContainerRef.destroy(),a.dialogContainerRef=void 0);a.closed.emit()})},200))};
EN.prototype.trapFocus=function(a){var b=this.document.activeElement,c=this.elementRef.nativeElement;b&&b===c&&(this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),By(this.focusTrap),Dy(this.focusTrap))};
EN.prototype.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&"function"===typeof a.focus){var b=this.dialogContainerRef.location.nativeElement,c=this.document.activeElement;c&&b.contains(c)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};EN.prototype.createPositionStrategy=function(a){return DA(JA(this.overlay.position(),this.elementRef),a).setOrigin(this.elementRef)};
var OLb=function(a){var b=cf({parent:a.injector,providers:[{provide:JLb,useValue:{dialogLabel:a.dialogLabel}}]});b=new LA(DN,null,b);null==a.overlayRef&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(KLb)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&0<a.overlayPositions.length&&Apb(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
ki.Object.defineProperties(EN.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof Vf?new MA(a,this.viewContainerRef):new LA(a,this.viewContainerRef))}},disabled:{configurable:!0,enumerable:!0,set:function(a){(this.disabledInternal=a)&&FN(this)},get:function(){return this.disabledInternal}},panelClass:{configurable:!0,enumerable:!0,set:function(a){if(this.panelClassInternal!==a){if(this.panelClassInternal){var b;null==(b=this.overlayRef)||b.removePanelClass(this.panelClassInternal)}if(a){var c;
null==(c=this.overlayRef)||c.addPanelClass(a)}this.panelClassInternal=a}}}});EN.\u0275fac=function(a){return new (a||EN)(F(ef),F(RA),F(nd),F(Wf),F(Document),F(Wz),F(Sz),F(Hv))};EN.\u0275dir=v({type:EN,hostVars:1,hostBindings:function(a,b){a&2&&nf("data-disabled",b.disabled)},inputs:{dialogLabel:"dialogLabel",overlaySize:"overlaySize",overlayPositions:"overlayPositions",triggerDescription:"triggerDescription",panelClass:"panelClass"},outputs:{beforeOpened:"beforeOpened",opened:"opened",closed:"closed"}});
var GN=function(a,b,c,d,e,f,h,k){EN.call(this,a,b,c,d,e,f,h,k);this.attachMouseEventListeners(c.nativeElement)};U(GN,EN);g=GN.prototype;g.ngOnInit=function(){EN.prototype.ngOnInit.call(this);this.listenForOpenEvents()};g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(Ye(this.destroyed)).subscribe(function(b){b?a.openDialog():FN(a)});this.openings.pipe(De(function(b){return b&&0<a.beforeOpened.observers.length}),Nga(function(){return a.openStatusChange.pipe(De(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"mouseenter").pipe(Ye(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(0,T.fromEvent)(a,"click").pipe(Ye(b.destroyed)).subscribe(function(d){d.target.closest("[xapInlineDialogClose]")&&b.openStatusChange.value?b.closingDialog():(b.openingDialog(),d.stopPropagation())});var c;null==(c=b.overlayRef)||c.backdropClick().pipe(Ye(b.destroyed)).subscribe(function(){b.openStatusChange.value&&
b.closingDialog()})})};g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"keyup").pipe(Ye(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 27:FN(b);break;case 13:case 32:d.closest("[xapInlineDialogClose]")&&FN(b)}})})};g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};g.closingDialog=function(){this.openStatusChange.next(!1)};
g.createOverlayConfig=function(a){return new AA(Object.assign({},LLb,{positionStrategy:EN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};GN.\u0275fac=function(a){return new (a||GN)(F(ef),F(RA),F(nd),F(Wf),F(ii),F(Wz),F(Sz),F(Hv))};
GN.\u0275dir=v({type:GN,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:["xapInlineDialogClick","dialog"],disabled:["xapInlineDialogDisabled","disabled"]},exportAs:["xapInlineDialogClick"],features:[gf]});
var PLb=["*"],QLb=function(){return".xap-icon-trigger,.xap-text-trigger{pointer-events:auto}.xap-text-trigger{-webkit-text-decoration:underline dashed #80868b;-moz-text-decoration:underline dashed #80868b;text-decoration:underline dashed #80868b;text-underline-position:under;text-underline-offset:1px;text-underline-thickness:1px}"},HN=function(){this.disabled=!1};HN.\u0275fac=function(a){return new (a||HN)};
HN.\u0275cmp=v({type:HN,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:3,hostBindings:function(a,b){a&2&&(nf("tabindex",b.disabled?-1:0),sf("xap-text-trigger",!b.disabled))},inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:PLb,decls:1,vars:0,template:function(a){a&1&&(Cf(),Df(0))},styles:[QLb()],encapsulation:2});var IN=function(){this.disabled=!1};IN.\u0275fac=function(a){return new (a||IN)};
IN.\u0275cmp=v({type:IN,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:PLb,decls:1,vars:0,template:function(a){a&1&&(Cf(),Df(0))},styles:[QLb()],encapsulation:2});
var JN=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new Iw};JN.\u0275fac=function(a){return new (a||JN)};
JN.\u0275cmp=v({type:JN,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&Zf(GN,5);if(a&2){var c;Yf(c=ag())&&(b.dialog=c.first)}},inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",ariaLabel:["aria-label","ariaLabel"]},outputs:{itemSelect:"itemSelect"},decls:4,vars:2,consts:[[3,"xapInlineDialogClick"],["matTooltip","Search","svgIcon","search"],["popup",""],[3,"showGroups","showHotlists","allowStarring","focusOnInit","itemSelect"]],template:function(a,
b){a&1&&(G(0,"xap-icon-trigger",0),J(1,"mat-icon",1),H(),O(2,awa,3,4,"ng-template",null,2,gg));if(a&2){var c=Hf(3);D("xapInlineDialogClick",c);nf("aria-label",b.ariaLabel)}},dependencies:[CN,BN,$E,LE,GN,IN,zN],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});
var KN=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[]};KN.prototype.handleBookmarkGroupOpen=function(a){bo(this.analytics,"sidebarBookmarkGroups","open");this.location.url(this.paths.viewBookmarkGroup(a))};KN.prototype.handleBookmarkGroupDashboard=function(a){bo(this.analytics,"sidebarBookmarkGroups","dashboard");this.location.url(this.paths.dashboard(a))};KN.prototype.editBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};
KN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};KN.\u0275fac=function(a){return new (a||KN)(F(cL),F(SM),F(dL),F(cN))};
KN.\u0275cmp=v({type:KN,selectors:[["sidebar-bookmark-groups"]],inputs:{bookmarkGroups:"bookmarkGroups"},decls:7,vars:3,consts:[[1,"bv2-nav-section"],[3,"header","content","expanded"],["zippyHeader",""],["zippyContent",""],["aria-label","Search for bookmark groups",3,"showHotlists","itemSelect"],["class","bookmark-group-list",4,"ngIf"],[1,"bookmark-group-list"],[3,"title",4,"ngFor","ngForOf"],[3,"title"],[3,"header","content"],["bgZippyHeader",""],["bgZippyContent",""],[1,"bv2-nav-item","bv2-nav-bookmark-group"],
[1,"bv2-nav-item-text"],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions","class","bv2-nav-item-menubutton keep-focus-ring",3,"matMenuTriggerFor","click",4,"ngIf"],["topMenu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor","click"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item",
"","class","bv2-user-hotlists-edit-menuitem",3,"click",4,"ngIf"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],["class","bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"href","click"],["mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions","class","bv2-nav-item-menubutton",3,"matMenuTriggerFor",4,"ngIf"],["innerMenu",
""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"]],template:function(a){a&1&&(G(0,"div",0),J(1,"hr"),G(2,"sidebar-zippy",1),O(3,bwa,3,1,"ng-template",null,2,gg),O(5,qwa,1,1,"ng-template",null,3,gg),H()());if(a&2){var b=Hf(4),c=Hf(6);B(2);D("header",b)("content",c)("expanded",!0)}},dependencies:[wx,sx,JN,LE,pB,QE,OE,TE,NE,gN],encapsulation:2});
var LN=function(a,b,c,d,e){this.location=a;this.analytics=c;this.sidebar=d;this.paths=e;this.userEmail=b.getUserEmail()};LN.prototype.getUserEmail=function(){return this.userEmail};LN.prototype.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};LN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};LN.\u0275fac=function(a){return new (a||LN)(F(cL),F(pH),F(SM),F(cN),F(dL))};
LN.\u0275cmp=v({type:LN,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},decls:7,vars:3,consts:[[1,"bv2-nav-section"],[3,"header","content","expanded"],["zippyHeader",""],["zippyContent",""],["aria-label","Search for hotlists",3,"showGroups","itemSelect"],["class","hotlist-list",4,"ngIf"],[1,"hotlist-list"],["class","bv2-nav-item bv2-user-hotlists-hotlist-item",3,"selected","id","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"href",
"click"],[1,"bv2-nav-item-text"],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring","class","bv2-nav-item-menubutton",3,"matMenuTriggerFor",4,"ngIf"],["menu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item","","class","bv2-user-hotlists-edit-menuitem",
3,"click",4,"ngIf"]],template:function(a){a&1&&(G(0,"div",0),J(1,"hr"),G(2,"sidebar-zippy",1),O(3,rwa,3,1,"ng-template",null,2,gg),O(5,ywa,1,1,"ng-template",null,3,gg),H()());if(a&2){var b=Hf(4),c=Hf(6);B(2);D("header",b)("content",c)("expanded",!0)}},dependencies:[wx,sx,JN,LE,pB,QE,OE,TE,NE,gN],encapsulation:2});
var MN=function(a){Z.call(this,a)};U(MN,Z);MN.prototype.getSearch=function(){return m(this,Fm,1)};MN.prototype.setSearch=function(a){Ab(this,1,a)};MN.prototype.toObject=function(){var a=null!=this?{search:dGb(void 0,this.getSearch())}:void 0;return a};MN.messageId="b.SearchResponse";
var NN=function(a){this.jspbExecutor=a};NN.prototype.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:MN}).pipe(C(zwa))};NN.prototype.create=function(a,b){var c=new Fm;c.setName(a);c.setQuery(b);return this.jspbExecutor.post({url:"action/saved_searches",body:c,responseConstructor:MN}).pipe(C(zwa))};
NN.prototype.update=function(a,b){var c=new Fm;l(c,1,String(b.searchId));c.setOwnerUser(Sl(b.ownerUser));c.setName(b.name);c.setDescription(b.description);c.setQuery(b.query);var d;c.setSortOrderList((null!=(d=b.sortOrder)?d:[]).map(Zra));var e;c.setDisplayColumnList((null!=(e=b.displayColumn)?e:[]).map(Xra));var f;c.setAdminUsersList((null!=(f=b.adminUsers)?f:[]).map(Sl));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:c,responseConstructor:MN}).pipe(C(zwa))};
NN.prototype.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};NN.\u0275fac=function(a){return new (a||NN)(t(pI))};NN.\u0275prov=ec({token:NN,factory:NN.\u0275fac,providedIn:"root"});var ON=function(a){this.observableResources=a};ON.prototype.get=function(a){return(0,T.firstValueFrom)(this.observableResources.get(a))};ON.prototype.create=function(a,b){return(0,T.firstValueFrom)(this.observableResources.create(a,b))};
ON.prototype.update=function(a,b){return(0,T.firstValueFrom)(this.observableResources.update(a,b))};ON.prototype.delete=function(a){return(0,T.firstValueFrom)(this.observableResources.delete(a))};ON.\u0275fac=function(a){return new (a||ON)(t(NN))};ON.\u0275prov=ec({token:ON,factory:ON.\u0275fac,providedIn:"root"});
var PN=function(a,b,c,d,e,f,h,k,q,w){this.cdr=a;this.location=b;this.savedSearchApi=c;this.paths=d;this.butterBar=e;this.analytics=f;this.sidebar=h;this.errorHandler=k;this.confirmationDialogService=q;this.appEvents=w;this.searches=[]};PN.prototype.isSelected=function(a){return wIb(this.paths,a.href)};PN.prototype.openEditSavedSearch=function(a){this.location.url(this.paths.editSavedSearch(a))};
var Cwa=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Nn("Are you sure you want to delete this search?"),onConfirm:function(){RLb(a,b)}})},RLb=function(a,b){var c=b.id;PK(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});PK(a.butterBar,'Deleted saved search "'+b.name+'".');bo(a.analytics,"sidebarSavedSearches","deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,
d)})};PN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};PN.\u0275fac=function(a){return new (a||PN)(F(uI,2),F(cL),F(ON),F(dL),F(OK),F(SM),F(cN),F(SK),F(aN),F(WK))};
PN.\u0275cmp=v({type:PN,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},features:[Lf([uI])],decls:7,vars:3,consts:[[1,"bv2-nav-section","bv2-nav-section-savedsearches"],[3,"header","content","expanded"],["zippyHeader",""],["zippyContent",""],["class","saved-search-list",4,"ngIf"],[1,"saved-search-list"],["class","bv2-nav-item",3,"selected","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-item-link",3,"href","click"],[1,"bv2-nav-item-text"],["mat-icon-button",
"","disableRipple","true","aria-label","Saved search actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["menu",""],["matMenuContent",""],["mat-menu-item","",1,"bv2-user-saved-searches-edit-menuitem",3,"click"],["mat-menu-item","","class","bv2-user-saved-searches-edit-menuitem",3,"click",4,"ngIf"]],template:function(a){a&1&&(G(0,"div",0),J(1,"hr"),G(2,"sidebar-zippy",1),O(3,Awa,2,0,"ng-template",null,2,gg),O(5,Gwa,1,1,"ng-template",null,3,gg),H()());if(a&
2){var b=Hf(4),c=Hf(6);B(2);D("header",b)("content",c)("expanded",!0)}},dependencies:[wx,sx,LE,pB,QE,OE,TE,NE,gN],encapsulation:2});
var SLb=/^\s*hotlistid:(\d+)\s*$/i,QN=function(a,b){this.$log=a;this.contextSensitiveRegistry=b;this.currentSearch="";this.searchTextChange$=new T.Subject;this.searchHandlerStack=[]},TLb=function(a,b){return a.searchTextChange$.subscribe(b)};QN.prototype.clear=function(){RN(this,"")};
var RN=function(a,b){a.currentSearch=b;(b=a.currentSearch.match(/(?:\s|^)componentid:(\d+)\s*/i))?a.contextSensitiveRegistry.componentIdOverride$.next(Ki(b[1])):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentSearch.match(SLb))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Ki(b[1])):a.contextSensitiveRegistry.hotlistIdOverride$.next(null);a.searchTextChange$.next(a.currentSearch)},ULb=function(a){return"assignee:"+a+" status:open"};QN.prototype.getStarred=function(){return"star:true"};
QN.prototype.isStarred=function(){return this.currentSearch===this.getStarred()};QN.prototype.getVoted=function(){return"vote:true"};
var Mwa=function(a){return a.currentSearch===a.getVoted()},VLb=function(a){return"verifier:"+a+" status:open | status:fixed"},WLb=function(a){return(a=a.currentSearch.match(SLb))?Ki(a[1]):0},XLb=function(a){return(a=a.currentSearch.match(/^\s*savedsearchid:(\d+)\s*$/i))?Ki(a[1]):0},YLb=function(a,b){a.searchHandlerStack.push(b);return function(){wa(a.searchHandlerStack,b)}};QN.\u0275fac=function(a){return new (a||QN)(t(RK),t(vM))};QN.\u0275prov=ec({token:QN,factory:QN.\u0275fac,providedIn:"root"});
var ZLb=OM.setStringAt("edited-ids"),$Lb=OM.getStringAt("edited-ids"),aMb=OM.setStringAt("viewed-ids"),bMb=OM.getStringAt("viewed-ids"),SN=function(a){var b=this;this.appEvents=a;this.stop$=new T.Subject;this.edited=new Map;this.viewed=new Map;this.addViewed=function(c){Hwa(b.viewed,c);aMb(Array.from(b.viewed.keys()).join(","))};this.addEdited=function(c){Hwa(b.edited,c);ZLb(Array.from(b.edited.keys()).join(","))}};SN.\u0275fac=function(a){return new (a||SN)(t(WK))};
SN.\u0275prov=ec({token:SN,factory:SN.\u0275fac,providedIn:"root"});
var TN=function(a,b,c,d,e,f,h,k,q){this.cdr=a;this.activeSession=b;this.butterBar=c;this.currentSearch=d;this.paths=e;this.userPreferencesManager=f;this.sidebar=h;this.location=k;this.issueLru=q;this.enabledVotedNav=rH(this.activeSession,"enableUpvotedInNav")&&this.activeSession.isInternalSession();this.votedPath=this.paths.listIssues({q:this.currentSearch.getVoted()});this.recentlyViewedPath=cMb(this)?"recent":void 0;this.destroyed$=new Iw;this.hasPreferredHomepage$=this.userPreferencesManager.preferences$.pipe(C(function(w){w=
(w||oH).homepagePreferences;return!(!w||!w.resourceType)}),Le());this.appName=b.getAppName();this.userEmail=b.getUserEmail();this.environmentType=b.getEnvironmentType();this.assignedPath=e.listIssues({q:ULb(this.userEmail)});this.starredPath=e.listIssues({q:d.getStarred()});this.ccdPath=e.listIssues({q:"cc:"+this.userEmail});this.verifiedPath=e.listIssues({q:VLb(this.userEmail)});this.reportedPath=e.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=e.listComponents();this.createHotlistPath=
e.createHotlist();this.createBookmarkGroupPath=e.createBookmarkGroup();this.sidebarData=this.sidebar.sidebarData};TN.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(Ye(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};TN.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var Kwa=function(a){PK(a.butterBar,"Updating homepage...",0);a.userPreferencesManager.clearHomepagePreferences().pipe(Ye(a.destroyed$)).subscribe(function(){PK(a.butterBar,"Homepage updated")})};TN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};var cMb=function(a){var b=rH(a.activeSession,"enableRecentlyViewedInNav");a=0<Array.from(a.issueLru.viewed.keys()).length;return b&&a};TN.\u0275fac=function(a){return new (a||TN)(F(uI,2),F(pH),F(OK),F(QN),F(dL),F(zI),F(cN),F(Tx),F(SN))};
TN.\u0275cmp=v({type:TN,selectors:[["b-sidebar"]],features:[Lf([uI])],decls:46,vars:28,consts:[[1,"bv2-nav-header"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],["id","canned-searches-assign",1,"bv2-nav-item"],[3,"href","click"],["svgIcon","issue-status-accepted",1,"canned-search-icon"],[4,"ngIf"],["menu",""],["matMenuContent",""],["svgIcon","star-filled",1,"canned-search-icon"],["svgIcon","person-add-18px",1,"canned-search-icon"],["svgIcon",
"user-attributes",1,"canned-search-icon"],[3,"selected",4,"ngIf"],["svgIcon","issue-status-fixed",1,"canned-search-icon"],[3,"bookmarkGroups"],[3,"searches"],[3,"hotlists"],[3,"hotlists","bookmarkGroups"],[1,"bv2-nav-manage-link"],[3,"href"],["mat-icon-button","","disableRipple","true","aria-label","Assigned issues actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["svgIcon","exposure_plus_1_24px",
1,"canned-search-icon"],["svgIcon","time-24px",1,"canned-search-icon"]],template:function(a,b){a&1&&(G(0,"div",0),J(1,"b-create-issue-button"),H(),G(2,"div",1)(3,"div",2)(4,"ul",3)(5,"li",4)(6,"a",5),K("click",function(c){return b.onAnchorClick(b.assignedPath,c)}),J(7,"mat-icon",6),P(8," Assigned to me "),H(),O(9,Jwa,3,1,"ng-container",7),Q(10,"async"),G(11,"mat-menu",null,8),O(13,Lwa,2,0,"ng-template",9),H()(),G(14,"li")(15,"a",5),K("click",function(c){return b.onAnchorClick(b.starredPath,c)}),J(16,
"mat-icon",10),P(17," Starred by me "),H()(),G(18,"li")(19,"a",5),K("click",function(c){return b.onAnchorClick(b.ccdPath,c)}),J(20,"mat-icon",11),P(21," CC'd to me "),H()(),G(22,"li")(23,"a",5),K("click",function(c){return b.onAnchorClick(b.reportedPath,c)}),J(24,"mat-icon",12),P(25," Reported by me "),H()(),O(26,Nwa,4,3,"li",13),G(27,"li")(28,"a",5),K("click",function(c){return b.onAnchorClick(b.verifiedPath,c)}),J(29,"mat-icon",14),P(30," To be verified "),H()(),O(31,Owa,4,3,"li",13),H(),J(32,"sidebar-bookmark-groups",
15)(33,"sidebar-saved-searches",16)(34,"sidebar-hotlists",17)(35,"sidebar-archived",18)(36,"hr"),G(37,"div",19)(38,"a",20),P(39," Create hotlist "),H()(),G(40,"div",19)(41,"a",20),P(42," Create bookmark group "),H()(),G(43,"div",19)(44,"a",20),P(45," Browse components "),H()()()());a&2&&(B(5),sf("selected",b.currentSearch.currentSearch===ULb(b.userEmail)),B(1),D("href",b.assignedPath,Kd),B(3),D("ngIf",R(10,26,b.hasPreferredHomepage$)),B(5),sf("selected",b.currentSearch.isStarred()),B(1),D("href",
b.starredPath,Kd),B(3),sf("selected",b.currentSearch.currentSearch==="cc:"+b.userEmail),B(1),D("href",b.ccdPath,Kd),B(3),sf("selected",b.currentSearch.currentSearch==="reporter:"+b.userEmail),B(1),D("href",b.reportedPath,Kd),B(3),D("ngIf",b.enabledVotedNav),B(1),sf("selected",b.currentSearch.currentSearch===VLb(b.userEmail)),B(1),D("href",b.verifiedPath,Kd),B(3),D("ngIf",b.recentlyViewedPath),B(1),D("bookmarkGroups",b.sidebarData.bookmarkGroups),B(1),D("searches",b.sidebarData.userSearches),B(1),
D("hotlists",b.sidebarData.hotlists),B(1),D("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),B(3),D("href",b.createHotlistPath,Kd),B(3),D("href",b.createBookmarkGroupPath,Kd),B(3),D("href",b.componentsPath,Kd))},dependencies:[RM,sx,LE,pB,QE,OE,TE,NE,hN,KN,LN,PN,Fx],encapsulation:2});
var UN=function(){};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275mod=rc({type:UN});UN.\u0275inj=fc({imports:[[Mx]]});
var VN=function(){};VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275mod=rc({type:VN});VN.\u0275inj=fc({imports:[[Mx]]});
var WN=function(){};WN.\u0275fac=function(a){return new (a||WN)};WN.\u0275mod=rc({type:WN});WN.\u0275inj=fc({imports:[[Mx,dI,jG,dF,bH]]});
var XN=function(){};XN.\u0275fac=function(a){return new (a||XN)};XN.\u0275mod=rc({type:XN});XN.\u0275inj=fc({imports:[[VA,Mx],VA]});
var YN=function(){};YN.\u0275fac=function(a){return new (a||YN)};YN.\u0275mod=rc({type:YN});YN.\u0275inj=fc({imports:[[Mx,XN]]});
var ZN=function(){this.onAction=new Iw;this.disabled=!1};ZN.prototype.handleClick=function(){this.onAction.emit()};ZN.\u0275fac=function(a){return new (a||ZN)};
ZN.\u0275cmp=v({type:ZN,selectors:[["onedev-hovercard-action"]],inputs:{disabled:"disabled"},outputs:{onAction:"onAction"},ngContentSelectors:["*"],decls:2,vars:1,consts:[["mat-button","","color","primary",1,"onedev-hovercard-action",3,"disabled","click"]],template:function(a,b){a&1&&(Cf(),G(0,"button",0),K("click",function(){return b.handleClick()}),Df(1),H());a&2&&D("disabled",b.disabled)},dependencies:[pB],styles:[".onedev-hovercard-action[_ngcontent-%COMP%]{--onedev-card-action-background:var(--surface-default,#fff);--onedev-card-action-border:var(--hairline,#dadce0)}button.onedev-hovercard-action[_ngcontent-%COMP%]{background-color:var(--onedev-card-action-background);border-radius:0;border:none;border-top:1px solid var(--onedev-card-action-border);font-size:14px;height:40px;padding:0 20px;text-align:left;width:100%}"]});
var $N=function(){};$N.\u0275fac=function(a){return new (a||$N)};$N.\u0275mod=rc({type:$N});$N.\u0275inj=fc({imports:[[Rz,oN,Mx,jG,UA]]});
var aO=function(){};aO.\u0275fac=function(a){return new (a||aO)};aO.\u0275mod=rc({type:aO});aO.\u0275inj=fc({imports:[[Mx]]});
var bO=function(a,b,c,d,e,f,h,k){EN.call(this,a,b,c,d,e,f,h,k);this.hoverDelayMs=500;this.activity=new T.Subject;this.attachMouseEventListeners(c.nativeElement)};U(bO,EN);g=bO.prototype;g.ngOnInit=function(){EN.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Zfa(function(){return b.activity.pipe(Je(a))}));c.pipe(Ye(this.destroyed)).subscribe(function(d){d?b.openDialog():FN(b)});this.openings.pipe(De(function(d){return d&&0<b.beforeOpened.observers.length}),Nga(function(){return c.pipe(De(function(d){return!d}))}),Ye(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"mouseenter").pipe(Ye(b.destroyed)).subscribe(function(){b.openingDialog()});(0,T.fromEvent)(a,"click").pipe(Ye(b.destroyed)).subscribe(function(){b.openingDialog();b.openDialog()});(0,T.fromEvent)(a,"mouseleave").pipe(Ye(b.destroyed)).subscribe(function(){b.closingDialog()});(0,T.fromEvent)(a,"mousemove").pipe(Ye(b.destroyed)).subscribe(function(){b.activity.next()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"keydown").pipe(Ye(b.destroyed)).subscribe(function(c){switch(c.keyCode){case 27:var d;(null==(d=b.overlayRef)?0:d.hasAttached())&&c.stopPropagation();FN(b)}})})};g.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};g.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};
g.createOverlayConfig=function(a){return new AA(Object.assign({},LLb,{positionStrategy:EN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),panelClass:this.panelClassInternal}))};bO.\u0275fac=function(a){return new (a||bO)(F(ef),F(RA),F(nd),F(Wf),F(ii),F(Wz),F(Sz),F(Hv))};
bO.\u0275dir=v({type:bO,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:["xapInlineDialog","dialog"],disabled:["xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[gf]});
[].concat(u([bO,GN,IN,HN]),[DN]);var cO=function(){};cO.\u0275fac=function(a){return new (a||cO)};cO.\u0275mod=rc({type:cO});cO.\u0275inj=fc({imports:[[Rz,Mx,UA,QA]]});
var dO=function(){};dO.\u0275fac=function(a){return new (a||dO)};dO.\u0275mod=rc({type:dO});dO.\u0275inj=fc({imports:[[Mx,UN,VN,$N,YN,WN,aO,bH,dF,wy,cO,yN]]});
var dMb=[QM],eO=function(){};[].concat(u(dMb));[].concat(u(dMb));eO.\u0275fac=function(a){return new (a||eO)};eO.\u0275mod=rc({type:eO});eO.\u0275inj=fc({imports:[[Mx,jG,UE,dF,bH]]});
var fO=function(){};fO.\u0275fac=function(a){return new (a||fO)};fO.\u0275mod=rc({type:fO});fO.\u0275inj=fc({imports:[[Mx,eO]]});
var gO=function(){};gO.\u0275fac=function(a){return new (a||gO)};gO.\u0275mod=rc({type:gO});gO.\u0275inj=fc({imports:[[fO,Mx,dO,dF,jG,UE]]});
var hO=function(a,b){this.$window=a;this.activeSession=b};hO.prototype.setTitle=function(a){this.$window.document.title=a?a+" - "+this.activeSession.getAppName():this.activeSession.getAppName()};hO.\u0275fac=function(a){return new (a||hO)(t(wM),t(pH))};hO.\u0275prov=ec({token:hO,factory:hO.\u0275fac,providedIn:"root"});
var fMb=function(a){Z.call(this,a,-1,eMb)};U(fMb,Z);var eMb=[1,2];fMb.prototype.toObject=function(){var a=null!=this?{noAccessEmailsList:n(jb(this,1)),unknownEmailsList:n(jb(this,2))}:void 0;return a};fMb.messageId="b.CheckPermissionResponse";
var iO=function(){},jO=function(a){this.apiResourceFactory=a;this.accessPolicyResources=TFb(IJ(KJ(this.apiResourceFactory,"action/access_policies/:resourceName"))).build();this.checkAccessResource=IJ(KJ(this.apiResourceFactory,"action/check_permission/:emails/:relation/:resourceName")).build();this.accessLimitResource=LJ(this.apiResourceFactory,"action/access_limits/:resourceName")};U(jO,iO);g=jO.prototype;g.get=function(a,b){a=eo(a,b);return this.accessPolicyResources.get({resourceName:a})};
g.update=function(a,b,c){a=eo(a,b);return this.accessPolicyResources.save({resourceName:a},c)};g.checkPermission=function(a,b,c,d){c=eo(c,d);return this.checkAccessResource.get({emails:a,relation:b,resourceName:c})};g.setAccessLimit=function(a,b,c){a=eo(a,b);return this.accessLimitResource.save({resourceName:a},c)};g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).then(function(b){return"ALLOW"===b.implicitAccess})};jO.\u0275fac=function(a){return new (a||jO)(t(JJ))};
jO.\u0275prov=ec({token:jO,factory:jO.\u0275fac,providedIn:"root"});var kO=function(a){this.executor=a};g=kO.prototype;g.get=function(a,b){a=Am(eo(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:Hn}).pipe(C(Gn))};g.update=function(a,b,c){a=Am(eo(a,b));c=aua(c);return this.executor.post({url:"action/access_policies/"+a,body:c,responseConstructor:Hn}).pipe(C(Gn))};
g.checkPermission=function(a,b,c,d){a=Am(a.join(","));b=Am(b);c=Am(eo(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:fMb}).pipe(C(Vta))};g.setAccessLimit=function(a,b,c){a=Am(eo(a,b));c=Upa(c);return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:Nk}).pipe(C(Spa))};g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(C(function(b){return"ALLOW"===b.implicitAccess}))};
kO.\u0275fac=function(a){return new (a||kO)(t(pI))};kO.\u0275prov=ec({token:kO,factory:kO.\u0275fac,providedIn:"root"});var lO=function(a){this.observableApi=a};U(lO,iO);g=lO.prototype;g.get=function(a,b){return(0,T.firstValueFrom)(this.observableApi.get(a,b))};g.update=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.update(a,b,c))};g.checkPermission=function(a,b,c,d){return(0,T.firstValueFrom)(this.observableApi.checkPermission(a,b,c,d))};
g.setAccessLimit=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.setAccessLimit(a,b,c))};g.checkComponentImplicitAccessEnabled=function(a){return(0,T.firstValueFrom)(this.observableApi.checkComponentImplicitAccessEnabled(a))};lO.\u0275fac=function(a){return new (a||lO)(t(kO))};lO.\u0275prov=ec({token:lO,factory:lO.\u0275fac,providedIn:"root"});
var mO=function(a,b,c,d,e,f,h){var k=this;this.issueFetchResponseFridge=a;this.issueFridge=b;this.teamFridge=c;this.componentFridge=d;this.eventsForIssue=e;this.paramsService=f;this.activatedRoute=h;this.id$=uM(this.paramsService,"issueId").pipe(Le());this.urlComment$=this.activatedRoute.fragment.pipe(C(Fxa),Ue({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(Xe(function(q){return CL(k.issueFetchResponseFridge,q)}),Ue({refCount:!0,bufferSize:1}));this.issueJs$.pipe(C(function(q){return null==
q?void 0:q.firstEvent}));this.eventsJs$=this.id$.pipe(Xe(function(q){return k.eventsForIssue.watch(q)}),C(function(q){var w;return null!=(w=null==q?void 0:q.events)?w:[]}));this.starred$=this.issueJs$.pipe(C(Rwa));this.lastViewedTimeMicros$=this.issueJs$.pipe(C(Swa));this.lastViewedTimeMicros$.pipe(C(function(q){return!q}));this.title$=this.issueJs$.pipe(C(Twa));this.issueJs$.pipe(C(kxa));(0,T.merge)(this.issueJs$.pipe(C(function(q){return null==q?void 0:q.firstEvent}),De($k),C(function(q){return[q]})),
this.eventsJs$).pipe(Qe(function(q,w){w=w.flatMap(function(E){return E.attachments});w=r(w);for(var y=w.next();!y.done;y=w.next())y=y.value,null!=y.attachmentId&&(q[y.attachmentId]=y);return q},{}));this.issueJs$.pipe(C(lxa));this.issueJs$.pipe(C(mxa));this.status$=this.issueJs$.pipe(C(Uwa));this.priority$=this.issueJs$.pipe(C(Vwa));this.assignee$=this.issueJs$.pipe(C(Wwa));this.issueJs$.pipe(C(Xwa));this.teamId$=this.issueJs$.pipe(C(Ywa));this.team$=this.teamId$.pipe(Xe(function(q){return k.teamFridge.watch(q)}),
Ue({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(C($wa));this.issueJs$.pipe(C(function(q){var w,y;return null!=(y=null==(w=fo(q))?void 0:w.severity)?y:void 0}));this.type$=this.issueJs$.pipe(C(axa));this.issueJs$.pipe(C(bxa));this.issueJs$.pipe(C(cxa));this.issueJs$.pipe(C(dxa));this.postmortems$=this.issueJs$.pipe(C(exa));this.postmortems$.pipe(C(function(q){return 0<q.length}));this.issueJs$.pipe(C(fxa));this.effort$=this.issueJs$.pipe(C(gxa));this.isDeleted$=this.issueJs$.pipe(C(oxa));
this.accessLevel$=this.issueJs$.pipe(C(qxa));this.customFieldDefs$=this.issueJs$.pipe(C(hxa));this.customFieldValues$=this.issueJs$.pipe(C(ixa));this.modifiedTime$=this.issueJs$.pipe(C(rxa));this.retention$=this.issueJs$.pipe(C(txa));this.retention=function(){return Pj(k.retention$)};this.retentionState$=this.issueJs$.pipe(C(wxa));this.retentionState=function(){return Pj(k.retentionState$)};this.canonicalIssueId$=this.issueJs$.pipe(C(uxa));this.canonicalIssue$=this.canonicalIssueId$.pipe(Xe(function(q){return k.issueFridge.watch(q)}));
this.sloStatus$=this.issueJs$.pipe(C(xxa));this.sloId$=this.issueJs$.pipe(C(yxa));this.createdTimeMicros$=this.issueJs$.pipe(C(zxa));this.visibleFields$=this.issueJs$.pipe(C(jxa));this.visibleCustomFieldIds$=this.visibleFields$.pipe(C(Exa));this.customFieldEntries$=(0,T.combineLatest)([this.customFieldDefs$,this.customFieldValues$]).pipe(C(function(q){var w=r(q);q=w.next().value;w=w.next().value;var y=new Map(w.map(function(E){return[E.customFieldId,E]}));return q.map(function(E){var I=E.customFieldId,
N={customFieldId:I},L;I=null!=(L=y.get(I))?L:N;return{def:E,value:I}})}));(0,T.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(C(function(q){q=r(q);var w=q.next().value,y=q.next().value;return w.filter(function(E){return y.has(String(E.def.customFieldId))})}));(0,T.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(C(function(q){q=r(q);var w=q.next().value,y=q.next().value;return w.filter(function(E){return!y.has(String(E.def.customFieldId))})}));
this.componentId$=this.issueJs$.pipe(C(Zwa));this.component$=this.componentId$.pipe(Xe(function(q){return k.componentFridge.watch(q)}));this.teamSuggestions$=this.component$.pipe(C(Axa));this.effortSpec$=this.component$.pipe(C(Bxa));this.isEffortEnabled$=this.component$.pipe(C(Cxa));this.componentPathInfo$=this.component$.pipe(C(Dxa));this.thinking$=this.issueFetchResponseFridge.thinking$};mO.\u0275fac=function(a){return new (a||mO)(t(BL),t(yL),t(oM),t(bK),t(NL),t(tM),t(fk))};
mO.\u0275prov=ec({token:mO,factory:mO.\u0275fac,providedIn:"root"});
var gMb={id:"[loading]",admin:!1,writer:!0,appender:!0,reader:!0},oO=function(a,b,c,d,e,f){var h=this;this.issueDetailsBrain=a;this.permissionsFridge=b;this.activeSession=c;this.accessPolicyApi=d;this.errorHandler=e;this.userAccess=f;this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+On(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(Xe(function(k){return k?h.permissionsFridge.watchOne("issues/"+
k):(0,T.of)(void 0)}),C(function(k){return null!=k?k:gMb}),We(gMb),Ue({bufferSize:1,refCount:!1}));this.issuePermissions=function(){return Pj(h.issuePermissions$)};this.hasAclToEdit$=this.issuePermissions$.pipe(C(function(k){return!!k.writer}));this.hasAclToEdit=function(){return!!Pj(h.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(C(function(k){return!!k.appender}));this.hasAclToComment=function(){return!!Pj(h.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(C(function(k){return!!k.admin}));
this.hasAclToAdmin=function(){return!!Pj(h.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(C(function(k){return k.some(function(q){return nO(h,q.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Pj(h.isCurrentUserCCd$)};this.isAllowedToEditCC$=this.hasAclToEdit$;this.addMeToCcDisabledReason$=(0,T.combineLatest)([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(C(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k?q?"Un-CC yourself in order to change this setting.":
"":"Edit issue permission is required to modify the CC list."}));this.isImplicitAccessEnabled$=this.issueDetailsBrain.componentId$.pipe(Le(),Xe(function(k){return k?h.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(k)):(0,T.of)(!1)}),Ie(function(k){if(403===k.status)return(0,T.of)(!0);h.errorHandler.errorHandler(null,k);return(0,T.of)(!1)}),Ue({bufferSize:1,refCount:!1}));this.isImplicitAccessEnabled=function(){return!!Pj(h.isImplicitAccessEnabled$)};this.showImplicitAccessIndicator$=(0,T.combineLatest)([this.hasAclToEdit$,
this.isImplicitAccessEnabled$]).pipe(C(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.showImplicitAccessIndicator=function(){return!!Pj(h.showImplicitAccessIndicator$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=(0,T.combineLatest)([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(C(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(Le(),Xe(function(k){return k?
DK(h.userAccess,"admin","components/"+k):(0,T.of)(!1)}),Ie(function(k){h.errorHandler.errorHandler(null,k);return(0,T.of)(!1)}),Ue({bufferSize:1,refCount:!1}));this.userIsComponentAdmin=function(){return!!Pj(h.userIsComponentAdmin$)};this.accessLevel$=this.issueDetailsBrain.accessLevel$;this.accessLevel=function(){return Pj(h.accessLevel$)};this.isWithinExternalComponent$=this.accessLevel$.pipe(C(function(k){return!(!k||"INTERNAL"===k)}));this.audience$=this.isWithinExternalComponent$.pipe(C(function(k){return k?
2:1}));this.audience=function(){return Pj(h.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;this.canChangeCommentRetention=function(){return Pj(h.canChangeCommentRetention$)}},nO=function(a,b){return 0===(null==b?void 0:b.search(a.currentUserEmailPattern))},hMb=function(a,b){return xn(b)&&"DELETED"===b.commentDeletionStatus?a.hasAclToAdmin()||Ll(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&a.hasAclToComment()?!0:!1:!1},iMb=function(a,b){return xn(b)&&"ACTIVE"===b.commentDeletionStatus?
Pl(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():!1};
oO.prototype.canEditComment$=function(a){var b=this;return(0,T.combineLatest)([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(C(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return"ENABLED"===(null==c?void 0:c.commentEditState)&&"DELETED"!==a.commentDeletionStatus&&"PURGED"!==a.commentDeletionStatus&&a.commentNumber?1===a.commentNumber&&e?!0:d&&Pl(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
oO.\u0275fac=function(a){return new (a||oO)(t(mO),t(fM),t(pH),t(iO),t(SK),t(CK))};oO.\u0275prov=ec({token:oO,factory:oO.\u0275fac,providedIn:"root"});
var pO=function(a,b,c,d){BI.call(this);var e=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.pageTitle=c;this.issuePermissionService=d;this.handlers$=this.paramsService.routeParams$.pipe(Le(Ei),Xe(function(f){return f.issueId?jMb(e,f.issueId):(0,T.of)()}));this.init=function(){e.subscriptions.add(e.handlers$.subscribe(function(){}))};this.initOnce=gua(this.init)};U(pO,BI);pO.\u0275dir=BI.\u0275dir;
var jMb=function(a,b){return(0,T.combineLatest)([CL(a.issueFetchResponseFridge,b),a.issuePermissionService.accessLevel$]).pipe(We([]),C(function(c){c=r(c);var d=c.next().value;c=c.next().value;var e;(d=null==(e=null==d?void 0:d.issue)?void 0:e.snapshot[0].title)?(e=d+" ["+b+"]",c&&(c=Gua(c))&&(e=e+" - "+c),a.pageTitle.setTitle(e)):a.pageTitle.setTitle("View issue")}))};pO.\u0275fac=function(a){return new (a||pO)(t(tM),t(BL),t(hO),t(oO))};pO.\u0275prov=ec({token:pO,factory:pO.\u0275fac,providedIn:"root"});
var qO=function(a){Z.call(this,a,-1,kMb)};U(qO,Z);qO.prototype.getIssueCommentsList=function(){return rb(this,rK,1)};var kMb=[1];qO.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Bb(this.getIssueCommentsList(),NHb)}:void 0;return a};qO.messageId="b.ListIssueCommentHistoryResponse";
var lMb=function(a){Z.call(this,a)};U(lMb,Z);g=lMb.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return dj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.getComment=function(){return V(this,3)};g.setComment=function(a){return l(this,3,a)};g.getFormattingMode=function(){return X(this,4,0)};g.setFormattingMode=function(a){return l(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumber:n(p(this,2)),comment:n(p(this,3)),formattingMode:n(p(this,4))}:void 0;return a};
var rO=function(){};rO.\u0275fac=function(a){return new (a||rO)};rO.\u0275prov=ec({token:rO,factory:rO.\u0275fac,providedIn:"root"});var sO=function(a){this.$http=a};U(sO,rO);g=sO.prototype;g.get=function(a,b,c){return this.$http.get("action/issues/"+a+"/comment/"+b,{headers:c?{"X-Restricted-Content-Limit":String(Cl(c))}:{}}).then(function(d){return d.data})};
g.create=function(a,b,c,d){var e="action/issues/"+a+"/comment?enable_jspb=true";a=(new dJb).setIssueId(a).setComment(b).setFormattingMode(c).setContentJudgement(d);return this.$http.post(e,a.toJSON()).then(function(){})};g.update=function(a,b,c,d){var e="action/issues/"+a+"/updateComment?enable_jspb=true";a=(new lMb).setIssueId(a).setCommentNumber(b).setComment(c).setFormattingMode(d);return this.$http.post(e,a.toJSON()).then(function(){})};
g.delete=function(a,b,c,d){var e={};c={params:{reason:c},headers:(e["If-Match"]=d,e)};return this.$http.delete("action/issues/"+a+"/comment/"+b,c).then(function(){})};g.undelete=function(a,b){return this.$http.post("action/issues/"+a+"/comment/"+b+"/undelete",{},{params:{comment_version:void 0}}).then(function(c){return c.data})};g.listHistory=function(a,b){return this.$http.get("action/issues/"+a+"/comment/"+b+"/history").then(function(c){return c.data})};
sO.\u0275fac=function(a){return new (a||sO)(t(DJ))};sO.\u0275prov=ec({token:sO,factory:sO.\u0275fac,providedIn:"root"});var tO=function(a){this.executor=a};U(tO,rO);g=tO.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(Cl(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:rK}).then(Psa)};
g.create=function(a,b,c,d){var e=new dJb;e.setIssueId(a);e.setComment(b);e.setFormattingMode(c);e.setContentJudgement(d);return this.executor.post({url:"action/issues/"+a+"/comment",body:e,responseConstructor:null})};g.update=function(a,b,c,d){var e=new lMb;e.setIssueId(a);e.setCommentNumber(b);e.setComment(c);e.setFormattingMode(d);return this.executor.post({url:"action/issues/"+a+"/updateComment",body:e,responseConstructor:null})};
g.delete=function(a,b,c,d){return this.executor.delete({url:"action/issues/"+a+"/comment/"+b,options:{params:{reason:c},headers:{"If-Match":d}},responseConstructor:null})};g.undelete=function(a,b){return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:{}},responseConstructor:rK}).then(Psa)};g.listHistory=function(a,b){return this.executor.get({url:"action/issues/"+a+"/comment/"+b+"/history",responseConstructor:qO}).then(Qsa)};
tO.\u0275fac=function(a){return new (a||tO)(t(qI))};tO.\u0275prov=ec({token:tO,factory:tO.\u0275fac,providedIn:"root"});
var uO=function(a){var b=this;this.parentElement=a;this.lastTimestamp=this.state=this.y=this.x=0;this.animate=function(c){3!==b.state&&requestAnimationFrame(b.animate);if(!(30>c-b.lastTimestamp)){b.lastTimestamp=c;if(2===b.state){if(mMb(b),-50>b.x||b.x>document.documentElement.clientWidth+50||-50>b.y||b.y>document.documentElement.clientHeight+50)b.element.remove(),b.state=3}else{b.moveFlipCounter--;0>=b.moveFlipCounter&&(0===b.state?b.state=1:1===b.state&&(b.state=0),b.moveFlipCounter=50+100*Math.random(),
nMb(b));if(1===b.state)return;b.turnCounter--;0>=b.turnCounter&&(b.direction=360*Math.random(),b.turnCounter=40*Math.random());0>b.x&&90<b.direction&&270>b.direction&&(b.direction=(180-b.direction)%360);b.x>document.documentElement.clientWidth&&(90>b.direction||270<b.direction)&&(b.direction=(180-b.direction)%360);0>b.y&&180<b.direction&&(b.direction=360-b.direction);b.y>document.documentElement.clientHeight&&180>b.direction&&(b.direction=360-b.direction);mMb(b)}b.transform()}};this.speed=2+3*Math.random();
this.size=14+16*Math.random();this.turnCounter=40*Math.random();this.moveFlipCounter=50+100*Math.random();this.direction=360*Math.random();this.flip=1;this.element=this.createElement();nMb(this);oMb(this)};uO.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
uO.prototype.stop=function(){this.state=2;nMb(this);this.direction=180*Math.atan2(this.y-document.documentElement.clientHeight/2,this.x-document.documentElement.clientWidth/2)/Math.PI+90*(Math.random()-.5);this.speed=15+10*Math.random()};
var oMb=function(a){var b=Math.floor(4*Math.random());switch(b){case 0:a.x=document.documentElement.clientWidth*Math.random();a.y=-50;break;case 1:a.x=document.documentElement.clientWidth*Math.random();a.y=document.documentElement.clientHeight+50;break;case 2:a.x=document.documentElement.clientWidth+50;a.y=document.documentElement.clientHeight*Math.random();break;case 3:a.x=-50;a.y=document.documentElement.clientHeight*Math.random();break;default:console.warn("Illegal mode: "+b)}};
uO.prototype.createElement=function(){var a=document.createElement("img");a.style.height=this.size+"px";a.style.width=this.size+"px";a.style.backgroundColor="transparent";a.style.zIndex="9999";a.style.position="fixed";a.style.top="0px";a.style.left="0px";return a};
var nMb=function(a){a.element.src=1===a.state?"https://www.gstatic.com/buganizer/img/v0/logo.svg":"https://www.gstatic.com/buganizer/img/v0/bug-move.svg"},mMb=function(a){a.flip*=-1;var b=a.direction*Math.PI/180;a.x+=Math.cos(b)*a.speed;a.y+=Math.sin(b)*a.speed};uO.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};
var pMb=function(a){this.element=a;this.bugs=[]};pMb.prototype.start=function(){for(var a=this,b=0;3>b;b++)qMb(this);this.intervalSubscription=(0,T.interval)(1E4).subscribe(function(){qMb(a);10<=a.bugs.length&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};pMb.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=r(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};
var qMb=function(a){var b=new uO(a.element);b.start();a.bugs.push(b)};
var vO=function(a,b,c,d){var e=this;this.ngZone=a;this.userPreferencesManager=b;this.snackBar=c;this.destroyed$=new T.ReplaySubject(1);this.active$=new T.BehaviorSubject(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.bugAnimation=new pMb(d.nativeElement);this.active$.pipe(Ye(this.destroyed$),Le()).subscribe(function(f){f?rMb(e):sMb(e)})};vO.prototype.ngOnInit=function(){"visible"===document.visibilityState&&tMb(this)};vO.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var tMb=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)},wO=function(a){var b=Date.now();b<a.lastTimeoutResetTimestamp+1E4||(a.lastTimeoutResetTimestamp=b,a.active$.next(!0),clearTimeout(a.timeoutId),tMb(a))},sMb=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){var b=Object.assign({},a.userPreferencesManager.bugScreensaverSubject$.value,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:b}).subscribe()});
a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},rMb=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})};vO.\u0275fac=function(a){return new (a||vO)(F(ef),F(zI),F(LK),F(nd))};
vO.\u0275cmp=v({type:vO,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&K("click",function(){return wO(b)},!1,qd)("keydown",function(){return wO(b)},!1,qd)("mousemove",function(){return wO(b)},!1,qd)("wheel",function(){return wO(b)},!1,qd)("touchstart",function(){return wO(b)},!1,qd)("focus",function(){return wO(b)},!1,qd)("visibilitychange",function(){wO(b);switch(document.visibilityState){case "hidden":clearTimeout(b.timeoutId),b.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}},
!1,xda)},decls:0,vars:0,template:function(){},encapsulation:2});
var xO=function(a,b){var c=b.isInternalSession();this.isEnabled$=a.bugScreensaverSubject$.pipe(C(function(d){return(d.enableBugScreensaver||!1)&&c}))};xO.\u0275fac=function(a){return new (a||xO)(F(zI),F(pH))};xO.\u0275cmp=v({type:xO,selectors:[["bug-screensaver-manager"]],decls:2,vars:3,consts:[[4,"ngIf"]],template:function(a,b){a&1&&(O(0,Gxa,1,0,"bug-screensaver",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.isEnabled$))},dependencies:[sx,vO,Fx],encapsulation:2});
var uMb=["button"],yO=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new Iw};yO.prototype.onClick=function(a){this.onAction.emit(a)};yO.prototype.focus=function(){this.nativeButton.focus()};yO.\u0275fac=function(a){return new (a||yO)};
yO.\u0275cmp=v({type:yO,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&Zf(uMb,5);if(a&2){var c;Yf(c=ag())&&(b.nativeButton=c.first)}},inputs:{color:"color",format:"format",disabled:"disabled",size:"size",bAriaLabel:"bAriaLabel",bAriaExpanded:"bAriaExpanded",tooltip:"tooltip"},outputs:{onAction:"onAction"},ngContentSelectors:["*"],decls:8,vars:5,consts:[["buttonContent",""],[3,"ngSwitch"],["type","button","mat-stroked-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip",
"click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-flat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-icon-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter",
"keydown.space",4,"ngSwitchCase"],["type","button","mat-stroked-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchDefault"],["type","button","mat-stroked-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],["button",""],[4,"ngTemplateOutlet"],["type","button","mat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],
["type","button","mat-flat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],["type","button","mat-icon-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"]],template:function(a,b){a&1&&(Cf(),O(0,Hxa,1,0,"ng-template",null,0,gg),xf(2,1),O(3,Jxa,3,7,"button",2),O(4,Lxa,3,7,"button",3),O(5,Nxa,3,7,"button",4),O(6,Pxa,3,7,"button",5),O(7,Rxa,3,7,"button",6),yf());a&2&&(B(2),D("ngSwitch",
b.format),B(1),D("ngSwitchCase","hairline"),B(1),D("ngSwitchCase","flat"),B(1),D("ngSwitchCase","fill"),B(1),D("ngSwitchCase","icon"))},dependencies:[pB,$E,vx,Cx,yx,zx,Ax],encapsulation:2,changeDetection:0});
var zO=function(){};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275mod=rc({type:zO});zO.\u0275inj=fc({imports:[[jG,bH,Mx]]});
var AO=function(){};AO.\u0275fac=function(a){return new (a||AO)};AO.\u0275mod=rc({type:AO});AO.\u0275inj=fc({imports:[[Mx,dF]]});
var BO=function(){};BO.\u0275fac=function(a){return new (a||BO)};BO.\u0275mod=rc({type:BO});BO.\u0275inj=fc({imports:[[Mx,JK,zO,AO]]});
var CO=function(a){this.activeSession=a;var b;a=(null==(b=m(this.activeSession.session,kH,9))?void 0:m(b,jH,2))||new jH;this.announcement={messageId:V(a,2),message:a.getMessage(),dismissible:W(a,3),tags:jb(a,4)}};CO.\u0275fac=function(a){return new (a||CO)(t(pH))};CO.\u0275prov=ec({token:CO,factory:CO.\u0275fac,providedIn:"root"});
var vMb={type:"g3n-connect-response",messageType:"query-state",mode:"none",version:""};
var wMb=function(){this.chromeApi=self.chrome};wMb.prototype.getState=function(){return this.post({type:"g3n-connect-request",messageType:"query-state"}).catch(function(){return vMb})};wMb.prototype.setMode=function(a){return"none"===a?Promise.reject():this.post({type:"g3n-connect-request",messageType:"enable-g3n-mode"}).then(function(){})};wMb.prototype.post=function(a){var b=this;return xMb(this,a,"mdkmkbpoljeogkhbjlehikpbpdmfaopg").catch(function(){return xMb(b,a,"dcdkpimnclfoiknojhlfjhinjmiclmeo")})};
var xMb=function(a,b,c){return new Promise(function(d,e){a.chromeApi.runtime.sendMessage(c,b,function(f){if("g3n-connect-response"===(null==f?void 0:f.type))d(f);else{var h;e(Error((null==(h=chrome.runtime.lastError)?void 0:h.message)||"Unrecognized response message"))}})})},yMb=new wMb;
var DO=function(a,b,c,d){BI.call(this);var e=this;this.activeSession=a;this.userPreferencesManager=b;this.announcements=c;this.analytics=d;this.shownAnalyticsTracked=!1;this.g3nInstalled$=new T.ReplaySubject(1);this.isEnabled$=(0,T.combineLatest)([this.g3nInstalled$,this.userPreferencesManager.g3nSubject$]).pipe(C(function(f){var h=r(f);f=h.next().value;h=h.next().value;return!f&&e.isEnabled(h)}));yMb.getState().then(function(f){e.g3nInstalled$.next("g3n"===f.mode)})};U(DO,BI);DO.\u0275dir=BI.\u0275dir;
DO.prototype.isEnabled=function(a){if(this.activeSession.isExternalSession()||!rH(this.activeSession,"enableG3nAnnouncement")||this.announcements.announcement.messageId||a.announcementDismissedMillis&&2592E6>Date.now()-a.announcementDismissedMillis)return!1;this.shownAnalyticsTracked||(this.shownAnalyticsTracked=!0,bo(this.analytics,go.G3N,"shown","announcement"));return!0};
DO.prototype.dismiss=function(){var a=this,b=Object.assign({},this.userPreferencesManager.g3nSubject$.value,{announcementDismissedMillis:Date.now()});this.userPreferencesManager.save({g3nPreferences:b}).pipe(Ye(this.destroyed$)).subscribe(function(){bo(a.analytics,go.G3N,"dismiss","announcement")})};DO.\u0275fac=function(a){return new (a||DO)(F(pH),F(zI),F(CO),F(SM))};
DO.\u0275cmp=v({type:DO,selectors:[["g3n-announcement"]],features:[gf],decls:2,vars:3,consts:[["messageType","info","format","app",4,"ngIf"],["messageType","info","format","app"],["href","http://go/get-g3n","target","_blank",3,"click"],["mat-button","","format","flat",3,"click"]],template:function(a,b){a&1&&(O(0,Sxa,9,0,"b-callout",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.isEnabled$))},dependencies:[sx,pB,jI,kI,Fx],encapsulation:2});
var EO=function(){};EO.\u0275fac=function(a){return new (a||EO)};EO.\u0275mod=rc({type:EO});EO.\u0275inj=fc({imports:[[Mx,jG,JK,AO]]});
var FO=function(){};FO.\u0275fac=function(a){return new (a||FO)};FO.\u0275cmp=v({type:FO,selectors:[["b-ng2-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&J(0,"router-outlet")},dependencies:[LI],encapsulation:2});
var GO=function(){};GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275cmp=v({type:GO,selectors:[["b-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&J(0,"b-ng2-router-outlet")},dependencies:[FO],encapsulation:2});
var HO=function(){};HO.\u0275fac=function(a){return new (a||HO)};HO.\u0275mod=rc({type:HO});HO.\u0275inj=fc({imports:[[Mx,WI]]});
var IO=function(){};IO.\u0275fac=function(a){return new (a||IO)};IO.\u0275prov=ec({token:IO,factory:IO.\u0275fac,providedIn:"root"});var JO=function(a){this.httpClient=a};U(JO,IO);JO.prototype.handleAck=function(){return this.httpClient.post("action/terms_ack",{})};JO.\u0275fac=function(a){return new (a||JO)(t(AE))};JO.\u0275prov=ec({token:JO,factory:JO.\u0275fac,providedIn:"root"});var KO=function(a){this.executor=a};U(KO,IO);
KO.prototype.handleAck=function(){return this.executor.post({url:"action/terms_ack",body:null,responseConstructor:null})};KO.\u0275fac=function(a){return new (a||KO)(t(pI))};KO.\u0275prov=ec({token:KO,factory:KO.\u0275fac,providedIn:"root"});
var zMb=new jd("mat-checkbox-default-options",{providedIn:"root",factory:Txa});
var AMb=["input"],BMb=function(a){return{enterDuration:a}},CMb=0,DMb=Txa(),EMb={provide:ux,useExisting:ac(function(){return LO}),multi:!0},FMb=function(){},GMb=oi(li(mi(ni(function(a){this._elementRef=a})))),LO=function(a,b,c,d,e,f,h){a=GMb.call(this,a)||this;a._changeDetectorRef=b;a._focusMonitor=c;a._ngZone=d;a._animationMode=f;a._options=h;a.ariaLabel="";a.ariaLabelledby=null;a._uniqueId="mat-checkbox-"+ ++CMb;a.id=a._uniqueId;a.labelPosition="after";a.name=null;a.change=new Iw;a.indeterminateChange=
new Iw;a._onTouched=function(){};a._currentAnimationClass="";a._currentCheckState=0;a._controlValueAccessorChangeFn=function(){};a._checked=!1;a._disabled=!1;a._indeterminate=!1;a._options=a._options||DMb;a.color=a.defaultColor=a._options.color||DMb.color;a.tabIndex=parseInt(e)||0;return a};U(LO,GMb);g=LO.prototype;
g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b||Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})});this._syncIndeterminate(this._indeterminate)};g.ngAfterViewChecked=function(){};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
g.writeValue=function(a){this.checked=!!a};g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};g._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"};
g._transitionCheckState=function(a){var b=this._currentCheckState,c=this._elementRef.nativeElement;if(b!==a&&(0<this._currentAnimationClass.length&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,a),this._currentCheckState=a,0<this._currentAnimationClass.length)){c.classList.add(this._currentAnimationClass);var d=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){c.classList.remove(d)},
1E3)})}};g._emitChangeEvent=function(){var a=new FMb;a.source=this;a.checked=this.checked;this._controlValueAccessorChangeFn(this.checked);this.change.emit(a);this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};g.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
g._onInputClick=function(a){var b=this,c,d=null==(c=this._options)?void 0:c.clickAction;a.stopPropagation();this.disabled||"noop"===d?this.disabled||"noop"!==d||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==d&&Promise.resolve().then(function(){b._indeterminate=!1;b.indeterminateChange.emit(b._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())};
g.focus=function(a,b){a?Jz(this._focusMonitor,this._inputElement,a,b):this._inputElement.nativeElement.focus(b)};g._onInteractionEvent=function(a){a.stopPropagation()};
g._getAnimationClassForCheckStateTransition=function(a,b){if("NoopAnimations"===this._animationMode)return"";var c="";switch(a){case 0:if(1===b)c="unchecked-checked";else if(3==b)c="unchecked-indeterminate";else return"";break;case 2:c=1===b?"unchecked-checked":"unchecked-indeterminate";break;case 1:c=2===b?"checked-unchecked":"checked-indeterminate";break;case 3:c=1===b?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+c};
g._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};
ki.Object.defineProperties(LO.prototype,{inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Rg(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=Rg(a);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(a){a=Rg(a);a!==this.disabled&&(this._disabled=a,this._changeDetectorRef.markForCheck())}},indeterminate:{configurable:!0,enumerable:!0,get:function(){return this._indeterminate},set:function(a){var b=a!=this._indeterminate;this._indeterminate=Rg(a);b&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate));this._syncIndeterminate(this._indeterminate)}}});
LO.\u0275fac=function(a){return new (a||LO)(F(nd),F(lx),F(Iz),F(ef),Xc("tabindex"),F(Wv,8),F(zMb,8))};
LO.\u0275cmp=v({type:LO,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(Zf(AMb,5),Zf(iB,5));if(a&2){var c;Yf(c=ag())&&(b._inputElement=c.first);Yf(c=ag())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(a,b){a&2&&(Af("id",b.id),nf("tabindex",null)("aria-label",null)("aria-labelledby",null),sf("mat-checkbox-indeterminate",b.indeterminate)("mat-checkbox-checked",b.checked)("mat-checkbox-disabled",b.disabled)("mat-checkbox-label-before","before"==b.labelPosition)("_mat-animation-noopable",
"NoopAnimations"===b._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:[Lf([EMb]),gf],ngContentSelectors:["*"],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","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(a,b){a&1&&(Cf(),G(0,"label",0,1)(2,"span",2)(3,"input",3,4),K("change",function(e){return b._onInteractionEvent(e)})("click",
function(e){return b._onInputClick(e)}),H(),G(5,"span",5),J(6,"span",6),H(),J(7,"span",7),G(8,"span",8),Lc(),G(9,"svg",9),J(10,"path",10),H(),Mc(),J(11,"span",11),H()(),G(12,"span",12,13),K("cdkObserveContent",function(){return b._onLabelTextChange()}),G(14,"span",14),P(15,"\u00a0"),H(),Df(16),H()());if(a&2){var c=Hf(1),d=Hf(13);nf("for",b.inputId);B(2);sf("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim());B(1);D("id",b.inputId)("required",b.required)("checked",b.checked)("disabled",
b.disabled)("tabIndex",b.tabIndex);nf("value",b.value)("name",b.name)("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-checked",b._getAriaChecked())("aria-describedby",b.ariaDescribedby);B(2);D("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Nf(19,BMb,"NoopAnimations"===b._animationMode?0:150))}},dependencies:[iB,Oz],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;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-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});
var MO=function(a,b){BI.call(this);this.dialogRef=a;this.tosApi=b;this.ackChecked=!1};U(MO,BI);MO.\u0275dir=BI.\u0275dir;MO.prototype.accept=function(){var a=this;this.tosApi.handleAck().pipe(Ye(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};MO.\u0275fac=function(a){return new (a||MO)(F(AB),F(IO))};
MO.\u0275cmp=v({type:MO,selectors:[["b-terms-of-service-dialog"]],features:[gf],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"b-tos-content"],["gmat-checkbox","",3,"ngModel","ngModelChange"],["href","https://www.google.com/policies/terms/","target","_blank"],["href","/terms","target","_blank"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Google IssueTracker Terms of Service"),H(),G(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",
2),K("ngModelChange",function(c){return b.ackChecked=c}),H(),G(5,"span"),P(6," I acknowledge and agree to the "),G(7,"a",3),P(8,"Google Terms of Service"),H(),P(9," and the "),G(10,"a",4),P(11,"Google IssueTracker Conduct Policy"),H(),P(12,". "),H()()(),G(13,"mat-dialog-actions")(14,"button",5),K("click",function(){return b.accept()}),P(15," OK "),H()());a&2&&(B(4),D("ngModel",b.ackChecked),B(10),D("disabled",!b.ackChecked))},dependencies:[by,hy,pB,LO,JB,KB,LB],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});
var NO=function(a,b){BI.call(this);this.activeSession=a;this.matDialogService=b};U(NO,BI);NO.\u0275dir=BI.\u0275dir;NO.prototype.ngOnInit=function(){this.activeSession.mustAcknowledgeTerms&&this.matDialogService.open(MO,{width:"400px",disableClose:!0})._afterClosed.pipe(Ye(this.destroyed$))};NO.\u0275fac=function(a){return new (a||NO)(F(pH),F(HB))};NO.\u0275cmp=v({type:NO,selectors:[["b-terms-of-service"]],features:[gf],decls:0,vars:0,template:function(){},encapsulation:2});
var OO=function(){};OO.\u0275fac=function(a){return new (a||OO)};OO.\u0275mod=rc({type:OO});OO.\u0275inj=fc({});var PO=function(){};PO.\u0275fac=function(a){return new (a||PO)};PO.\u0275mod=rc({type:PO});PO.\u0275inj=fc({imports:[[mB,VA,Pz,OO],VA,OO]});
var QO=function(){};QO.\u0275fac=function(a){return new (a||QO)};QO.\u0275mod=rc({type:QO});QO.\u0275inj=fc({imports:[[wy,Mx,jG,PO,MB]]});
var RO=function(){};RO.\u0275fac=function(a){return new (a||RO)};RO.\u0275mod=rc({type:RO});RO.\u0275inj=fc({imports:[[Mx,QO]]});
var SO=function(a){this.transport=new mE(852);var b=this.streamzService=new Lsb(this.transport);b.flushInterval=3E3;b.flushTimer.setInterval(3E3);this.pageLoadTime=new Rzb(this.streamzService);this.userLatency=new Tzb(this.streamzService);new Szb(this.streamzService);this.frontendAccessMode=a.frontendAccessMode;this.environmentType=a.getEnvironmentType()};SO.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType)};
SO.\u0275fac=function(a){return new (a||SO)(t(pH))};SO.\u0275prov=ec({token:SO,factory:SO.\u0275fac,providedIn:"root"});
var TO=function(a){var b=this;this.clearcut=a;this.onMeasurement=function(c){c.getEntries().forEach(b.sendToClearcut)};this.sendToClearcut=function(c){var d=c.name;c=Math.round(c.duration);null!=d&&(isNaN(c)||(b.clearcut.timePageLoad?b.clearcut.timePageLoad(c,d):console.log("stub clearcut:",{name:d,latency:c})))}},HMb=function(a){PM()&&(null!=a.observer&&a.observer.disconnect(),a.observer=new iKb.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
TO.\u0275fac=function(a){return new (a||TO)(t(SO))};TO.\u0275prov=ec({token:TO,factory:TO.\u0275fac,providedIn:"root"});
var UO=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new T.BehaviorSubject(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=null!=window.localStorage.getItem("onedev-darkmode");IMb(b,b.localDarkmode);b.clientStreamzService&&oE(b.clientStreamzService,"loadDarkmode",b.clientDarkmodeSubject.getValue())};this.setLocalDarkmode=function(c){b.localDarkmode=c;b.localDarkmode?window.localStorage.setItem("onedev-darkmode",
b.localDarkmode.toString()):window.localStorage.removeItem("onedev-darkmode")}};UO.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(nE)};var IMb=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};UO.\u0275fac=function(a){return new (a||UO)(t(Hv))};UO.\u0275prov=ec({token:UO,factory:UO.\u0275fac});
var JMb=Ht(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),KMb=Ht(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),VO=function(a,b){this.dialogRef=a;this.darkmodeService=b;this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(C(function(c){return c?yh(JMb):yh(KMb)}))};VO.\u0275fac=function(a){return new (a||VO)(F(AB),F(UO))};
VO.\u0275cmp=v({type:VO,selectors:[["b-feedback-dialog"]],decls:9,vars:4,consts:[["mat-dialog-content",""],[4,"ngIf"],["diameter","60",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"click"],["frameborder","0","allowtransparency","true",3,"src","load"],["diameter","60"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,Uxa,2,3,"ng-container",1),Q(2,"async"),O(3,Vxa,1,0,
"mat-spinner",2),H(),G(4,"div",3)(5,"button",4),K("click",function(){return b.dialogRef.close(!1)}),P(6," Cancel "),H(),G(7,"button",5),K("click",function(){return b.dialogRef.close(!0)}),P(8," File a new issue "),H()());a&2&&(B(1),D("ngIf",R(2,2,b.docUrl$)),B(2),D("ngIf",!b.contentLoaded))},dependencies:[sx,KB,LB,pB,lN,Fx],styles:["iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:0}.loading[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:space-between}.mat-dialog-content[_ngcontent-%COMP%]{display:flex;flex-grow:1;position:relative;justify-content:center;align-items:center}"],
changeDetection:0});
var jo=function(a){Z.call(this,a)};U(jo,Z);g=jo.prototype;g.getEnableSsEngine=function(){return W(this,2)};g.getEnableAwr=function(){return W(this,3)};g.getEnableHelpSuggestions=function(){return W(this,4)};g.getAlohaAutoGaRollout=function(){return W(this,5)};g.getEnableConfigurator=function(){return W(this,6)};g.getEnableMweb=function(){return W(this,7)};g.toObject=function(){return LMb(this)};
var LMb=function(a){if(null!=a)return{alohaLaunch:W(a,1),enableSsEngine:W(a,2),enableAwr:W(a,3),enableHelpSuggestions:W(a,4),alohaAutoGaRollout:W(a,5),enableConfigurator:W(a,6),enableMweb:W(a,7)}};
var io=function(a){Z.call(this,a)};U(io,Z);io.prototype.toObject=function(){var a=null!=this?{alohaFlags:LMb(m(this,jo,1))}:void 0;return a};
var fya=["https://sandbox.google.com/tools/feedback"];
var Xxa="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");
var Yxa=Ht(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);
var $xa;
var MMb=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ba,e=d.document,f=a.nonce||Mqb(d);f&&!a.nonce&&(a.nonce=f);if("help"==a.flow){var h=Ko("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=1200>=k.length)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.serverUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d,
b);else{d=c+"/load.js?";for(var q in a)b=a[q],null==b||Da(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=Xo(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);f=Knb(d);vh(a,f);e.body.appendChild(a)}},NMb=function(a,b,c){try{"submit"===a.flow||"help"===a.flow||a.tinyNoPointer?MMb(a,b,c):eya(a.productId,a.serverUri).then(function(d){d=m(d,jo,1);if(null==d||!d.getAlohaAutoGaRollout()||oib&&!d.getEnableMweb())MMb(a,b,c);else{var e=c||ba,f="DEV"===a.serverEnvironment,h=c||ba;h=a.nonce||
Mqb(h);f={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink},initializationData:{isLocalServer:f,nonce:h,useNightlyRelease:f,
feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.serverUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(h=new Map(Object.entries(b)),f.extraData.productSpecificData=h);cya(f,d,e)}},
function(d){d&&"DuplicateFormError"!==d.name&&MMb(a,b,c)})}catch(d){MMb(a,b,c)}};Yt("userfeedback.api.startFeedback",NMb);
var WO=function(a,b){this.activeSession=a;this.matDialog=b};WO.prototype.startFeedback=function(){var a=this;this.activeSession.isInternalSession()?this.matDialog.open(VO,{width:"500px",maxHeight:"80vh",height:"640px",autoFocus:!1})._afterClosed.subscribe(function(b){b&&OMb(a)}):OMb(this)};
var OMb=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20220420.06_p0",bucket:"buganizer3-feedback"},c=[];bj(a.activeSession.getUserPreferences())&&c.push("didChooseNewIdp");var d=[];var e=d.concat;c=u(c);var f=[];a=Yi(a.activeSession.config,4);for(var h=r(a.keys()),k=h.next();!k.done;k=h.next())k=k.value,a.get(k)&&f.push(k);d={flags:e.call(d,c,[f]).join(", ")};NMb(b,d)};WO.\u0275fac=function(a){return new (a||WO)(t(pH),t(HB))};
WO.\u0275prov=ec({token:WO,factory:WO.\u0275fac,providedIn:"root"});
var XO=function(a){this.delegate_=a};XO.prototype.getDelegate=function(){return this.delegate_};
var PMb=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};U(PMb,XO);PMb.prototype.getTarget=function(){if(this.target_)return this.target_;for(var a=[],b=this.getDelegate().xb;b instanceof gbar.I&&b!=this.currentTarget_.getDelegate();)a.push(b.ic()),b=b.zb();for(b=this.currentTarget_;0<a.length;)b=QMb(b,a.pop());return this.target_=b};PMb.prototype.getType=function(){return this.getDelegate().xa};
var RMb=function(a){this.delegate_=a};U(RMb,XO);g=RMb.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ba,new PMb(f,e))},c)};g.listenOnce=function(){throw Error("kd");};g.unlisten=function(){throw Error("kd");};g.unlistenByKey=function(){throw Error("kd");};g.dispatchEvent=function(){throw Error("kd");};g.removeAllListeners=function(){throw Error("kd");};g.getParentEventTarget=function(){throw Error("kd");};
g.fireListeners=function(){throw Error("kd");};g.getListener=function(){throw Error("kd");};g.hasListener=function(){throw Error("kd");};RMb.prototype[Frb]=!0;
var YO=function(a){this.delegate_=a};U(YO,RMb);YO.prototype.getHeight=function(){return this.getDelegate().pa()};YO.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};YO.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};YO.prototype.getBackgroundColor=function(){return this.getDelegate().pn()};
var SMb=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};U(SMb,XO);SMb.prototype.then=function(a,b,c){var d;a&&(d=TMb(this,a));this.getDelegate().aa(d,b,c)};var TMb=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};
var ZO=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};U(ZO,XO);ZO.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new SMb(this.getDelegate().bh()));return this.gapiPromise_};ZO.getInstance=function(){if(ZO.instance_&&ZO.hasOwnProperty("instance_"))var a=ZO.instance_;else a=new ZO,ZO.instance_=a;return a};
var $O=function(a,b){BI.call(this);this.router=a;this.window=b};U($O,BI);$O.\u0275dir=BI.\u0275dir;$O.prototype.start=function(){var a=this;return(new Promise(function(b,c){var d=ZO.getInstance();d.barPromise_||(d.barPromise_=new SMb(d.getDelegate().bf(),YO));d.barPromise_.then(b,c)})).then(function(b){UMb(a,b)})};var UMb=function(a,b){a.router.events.pipe(De(function(c){return c instanceof FI}),Ye(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
$O.\u0275fac=function(a){return new (a||$O)(t(Hk),t(wM))};$O.\u0275prov=ec({token:$O,factory:$O.\u0275fac,providedIn:"root"});
var aP=function(a){BI.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(Ye(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};U(aP,BI);aP.\u0275dir=BI.\u0275dir;aP.prototype.start=function(){var a=this;document.addEventListener("scroll",function(b){b&&b.target&&(b=b.target.className,a.scrollTimingMap.has(b)?a.scrollTimingMap.get(b).push(Date.now()):a.scrollTimingMap.set(b,[Date.now()]))},!0)};aP.\u0275fac=function(a){return new (a||aP)(t($I))};
aP.\u0275prov=ec({token:aP,factory:aP.\u0275fac,providedIn:"root"});
var lo={},gya=function(a,b){return a+b};
var bP=function(){};bP.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};bP.\u0275fac=function(a){return new (a||bP)};
bP.\u0275cmp=v({type:bP,selectors:[["empty-toolbar"]],decls:3,vars:0,consts:[[1,"button-bar","flex-kids-x","align-items-center","border-bottom","padded-s"],["mat-icon-button","","color","primary","matTooltip","Go back","aria-label","Go back",1,"gmat-button",3,"click"],["svgIcon","arrow-backward"]],template:function(a,b){a&1&&(G(0,"section",0)(1,"button",1),K("click",function(){return b.onPressBack()}),J(2,"mat-icon",2),H()())},dependencies:[pB,LE,$E],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var cP=function(){};cP.\u0275fac=function(a){return new (a||cP)};cP.\u0275cmp=v({type:cP,selectors:[["b-glue"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(Cf(),G(0,"span",0),Df(1),H())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});
var dP=function(a){this.elementRef=a;this.componentBlur=new Iw};dP.\u0275fac=function(a){return new (a||dP)(F(nd))};dP.\u0275dir=v({type:dP,selectors:[["","componentBlur",""]],hostBindings:function(a,b){a&1&&K("focusout",function(c){var d;(null==(d=c.relatedTarget)?0:d.classList.contains("cdk-focus-trap-anchor"))||b.elementRef.nativeElement.contains(c.relatedTarget)||b.componentBlur.next(c)})},outputs:{componentBlur:"componentBlur"}});
var eP=function(a,b,c){BI.call(this);this.templateRef=a;this.viewContainer=b;this.cdr=c;this.viewContainer.createEmbeddedView(this.templateRef)};U(eP,BI);ki.Object.defineProperties(eP.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(Ye(this.destroyed$)).subscribe(function(){b.viewContainer.clear();b.viewContainer.createEmbeddedView(b.templateRef);b.cdr.detectChanges()})}}});eP.\u0275fac=function(a){return new (a||eP)(F(Vf),F(Wf),F(lx))};
eP.\u0275dir=v({type:eP,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},features:[gf]});
var fP=function(a,b,c){var d=this;this.cdr=a;this.events=b;this.ngZone=c;this.lastOpenPosition=this.width=220;this.hideToggleBtnOnOpen=this.disableToggleBtn=!1;this.direction="ltr";this.widthChanged=new Iw;this.widthAtDragStart=this.width;this.startDragging=function(e){d.dragStart=e;d.widthAtDragStart=d.width};this.minSnapWidth=185;this.onMousemove=function(e){d.isDragging&&(d.setWidth(d.widthAtDragStart+(e.pageX-(d.dragStart||0))*(d.isLTR?1:-1)),d.cdr.detectChanges())};this.onMouseup=function(){d.dragStart=
void 0;d.cdr.detectChanges()};this.broadcastWidthChange=dC(function(e){d.widthChanged.emit(e);d.events.sidebarWidthChanged.next(e)},400);this.trackKeyboardResizing=dC(function(){Tn(go.SIDEBAR,"resizeKeyboard")},2E3)};fP.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
fP.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var VMb=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=0>b?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};fP.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
fP.prototype.setWidth=function(a){var b=this.minSnapWidth;a=90>a?28:a<b?b:Math.min(a,700);a>=this.minSnapWidth&&(this.lastOpenPosition=a);this.width=a;this.broadcastWidthChange(a)};
ki.Object.defineProperties(fP.prototype,{minWidth:{configurable:!0,enumerable:!0,get:function(){return this.minSnapWidth},set:function(a){a=Number(a);Number.isNaN(a)?this.minSnapWidth=185:this.minSnapWidth=a}},size:{configurable:!0,enumerable:!0,get:function(){return this.width},set:function(a){var b=Number(a);"open"===a?b=this.lastOpenPosition:Number.isNaN(b)&&(b=220);this.setWidth(b)}},isLTR:{configurable:!0,enumerable:!0,get:function(){return"ltr"===this.direction}},isClosed:{configurable:!0,enumerable:!0,
get:function(){return this.width<this.minSnapWidth}},toggleButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this.isClosed?"Open Navigation":"Close Navigation"}},isDragging:{configurable:!0,enumerable:!0,get:function(){return null!=this.dragStart}}});fP.\u0275fac=function(a){return new (a||fP)(F(uI,2),F(WK),F(ef))};
fP.\u0275cmp=v({type:fP,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&tf(b.direction)},inputs:{minWidth:"minWidth",disableToggleBtn:"disableToggleBtn",hideToggleBtnOnOpen:"hideToggleBtnOnOpen",direction:"direction",size:"size"},outputs:{widthChanged:"widthChanged"},features:[Lf([uI])],ngContentSelectors:["*"],decls:5,vars:12,consts:[["cdkScrollable","",1,"inner",3,"ngClass"],[1,"content"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation",
"horizontal",1,"resizeHandle",3,"mousedown","keyup.arrowleft","keyup.arrowright","keyup.space","keyup.enter","dblclick"],["mat-icon-button","","class","toggleButton xs","matTooltipPosition","right",3,"ngClass","isClosed","matTooltip","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"toggleButton","xs",3,"ngClass","matTooltip","click"],[3,"svgIcon"]],template:function(a,b){a&1&&(Cf(),G(0,"div",0)(1,"div",1),Df(2),H(),G(3,"div",2),K("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",
function(){return VMb(b,-10)})("keyup.arrowright",function(){return VMb(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),H()(),O(4,jya,2,6,"button",3));a&2&&(rf("width",b.width+"px"),sf("isDragging",b.isDragging)("isClosed",b.isClosed),D("ngClass",b.direction),B(1),rf("width",b.lastOpenPosition+"px"),B(2),nf("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"),B(1),D("ngIf",!b.disableToggleBtn&&!(b.hideToggleBtnOnOpen&&
!b.isClosed)))},dependencies:[vx,sx,pB,LE,$E,tA],styles:['[_nghost-%COMP%]{position:relative}.inner[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden;transition:width .2s cubic-bezier(0.165, 0.84, 0.44, 1);display:flex;flex-direction:column}.inner.ltr[_ngcontent-%COMP%]{border-right:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.rtl[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.isDragging[_ngcontent-%COMP%]{transition:none}.content[_ngcontent-%COMP%]{position:relative;flex:1;opacity:1;transition:opacity .1s ease-in-out;transition-delay:.1s}.isClosed[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:none;opacity:0;transition-delay:0s}.isDragging[_ngcontent-%COMP%]{user-select:none}.resizeHandle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:8px;cursor:col-resize}.ltr[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{right:0}.rtl[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{left:0}.toggleButton[_ngcontent-%COMP%]{position:absolute;bottom:0;top:0;margin:auto}.toggleButton.ltr[_ngcontent-%COMP%]{right:2px}.toggleButton.rtl[_ngcontent-%COMP%]{left:2px}.toggleButton.isClosed[_ngcontent-%COMP%]{z-index:2}.toggleButton.isClosed.ltr[_ngcontent-%COMP%]{right:6px}.toggleButton.isClosed.rtl[_ngcontent-%COMP%]{left:6px}.toggleButton[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.toggleButton.isClosed[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:rotateZ(180deg)}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus, .isDragging[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 1px 50%;background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}\n/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});
var WMb=new jd("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),XMb=new jd("isScrolledOnScreen",{factory:function(){return{fully:kya,partially:lya}}}),gP=function(a,b){this.intersectionObserverBuilder=a;this.isScrolledOnScreen=b};gP.prototype.getObservable=function(a,b){b=void 0===b?!1:b;return null!=window.IntersectionObserver?mya(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):nya(a,this.isScrolledOnScreen,b)};
gP.\u0275fac=function(a){return new (a||gP)(t(WMb),t(XMb))};gP.\u0275prov=ec({token:gP,factory:gP.\u0275fac,providedIn:"root"});
var hP=function(a){Z.call(this,a)};U(hP,Z);hP.prototype.getUrl=function(){return V(this,1)};hP.prototype.setUrl=function(a){return l(this,1,a)};hP.prototype.hasUrl=function(){return cj(this,1)};hP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};hP.messageId="b.ImageRedirectRequest";
var iP=function(a){Z.call(this,a)};U(iP,Z);iP.prototype.getUrl=function(){return V(this,1)};iP.prototype.setUrl=function(a){return l(this,1,a)};iP.prototype.hasUrl=function(){return cj(this,1)};iP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};iP.messageId="b.ImageRedirectResponse";
var jP=function(a){this.executor=a},YMb=function(a,b){var c=new hP;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:iP}).pipe(C(function(d){return d.getUrl()}))};jP.\u0275fac=function(a){return new (a||jP)(t(pI))};jP.\u0275prov=ec({token:jP,factory:jP.\u0275fac,providedIn:"root"});
var kP=function(a){var b=this;this.imageRedirector=a;this.src$=new T.BehaviorSubject("");this.showImage$=new T.BehaviorSubject(!1);this.error$=new T.BehaviorSubject(!1);this.srcTruncated$=this.src$.pipe(C(function(c){var d=c;d=void 0===d?"":d;var e=void 0===e?48:e;c=[].concat(u(d));if(c.length<=e)e=d;else{var f=Math.floor(e/2);d=c.slice(0,f-1).join("");e=c.slice(-(f-(0!==e%2?1:2))).join("");null!=String.prototype.trimEnd&&null!=String.prototype.trimStart&&(d=d.trimEnd(),e=e.trimStart());e=d+"..."+
e}return e}));this.srcRedirected$=(0,T.combineLatest)([this.src$,this.showImage$]).pipe(De(function(c){c=r(c);c.next();return c.next().value}),Xe(function(c){c=r(c);var d=c.next().value;c.next();return YMb(b.imageRedirector,d).pipe(Ie(function(){b.error$.next(!0);return d}))}))};kP.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
ki.Object.defineProperties(kP.prototype,{src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a);this.error$.next(!1)},get:function(){return this.src$.value}}});kP.\u0275fac=function(a){return new (a||kP)(F(jP))};
kP.\u0275cmp=v({type:kP,selectors:[["b-secure-image-widget"]],inputs:{src:"src",alt:"alt"},decls:6,vars:4,consts:[[4,"ngIf","ngIfElse"],["widget",""],["error",""],[3,"src"],["tabindex","0",1,"normal-link",3,"href","title","click","keydown.enter"],["svgIcon","image",1,"icon-s"],["svgIcon","broken-image",1,"icon-l",3,"matTooltip"]],template:function(a,b){a&1&&(O(0,sya,3,4,"ng-container",0),Q(1,"async"),O(2,tya,8,9,"ng-template",null,1,gg),O(4,uya,2,3,"ng-template",null,2,gg));if(a&2){var c=Hf(5);D("ngIf",
!1===R(1,2,b.error$))("ngIfElse",c)}},dependencies:[sx,LE,$E,cP,Fx],styles:["a[_ngcontent-%COMP%]{word-break:break-all;margin:0 2px}a[_ngcontent-%COMP%]:hover{text-decoration:underline}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;line-height:18px;margin-top:-3px;margin-right:1px}img[_ngcontent-%COMP%]{max-width:100%}\n/*# sourceMappingURL=secure_image.css.map */"],changeDetection:0});
var lP=function(){};lP.prototype.onClick=function(a,b){ZMb(b)&&a.preventDefault()};var ZMb=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};lP.\u0275fac=function(a){return new (a||lP)};lP.\u0275dir=v({type:lP,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&K("click",function(c){return b.onClick(c,c.target)})}});
[].concat(u(dMb),[fP,cP]);var mP=function(){};mP.\u0275fac=function(a){return new (a||mP)};mP.\u0275mod=rc({type:mP});mP.\u0275inj=fc({imports:[[Mx,jG,dF,bH,xA],eO]});
var oP=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja){BI.call(this);var Ka=this;this.bLocation=a;this.$route=b;this.timeout=c;this.activeSession=d;this.analytics=e;this.hotkeys=f;this.paths=h;this.userPrefs=k;this.issuePagination=q;this.userFeedback=I;this.announcements=N;this.ngZone=L;this.matDialogService=S;this.renderer=ha;this.showIdpDeprecationBanner=$Mb(this);this.announcement=this.dismissedMessageId=null;this.matSidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();
this.sidebarDragSaver=this.sidebarDragOffset=null;HMb(E);this.subscriptions.add(y.onClickAppMenuIcon.subscribe(function(){Ka.matSidebarWidth=185>Ka.matSidebarWidth?"open":0}));k.homepagePreferences$.pipe(Ye(this.destroyed$)).subscribe(function(Ma){Y.homepagePreferences=Ma});this.densityClass="d-comfort";this.renderer.addClass(document.body,this.densityClass);this.userPrefs.themePreferences$.pipe(Ye(this.destroyed$)).subscribe(function(Ma){Ma=Bya(Ma.density);Ma!==Ka.densityClass&&(Ka.renderer.addClass(document.body,
Ma),Ka.renderer.removeClass(document.body,Ka.densityClass),Ka.densityClass=Ma)});this.subscriptions.add(YLb(w,function(Ma){Ka.doSearch(Ma)}));this.createIssuePath=h.createIssue();this.assignedPath=h.listIssues({q:ULb(d.getUserEmail())});this.ccdPath=h.listIssues({q:"cc:"+d.getUserEmail()});this.verifiedPath=h.listIssues({q:VLb(d.getUserEmail())});this.reportedPath=h.listIssues({q:"reporter:"+d.getUserEmail()});this.starredPath=h.listIssues({q:w.getStarred()});this.votedPath=h.listIssues({q:w.getVoted()});
this.subscriptions.add(gJ(this.hotkeys,{title:"General",hotkeys:[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var Ma=document.querySelector(".search-box-container .search-box");null==Ma||Ma.focus();null==Ma||Ma.select()}},{keys:[Mj("2"),ioa()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){return Ka.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.url(Ka.createIssuePath)}},{keys:[Nj("g","a")],displayAs:"g then a",
description:'Go to "Assigned to me"',onPress:function(){a.url(Ka.assignedPath)}},{keys:[Nj("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.url(Ka.ccdPath)}},{keys:[Nj("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.url(Ka.reportedPath)}},{keys:[Nj("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.url(Ka.starredPath)}},{keys:[Nj("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',
onPress:function(){a.url(Ka.votedPath)}},{keys:[Nj("g","v")],displayAs:"g then v",description:'Go to "To be verified"',onPress:function(){a.url(Ka.verifiedPath)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:["<",">"],displayAs:"< / >",description:"Collapse/expand sidebar",onPress:function(Ma){if(0===Ma&&20<Ka.sidebarDragPosition||1===Ma&&!(20<Ka.sidebarDragPosition))20<Ka.sidebarDragPosition?nP(Ka,20,1):nP(Ka,Ka.lastOpenPosition,1);
Ka.matSidebarWidth=0===Ma?0:"open"}},{keys:["?",hoa("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){Ka.matDialogService.open(jJ,{minWidth:512})}}]}));this.lastOpenPosition=this.sidebarDragPosition=220;this.announcements.announcement.tags.includes("JFK")||(this.announcement=this.announcements.announcement);this.userPrefs.preferences$.pipe(Me(),Ye(this.destroyed$)).subscribe(function(Ma){Ka.dismissedMessageId=Ma.bannerMessageId||"";Ma=(Ma.layoutPreferences||
{}).leftSidebarWidth;Ka.matSidebarWidth=Ma||220;if(void 0===Ma)Ka.sidebarDragPosition=220;else if(90>Ma)Ka.sidebarDragPosition=20;else{if(220<Ma){var hb=aNb();Ma>hb&&(Ma=hb)}185>Ma&&(Ma=185);Ka.sidebarDragPosition=Ma}});(0,T.fromEvent)(document,"mouseup",{capture:!0}).pipe(Ye(this.destroyed$)).subscribe(function(){Ka.sidebarDragOffset&&(Ka.sidebarDragOffset=null,nP(Ka,Ka.sidebarDragPosition,1))});(0,T.fromEvent)(Y,"resize").pipe(Ye(this.destroyed$)).subscribe(function(){if(220<Ka.sidebarDragPosition){var Ma=
aNb();Ka.sidebarDragPosition>Ma&&nP(Ka,Ma,3E3)}});this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(document,"mousemove").pipe(Ye(Ka.destroyed$)).subscribe(function(Ma){if(Ka.sidebarDragOffset){Ma=Ma.pageX-Ka.sidebarDragOffset;if(90>Ma)Ma=20;else if(185>Ma)Ma=185;else{var hb=aNb();Ma>hb&&(Ma=hb)}nP(Ka,Ma,0)}})});ya.start();PM()&&(null!=kKb&&kKb.disconnect(),kKb=new Un.PerformanceObserver(lKb),kKb.observe({entryTypes:["measure"]}));setTimeout(iya,6E4);Ha.start();Ja.initOnce();Y.emergencyBugjugglerWorkaround=
{session:d,issueComments:ka}};U(oP,BI);oP.\u0275dir=BI.\u0275dir;var $Mb=function(a){var b=a.activeSession.isInternalSession(),c=!window.sessionStorage.getItem("idpDeprecationDismissTime");a=!bj(a.activeSession.getUserPreferences());return b&&c&&a};oP.prototype.startDragging=function(a){this.sidebarDragOffset=a.pageX-this.sidebarDragPosition;a.preventDefault()};oP.prototype.isDragging=function(){return null!==this.sidebarDragOffset};
var aNb=function(){var a=window.innerWidth;return 1075<=a?a-855:220},zya=function(a,b){a.userPrefs.layoutPreferences$.pipe(Xe(function(c){return a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})})).pipe(Me(),Ye(a.destroyed$)).subscribe()},nP=function(a,b,c){if(b!==a.sidebarDragPosition||c)185<=b&&(a.lastOpenPosition=b),a.sidebarDragPosition=b,c&&(a.sidebarDragSaver&&a.timeout.cancel(a.sidebarDragSaver),a.sidebarDragSaver=a.timeout.schedule(function(){zya(a,20===a.sidebarDragPosition?
0:a.sidebarDragPosition);a.sidebarDragSaver=null},c).catch(function(){}))};oP.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=xIb(this.paths,a);WM(this.issuePagination);b&&this.$route.reload();this.bLocation.url(a);bo(this.analytics,"search","default-context")};var vya=function(a){null!==a.announcement&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(Me(),Ye(a.destroyed$)).subscribe())};
oP.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return me(function(e){if(1==e.nextAddress)return c=b.userPrefs.newIssueDetailsPagePreferencesSubject$.value,ne(e,(0,T.firstValueFrom)(b.userPrefs.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";bo(b.analytics,"prefs","change",d);window.location.reload();oe(e)})};oP.prototype.startFeedback=function(){this.userFeedback.startFeedback()};
oP.\u0275fac=function(a){return new (a||oP)(F(cL),F(QKb),F(nI),F(pH),F(SM),F(fJ),F(dL),F(zI),F(VM),F(QN),F(WK),F(TO),F(WO),F(CO),F(ef),F(HB),F(wM),F(rO),F(Mv),F($O),F(aP),F(pO))};
oP.\u0275cmp=v({type:oP,selectors:[["app-root"]],features:[gf],decls:11,vars:3,consts:[["class","bv2-announce-bar",4,"ngIf"],["messageType","caution","format","app",4,"ngIf"],[1,"bv2-content","flex-kids-x","border-top"],["id","main-app-nav",3,"size","disableToggleBtn","widthChanged",4,"ngIf"],[1,"flex","pos-rel"],[1,"bv2-announce-bar"],"aria-live polite role status aria-atomic true".split(" "),[3,"innerHtml"],["class","announce-dismiss","role","button","tabindex","0",3,"keydown.enter","keydown.space",
"click",4,"ngIf"],["role","button","tabindex","0",1,"announce-dismiss",3,"keydown.enter","keydown.space","click"],["messageType","caution","format","app"],["href","https://groups.google.com/a/google.com/g/buganizer-announce/c/lu-X-YckEGo","target","_blank"],["href","",3,"click"],["mat-flat-button","",3,"click"],["mat-icon-button","","aria-label","Dismiss the message",3,"click"],["svgIcon","close",1,"icon-s"],["id","main-app-nav",3,"size","disableToggleBtn","widthChanged"]],template:function(a,b){a&
1&&(J(0,"b-hiring-banner")(1,"b-terms-of-service"),O(2,xya,4,2,"div",0),J(3,"g3n-announcement"),O(4,yya,16,0,"b-callout",1),J(5,"b-sso-expired-callout-outlet"),G(6,"div",2),O(7,Aya,2,2,"b-resizable-sidebar",3),G(8,"div",4),J(9,"b-router-outlet"),H()(),J(10,"bug-screensaver-manager"));a&2&&(B(2),D("ngIf",b.announcement&&(b.announcement&&b.announcement.message?b.announcement.dismissible?null===b.dismissedMessageId?!1:b.announcement.messageId!==b.dismissedMessageId:!0:!1)),B(2),D("ngIf",b.showIdpDeprecationBanner),
B(3),D("ngIf",!b.isAnonymous))},dependencies:function(){return[sx,GO,fP,TN,NO,vI,xO,DO,jI,kI,pB,LE,lI]},encapsulation:2});var pP=function(){};pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275mod=rc({type:pP});pP.\u0275inj=fc({imports:[[Mx,HO,mP,gO,RO,wI,BO,EO,AO,jG,dF,kJ]]});
var qP=function(a){Z.call(this,a)};U(qP,Z);qP.prototype.getUrl=function(){return V(this,1)};qP.prototype.setUrl=function(a){return l(this,1,a)};qP.prototype.hasUrl=function(){return cj(this,1)};qP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};qP.messageId="b.AttachmentUrlResponse";
var rP=function(a){this.executor=a};rP.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject("Invalid resource ID.");var e={};d&&(e["X-Restricted-Content-Limit"]=String(Cl(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:qP}).then(function(f){return f.getUrl()})};rP.\u0275fac=function(a){return new (a||rP)(t(qI))};rP.\u0275prov=ec({token:rP,factory:rP.\u0275fac,providedIn:"root"});
var sP=function(a,b,c){this.templateRef=b;this.viewContainer=c;this.isInternal="INTERNAL"===a.frontendAccessMode};sP.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};sP.\u0275fac=function(a){return new (a||sP)(F(pH),F(Vf),F(Wf))};sP.\u0275dir=v({type:sP,selectors:[["","internalOnly",""]]});
var tP=function(a){this.session=a;this.baseDocumentationUrl=a.getDocumentationBaseUrl()},Do=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},uP=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/wtdm-home":""},bNb=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":
Do(a)},adb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"http://go/buganizer-external-access"},cNb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/public-access":"http://go/buganizer-public-access"},dNb=function(a){return cNb(a)+"#recommended-access-settings"},Q6a=function(a){return Do(a)+"#expanded-access-on-components"},W_a=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},
eNb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-dos-donts#creating-moving-issues"},tt=function(){return"http://go/buganizer-retention"};tP.prototype.getRestrictedAccessHelpLink=function(){return this.session.isExternalSession()?"https://developers.google.com/issue-tracker/concepts/restricted-content":"http://go/buganizer-retention#how-does-restricted-retention-work"};
var eeb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};tP.prototype.getDisablingFieldsHelpLink=function(){return eeb()+"#hiding-inherited-fields"};var fNb=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};tP.\u0275fac=function(a){return new (a||tP)(t(pH))};tP.\u0275prov=ec({token:tP,factory:tP.\u0275fac,providedIn:"root"});
var vP=function(a){this.window=a};vP.prototype.openInNewTab=function(a){a=xh(a);this.window.open(sh(a),"_blank",void 0)};var wP=function(a,b){b=xh(b);a.window.open(sh(b),void 0,void 0)},xP=function(a,b){b=xh(b);a.window.location.href=sh(b)};vP.\u0275fac=function(a){return new (a||vP)(t(wM))};vP.\u0275prov=ec({token:vP,factory:vP.\u0275fac,providedIn:"root"});
var yP=function(a,b,c,d,e,f,h,k){this.dialogRef=b;this.userAccess=c;this.attachmentsUrl=d;this.butterBar=e;this.domSafe=f;this.documentationLinks=h;this.changeDetectorRef=k;this.isLoading=!0;this.download=this.hasViewAccess=!1;this.attachment=a.attachment;this.issueId=a.issueId;this.download=a.download};yP.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
yP.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;Dya(this)?(this.hasViewAccess=!1,DK(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b}).finally(function(){a.isLoading=!1})):(this.hasViewAccess=!0,this.isLoading=!1)};yP.prototype.getPiiSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var Dya=function(a){return(a=a.getPiiSeverity())?"NONE_DETECTED"!==a:!1},gNb=function(a){var b=a.download&&gna(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getPiiSeverity()).then(function(c){b?xP(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){QK(a.butterBar,"Failed to load attachment. Please refresh and try again.");a.close()})};yP.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
yP.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};yP.\u0275fac=function(a){return new (a||yP)(F(FB),F(AB),F(CK),F(rP),F(OK),F(vP),F(tP),F(uI,2))};
yP.\u0275cmp=v({type:yP,selectors:[["b-attachment-download-dialog"]],features:[Lf([uI])],decls:20,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"gmat-body-2"],[1,"gmat-body-1"],[1,"download-attachment-icon"],["svgIcon","file-present","size","icon-l"],[1,"download-attachment-filename"],[4,"internalOnly"],["class","gmat-body-2",4,"ngIf"],["class","centered-spinner","diameter","60",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button",
"",1,"gmat-button","dialog-primary-action",3,"disabled","click"],["target","_blank","aria-label","Learn more about restricted access in Buganizer.",3,"href"],[1,"no-access-warning"],["diameter","60",1,"centered-spinner"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Access Attachment"),H(),G(2,"div",1)(3,"div",2),P(4," Are you sure you would like to access the following attachment? "),H(),J(5,"br"),G(6,"div",3)(7,"div",4),J(8,"mat-icon",5),H(),G(9,"div",6),P(10),H()(),J(11,"br"),O(12,Eya,2,1,"ng-container",
7),O(13,Fya,3,0,"div",8),H(),O(14,Gya,1,0,"mat-spinner",9),G(15,"div",10)(16,"button",11),K("click",function(){return b.close()}),P(17," Cancel "),H(),G(18,"button",12),K("click",function(){return gNb(b)}),P(19," Continue "),H()());a&2&&(B(10),If(" ",b.attachment.filename," "),B(3),D("ngIf",!b.isLoading&&!b.hasViewAccess),B(1),D("ngIf",b.isLoading),B(4),D("disabled",!b.hasViewAccess))},dependencies:[sx,JB,KB,LB,pB,LE,lN,sP],styles:[".centered-spinner[_ngcontent-%COMP%]{margin:0 auto}.download-attachment-icon[_ngcontent-%COMP%]{float:left;margin-right:5px}.download-attachment-filename[_ngcontent-%COMP%]{font-weight:bold}.no-access-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}"]});
var zP=function(){};zP.\u0275fac=function(a){return new (a||zP)};zP.\u0275mod=rc({type:zP});zP.\u0275inj=fc({imports:[[Mx]]});
var hNb=Object.assign({},new CB,{backdropClass:"gmat-dialog-backdrop",panelClass:"gmat-dialog-panel",hasBackdrop:!0}),AP=function(){};AP.\u0275fac=function(a){return new (a||AP)};AP.\u0275mod=rc({type:AP});AP.\u0275inj=fc({providers:[{provide:kqb,useValue:hNb}],imports:[[MB],MB]});
var BP=function(){};BP.\u0275fac=function(a){return new (a||BP)};BP.\u0275mod=rc({type:BP});BP.\u0275inj=fc({imports:[[Mx,AP,jG,MB,dF,XN,zO,cI,zP]]});
var CP=function(a,b){var c=this;this.executor=a;this.activeSession=b;this.memoized=new EJb(function(d){var e;a:{if(e=m(c.activeSession.session,kH,9)){e=r(rb(e,iH,1));for(var f=e.next();!f.done;f=e.next())if(f=f.value,d===f.getId()){e=Hya(f);break a}}e=void 0}return e?(0,T.of)(e):c.executor.get({url:"action/timezone/"+encodeURIComponent(d),responseConstructor:iH}).pipe(C(Hya))},10)};CP.prototype.get=function(a){return this.memoized.get(a)};CP.\u0275fac=function(a){return new (a||CP)(t(pI),t(pH))};
CP.\u0275prov=ec({token:CP,factory:CP.\u0275fac,providedIn:"root"});
var iNb={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},
1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},DP=iNb;DP=iNb;
var jNb={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};
var kNb={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"#E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},EP=kNb;EP=kNb;
var FP=function(){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=EP.MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;this.pattern_=
"";this.applyStandardPattern_(1)};
FP.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=lNb(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,w=!0;b[0]<q&&w;b[0]++)switch(a.charAt(b[0])){case "#":0<f?h++:e++;0<=k&&0>d&&k++;break;case "0":if(0<h)throw Error("ud`"+a);f++;0<=k&&0>d&&k++;break;case ",":0<k&&this.groupingArray_.push(k);k=0;break;case ".":if(0<=d)throw Error("vd`"+a);d=e+f+h;break;case "E":if(this.useExponentialNotation_)throw Error("wd`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<q&&"+"==a.charAt(b[0]+1)&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<q&&"0"==a.charAt(b[0]+1);)b[0]++,this.minExponentDigits_++;if(1>e+f||1>this.minExponentDigits_)throw Error("xd`"+a);w=!1;break;default:b[0]--,w=!1}0==f&&0<e&&0<=d&&(f=d,0==f&&f++,h=e-f,e=f-1,f=1);if(0>d&&0<h||0<=d&&(d<e||d>e+f)||0==k)throw Error("yd`"+a);h=e+f+h;this.maximumFractionDigits_=0<=d?h-d:0;0<=d&&(this.minimumFractionDigits_=e+f-d,0>this.minimumFractionDigits_&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(0<=d?d:h)-e;this.useExponentialNotation_&&(this.maximumIntegerDigits_=e+this.minimumIntegerDigits_,0==this.maximumFractionDigits_&&0==this.minimumIntegerDigits_&&(this.minimumIntegerDigits_=1));this.groupingArray_.push(Math.max(0,k));this.decimalSeparatorAlwaysShown_=0==d||d==h;c=b[0]-c;this.positiveSuffix_=lNb(this,a,b);b[0]<a.length&&";"==a.charAt(b[0])?(b[0]++,1!=this.multiplier_&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=lNb(this,a,b),b[0]+=c,
this.negativeSuffix_=lNb(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
FP.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(EP.DECIMAL_PATTERN);break;case 2:this.applyPattern_(EP.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(EP.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=EP.CURRENCY_PATTERN;var c=["0"],d=jNb[EP.DEF_CURRENCY_CODE];if(d){d=d[0]&7;if(0<d){c.push(".");for(var e=0;e<d;e++)c.push("0")}b=b.replace(/0.00/g,c.join(""))}a.call(this,b);break;case 5:mNb(this,1);break;case 6:mNb(this,2);break;default:throw Error("od");
}};var mNb=function(a,b){a.compactStyle_=b;a.applyPattern_(EP.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(0<a.minimumFractionDigits_)throw Error("md");a.significantDigits_=2};
FP.prototype.parse=function(a,b){b=b||[0];if(0!==this.compactStyle_)throw Error("pd");a=a.replace(/ |\u202f/g,"\u00a0");var c=a.indexOf(this.positivePrefix_,b[0])==b[0],d=a.indexOf(this.negativePrefix_,b[0])==b[0];c&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?b[0]+=this.positivePrefix_.length:d&&(b[0]+=this.negativePrefix_.length);if(a.indexOf(EP.INFINITY,b[0])==b[0]){b[0]+=EP.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,w=1,y=EP.DECIMAL_SEP,E=EP.GROUP_SEP,I=EP.EXP_SYMBOL;if(0!=this.compactStyle_)throw Error("qd");E=E.replace(/\u202f/g,"\u00a0");for(var N="";b[0]<e.length;b[0]++){var L=e.charAt(b[0]),S=nNb(L);if(0<=S&&9>=S)N+=S,k=!0;else if(L==y.charAt(0)){if(f||h)break;N+=".";f=!0}else if(L==E.charAt(0)&&("\u00a0"!=E.charAt(0)||b[0]+1<e.length&&0<=nNb(e.charAt(b[0]+1)))){if(f||h)break}else if(L==I.charAt(0)){if(h)break;N+="E";h=!0;q=b[0]}else if("+"==L||"-"==L){if(k&&q!=b[0]-1)break;N+=
L}else if(1==this.multiplier_&&L==EP.PERCENT.charAt(0)){if(1!=w)break;w=100;if(k){b[0]++;break}}else if(1==this.multiplier_&&L==EP.PERMILL.charAt(0)){if(1!=w)break;w=1E3;if(k){b[0]++;break}}else break}1!=this.multiplier_&&(w=this.multiplier_);e=parseFloat(N)/w}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?-e:e};
FP.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("rd");if(isNaN(a))return EP.NAN;var b=[];var c=a;if(0==this.compactStyle_)c=GP;else{c=Math.abs(c);var d=oNb(this,1>=c?0:pNb(c)).divisorBase;c=oNb(this,d+pNb(qNb(this,HP(c,-d)).intValue))}a=HP(a,-c.divisorBase);(d=0>a||0==a&&0>1/a)?c.negative_prefix?b.push(c.negative_prefix):(b.push(c.prefix),b.push(this.negativePrefix_)):(b.push(c.prefix),b.push(this.positivePrefix_));if(isFinite(a))if(a*=d?-1:1,
a*=this.multiplier_,this.useExponentialNotation_){var e=a;if(0==e)rNb(this,e,this.minimumIntegerDigits_,b),sNb(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=HP(e,-f);var h=this.minimumIntegerDigits_;1<this.maximumIntegerDigits_&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,0>h&&(h=this.maximumIntegerDigits_+h),e=HP(e,h),f-=h,h=1):1>this.minimumIntegerDigits_?(f++,e=HP(e,-1)):(f-=this.minimumIntegerDigits_-1,e=HP(e,this.minimumIntegerDigits_-
1));rNb(this,e,h,b);sNb(this,f,b)}}else rNb(this,a,this.minimumIntegerDigits_,b);else b.push(EP.INFINITY);d?c.negative_suffix?b.push(c.negative_suffix):(isFinite(a)&&b.push(c.suffix),b.push(this.negativeSuffix_)):(isFinite(a)&&b.push(c.suffix),b.push(this.positiveSuffix_));return b.join("")};
var qNb=function(a,b){var c=HP(b,a.maximumFractionDigits_);0<a.significantDigits_&&(c=tNb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);isFinite(c)?(b=Math.floor(HP(c,-a.maximumFractionDigits_)),a=Math.floor(c-HP(b,a.maximumFractionDigits_))):a=0;return{intValue:b,fracValue:a}},rNb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("rd");d||(d=[]);b=qNb(a,b);var e=b.intValue,f=b.fracValue,h=0<a.minimumFractionDigits_||0<f||!1;b=a.minimumFractionDigits_;
h&&(b=a.minimumFractionDigits_);for(var k="",q=e;1E20<q;)k="0"+k,q=Math.round(HP(q,-1));k=q+k;var w=EP.DECIMAL_SEP;q=EP.ZERO_DIGIT.charCodeAt(0);var y=k.length,E=0;if(0<e||0<c){for(e=y;e<c;e++)d.push(String.fromCharCode(q));if(2<=a.groupingArray_.length)for(c=1;c<a.groupingArray_.length;c++)E+=a.groupingArray_[c];c=y-E;if(0<c){e=a.groupingArray_;E=y=0;for(var I,N=EP.GROUP_SEP,L=k.length,S=0;S<L;S++)if(d.push(String.fromCharCode(q+Number(k.charAt(S)))),1<L-S)if(I=e[E],S<c){var Y=c-S;(1===I||0<I&&1===
Y%I)&&d.push(N)}else E<e.length&&(S===c?E+=1:I===S-c-y+1&&(d.push(N),y+=I,E+=1))}else{c=k;k=a.groupingArray_;e=EP.GROUP_SEP;I=c.length;N=[];for(y=k.length-1;0<=y&&0<I;y--){E=k[y];for(L=0;L<E&&0<=I-L-1;L++)N.push(String.fromCharCode(q+Number(c.charAt(I-L-1))));I-=E;0<I&&N.push(e)}d.push.apply(d,N.reverse())}}else h||d.push(String.fromCharCode(q));(a.decimalSeparatorAlwaysShown_||h)&&d.push(w);f=String(f);h=f.split("e+");2==h.length&&(f=String(tNb(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",
""),f+=fC("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+fC("0",a.maximumFractionDigits_-f.length)+f);for(a=f.length;"0"==f.charAt(a-1)&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCharCode(q+Number(f.charAt(b))))},sNb=function(a,b,c){c.push(EP.EXP_SYMBOL);0>b?(b=-b,c.push(EP.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(EP.PLUS_SIGN);b=""+b;for(var d=EP.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);c.push(b)},nNb=function(a){a=a.charCodeAt(0);if(48<=
a&&58>a)return a-48;var b=EP.ZERO_DIGIT.charCodeAt(0);return b<=a&&a<b+10?a-b:-1},lNb=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var h=b.charAt(c[0]);if("'"==h)c[0]+1<f&&"'"==b.charAt(c[0]+1)?(c[0]++,d+="'"):e=!e;else if(e)d+=h;else switch(h){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&"\u00a4"==b.charAt(c[0]+1)?(c[0]++,d+=EP.DEF_CURRENCY_CODE):(h=EP.DEF_CURRENCY_CODE,d+=h in jNb?jNb[h][1]:h);break;case "%":if(!a.negativePercentSignExpected_&&1!=
a.multiplier_)throw Error("sd");if(a.negativePercentSignExpected_&&100!=a.multiplier_)throw Error("td");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=EP.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&1!=a.multiplier_)throw Error("sd");if(a.negativePercentSignExpected_&&1E3!=a.multiplier_)throw Error("td");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=EP.PERMILL;break;default:d+=h}}return d},GP={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},
oNb=function(a,b){a=1==a.compactStyle_?DP.COMPACT_DECIMAL_SHORT_PATTERN:DP.COMPACT_DECIMAL_LONG_PATTERN;null==a&&(a=DP.COMPACT_DECIMAL_SHORT_PATTERN);if(3>b)return GP;b=Math.min(14,b);var c=a[HP(1,b)];for(--b;!c&&3<=b;)c=a[HP(1,b)],b--;if(!c)return GP;c=c.other;var d=a="",e=c.indexOf(";");0<=e&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],d=d[3]);return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],
suffix:c[3]}:GP:GP},pNb=function(a){if(!isFinite(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b},HP=function(a,b){if(!a||!isFinite(a)||0==b)return a;a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+b))},uNb=function(a,b){return a&&isFinite(a)?HP(Math.round(HP(a,b)),-b):a},tNb=function(a,b,c){if(!a)return a;b=b-pNb(a)-1;return b<-c?uNb(a,-c):uNb(a,b)};
var vNb=function(a){return 1==a%10&&11!=a%100?"one":2==a%10&&12!=a%100?"two":3==a%10&&13!=a%100?"few":"other"},wNb=vNb;wNb=vNb;
var xNb=function(a,b){var c=a|0;if(void 0===b){b=Math;var d=b.min;a+="";var e=a.indexOf(".");b=d.call(b,-1===e?0:a.length-e-1,3)}return 1==c&&0==b?"one":"other"},yNb=xNb;yNb=xNb;
var IP=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=EP;var b=DP;if(zNb!==a||ANb!==b)zNb=a,ANb=b,BNb=new FP;this.numberFormatter_=BNb},zNb=null,ANb=null,BNb=null,CNb=RegExp("'([{}#].*?)'","g"),DNb=RegExp("''","g");IP.prototype.format=function(a){return this.format_(a,!1)};
IP.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=ENb(this,this.pattern_);this.parsedPattern_=FNb(this,c);this.pattern_=null}if(!this.parsedPattern_||0==this.parsedPattern_.length)return"";this.literals_=Ba(this.initialLiterals_);c=[];GNb(this,this.parsedPattern_,a,b,c);for(a=c.join("");0<this.literals_.length;)a=a.replace(this.buildPlaceholder_(this.literals_),this.literals_.pop());return a};
var GNb=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var h=b[f].value,k=a,q=e,w=c[h];void 0===w?q.push("Undefined parameter - "+h):(k.literals_.push(w),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;w=d;var y=e,E=h.argumentIndex;void 0===q[E]?y.push("Undefined parameter - "+E):(E=h[q[E]],void 0===E&&(E=h.other),GNb(k,E,q,w,y));break;case 0:h=b[f].value;HNb(a,h,c,yNb,d,e);break;case 1:h=b[f].value,HNb(a,h,c,wNb,
d,e)}},HNb=function(a,b,c,d,e,f){var h=b.argumentIndex,k=b.argumentOffset,q=+c[h];isNaN(q)?f.push("Undefined or invalid parameter - "+h):(k=q-k,h=b[c[h]],void 0===h&&(d=d(Math.abs(k)),h=b[d],void 0===h&&(h=b.other)),b=[],GNb(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},ENb=function(a,b){var c=a.initialLiterals_,d=Vt(a.buildPlaceholder_,a);b=b.replace(DNb,function(){c.push("'");return d(c)});return b=b.replace(CNb,function(e,f){c.push(f);return d(c)})},
INb=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var h=f.index;"}"==f[0]?(c.pop(),0==c.length&&(f={type:1},f.value=a.substring(b,h),d.push(f),b=h+1)):(0==c.length&&(b=a.substring(b,h),""!=b&&d.push({type:0,value:b}),b=h+1),c.push("{"))}b=a.substring(b);""!=b&&d.push({type:0,value:b});return d},JNb=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,KNb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,LNb=/^\s*(\w+)\s*,\s*select\s*,/,FNb=function(a,b){var c=[];b=INb(b);for(var d=0;d<
b.length;d++){var e={};if(0==b[d].type)e.type=4,e.value=b[d].value;else if(1==b[d].type){var f=b[d].value;switch(JNb.test(f)?0:KNb.test(f)?1:LNb.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=MNb(a,b[d].value);break;case 0:e.type=0;e.value=NNb(a,b[d].value);break;case 1:e.type=1;e.value=ONb(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},MNb=function(a,b){var c="";b=b.replace(LNb,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=INb(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h;1==b[e].type&&(h=FNb(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},NNb=function(a,b){var c="",d=0;b=b.replace(JNb,function(q,w,y){c=w;y&&(d=parseInt(y,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=INb(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k;1==b[f].type&&(k=FNb(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},ONb=function(a,b){var c="";b=b.replace(KNb,function(k,q){c=q;return""});var d={};d.argumentIndex=
c;d.argumentOffset=0;b=INb(b);for(var e=0;e<b.length;){var f=b[e].value;e++;if(1==b[e].type)var h=FNb(a,b[e].value);d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};IP.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};
var QNb=function(a){a=Math.abs(a);if(6E4>a)return"0 minutes";var b=Math.floor(a/864E5);a%=864E5;var c=Math.floor(a/36E5),d=Math.floor(a%36E5/6E4),e=nC(b),f=nC(c),h=nC(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=PNb("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=PNb("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=PNb("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+a+c+k+d},PNb=function(a,b,c){return(new IP(a)).format({COUNT:b,TEXT:c})};
var JP=function(a,b,c,d,e){BI.call(this);var f=this;this.errorHandler=e;this.formatPrefChange$=new T.Subject;this.userTimeZone_=null;this.timeZones_={};this.cachedFormatters=a.get("bv2-date-format-formatters")||a.create("bv2-date-format-formatters",{capacity:25});this.userPrefs=oH.dateTimePreferences;Promise.all(d.supportedTimeZones.map(function(h){if(""===h.id)return Promise.resolve({name:"",timeZone:null});var k=c.get(h.id).pipe(Ye(f.destroyed$));return(0,T.firstValueFrom)(k).then(function(q){return{name:h.name,
timeZone:q}})})).then(function(h){h=r(h);for(var k=h.next();!k.done;k=h.next())k=k.value,f.timeZones_[k.name]=k.timeZone;b.preferences$.pipe(Ye(f.destroyed$)).subscribe(function(q){q.dateTimePreferences&&(q=q.dateTimePreferences,f.userPrefs=q,f.userTimeZone_=f.timeZones_[q.timeZone],f.formatPrefChange$.next())})}).catch(function(h){f.errorHandler.errorHandler(null,h)})};U(JP,BI);JP.\u0275dir=BI.\u0275dir;
JP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new ti(a),this.cachedFormatters.put(a,d));return b?d.format(c,b):d.format(c)};var RNb=function(a,b){return a.formatPrefChange$.subscribe(b)};JP.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone_,a)};JP.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone_,a)};
JP.\u0275fac=function(a){return new (a||JP)(t(mL),t(zI),t(CP),t(ZH),t(SK))};JP.\u0275prov=ec({token:JP,factory:JP.\u0275fac,providedIn:"root"});
var KP=function(a,b){var c=this;this.userPreferencesManager=a;this.timeZonesApi=b;this.cachedFormatters=new lL(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(C(function(d){return d.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(C(function(d){return d.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(Xe(function(d){return d.timeZone?c.timeZonesApi.get(d.timeZone):(0,T.of)(void 0)}))};
KP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new ti(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};KP.prototype.formatUserCalendar=function(a){var b=this;return(0,T.combineLatest)([this.userCalendarFormat$,this.userTimeZone$]).pipe(C(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
KP.prototype.formatUserTime=function(a){var b=this;return(0,T.combineLatest)([this.userTimeFormat$,this.userTimeZone$]).pipe(C(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var SNb=function(a,b){return(0,T.combineLatest)([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(C(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},TNb=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(C(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):(0,T.of)(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},v_a=function(a){var b=void 0,c=!0;b=void 0===b?0:b;c=void 0===c?!1:c;var d=new Ji;b&&d.setTime(b);b=new Ji;
b.setTime(a);if(b.getTime()<d.getTime())return"Expired";a=12*(b.getFullYear()-d.getFullYear())+(b.getMonth()-d.getMonth());var e=b.getDate()-d.getDate();0>e&&(a--,d=d.clone(),d.add(new no("m",a)),e=Math.floor((b.getTime()-d.getTime())/864E5));d=new no(Math.floor(a/12),a%12,e);if(1<=d.years)return b=1<d.years?"s":"",0===d.months&&0===d.days?c?d.years+" year"+b:d.years+"Y":c?d.years+" year"+b+" +":d.years+"Y+";if(1<=d.months)return b=1<d.months?"s":"",0===d.days?c?d.months+" month"+b:d.months+"M":c?
d.months+" month"+b+" +":d.months+"M+";b=1<d.days?"s":"";return c?d.days+" day"+b:d.days+"D"};KP.\u0275fac=function(a){return new (a||KP)(t(zI),t(CP))};KP.\u0275prov=ec({token:KP,factory:KP.\u0275fac,providedIn:"root"});
var UNb,VNb,WNb=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],XNb=Symbol("zd"),YNb=Symbol("zd"),LP=function(a){var b=this;this.dateFormatter=a;this.timestampMs$=new T.ReplaySubject(1);this.timestampDate$=this.timestampMs$.pipe(C(function(c){if(void 0!==c)return new Date(c)}));this[UNb]=this.timestampDate$.pipe(Xe(function(c){if(void 0===c)return(0,T.of)("");switch(b.mode){case "date":return b.dateFormatter.formatUserCalendar(c);case "time":return b.dateFormatter.formatUserTime(c);
case "datetime":return SNb(b.dateFormatter,c);default:return bh(b.mode)}}));this[VNb]=this.timestampDate$.pipe(Xe(function(c){return void 0===c?(0,T.of)(""):(0,T.combineLatest)(WNb.map(function(d){return TNb(b.dateFormatter,c,d.id).pipe(C(function(e){return{formatted:e,tzName:d.name}}))})).pipe(ZNb)}));this.vars$=(0,T.combineLatest)([this[XNb],this[YNb]]).pipe(C(function(c){var d=r(c);c=d.next().value;d=d.next().value;return{formatted:c,title:d}}))};LP.prototype.ngOnInit=function(){};
ki.Object.defineProperties(LP.prototype,{timestamp:{configurable:!0,enumerable:!0,set:function(a){var b=this.timestampMs$,c=b.next;b:{if(null!=a){if("number"===typeof a)break b;if("string"===typeof a){a=Date.parse(a);break b}if(a instanceof rj){a=1E3*a.getSeconds();break b}}a=void 0}a=null==a||isNaN(a)?void 0:a;c.call(b,a)}},date:{configurable:!0,enumerable:!0,set:function(a){a&&this.timestampMs$.next(a.valueOf())}}});UNb=XNb;VNb=YNb;LP.\u0275fac=function(a){return new (a||LP)(F(KP))};
LP.\u0275cmp=v({type:LP,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"title"]],template:function(a,b){a&1&&(O(0,Jya,3,2,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.vars$))},dependencies:[sx,Fx],encapsulation:2,changeDetection:0});
var ZNb=(0,T.pipe)(C(function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.get(c.formatted);d?d.tzNames.push(c.tzName):(d={formatted:c.formatted,tzNames:[c.tzName]},b.set(c.formatted,d))}return Array.from(b.values()).map(function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));
var $Nb=function(a,b,c,d){Cy.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new T.Subject;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};By(this)};U($Nb,Cy);var MP=function(a,b,c){this.checker=a;this.ngZone=b;this.document=c};MP.prototype.create=function(a){return new $Nb(a,this.checker,this.ngZone,this.document)};MP.\u0275fac=function(a){return new (a||MP)(t(zy),t(ef),t(ii))};
MP.\u0275prov=ec({token:MP,factory:MP.\u0275fac,providedIn:"root"});
var aOb=["content"],NP=function(a){BI.call(this);this.focusEscapeNotifierFactory=a;this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.dateChange=new Iw;this.cancelClicked=new Iw;this.saveClicked=new Iw;this.dateSelectionChange=new Iw;this.focusEscaped=new Iw};U(NP,BI);NP.\u0275dir=BI.\u0275dir;
NP.prototype.ngAfterViewInit=function(){var a=this;Kya(this);setTimeout(function(){Kya(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(Ye(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(0===b){var c;null==(c=a.focusEscapeNotifier)||Dnb(c)}else{var d;null==(d=a.focusEscapeNotifier)||Ay(d)}else a.focusEscaped.emit(b)})};
var Kya=function(a){var b;if(b=a.date){var c=new kC;c.setTime(b.getTime());b=c}else b=void 0;b&&(a.calendar.activeDate=b);a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};NP.\u0275fac=function(a){return new (a||NP)(F(MP))};
NP.\u0275cmp=v({type:NP,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(Zf(zB,7),Zf(aOb,7));if(a&2){var c;Yf(c=ag())&&(b.calendar=c.first);Yf(c=ag())&&(b.content=c.first)}},inputs:{required:"required",date:"date",trapFocus:"trapFocus",todayButtonEnabled:"todayButtonEnabled",noneButtonEnabled:"noneButtonEnabled",renderPanel:"renderPanel"},outputs:{dateChange:"dateChange",cancelClicked:"cancelClicked",saveClicked:"saveClicked",dateSelectionChange:"dateSelectionChange",focusEscaped:"focusEscaped"},
features:[gf],decls:10,vars:5,consts:[["content",""],[3,"selected","startAt","selectedChange"],[1,"actions"],["class","b-optional-calendar-button-row",4,"ngIf"],[1,"b-calendar-button-row"],["mat-button","",1,"cancel",3,"click"],["mat-button","",1,"save",3,"click"],[1,"b-optional-calendar-button-row"],["class","today","mat-button","",3,"click",4,"ngIf"],["class","none","mat-button","",3,"click",4,"ngIf"],["mat-button","",1,"today",3,"click"],["mat-button","",1,"none",3,"click"]],template:function(a,
b){a&1&&(G(0,"div",null,0)(2,"mat-calendar",1),K("selectedChange",function(c){b.date=c;b.dateSelectionChange.emit(c)}),H(),G(3,"div",2),O(4,Nya,4,2,"div",3),G(5,"div",4)(6,"button",5),K("click",function(){return b.cancelClicked.emit()}),P(7,"Cancel"),H(),G(8,"button",6),K("click",function(){b.dateChange.emit(b.date);return b.saveClicked.emit()}),P(9,"Save"),H()()()());a&2&&(sf("container",b.renderPanel),B(2),D("selected",b.date)("startAt",b.date),B(2),D("ngIf",b.todayButtonEnabled||b.noneButtonEnabled))},
dependencies:[sx,pB,zB,$H],styles:[".actions[_ngcontent-%COMP%]{text-align:end}.actions[_ngcontent-%COMP%]   div.b-optional-calendar-button-row[_ngcontent-%COMP%]{width:fit-content;margin:auto;align-content:center}.container[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:4px;border-radius:8px;background-color:#fff;background-color:var(--surface-default)}mat-calendar[_ngcontent-%COMP%]{width:288px;height:342px}\n/*# sourceMappingURL=date_time_picker_content.css.map */"]});
var bOb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],OP=function(a,b,c,d){BI.call(this);var e=this;this.overlay=a;this.element=b;this.ngZone=c;this.hostEl=d;this.openOnEnter=this.openOnClick=!0;this.required=this.focusTrapHost=!1;this.selectedChange=new Iw;this.dateSelectionChange=new Iw;
this.onClose=new Iw;this.opened=!1;this.destroyed$.subscribe(function(){var f;null==(f=e.overlayRef)||f.dispose()})};U(OP,BI);g=OP.prototype;g.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};g.close=function(a){a=void 0===a?!1:a;if(this.opened){var b;null==(b=this.overlayRef)||b.dispose();this.overlayRef=void 0;this.opened=!1;a||this.hostEl.nativeElement.focus();this.onClose.emit()}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-date-time-picker-backdrop",panelClass:"b-date-time-picker-popup"});a.overlayElement.setAttribute("role","dialog");return a};g.attach=function(){var a=this,b=new LA(NP),c;this.pickerContent=null==(c=this.overlayRef)?void 0:c.attach(b).instance;var d;null==(d=this.overlayRef)||d.updatePosition();setTimeout(function(){cOb(a)})};
g.getPositionStrategy=function(){return DA(EA(FA(JA(this.overlay.position(),this.element)),8),bOb)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
var cOb=function(a){if(a.pickerContent&&a.overlayRef){var b=(0,T.merge)(a.overlayRef._detachments,a.destroyed$);a.pickerContent.date=a.selected;a.pickerContent.required=a.required;a.pickerContent.trapFocus=!a.focusTrapHost;a.focusTrapHost&&a.pickerContent.focusEscaped.pipe(Ye(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});a.pickerContent.dateChange.pipe(Ye(b)).subscribe(function(c){a.selectedChange.emit(c)});a.pickerContent.dateSelectionChange.pipe(Ye(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});
(0,T.merge)(a.pickerContent.saveClicked,a.pickerContent.cancelClicked,a.overlayRef.backdropClick(),a.overlayRef.keydownEvents().pipe(De(function(c){return"Escape"===c.code}))).pipe(Ye(b)).subscribe(function(){a.close()})}};OP.\u0275fac=function(a){return new (a||OP)(F(RA),F(nd),F(ef),F(nd))};
OP.\u0275dir=v({type:OP,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&K("click",function(c){b.openOnClick&&b.open();c.preventDefault();c.stopPropagation()})("keydown.enter",function(c){b.openOnEnter&&b.open();c.preventDefault();c.stopPropagation()})("keydown.tab",function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(Ay(b.pickerContent.focusEscapeNotifier),c.preventDefault())})("keydown.shift.tab",
function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(Dnb(b.pickerContent.focusEscapeNotifier),c.preventDefault())});a&2&&nf("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter",focusTrapHost:["bDateTimePickerToggleFocusTrapHost","focusTrapHost"],required:["bDateTimePickerToggleRequired","required"],selected:["bDateTimePickerToggleSelected","selected"]},outputs:{selectedChange:"bDateTimePickerToggleSelectedChange",dateSelectionChange:"bDateTimePickerToggleDateSelectionChange",
onClose:"bDateTimePickerToggleOnClose"},exportAs:["bDateTimePickerToggle"],features:[gf]});
var dOb=["pickerToggle"],PP=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new Iw;this.destroyed$=new T.ReplaySubject};PP.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};PP.\u0275fac=function(a){return new (a||PP)};
PP.\u0275cmp=v({type:PP,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&Zf(dOb,7);if(a&2){var c;Yf(c=ag())&&(b.pickerToggle=c.first)}},inputs:{customFormId:"customFormId",customAriaLabelledBy:"customAriaLabelledBy",value:"value",required:"required"},outputs:{valueChange:"valueChange"},exportAs:["bDateTimeInput"],decls:4,vars:7,consts:[["mat-stroked-button","","type","button","bDateTimePickerToggle","",1,"gmat-button",3,"id","bDateTimePickerToggleRequired","bDateTimePickerToggleSelected",
"bDateTimePickerToggleFocusTrapHost","bDateTimePickerToggleSelectedChange"],["pickerToggle","bDateTimePickerToggle"],["mode","date",3,"date",4,"ngIf"],[4,"ngIf"],["mode","date",3,"date"]],template:function(a,b){a&1&&(G(0,"button",0,1),K("bDateTimePickerToggleSelectedChange",function(c){b.value=c;b.valueChange.emit(c)}),O(2,Oya,1,1,"b-formatted-date-time",2),O(3,Pya,2,0,"ng-container",3),H());a&2&&(D("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),nf("aria-labelledby",b.customAriaLabelledBy),B(2),D("ngIf",b.value),B(1),D("ngIf",!b.value))},dependencies:[OP,LP,pB,sx],styles:["\n/*# sourceMappingURL=date_time_input.css.map */"]});
ni(mi(function(){}));mi(function(){});new jd("MatList");new jd("MatNavList");var QP=function(){};QP.\u0275fac=function(a){return new (a||QP)};QP.\u0275dir=v({type:QP,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var RP=function(){};RP.\u0275fac=function(a){return new (a||RP)};RP.\u0275dir=v({type:RP,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});
var eOb=["text"],fOb=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],gOb=mi(function(){}),hOb=mi(function(){}),iOb={provide:ux,useExisting:ac(function(){return SP}),multi:!0},jOb=function(a,b){this.source=a;this.options=b},TP=function(a,b,c){var d=hOb.call(this)||this;d._element=a;d._changeDetector=b;d.selectionList=c;d._selected=!1;d._disabled=!1;d._hasFocus=!1;d.selectedChange=new Iw;d.checkboxPosition="after";d._inputsInitialized=!1;return d};
U(TP,hOb);g=TP.prototype;g.ngOnInit=function(){var a=this,b=this.selectionList;b._value&&b._value.some(function(d){return b.compareWith(a._value,d)})&&this._setSelected(!0);var c=this._selected;Promise.resolve().then(function(){if(a._selected||c)a.selected=!0,a._changeDetector.markForCheck()});this._inputsInitialized=!0};g.ngAfterContentInit=function(){qla(this._lines,this._element)};
g.ngOnDestroy=function(){var a=this;this.selected&&Promise.resolve().then(function(){a.selected=!1});var b=this._hasFocus,c=this.selectionList._removeOptionFromList(this);b&&c&&c.focus()};g.toggle=function(){this.selected=!this.selected};g.focus=function(){this._element.nativeElement.focus()};g.getLabel=function(){return this._text?this._text.nativeElement.textContent||"":""};g._isRippleDisabled=function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple};
g._handleClick=function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent([this]))};g._handleFocus=function(){this.selectionList._setFocusedOption(this);this._hasFocus=!0};g._handleBlur=function(){this.selectionList._onTouched();this._hasFocus=!1};g._getHostElement=function(){return this._element.nativeElement};
g._setSelected=function(a){if(a===this._selected)return!1;(this._selected=a)?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this);this.selectedChange.emit(a);this._changeDetector.markForCheck();return!0};g._markForCheck=function(){this._changeDetector.markForCheck()};
ki.Object.defineProperties(TP.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this.selectionList.color},set:function(a){this._color=a}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this.selected&&!this.selectionList.compareWith(a,this.value)&&this._inputsInitialized&&(this.selected=!1);this._value=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},
set:function(a){a=Rg(a);a!==this._disabled&&(this._disabled=a,this._changeDetector.markForCheck())}},selected:{configurable:!0,enumerable:!0,get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(a){a=Rg(a);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}}});TP.\u0275fac=function(a){return new (a||TP)(F(nd),F(lx),F(ac(function(){return SP})))};
TP.\u0275cmp=v({type:TP,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&($f(c,QP,5),$f(c,RP,5),$f(c,eB,5));if(a&2){var d;Yf(d=ag())&&(b._avatar=d.first);Yf(d=ag())&&(b._icon=d.first);Yf(d=ag())&&(b._lines=d)}},viewQuery:function(a,b){a&1&&Zf(eOb,5);if(a&2){var c;Yf(c=ag())&&(b._text=c.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&K("focus",function(){return b._handleFocus()})("blur",function(){return b._handleBlur()})("click",
function(){return b._handleClick()});a&2&&(nf("aria-selected",b.selected)("aria-disabled",b.disabled)("tabindex",-1),sf("mat-list-item-disabled",b.disabled)("mat-list-item-with-avatar",b._avatar||b._icon)("mat-primary","primary"===b.color)("mat-accent","primary"!==b.color&&"warn"!==b.color)("mat-warn","warn"===b.color)("mat-list-single-selected-option",b.selected&&!b.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",
selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[gf],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(a,b){a&1&&(Cf(fOb),G(0,"div",0),J(1,"div",1),O(2,Qya,1,2,"mat-pseudo-checkbox",
2),G(3,"div",3,4),Df(5),H(),Df(6,1),H());a&2&&(sf("mat-list-item-content-reverse","after"==b.checkboxPosition),B(1),D("matRippleTrigger",b._getHostElement())("matRippleDisabled",b._isRippleDisabled()),B(1),D("ngIf",b.selectionList.multiple))},dependencies:[iB,jB,sx],encapsulation:2,changeDetection:0});
var SP=function(a,b,c){var d=gOb.call(this)||this;d._element=a;d._changeDetector=b;d._focusMonitor=c;d._multiple=!0;d._contentInitialized=!1;d.selectionChange=new Iw;d.color="accent";d.compareWith=function(e,f){return e===f};d._disabled=!1;d.selectedOptions=new uA(d._multiple);d._tabIndex=-1;d._onChange=function(){};d._destroyed=new T.Subject;d._onTouched=function(){};return d};U(SP,gOb);g=SP.prototype;
g.ngAfterContentInit=function(){var a=this;this._contentInitialized=!0;this._keyManager=rpb(qpb(bA(aA(Yz(new gA(this.options)))),function(){return!1}));this._value&&this._setOptionsFromValues(this._value);this._keyManager.tabOut.pipe(Ye(this._destroyed)).subscribe(function(){a._allowFocusEscape()});this.options.changes.pipe(We(null),Ye(this._destroyed)).subscribe(function(){a._updateTabIndex()});this.selectedOptions.changed.pipe(Ye(this._destroyed)).subscribe(function(b){if(b.added)for(var c=r(b.added),
d=c.next();!d.done;d=c.next())d.value.selected=!0;if(b.removed)for(b=r(b.removed),d=b.next();!d.done;d=b.next())d.value.selected=!1});this._focusMonitor.monitor(this._element).pipe(Ye(this._destroyed)).subscribe(function(b){if("keyboard"===b||"program"===b){for(var c=b=0;c<a.options.length;c++){var d=void 0;if(null==(d=a.options.get(c))?0:d.selected){b=c;break}}a._keyManager.setActiveItem(b)}})};g.ngOnChanges=function(a){var b=a.disableRipple;a=a.color;(b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};
g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._element);this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0};g.focus=function(a){this._element.nativeElement.focus(a)};g.selectAll=function(){this._setAllOptionsSelected(!0)};g.deselectAll=function(){return this._setAllOptionsSelected(!1)};g._setFocusedOption=function(a){cA(this._keyManager,a)};
g._removeOptionFromList=function(a){a=this._getOptionIndex(a);-1<a&&this._keyManager.activeItemIndex===a&&(0<a?cA(this._keyManager,a-1):0===a&&1<this.options.length&&cA(this._keyManager,Math.min(a+1,this.options.length-1)));return this._keyManager.activeItem};
g._keydown=function(a){var b=a.keyCode,c=this._keyManager,d=c.activeItemIndex,e=gi(a);switch(b){case 32:case 13:e||0<c._pressedLetters.length||(this._toggleFocusedOption(),a.preventDefault());break;default:if(65!==b||!this.multiple||!gi(a,"ctrlKey")||0<c._pressedLetters.length)c.onKeydown(a);else e=this.options.some(function(f){return!f.disabled&&!f.selected}),this._setAllOptionsSelected(e,!0,!0),a.preventDefault()}this.multiple&&(38===b||40===b)&&a.shiftKey&&c.activeItemIndex!==d&&this._toggleFocusedOption()};
g._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};g._emitChangeEvent=function(a){this.selectionChange.emit(new jOb(this,a))};g.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};g.setDisabledState=function(a){this.disabled=a};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};
g._setOptionsFromValues=function(a){var b=this;this.options.forEach(function(c){return c._setSelected(!1)});a.forEach(function(c){var d=b.options.find(function(e){return e.selected?!1:b.compareWith(e.value,c)});d&&d._setSelected(!0)})};g._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};
g._toggleFocusedOption=function(){var a=this._keyManager.activeItemIndex;null!=a&&this._isValidIndex(a)&&(!(a=this.options.toArray()[a])||a.disabled||!this._multiple&&a.selected||(a.toggle(),this._emitChangeEvent([a])))};g._setAllOptionsSelected=function(a,b,c){var d=[];this.options.forEach(function(e){b&&e.disabled||!e._setSelected(a)||d.push(e)});d.length&&(this._reportValueChange(),c&&this._emitChangeEvent(d));return d};g._isValidIndex=function(a){return 0<=a&&a<this.options.length};
g._getOptionIndex=function(a){return this.options.toArray().indexOf(a)};g._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};g._allowFocusEscape=function(){var a=this;this._tabIndex=-1;setTimeout(function(){a._tabIndex=0;a._changeDetector.markForCheck()})};g._updateTabIndex=function(){this._tabIndex=0===this.options.length?-1:0};
ki.Object.defineProperties(SP.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Rg(a);this._markOptionsForCheck()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=Rg(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new uA(this._multiple,this.selectedOptions.selected))}}});SP.\u0275fac=function(a){return new (a||SP)(F(nd),F(lx),F(Iz))};
SP.\u0275cmp=v({type:SP,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&$f(c,TP,5);if(a&2){var d;Yf(d=ag())&&(b.options=d)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(a,b){a&1&&K("keydown",function(c){return b._keydown(c)});a&2&&nf("aria-multiselectable",b.multiple)("aria-disabled",b.disabled.toString())("tabindex",b._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",
multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Lf([iOb]),gf,Ac],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Cf(),Df(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border: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 .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});
var UP=function(){};UP.\u0275fac=function(a){return new (a||UP)};UP.\u0275mod=rc({type:UP});UP.\u0275inj=fc({imports:[[fB,mB,VA,nB,Mx],fB,VA,nB,eI]});
var kOb=["filterInput"],VP=function(a){BI.call(this);this.dateFormatter=a;this.enumChoices=[];this.onSave=new Iw;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};U(VP,BI);VP.\u0275dir=BI.\u0275dir;g=VP.prototype;g.ngOnInit=function(){this.initValues()};g.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};g.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(Xe(function(){return(0,T.timer)(0)}),Ye(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){yi(this.trigger)};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;null==(a=this.filterElement)||a.nativeElement.focus()};var lOb=function(a){return a.filterValue&&"REPEATED_DATE"!==a.type?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
VP.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),mOb(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};VP.prototype.valueChanged=function(){var a=this;return Array.from(this.valueMap.keys()).some(function(b){var c=a.valueMap.get(b);b=a.originalValueMap.get(b);return c||void 0!==b?c!==b:!1})};
VP.prototype.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=r(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);mOb(this)};
var mOb=function(a){a.sortedValues=Array.from(a.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:!1===c?-1:0)-(b?1:!1===b?-1:0)})},Sya=function(a){return!!a.filterValue&&"REPEATED_ENUM"!==a.type&&"REPEATED_DATE"!==a.type};VP.prototype.getDisplayString=function(a){return"REPEATED_DATE"===this.type?this.dateFormatter.formatUserCalendar(Li(a)):a};VP.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
VP.\u0275fac=function(a){return new (a||VP)(F(JP))};
VP.\u0275cmp=v({type:VP,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(Zf(TE,5),Zf(kOb,5));if(a&2){var c;Yf(c=ag())&&(b.trigger=c.first);Yf(c=ag())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},features:[gf,Ac],decls:13,vars:7,consts:[["mat-button","","type","button",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["customFieldMenu",
"matMenu"],["class","multi-edit-menuitem","role","option",3,"title",4,"ngFor","ngForOf"],[1,"filter"],["mat-input","","step","any",3,"type","ngModel","placeholder","keydown","click","ngModelChange",4,"ngIf"],[4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["role","option",1,"multi-edit-menuitem",3,"title"],[3,"checked","indeterminate","change","click"],["mat-input","","step","any",3,"type","ngModel","placeholder","keydown","click","ngModelChange"],["filterInput",""],["mat-menu-item","",3,"click"],
[3,"value","valueChange"],["mat-menu-item","","aria-label","Add a date value","tabindex","0","aria-haspopup","true",3,"click"]],template:function(a,b){a&1&&(G(0,"button",0)(1,"span"),P(2),H(),J(3,"b-icon",1),H(),G(4,"mat-menu",null,2),O(6,Rya,3,4,"div",3),J(7,"mat-divider"),G(8,"div",4),O(9,Tya,2,3,"input",5),H(),O(10,Uya,1,0,"mat-divider",6),O(11,Vya,2,0,"div",7),O(12,Wya,4,1,"div",6),H());if(a&2){var c=Hf(5);D("matMenuTriggerFor",c);B(2);Jf(b.getLabel());B(4);D("ngForOf",lOb(b));B(3);D("ngIf","REPEATED_DATE"!==
b.type);B(1);D("ngIf",Sya(b));B(1);D("ngIf",Sya(b));B(1);D("ngIf","REPEATED_DATE"===b.type)}},dependencies:[wx,sx,QE,OE,TE,$H,uH,pB,LO,Fg,by,hy,PP],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}\n/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});
var WP=function(){this.relayOnly=!1;this.keydown$=new T.Subject};WP.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};ki.Object.defineProperties(WP.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});WP.\u0275fac=function(a){return new (a||WP)};
WP.\u0275dir=v({type:WP,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&K("keydown",function(c){return b.onKeydown(c)});a&2&&nf("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"}});
var nOb=0,XP=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+nOb;this.closePanel$=new T.ReplaySubject(1);nOb++};XP.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;("Escape"===b||a.altKey&&"ArrowUp"===b)&&this.closePanel$.next()};XP.\u0275fac=function(a){return new (a||XP)(F(WP,8))};
XP.\u0275cmp=v({type:XP,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&Zf(Vf,7);if(a&2){var c;Yf(c=ag())&&(b.templateRef=c.first)}},exportAs:["onedevPopupPanel"],ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"onedev-popup-panel","gmat-elevation-z2",3,"keydown"]],template:function(a){a&1&&(Cf(),O(0,Xya,2,1,"ng-template"))},styles:[".onedev-popup-panel{background-color:var(--surface-default,#fff);border-radius:4px;overflow:auto}.onedev-popup-panel:focus{outline:0}"],encapsulation:2});
var YP=function(a,b,c,d){this.overlay=a;this.element=b;this.viewContainerRef=c;this.focusTrapFactory=d;this.disabled=!1;this.closeOnBackdropClick=!0;this.opened=new Iw;this.closed=new Iw;this.isOpen=!1;this.destroyed$=new T.ReplaySubject(1);this.closingActionsSubscription=T.Subscription.EMPTY};YP.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
YP.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new MA(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=oOb(this).pipe(Ye(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
YP.prototype.close=function(){if(this.isOpen){this.isOpen=!1;var a;if(null==(a=this.overlayRef)?0:a.hasAttached())this.overlayRef.detach(),this.overlayRef.dispose();this.focusTrap&&this.focusTrap.destroy();this.closingActionsSubscription.unsubscribe();this.element.nativeElement.focus();this.closed.emit()}};YP.prototype.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();return this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"onedev-popup-panel-backdrop"})};
var oOb=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?(0,T.merge)(b,c,d):(0,T.merge)(c,d)};YP.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),Enb(this.focusTrap))};
YP.prototype.getPositionStrategy=function(){return DA(EA(FA(JA(this.overlay.position(),this.element)),8),[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])};YP.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
ki.Object.defineProperties(YP.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});YP.\u0275fac=function(a){return new (a||YP)(F(RA),F(nd),F(Wf),F(Wz))};
YP.\u0275dir=v({type:YP,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&nf("aria-disabled",b.disabled)("aria-expanded",b.isOpen||null)("aria-controls",b.isOpen?b.popupPanel.id:null)},inputs:{onedevPopupPanelTriggerFor:"onedevPopupPanelTriggerFor",disabled:["onedevPopupPanelTriggerDisabled","disabled"],closeOnBackdropClick:["onedevPopupPanelTriggerCloseOnBackdropClick","closeOnBackdropClick"]},outputs:{opened:"onedevPopupPanelTriggerOpened",
closed:"onedevPopupPanelTriggerClosed"},exportAs:["onedevPopupPanelTrigger"]});
var pOb=0,ZP=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+pOb;pOb+=1};ZP.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};ZP.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};ZP.\u0275fac=function(a){return new (a||ZP)(F(lx))};
ZP.\u0275dir=v({type:ZP,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Af("id",b.id),sf("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"]});var $P=function(){};$P.\u0275fac=function(a){return new (a||$P)};$P.\u0275mod=rc({type:$P});$P.\u0275inj=fc({imports:[[]]});
var Zya=function(){return{$implicit:void 0}},bza=function(a){return{$implicit:a}},aQ=function(a){this.includeEmptyOption=this.disabled=!1;this.valueChange=new Iw;this.selected=new Iw;this.destroyed$=new T.ReplaySubject(1);a&&this.handleKeydown(a.keydown$)};g=aQ.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=Zz(new fA(this.viewOptions))};g.ngOnChanges=function(a){a.value&&qOb(this)};
g.isSelected=function(a){return this.value===a};g.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};var qOb=function(a){if(a.keyManager)if(a.includeEmptyOption&&a.isSelected(void 0))a.keyManager.setActiveItem(0);else{var b=a.options.findIndex(function(c){return a.isSelected(c)});-1!==b&&a.keyManager.setActiveItem(a.includeEmptyOption?b+1:b)}};aQ.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
aQ.prototype.handleKeydown=function(a){var b=this;a.pipe(Ye(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;"ArrowUp"===d||"ArrowDown"===d?(c.preventDefault(),b.keyManager.onKeydown(c)):"Home"===d||"End"===d?(c.preventDefault(),"Home"===d?dA(b.keyManager):eA(b.keyManager)):"Enter"!==d&&"Space"!==d||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};aQ.\u0275fac=function(a){return new (a||aQ)(F(WP,8))};
aQ.\u0275cmp=v({type:aQ,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&Zf(ZP,5);if(a&2){var c;Yf(c=ag())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&K("focus",function(){return qOb(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,nf("aria-activedescendant",a)("aria-disabled",b.disabled)("aria-label",b.label))},inputs:{value:"value",options:"options",
optionTemplate:"optionTemplate",disabled:"disabled",includeEmptyOption:"includeEmptyOption",label:"label"},outputs:{valueChange:"valueChange",selected:"selected"},features:[Ac],decls:4,vars:2,consts:[["role","option","onedevListOption","",3,"option","click",4,"ngIf"],[4,"ngFor","ngForOf"],["optionDisplay",""],["role","option","onedevListOption","",3,"option","click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["customOptionDisplay",""],["emptyOption",""],["aria-label",
"empty"]],template:function(a,b){a&1&&(O(0,$ya,2,5,"div",0),O(1,dza,2,1,"ng-container",1),O(2,jza,3,2,"ng-template",null,2,gg));a&2&&(D("ngIf",b.includeEmptyOption),B(1),D("ngForOf",b.options))},dependencies:[wx,sx,Cx,ZP],styles:["[role=option][_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;color:var(--text-default)}[role=option][_ngcontent-%COMP%]:hover{cursor:pointer}[role=option].active[_ngcontent-%COMP%], [role=option][_ngcontent-%COMP%]:active{background-color:var(--option-active-bg,#e8f0fe)}[role=option][aria-selected=true][_ngcontent-%COMP%]{background-color:var(--option-selected-bg,#d2e3fc)}"],
changeDetection:0});
var bQ=function(){};
var rOb=["trigger"],lza=function(a){return{$implicit:a}},sOb=0,cQ=function(a){this.includeEmptyOption=this.disabled=!1;this.label="";this.valueChange=new Iw;this.displayArrowIcon=!0;this.focused=this.required=this.openPopupOnInit=!1;this.contentId="onedev-single-select-"+sOb;this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0;sOb++};U(cQ,bQ);g=cQ.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};g.writeValue=function(a){this.val=a};g.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};g.isActive=function(){return this.popupTrigger.isOpen||this.focused};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.registerOnChange=function(a){this.onChange=a};
g.registerOnTouched=function(a){this.onTouched=a};var tOb=function(a){var b="";a.label&&(b+=a.label+", ");a.required&&(b+="required, ");return b};cQ.prototype.setDisabledState=function(a){this.disabled=a};ki.Object.defineProperties(cQ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});cQ.\u0275fac=function(a){return new (a||cQ)(Xc("required"))};
cQ.\u0275cmp=v({type:cQ,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&Zf(rOb,7);if(a&2){var c;Yf(c=ag())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",openPopupOnInit:"openPopupOnInit"},outputs:{valueChange:"valueChange"},features:[Lf([{provide:ux,useExisting:ac(function(){return cQ}),
multi:!0},{provide:bQ,useExisting:ac(function(){return cQ}),multi:!0}]),gf],decls:13,vars:17,consts:[["onedevPopupPanelTrigger","",3,"onedevPopupPanelTriggerDisabled","disabled","onedevPopupPanelTriggerFor","focus","blur","click","closed"],["trigger","onedevPopupPanelTrigger"],[1,"cdk-visually-hidden"],[4,"ngIf","ngIfElse"],["optionTemplateOrTextLabel",""],["textLabel",""],["class","arrow-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],["onedevKeyEventReceiver","",3,"relayOnly"],
["panel","onedevPopupPanel"],["tabindex","0",1,"single-select-panel",3,"value","includeEmptyOption","options","optionTemplate","label","valueChange","selected"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["emptyValue",""],["aria-label","empty"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"arrow-icon"],["d","M7 10l5 5 5-5H7z"]],template:function(a,b){if(a&1){var c=x();G(0,"button",0,1);K("focus",function(){return b.focused=!0})("blur",function(){return b.focused=!1})("click",
function(){z(c);var f=Hf(1);return A(f.open())})("closed",function(){b.onTouched()});G(2,"span",2);P(3);H();O(4,mza,2,4,"ng-container",3);O(5,pza,1,2,"ng-template",null,4,gg);O(7,sza,3,2,"ng-template",null,5,gg);O(9,tza,2,0,"svg",6);H();G(10,"onedev-popup-panel",7,8)(12,"onedev-selectable-list",9);K("valueChange",function(f){return b.onSelectionChange(f)})("selected",function(){z(c);var f=Hf(1);return A(f.close())});H()()}if(a&2){var d=Hf(6),e=Hf(11);sf("active",b.isActive());D("onedevPopupPanelTriggerDisabled",
b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",e);nf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);Jf(tOb(b));B(1);D("ngIf",b.valueTemplate)("ngIfElse",d);B(5);D("ngIf",b.displayArrowIcon);B(1);D("relayOnly",!0);B(2);D("value",b.value)("includeEmptyOption",b.includeEmptyOption)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)}},dependencies:[sx,Cx,WP,aQ,XP,YP],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;font-size:13px;padding:4px 4px 4px 6px;text-align:start}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.arrow-icon[_ngcontent-%COMP%]{margin-left:auto;width:18px;height:18px;color:var(--icon,#5f6368);fill:currentColor}.single-select-panel[_ngcontent-%COMP%]{display:block;min-width:85px;max-height:300px}.single-select-panel[_ngcontent-%COMP%]:focus{outline:0}"]});
var Aza=function(){return[]},dQ=function(a,b){this.data=a;this.dialogRef=b;this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=[];this.bulkEditOps=[];this.issues=a};g=dQ.prototype;
g.ngOnInit=function(){for(var a=new Map,b=null,c=r(this.issues),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.customFieldMap;e=e.customFieldValueMap;if(!b){b=new Map;for(var f=r(Object.keys(d)),h=f.next();!h.done;h=f.next())h=h.value,b.set(Ki(h),e[h]||void 0)}f=r(b);for(h=f.next();!h.done;h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;var q=d[h],w=e[h],y=void 0,E=null==(y=q)?void 0:y.type;if(q)if("REPEATED_DATE"===E||"REPEATED_ENUM"===E||"REPEATED_NUMERIC"===E||"REPEATED_TEXT"===
E){k=this.repeatedCustomFieldsMap.get(h)||new Map;q=0===k.size;w=uOb(w);y=Array.from(k.keys()).concat(w);y=r(y);for(E=y.next();!E.done;E=y.next())E=E.value,w.includes(E)?k.has(E)||k.set(E,q||null):k.set(E,null);this.repeatedCustomFieldsMap.set(h,k)}else(!w&&void 0!==k||w&&!Ei(w,k))&&b.set(h,null);else b.delete(h)}d=r(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),Fi(f))}this.customFields=Array.from(b.keys()).map(function(I){return a.get(I)}).filter(function(I){return I});
this.customFields=this.customFields.map(function(I){var N=b.get(I.customFieldId);I.hasMultipleValues=null===N;N?I=Object.assign(N,I):I.hasMultipleValues||"ENUM"!==I.type||(I.enumValue="");return I});c=r(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,Fi(d))};
g.clearCustomFieldValue=function(a){a.hasMultipleValues=!1;switch(a.type){case "TEXT":a.textValue="";break;case "DATE":a.dateValue=null;break;case "ENUM":a.enumValue="";break;case "NUMERIC":a.numericValue=null}};g.getCustomFieldName=function(a){return a.name};g.isCustomFieldRequired=function(a){return a.required};g.getCustomFieldAllowedValues=function(a){return a.allowedValue};g.getCustomFieldType=function(a){return a.type};
var qo=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},uOb=function(a){if(!a)return[];var b=a.repeatedTextValue||a.repeatedDateValue||a.repeatedEnumValue||a.repeatedNumericValue;return b?b.values.map(function(c){return a.repeatedDateValue?c.month+"/"+c.day+"/"+c.year:c.toString()}):[]},yza=function(a){return a?Lk(a):null},Cza=function(a,b,c){for(var d=r(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(y){return y.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(y){return y.actions.length});if(c.valueChanged){d={};e=r(a.issues);for(var f=e.next();!f.done;d={$jscomp$loop$prop$issueValues$1646:d.$jscomp$loop$prop$issueValues$1646,$jscomp$loop$prop$action$1647:d.$jscomp$loop$prop$action$1647},f=e.next()){f=f.value;var h=Dja(f.customFieldValueMap,function(y){return y.customFieldId===b});d.$jscomp$loop$prop$issueValues$1646=uOb(h);c.valueMap.forEach(function(y){return function(E,I){E&&!y.$jscomp$loop$prop$issueValues$1646.includes(I)?
y.$jscomp$loop$prop$issueValues$1646.push(I):!1===E&&(y.$jscomp$loop$prop$issueValues$1646=y.$jscomp$loop$prop$issueValues$1646.filter(function(N){return N!==I}))}}(d));h=a.originalCustomFields.get(b).type;var k=[],q=[];"REPEATED_DATE"==h?k=d.$jscomp$loop$prop$issueValues$1646.map(function(y){return Mk(Li(y))}):"REPEATED_NUMERIC"==h&&(q=d.$jscomp$loop$prop$issueValues$1646.map(function(y){return Number(y)}));var w=new lJ({customFieldId:b});switch(h){case "REPEATED_TEXT":w.repeatedTextValue={values:d.$jscomp$loop$prop$issueValues$1646};
break;case "REPEATED_DATE":w.repeatedDateValue={values:k};break;case "REPEATED_ENUM":w.repeatedEnumValue={values:d.$jscomp$loop$prop$issueValues$1646};break;case "REPEATED_NUMERIC":w.repeatedNumericValue={values:q}}d.$jscomp$loop$prop$action$1647={fieldName:"customField",customFieldValue:w,actionType:w.isEmpty()?"REMOVE":"ADD"};h=a.bulkEditOps.findIndex(function(y){return function(E){return E.actions.some(function(I){return Ei(y.$jscomp$loop$prop$action$1647,I)})}}(d));-1!==h?a.bulkEditOps[h].issueIds.push(f.issueId):
a.bulkEditOps.push({actions:[d.$jscomp$loop$prop$action$1647],issueIds:[f.issueId]})}}},vOb=function(a){var b=a.customFields.filter(function(h){return!h.type.includes("REPEATED")&&!Ei(h,a.originalCustomFields.get(h.customFieldId))}),c=[];b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=new lJ({customFieldId:e.customFieldId});switch(e.type){case "TEXT":d.textValue=e.textValue;break;case "DATE":d.dateValue=e.dateValue||void 0;break;case "ENUM":d.enumValue=e.enumValue;break;case "NUMERIC":d.numericValue=
e.numericValue||void 0}if(e=d.isEmpty())d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var f=a.issues.map(function(h){return h.issueId});b=a.bulkEditOps.findIndex(function(h){a:if(h=h.issueIds,Ca(f)&&Ca(h)&&f.length==h.length){for(var k=f.length,q=0;q<k;q++)if(f[q]!==h[q]){h=!1;break a}h=!0}else h=!1;return h});-1!==b?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:f})}};
dQ.\u0275fac=function(a){return new (a||dQ)(F(FB),F(AB))};
dQ.\u0275cmp=v({type:dQ,selectors:[["b-bulk-custom-field-dialog"]],decls:10,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],["class","bv2-create-adv-field",4,"ngFor","ngForOf"],["mat-button","","mat-dialog-close","","type","button",3,"class"],["mat-flat-button","","type","button","color","primary",1,"gmat-button","medium","dialog-primary-action","save",3,"click"],[1,"bv2-create-adv-field"],[1,"bv2-top-field-label"],["matTooltipPosition","right",3,"matTooltip"],[3,"ngIf","ngIfElse"],["multipleValues",
""],[3,"ngSwitch"],["name","customInput","placeholder","no value","type","text",3,"ngModel","ngModelChange",4,"ngSwitchCase"],["step","any","name","customInput","type","number",3,"ngModel","ngModelChange",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"value","options","valueChange",4,"ngSwitchCase"],[3,"type","originalValueMap","enumChoices","onSave",4,"ngSwitchDefault"],["name","customInput","placeholder","no value","type","text",3,"ngModel","ngModelChange"],["step","any","name","customInput","type","number",
3,"ngModel","ngModelChange"],[3,"value","required","customAriaLabelledBy","customFormId","valueChange"],[3,"value","options","valueChange"],[3,"type","originalValueMap","enumChoices","onSave"],["title","Clear values",3,"click"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1,"Update custom fields"),H(),G(2,"mat-dialog-content"),O(3,uza,2,0,"div",1),O(4,Gza,8,6,"div",2),H(),G(5,"mat-dialog-actions")(6,"button",3),K("class",function(){return b.dialogRef.close()}),P(7,"Cancel"),H(),G(8,"button",4),K("click",
function(){vOb(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),P(9," Save "),H()());a&2&&(B(3),D("ngIf",0===b.customFields.length),B(1),D("ngForOf",b.customFields))},dependencies:[wx,sx,yx,zx,Ax,IB,JB,KB,LB,cQ,VP,Fg,jy,by,hy,PP,pB,$E],encapsulation:2});
var eQ=function(){};eQ.\u0275fac=function(a){return new (a||eQ)};eQ.\u0275mod=rc({type:eQ});eQ.\u0275inj=fc({imports:[[Mx]]});
var fQ=function(){};fQ.\u0275fac=function(a){return new (a||fQ)};fQ.\u0275mod=rc({type:fQ});fQ.\u0275inj=fc({imports:[[Mx,dF,jG,aH,eI,Rz]]});
var wOb=function(a){this.patternParts_=[];this.dateTimeSymbols_=aC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)};
wOb.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(" "==e)for(0<c.length&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=""),this.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});d<a.length-1&&" "==a.charAt(d+1);)d++;else if(b)"'"==e?d+1<a.length&&"'"==a.charAt(d+1)?(c+="'",d++):b=!1:c+=e;else if(0<="GyMdkHmsSEDabBhKzZvQL".indexOf(e)){0<c.length&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=
"");for(var f=a.charAt(d),h=d+1;h<a.length&&a.charAt(h)==f;)h++;f=h-d;0>=f?h=!1:(h="MydhHmsSDkK".indexOf(e),h=0<h||0==h&&3>f);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:h});d+=f-1}else"'"==e?d+1<a.length&&"'"==a.charAt(d+1)?(c+="'",d++):b=!0:c+=e}0<c.length&&this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1});a=!1;for(b=0;b<this.patternParts_.length;b++)this.patternParts_[b].numeric?!a&&b+1<this.patternParts_.length&&this.patternParts_[b+1].numeric&&(a=!0,this.patternParts_[b].abutStart=
!0):a=!1};wOb.prototype.applyStandardPattern_=function(a){11<a&&(a=10);if(4>a)var b=this.dateTimeSymbols_.DATEFORMATS[a];else 8>a?b=this.dateTimeSymbols_.TIMEFORMATS[a-4]:(b=this.dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.dateTimeSymbols_.TIMEFORMATS[a-8]));this.applyPattern_(b)};
wOb.prototype.parse=function(a,b,c){var d=!1,e=!1;c&&(d=c.predictive||!1,e=c.validate||!1);if(d)for(c=0;c<this.patternParts_.length;c++){var f=this.patternParts_[c];if(0<f.count&&(0>"ahHkKm".indexOf(f.text.charAt(0))||2<f.count||f.abutStart))throw Error("Ad`"+f.text.charAt(0));}f=new xOb;c=[0];for(var h=0;h<this.patternParts_.length&&!(d&&c[0]>=a.length);h++){if(0==this.patternParts_[h].count){a:{var k=a;var q=this.patternParts_[h],w=d;if(" "==q.text.charAt(0)){if(q=c[0],yOb(k,c),c[0]>q){k=!0;break a}}else{if(k.indexOf(q.text,
c[0])==c[0]){c[0]+=q.text.length;k=!0;break a}if(w&&0==q.text.indexOf(k.substring(c[0]))){c[0]+=k.length-c[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[h].abutStart){a:{q=a;w=h;var y=c[0],E=0;for(k=w;k<this.patternParts_.length&&0!=this.patternParts_[k].count;k++){var I=this.patternParts_[k].count;if(k==w&&(I-=E,E++,0==I)){k=0;break a}zOb(this,q,c,this.patternParts_[k],I,f,!1)||(k=w-1,c[0]=y)}k-=w}if(0>=k)return 0;h+=k-1}else if(!zOb(this,a,c,this.patternParts_[h],0,f,d))return 0}a:{a=
e;if(null==b)throw Error("Bd");void 0!=f.era&&void 0!=f.year&&0==f.era&&0<f.year&&(f.year=-(f.year-1));void 0!=f.year&&b.setFullYear(f.year);d=b.getDate();b.setDate(1);void 0!=f.month&&b.setMonth(f.month);void 0!=f.day?b.setDate(f.day):(e=Vqb(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));"function"===typeof b.setHours&&(void 0==f.hours&&(f.hours=b.getHours()),void 0!=f.ampm&&0<f.ampm&&12>f.hours&&(f.hours+=12),b.setHours(f.hours));"function"===typeof b.setMinutes&&void 0!=f.minutes&&b.setMinutes(f.minutes);
"function"===typeof b.setSeconds&&void 0!=f.seconds&&b.setSeconds(f.seconds);"function"===typeof b.setMilliseconds&&void 0!=f.milliseconds&&b.setMilliseconds(f.milliseconds);if(a&&(f.year&&f.year!=b.getFullYear()||f.month&&f.month!=b.getMonth()||f.day&&f.day!=b.getDate()||f.hours&&24<=f.hours||f.minutes&&60<=f.minutes||f.seconds&&60<=f.seconds||f.milliseconds&&1E3<=f.milliseconds))b=!1;else{void 0!=f.tzOffset&&b.setTime(b.getTime()+6E4*(f.tzOffset-b.getTimezoneOffset()));f.ambiguousYear&&(a=new Date,
a.setFullYear(a.getFullYear()-80),b.getTime()<a.getTime()&&b.setFullYear(a.getFullYear()+100));if(void 0!=f.dayOfWeek)if(void 0==f.day)f=(7+f.dayOfWeek-b.getDay())%7,3<f&&(f-=7),a=b.getMonth(),b.setDate(b.getDate()+f),b.getMonth()!=a&&b.setDate(b.getDate()+(0<f?-7:7));else if(f.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0};
var zOb=function(a,b,c,d,e,f,h){yOb(b,c);if(d.numeric&&0<e&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return gQ(b,c,[a.dateTimeSymbols_.ERAS],function(k){f.era=k}),!0;case "M":case "L":return AOb(a,b,c,e,d,f);case "E":return gQ(b,c,[a.dateTimeSymbols_.WEEKDAYS,a.dateTimeSymbols_.SHORTWEEKDAYS],function(k){f.dayOfWeek=k});case "B":case "b":case "a":return a=gQ(b,c,[a.dateTimeSymbols_.AMPMS],function(k){f.ampm=k},h),h?a:!0;case "y":return BOb(a,b,c,d,e,f);case "Q":return gQ(b,c,[a.dateTimeSymbols_.QUARTERS,
a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=3*k;f.day=1});case "d":return hQ(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return COb(a,b,c,e,f);case "h":case "K":case "H":case "k":return a=hQ(a,b,c,d,e,function(k){f.hours="h"===d.text.charAt(0)&&12===k?0:k},h),h?a:!0;case "m":return a=hQ(a,b,c,d,e,function(k){f.minutes=k},h),h?a:!0;case "s":return hQ(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return DOb(a,b,c,f);default:return!1}},BOb=function(a,b,c,d,e,f){var h=c[0];
e=iQ(a,b,c,e);null===e&&(e=iQ(a,b,c,0,!0));if(null===e)return!1;0<=e&&2==c[0]-h&&2==d.count?(a=e,b=(new Date).getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=100*Math.floor(b/100)+(a<c?100:0),f.year=a):f.year=e;return!0},AOb=function(a,b,c,d,e,f){return e.numeric&&hQ(a,b,c,e,d,function(h){f.month=h-1})?!0:gQ(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},COb=function(a,b,c,d,e){var f=
c[0];a=iQ(a,b,c,d);if(null===a)return!1;c=c[0]-f;e.milliseconds=3>c?a*Math.pow(10,3-c):Math.round(a/Math.pow(10,c-3));return!0},DOb=function(a,b,c,d){b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);if(c[0]>=b.length)return d.tzOffset=0,!0;var e=c[0],f=iQ(a,b,c,0,!0);if(null===f)return!1;if(c[0]<b.length&&":"==b.charAt(c[0])){var h=60*f;c[0]++;f=iQ(a,b,c,0);if(null===f)return!1;h+=f}else h=f,h=24>h&&3>=c[0]-e?60*h:h%100+h/100*60;d.tzOffset=-h;return!0},hQ=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=iQ(a,b,
c,e);if(null===a)return!1;if(h&&c[0]-k<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-k))}f(a);return!0},gQ=function(a,b,c,d,e){e=e||!1;for(var f,h=0;h<c.length;h++){f=b;for(var k=c[h],q=e,w=0,y=null,E=a.substring(f[0]).toLowerCase(),I=0;I<k.length;I++){var N=k[I].toLowerCase();if(q&&0==N.indexOf(E)){w=E.length;y=I;break}k[I].length>w&&0==E.indexOf(N)&&(w=k[I].length,y=I)}null!==y&&(f[0]+=w);f=y;if(null!==f)return d(f),!0}return!1},yOb=function(a,b){(a=a.substring(b[0]).match(/^\s+/))&&
(b[0]+=a[0].length)},iQ=function(a,b,c,d,e){b=0<d?b.substring(0,c[0]+d):b;e=e||!1;if(a.dateTimeSymbols_.ZERODIGIT){d=[];for(var f=c[0];f<b.length;f++){var h=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=h&&9>=h?String.fromCharCode(h+48):b.charAt(f))}b=d.join("")}else b=b.substring(c[0]);a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},xOb=function(){};xOb.prototype.ambiguousYear=!1;
var EOb=Array(31).fill(0).map(function(a,b){return""+(b+1)}),jQ=function(){var a=WA.apply(this,arguments)||this;a.locale=aC;return a};U(jQ,WA);g=jQ.prototype;g.setLocale=function(){throw Error("Cd");};g.getYear=function(a){return a.getYear()};g.getMonth=function(a){return a.getMonth()};g.getDate=function(a){return a.getDate()};g.getDayOfWeek=function(a){return a.getDay()};g.getMonthNames=function(a){switch(a){case "long":return this.locale.MONTHS;case "narrow":return this.locale.NARROWMONTHS;default:return this.locale.SHORTMONTHS}};
g.getDateNames=function(){return EOb};g.getDayOfWeekNames=function(a){switch(a){case "long":return this.locale.WEEKDAYS;case "narrow":return this.locale.NARROWWEEKDAYS;default:return this.locale.SHORTWEEKDAYS}};g.getYearName=function(a){return""+a.getFullYear()};g.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};g.getNumDaysInMonth=function(a){return Vqb(a.getFullYear(),a.getMonth())};g.clone=function(a){return a.clone()};g.createDate=function(a,b,c){return new kC(a,b,c)};
g.today=function(){return new kC};g.parse=function(a,b){if(""===a)return null;b=new wOb(b);var c=new kC(new Date(a));b.parse(a,c);return c};g.format=function(a,b){if(!this.isValid(a))throw Error("Dd");return(new ti(b)).format(a)};g.addCalendarYears=function(a,b){a=a.clone();a.add(new no(b));return a};g.addCalendarMonths=function(a,b){a=a.clone();a.add(new no(0,b));return a};g.addCalendarDays=function(a,b){a=a.clone();a.add(new no(0,0,b));return a};g.isDateInstance=function(a){return a instanceof kC};
g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new kC(NaN)};g.sameDate=function(a,b){return a&&b?(new Ji(a)).equals(b):!1};jQ.\u0275fac=function(){var a;return function(b){return(a||(a=cd(jQ)))(b||jQ)}}();jQ.\u0275prov=ec({token:jQ,factory:jQ.\u0275fac});
var FOb={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",YEAR_MONTH_SHORT:"MM/y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d",MONTH_DAY_TIME_ZONE_SHORT:"MMM d, h:mm a zzzz"},kQ=FOb;kQ=FOb;
var lQ=aC.DATEFORMATS[3];lQ=lQ.replace(/yyyy/,"yy").replace(/yy/,"yyyy");"M/d/yyyy"===lQ&&(lQ="MM/dd/yyyy");var GOb={parse:{dateInput:lQ},display:{dateInput:lQ,monthYearLabel:kQ.YEAR_MONTH_ABBR,dateA11yLabel:kQ.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:kQ.YEAR_MONTH_FULL}};
var mQ=function(){};mQ.\u0275fac=function(a){return new (a||mQ)};mQ.\u0275mod=rc({type:mQ});mQ.\u0275inj=fc({providers:[{provide:WA,useClass:jQ},{provide:$A,useValue:GOb}],imports:[[fQ,eQ,dF,jG,Mx]]});
var nQ=function(){};nQ.\u0275fac=function(a){return new (a||nQ)};nQ.\u0275mod=rc({type:nQ});nQ.\u0275inj=fc({imports:[[Mx,UE,eI,UP,dI,jG,$B,PO,wy,mQ]]});
var oQ=function(){};oQ.\u0275fac=function(a){return new (a||oQ)};oQ.\u0275mod=rc({type:oQ});oQ.\u0275inj=fc({imports:[[Mx]]});
var pQ=function(){};pQ.\u0275fac=function(a){return new (a||pQ)};pQ.\u0275mod=rc({type:pQ});pQ.\u0275inj=fc({imports:[[Mx,UA,QA,jG,bH,Rz,oN]]});
var qQ=function(){};qQ.\u0275fac=function(a){return new (a||qQ)};qQ.\u0275mod=rc({type:qQ});qQ.\u0275inj=fc({imports:[[Mx,jG,$P]]});
var rQ=function(){};rQ.\u0275fac=function(a){return new (a||rQ)};rQ.\u0275mod=rc({type:rQ});rQ.\u0275inj=fc({imports:[[Mx,dF,jG,wy,oQ,qQ,pQ]]});
var sQ=function(){};sQ.\u0275fac=function(a){return new (a||sQ)};sQ.\u0275mod=rc({type:sQ});sQ.\u0275inj=fc({imports:[[Mx,MB,rQ,nQ,wy,mQ,jG,bH]]});
var HOb=new jd("GMAT_CHECKBOX_OPTION");
var IOb=new Map([["primary","mat-primary"],["accent","mat-accent"],["warn","mat-warn"]]),tQ=function(a,b){this.elementRef=a;this.gmatCheckboxOption=b;this.color="primary";this.hasGmatAttribute=a.nativeElement.hasAttribute("gmat-checkbox")};tQ.prototype.ngOnInit=function(){this.isEnabled()&&(this.elementRef.nativeElement.classList.remove.apply(this.elementRef.nativeElement.classList,u(IOb.values())),this.elementRef.nativeElement.classList.add(IOb.get(this.color)))};
tQ.prototype.isEnabled=function(){return this.gmatCheckboxOption?this.hasGmatAttribute||this.gmatCheckboxOption.enabled:this.hasGmatAttribute};tQ.\u0275fac=function(a){return new (a||tQ)(F(nd),F(HOb,8))};tQ.\u0275dir=v({type:tQ,selectors:[["mat-checkbox","gmat-checkbox",""],["mat-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&sf("gmat-checkbox",b.isEnabled())},inputs:{color:"color"}});
var uQ=function(){};uQ.\u0275fac=function(a){return new (a||uQ)};uQ.\u0275mod=rc({type:uQ});uQ.\u0275inj=fc({});
var vQ=function(){this.ariaLabelledby=this.ariaLabel="";this.indeterminate=this.disabled=this.checked=!1;this.label="";this.wrap=!1;this.labelPosition="after";this.tooltip="";this.change=new Iw;this.click=new Iw;this.labelClick=new Iw};vQ.prototype.onClick=function(a){this.click.emit(a)};vQ.\u0275fac=function(a){return new (a||vQ)};
vQ.\u0275cmp=v({type:vQ,selectors:[["b-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&sf("wrap",b.wrap)},inputs:{ariaLabel:"ariaLabel",ariaLabelledby:"ariaLabelledby",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",wrap:"wrap",labelPosition:"labelPosition",tooltip:"tooltip"},outputs:{change:"change",click:"click",labelClick:"labelClick"},decls:3,vars:8,consts:[["gmat-checkbox","",3,"aria-label","aria-labelledby","checked","disabled","indeterminate","labelPosition",
"matTooltip","click","change"],[3,"click"]],template:function(a,b){a&1&&(G(0,"mat-checkbox",0),K("click",function(c){return b.onClick(c)})("change",function(c){b.checked=c.checked;b.change.emit(c.checked)}),G(1,"span",1),K("click",function(c){b.labelClick.emit(c)}),P(2),H()());a&2&&(D("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("checked",b.checked)("disabled",b.disabled)("indeterminate",b.indeterminate)("labelPosition",b.labelPosition)("matTooltip",b.tooltip),B(2),Jf(b.label))},
dependencies:[tQ,LO,$E],styles:[".wrap[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-label[_ngcontent-%COMP%]{white-space:normal !important}mat-checkbox[_ngcontent-%COMP%]:focus-within   div.mat-checkbox-ripple[_ngcontent-%COMP%]{left:calc(50% - 15px);top:calc(50% - 15px);height:30px;width:30px;background-color:#dadce0;background-color:var(--c300);z-index:auto;border-radius:100%}"],changeDetection:0});var wQ=function(){};wQ.\u0275fac=function(a){return new (a||wQ)};
wQ.\u0275mod=rc({type:wQ});wQ.\u0275inj=fc({imports:[[uQ,PO,bH]]});
var xQ=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Iw;this.clickHandler=function(c){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}};xQ.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};xQ.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};xQ.\u0275fac=function(a){return new (a||xQ)(F(nd))};
xQ.\u0275dir=v({type:xQ,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var yQ=function(){};yQ.\u0275fac=function(a){return new (a||yQ)};yQ.\u0275mod=rc({type:yQ});yQ.\u0275inj=fc({imports:[[]]});
var zQ=function(a){this.codefont$=a.codeFont$};zQ.\u0275fac=function(a){return new (a||zQ)(t(zI))};zQ.\u0275prov=ec({token:zQ,factory:zQ.\u0275fac,providedIn:"root"});
var JOb=function(a){return["chip","gmat-caption",a]},AQ=function(){this.variant="grey";this.isTall=!1};AQ.\u0275fac=function(a){return new (a||AQ)};
AQ.\u0275cmp=v({type:AQ,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&sf("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(Cf(),G(0,"div",0)(1,"div",1),Df(2),H()());a&2&&D("ngClass",Nf(1,JOb,b.variant))},dependencies:[vx],styles:["[_nghost-%COMP%]{--chip-grey-bg:var(--grey-100,#f1f3f4);--chip-blue-bg:var(--blue-50,#e8f0fe);--chip-red-bg:var(--red-50,#fce8e6);--chip-yellow-bg:var(--yellow-50,#fef7e0);--chip-green-bg:var(--green-50,#e6f4ea);--chip-orange-bg:var(--orange-50,#feefe3);--chip-pink-bg:var(--pink-50,#fde7f3);--chip-purple-bg:var(--purple-50,#f3e8fd);--chip-cyan-bg:var(--cyan-50,#e4f7fb);--chip-grey-icon:var(--grey-700,#5f6368);--chip-blue-icon:var(--blue-700,#1967d2);--chip-red-icon:var(--red-700,#c5221f);--chip-yellow-icon:#9b5400;--chip-green-icon:var(--green-800,#137333);--chip-orange-icon:#9b5400;--chip-pink-icon:var(--pink-800,#b80672);--chip-purple-icon:var(--purple-700,#8430ce);--chip-cyan-icon:var(--cyan-900,#007b83);--chip-text:var(--text-default,#202124)}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]{border-radius:12px;height:24px;font-weight:500}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{height:16px;margin-right:4px}body.dark-mode[_nghost-%COMP%], body.dark-mode   [_nghost-%COMP%]{--chip-grey-bg:#505357;--chip-blue-bg:#314972;--chip-red-bg:#6c322f;--chip-yellow-bg:#725d1e;--chip-green-bg:#2c553a;--chip-orange-bg:#714625;--chip-pink-bg:#702f55;--chip-purple-bg:#523272;--chip-cyan-bg:#275e6b;--chip-grey-icon:var(--grey-200,#e8eaed);--chip-blue-icon:var(--blue-200,#aecbfa);--chip-red-icon:var(--red-200,#f6aea9);--chip-yellow-icon:var(--yellow-200,#fde293);--chip-green-icon:var(--green-200,#a8dab5);--chip-orange-icon:var(--orange-200,#fdc69c);--chip-pink-icon:var(--pink-200,#fba9d6);--chip-purple-icon:var(--purple-200,#d7aefb);--chip-cyan-icon:var(--cyan-200,#a1e4f2);--chip-text:var(--white,#fff)}.chip[_ngcontent-%COMP%]{background-color:var(--chip-grey-bg);border-radius:10px;color:var(--chip-text);display:inline-block;height:20px;padding:0 6px}.chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;line-height:12px;margin-bottom:4px;margin-top:4px}.chip.yellow[_ngcontent-%COMP%]{background-color:var(--chip-yellow-bg)}.chip.green[_ngcontent-%COMP%]{background-color:var(--chip-green-bg)}.chip.blue[_ngcontent-%COMP%]{background-color:var(--chip-blue-bg)}.chip.orange[_ngcontent-%COMP%]{background-color:var(--chip-orange-bg)}.chip.pink[_ngcontent-%COMP%]{background-color:var(--chip-pink-bg)}.chip.cyan[_ngcontent-%COMP%]{background-color:var(--chip-cyan-bg)}.chip.red[_ngcontent-%COMP%]{background-color:var(--chip-red-bg)}.chip.purple[_ngcontent-%COMP%]{background-color:var(--chip-purple-bg)}"],
changeDetection:0});var BQ=function(a){this.chip=a};BQ.\u0275fac=function(a){return new (a||BQ)(F(AQ))};BQ.\u0275dir=v({type:BQ,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&rf("color","var(--chip-"+b.chip.variant+"-icon")("font-size",b.chip.isTall?"16px":"12px")("height",b.chip.isTall?"16px":"12px")("margin","0 4px 0 0")("width",b.chip.isTall?"16px":"12px")}});
var CQ=function(){};CQ.\u0275fac=function(a){return new (a||CQ)};CQ.\u0275cmp=v({type:CQ,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&nf("aria-hidden",!0)},attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&P(0,"\u00a0\u00b7\u00a0")},encapsulation:2});
var KOb=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],LOb=function(a){return{"with-avatar":a}},DQ=function(){};DQ.prototype.ngOnInit=function(){};DQ.\u0275fac=function(a){return new (a||DQ)};
DQ.\u0275cmp=v({type:DQ,selectors:[["onedev-person-hovercard-body"]],inputs:{person:"person",outOfOfficeDescription:"outOfOfficeDescription"},ngContentSelectors:["[onedev-additional-content]","onedev-hovercard-action"],decls:14,vars:10,consts:[["role","dialog","aria-label","Person hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"contact-info",3,"ngClass"],["aria-hidden","true","class","avatar",3,"src","alt",4,"ngIf"],[1,"name","gmat-headline-4"],["class","email gmat-body-3",
4,"ngIf"],["class","chips gmat-caption",4,"ngIf"],[1,"content","gmat-body-3"],[4,"ngIf"],["aria-hidden","true",1,"avatar",3,"src","alt"],[1,"email","gmat-body-3"],[1,"chips","gmat-caption"],["variant","yellow"],["onedevChipIcon","","svgIcon","event_busy_24px"],["svgIcon","work_outline_24px"],[1,"detail"],[1,"dot-separated-list"],["onedevDot","",4,"ngIf"],["onedevDot",""],["svgIcon","location_pin_24px"],["svgIcon","link_24px"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(a,
b){a&1&&(Cf(KOb),G(0,"div",0)(1,"div",1)(2,"div",2),O(3,Hza,1,2,"img",3),G(4,"div",4),P(5),H(),O(6,Iza,2,1,"div",5),H(),O(7,Jza,4,1,"div",6),G(8,"div",7),O(9,Oza,7,3,"ng-container",8),O(10,Pza,4,1,"ng-container",8),O(11,Qza,19,4,"ng-container",8),Df(12),H()(),Df(13,1),H());a&2&&(B(2),D("ngClass",Nf(8,LOb,b.person.imageUrl)),B(1),D("ngIf",b.person.imageUrl),B(2),If(" ",b.person.name||b.person.email," "),B(1),D("ngIf",b.person.name),B(1),D("ngIf",b.outOfOfficeDescription),B(2),D("ngIf",b.person.title||
b.person.department),B(1),D("ngIf",b.person.location),B(1),D("ngIf",b.person.ldap))},dependencies:[AQ,BQ,vx,sx,CQ,LE],styles:[".onedev-hovercard-content{--onedev-card-background:var(--surface-default,#fff);--onedev-card-title-text:var(--text-default,#202124);--onedev-card-icon:var(--icon,#5f6368);--onedev-card-secondary-text:var(--text-secondary,#5f6368);--onedev-card-link-color:var(--primary-default,#1a73e8)}.onedev-hovercard-content{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content .onedev-hovercard-body{padding:20px}.onedev-hovercard-content .onedev-hovercard-body a{color:var(--onedev-card-link-color)}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar{display:grid;grid-template-columns:48px auto;-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar .avatar{grid-row:1/span 2}.onedev-hovercard-content .onedev-hovercard-body .contact-info .name{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content .onedev-hovercard-body .contact-info .email{grid-row:2;grid-column:2}.onedev-hovercard-content .onedev-hovercard-body .title{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content .onedev-hovercard-body .chips{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body mat-icon{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content .onedev-hovercard-body .content{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:12px 0 0}.onedev-hovercard-content .onedev-hovercard-body .content .detail{margin-top:2px}.onedev-hovercard-content .onedev-hovercard-body .content:empty{margin-top:0}.onedev-hovercard-content .onedev-hovercard-body .subcontent:not(:last-child){margin-bottom:8px}.onedev-hovercard-content .onedev-hovercard-body .label{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list li{display:inline}.avatar{border-radius:50%;object-fit:cover;height:48px;width:48px}"],
encapsulation:2,changeDetection:0});
var MOb=function(){};
var uo=function(){this.Serializable$values={}},ro=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},EQ=function(a,b){return null!=a.Serializable$values[b]};
var NOb=function(){};
var OOb=function(a,b){this.requestService=a;this.hookFactory=void 0===b?null:b};U(OOb,NOb);
var POb=function(a,b,c){var d=Rza(a.hookFactory,b);return null==d?c:T.EMPTY.pipe(Ze({complete:function(){d.onBeforeSend()}}),cga(c.pipe(Ze(function(e){d.onSuccess(e)},function(e){d.onError(e)}))))},QOb=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof uo?so(b.body,Vza,Wza,Xza):b.body;return POb(a,b,e.call(d,{path:b.path,httpMethod:b.httpMethod,methodId:b.methodId,body:f,queryParams:b.queryParams,streamingType:b.streamingType&&b.streamingType},c))};
var ROb=function(){};ROb.prototype.send=function(a,b){Sza(a);return this.makeRequest(a).pipe(C(function(c){return b?aAa(b,c):c}))};
var SOb=new jd("API_VERSION"),TOb=new jd("REQUEST_SERVICE"),FQ=function(){};FQ.\u0275fac=function(a){return new (a||FQ)};FQ.\u0275mod=rc({type:FQ});FQ.\u0275inj=fc({});
var UOb={$Xgafv:"$.xgafv",access_token:"access_token",affinityType:"affinity.type",alt:"alt",authDelegationContextDelegationType:"authDelegationContext.delegationType",authDelegationContextObfuscatedOwnerId:"authDelegationContext.obfuscatedOwnerId",authDelegationContextUnicornObfuscatedOwnerId:"authDelegationContext.unicorn.obfuscatedOwnerId",blockDirection:"blockDirection",callback:"callback",client:"client",clientId:"client.id",clientVersionClientAgent:"clientVersion.clientAgent",clientVersionClientType:"clientVersion.clientType",
clientVersionClientVersion:"clientVersion.clientVersion",clientVersionGmsCoreContextAppManagementContext:"clientVersion.gmsCoreContext.appManagementContext",clientVersionGmsCoreContextIsFirstParty:"clientVersion.gmsCoreContext.isFirstParty",clientVersionGmsCoreContextPackageName:"clientVersion.gmsCoreContext.packageName",clientVersionGmsCoreContextPackageSignature:"clientVersion.gmsCoreContext.packageSignature",consentOptionsStrategy:"consentOptions.strategy",contactId:"contactId",contactListType:"contactListType",
contactLookupOptionsEmailLookupType:"contactLookupOptions.emailLookupType",container:"container",containerId:"containerId",containerIds:"containerIds",contextAllowedRequesterState:"context.allowedRequesterState",contextAuthDelegationContextDelegationType:"context.authDelegationContext.delegationType",contextAuthDelegationContextObfuscatedOwnerId:"context.authDelegationContext.obfuscatedOwnerId",contextAuthDelegationContextUnicornObfuscatedOwnerId:"context.authDelegationContext.unicorn.obfuscatedOwnerId",
contextClientType:"context.clientType",contextClientVersionClientAgent:"context.clientVersion.clientAgent",contextClientVersionClientType:"context.clientVersion.clientType",contextClientVersionClientVersion:"context.clientVersion.clientVersion",contextClientVersionGmsCoreContextAppManagementContext:"context.clientVersion.gmsCoreContext.appManagementContext",contextClientVersionGmsCoreContextIsFirstParty:"context.clientVersion.gmsCoreContext.isFirstParty",contextClientVersionGmsCoreContextPackageName:"context.clientVersion.gmsCoreContext.packageName",
contextClientVersionGmsCoreContextPackageSignature:"context.clientVersion.gmsCoreContext.packageSignature",contextConsistencyContextBase64EncodedZookie:"context.consistencyContext.base64EncodedZookie",contextConsistencyContextDirectoryVersionToken:"context.consistencyContext.directoryVersionToken",contextConsistencyContextFbsRequireAllImportantWritesUpToTime:"context.consistencyContext.fbsRequireAllImportantWritesUpToTime",contextConsistencyContextFbsVersionInfo:"context.consistencyContext.fbsVersionInfo",
contextConsistencyOptionsLevel:"context.consistencyOptions.level",contextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",contextConsistencyOptionsLevelOptionsExactTimestamp:"context.consistencyOptions.levelOptions.exactTimestamp",contextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",contextMigrationOptionsUseClusterBased:"context.migrationOptions.useClusterBased",
contextMigrationOptionsUseLegacyRequestMaskBehavior:"context.migrationOptions.useLegacyRequestMaskBehavior",contextMigrationOptionsUseNewRequestMaskBehavior:"context.migrationOptions.useNewRequestMaskBehavior",contextRequestGroupLoggingId:"context.requestGroupLoggingId",contextRightOfPublicityContext:"context.rightOfPublicityContext",coreIdParamsCheckIdentityAcl:"coreIdParams.checkIdentityAcl",coreIdParamsEnablePrivateAccountEmails:"coreIdParams.enablePrivateAccountEmails",coreIdParamsEnablePrivateNames:"coreIdParams.enablePrivateNames",
coreIdParamsIdentityAclOptionsMode:"coreIdParams.identityAclOptions.mode",coreIdParamsIgnoreAclConditionIgnoreAclConditionType:"coreIdParams.ignoreAclCondition.ignoreAclConditionType",coreIdParamsUseRealtimeNotificationExpandedAcls:"coreIdParams.useRealtimeNotificationExpandedAcls",customLookupType:"customLookupType",dataFormatsAffinityFormatsScoreFormat:"dataFormats.affinityFormats.scoreFormat",dataFormatsProfilePhotoOptionsPrivateUrlFormat:"dataFormats.profilePhotoOptions.privateUrlFormat",dedupeOption:"dedupeOption",
delayFullSync:"delayFullSync",delegatedGroupIdDelegatedGroupId:"delegatedGroupId.delegatedGroupId",deleteContacts:"deleteContacts",deleteTrashedContacts:"deleteTrashedContacts",deletionContextMutationContextAndroidDeviceInfoId:"deletionContext.mutationContext.androidDeviceInfo.id",deletionContextMutationContextSource:"deletionContext.mutationContext.source",deletionContextMutationContextThirdPartyInfoClientName:"deletionContext.mutationContext.thirdPartyInfo.clientName",deletionContextMutationContextThirdPartyInfoProjectNumber:"deletionContext.mutationContext.thirdPartyInfo.projectNumber",
deletionContextMutationContextTimestamp:"deletionContext.mutationContext.timestamp",deviceId:"deviceId",deviceIdentifierClientInstanceId:"deviceIdentifier.clientInstanceId",deviceIdentityDeviceId:"deviceIdentity.deviceId",existingSelectionsId:"existingSelections.id",existingSelectionsIdType:"existingSelections.idType",existingSelectionsQuery:"existingSelections.query",extensionSetExtendedRequestDataPeopleBackendExtensionApplication:"extensionSet.extendedRequestData.peopleBackendExtension.application",
extensionSetExtensionNames:"extensionSet.extensionNames",fieldFilterField:"fieldFilter.field",fieldMask:"fieldMask",fieldValueFilterAdminAssistants:"fieldValueFilter.adminAssistants",fieldValueFilterDottedLineManagers:"fieldValueFilter.dottedLineManagers",fieldValueFilterExecAssistants:"fieldValueFilter.execAssistants",fieldValueFilterIndirectManagers:"fieldValueFilter.indirectManagers",fieldValueFilterIndirectManagersWithMaxNumHops:"fieldValueFilter.indirectManagersWithMaxNumHops",fieldValueFilterManagers:"fieldValueFilter.managers",
fieldValueFilterProfileExternalIdCustomTag:"fieldValueFilter.profileExternalId.customTag",fieldValueFilterProfileExternalIdStandardTag:"fieldValueFilter.profileExternalId.standardTag",fieldValueFilterProfileExternalIdValue:"fieldValueFilter.profileExternalId.value",fields:"fields",getPeopleRequestContextAllowedRequesterState:"getPeopleRequest.context.allowedRequesterState",getPeopleRequestContextAuthDelegationContextDelegationType:"getPeopleRequest.context.authDelegationContext.delegationType",getPeopleRequestContextAuthDelegationContextObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.obfuscatedOwnerId",
getPeopleRequestContextAuthDelegationContextUnicornObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.unicorn.obfuscatedOwnerId",getPeopleRequestContextClientType:"getPeopleRequest.context.clientType",getPeopleRequestContextClientVersionClientAgent:"getPeopleRequest.context.clientVersion.clientAgent",getPeopleRequestContextClientVersionClientType:"getPeopleRequest.context.clientVersion.clientType",getPeopleRequestContextClientVersionClientVersion:"getPeopleRequest.context.clientVersion.clientVersion",
getPeopleRequestContextClientVersionGmsCoreContextAppManagementContext:"getPeopleRequest.context.clientVersion.gmsCoreContext.appManagementContext",getPeopleRequestContextClientVersionGmsCoreContextIsFirstParty:"getPeopleRequest.context.clientVersion.gmsCoreContext.isFirstParty",getPeopleRequestContextClientVersionGmsCoreContextPackageName:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageName",getPeopleRequestContextClientVersionGmsCoreContextPackageSignature:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageSignature",
getPeopleRequestContextConsistencyContextDirectoryVersionToken:"getPeopleRequest.context.consistencyContext.directoryVersionToken",getPeopleRequestContextConsistencyOptionsLevel:"getPeopleRequest.context.consistencyOptions.level",getPeopleRequestContextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"getPeopleRequest.context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",getPeopleRequestContextConsistencyOptionsLevelOptionsExactTimestamp:"getPeopleRequest.context.consistencyOptions.levelOptions.exactTimestamp",
getPeopleRequestContextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"getPeopleRequest.context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",getPeopleRequestContextMigrationOptionsUseClusterBased:"getPeopleRequest.context.migrationOptions.useClusterBased",getPeopleRequestContextMigrationOptionsUseLegacyRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useLegacyRequestMaskBehavior",getPeopleRequestContextMigrationOptionsUseNewRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useNewRequestMaskBehavior",
getPeopleRequestContextRequestGroupLoggingId:"getPeopleRequest.context.requestGroupLoggingId",getPeopleRequestContextRightOfPublicityContext:"getPeopleRequest.context.rightOfPublicityContext",getPeopleRequestCoreIdParamsCheckIdentityAcl:"getPeopleRequest.coreIdParams.checkIdentityAcl",getPeopleRequestCoreIdParamsEnablePrivateAccountEmails:"getPeopleRequest.coreIdParams.enablePrivateAccountEmails",getPeopleRequestCoreIdParamsEnablePrivateNames:"getPeopleRequest.coreIdParams.enablePrivateNames",getPeopleRequestCoreIdParamsIdentityAclOptionsMode:"getPeopleRequest.coreIdParams.identityAclOptions.mode",
getPeopleRequestCoreIdParamsIgnoreAclConditionIgnoreAclConditionType:"getPeopleRequest.coreIdParams.ignoreAclCondition.ignoreAclConditionType",getPeopleRequestCoreIdParamsUseRealtimeNotificationExpandedAcls:"getPeopleRequest.coreIdParams.useRealtimeNotificationExpandedAcls",getPeopleRequestDataFormatsAffinityFormatsScoreFormat:"getPeopleRequest.dataFormats.affinityFormats.scoreFormat",getPeopleRequestDataFormatsProfilePhotoOptionsPrivateUrlFormat:"getPeopleRequest.dataFormats.profilePhotoOptions.privateUrlFormat",
getPeopleRequestDedupeOption:"getPeopleRequest.dedupeOption",getPeopleRequestExtensionSetExtendedRequestDataPeopleBackendExtensionApplication:"getPeopleRequest.extensionSet.extendedRequestData.peopleBackendExtension.application",getPeopleRequestExtensionSetExtensionNames:"getPeopleRequest.extensionSet.extensionNames",getPeopleRequestIncludeFieldAcl:"getPeopleRequest.includeFieldAcl",getPeopleRequestIncludedProfileStates:"getPeopleRequest.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsCertificateParamsRequestCertificates:"getPeopleRequest.mergedPersonSourceOptions.certificateParams.requestCertificates",
getPeopleRequestMergedPersonSourceOptionsConnectedSitesOptionsConnectedSiteType:"getPeopleRequest.mergedPersonSourceOptions.connectedSitesOptions.connectedSiteType",getPeopleRequestMergedPersonSourceOptionsDataJoinParamsProfileJoinType:"getPeopleRequest.mergedPersonSourceOptions.dataJoinParams.profileJoinType",getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",
getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterFilterType:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.filterType",getPeopleRequestMergedPersonSourceOptionsIncludeAccountLocale:"getPeopleRequest.mergedPersonSourceOptions.includeAccountLocale",getPeopleRequestMergedPersonSourceOptionsIncludeAffinity:"getPeopleRequest.mergedPersonSourceOptions.includeAffinity",getPeopleRequestMergedPersonSourceOptionsIncludedContactDeletionStates:"getPeopleRequest.mergedPersonSourceOptions.includedContactDeletionStates",
getPeopleRequestMergedPersonSourceOptionsIncludedProfileStates:"getPeopleRequest.mergedPersonSourceOptions.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsPersonModelParamsPersonModel:"getPeopleRequest.mergedPersonSourceOptions.personModelParams.personModel",getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPhotoTypes",getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPlaces:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPlaces",
getPeopleRequestPersonId:"getPeopleRequest.personId",getPeopleRequestRequestConfigContextConfigKey:"getPeopleRequest.requestConfigContext.configKey",getPeopleRequestRequestConfigContextVersion:"getPeopleRequest.requestConfigContext.version",getPeopleRequestRequestMaskCustomRequestMask:"getPeopleRequest.requestMask.customRequestMask",getPeopleRequestRequestMaskImageUrlType:"getPeopleRequest.requestMask.imageUrlType",getPeopleRequestRequestMaskIncludeContainer:"getPeopleRequest.requestMask.includeContainer",
getPeopleRequestRequestMaskIncludeField:"getPeopleRequest.requestMask.includeField",getPeopleRequestRequestMaskIncludePeopleInCommon:"getPeopleRequest.requestMask.includePeopleInCommon",getPeopleRequestRequestMaskPersonAttribute:"getPeopleRequest.requestMask.personAttribute",getPeopleRequestRequestMaskPhotoOptionsPrivateUrlFormat:"getPeopleRequest.requestMask.photoOptions.privateUrlFormat",graphRestricts:"graphRestricts",groupExtensionSetExtensionNames:"groupExtensionSet.extensionNames",groupId:"groupId",
id:"id",includeAllAvailableSources:"includeAllAvailableSources",includeAllReachablePeople:"includeAllReachablePeople",includeBlocks:"includeBlocks",includeContent:"includeContent",includeFieldAcl:"includeFieldAcl",includeLinkedPeople:"includeLinkedPeople",includeOthers:"includeOthers",includedProfileStates:"includedProfileStates",key:"key",matchType:"matchType",maxContacts:"maxContacts",mergedPersonSourceOptionsCertificateParamsRequestCertificates:"mergedPersonSourceOptions.certificateParams.requestCertificates",
mergedPersonSourceOptionsConnectedSitesOptionsConnectedSiteType:"mergedPersonSourceOptions.connectedSitesOptions.connectedSiteType",mergedPersonSourceOptionsDataJoinParamsProfileJoinType:"mergedPersonSourceOptions.dataJoinParams.profileJoinType",mergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",mergedPersonSourceOptionsDeviceContactFilterFilterType:"mergedPersonSourceOptions.deviceContactFilter.filterType",
mergedPersonSourceOptionsIncludeAccountLocale:"mergedPersonSourceOptions.includeAccountLocale",mergedPersonSourceOptionsIncludeAffinity:"mergedPersonSourceOptions.includeAffinity",mergedPersonSourceOptionsIncludedContactDeletionStates:"mergedPersonSourceOptions.includedContactDeletionStates",mergedPersonSourceOptionsIncludedProfileStates:"mergedPersonSourceOptions.includedProfileStates",mergedPersonSourceOptionsPersonModelParamsPersonModel:"mergedPersonSourceOptions.personModelParams.personModel",
mergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"mergedPersonSourceOptions.placeParams.requestPhotoTypes",mergedPersonSourceOptionsPlaceParamsRequestPlaces:"mergedPersonSourceOptions.placeParams.requestPlaces",oauth_token:"oauth_token",objectTypesRestricts:"objectTypesRestricts",options:"options",orderBy:"orderBy",pageSize:"pageSize",pageToken:"pageToken",pagingOptionsPageSize:"pagingOptions.pageSize",pagingOptionsPageToken:"pagingOptions.pageToken",peopleType:"peopleType",personAttribute:"personAttribute",
personExpansion:"personExpansion",personId:"personId",photoOptionsMaxHeight:"photoOptions.maxHeight",photoOptionsMaxWidth:"photoOptions.maxWidth",placeParamsRequestPlaces:"placeParams.requestPlaces",postPhotoMutateReadOption:"postPhotoMutateReadOption",prefixQuery:"prefixQuery",prettyPrint:"prettyPrint",profileId:"profileId",profileLookupOptionsEmailLookupOption:"profileLookupOptions.emailLookupOption",profileLookupOptionsExcludeGaiaAccountTypes:"profileLookupOptions.excludeGaiaAccountTypes",profileLookupOptionsUseTrustedClientPhoneLookupQuota:"profileLookupOptions.useTrustedClientPhoneLookupQuota",
query:"query",quotaFilterType:"quotaFilterType",quotaUser:"quotaUser",requestConfigContextConfigKey:"requestConfigContext.configKey",requestConfigContextVersion:"requestConfigContext.version",requestMask:"requestMask",requestMaskCustomRequestMask:"requestMask.customRequestMask",requestMaskImageUrlType:"requestMask.imageUrlType",requestMaskIncludeContainer:"requestMask.includeContainer",requestMaskIncludeField:"requestMask.includeField",requestMaskIncludePeopleInCommon:"requestMask.includePeopleInCommon",
requestMaskPersonAttribute:"requestMask.personAttribute",requestMaskPhotoOptionsPrivateUrlFormat:"requestMask.photoOptions.privateUrlFormat",requestOptionsRequireConsistency:"requestOptions.requireConsistency",requestOptionsTreatRestrictsAsFilter:"requestOptions.treatRestrictsAsFilter",requireCompleteResults:"requireCompleteResults",returnedFieldAcl:"returnedFieldAcl",searchSettingsMinTotalItemsAccuracy:"searchSettings.minTotalItemsAccuracy",searchSettingsNumToScore:"searchSettings.numToScore",searchSettingsScoringType:"searchSettings.scoringType",
skipPostMutateGet:"skipPostMutateGet",sortOptionsSortField:"sortOptions.sortField",sortOptionsSortOrder:"sortOptions.sortOrder",source:"source",sources:"sources",squery:"squery",stFieldSpecExpressionsExpressionNames:"stFieldSpecExpressions.expressionNames",stFieldSpecExpressionsExpressions:"stFieldSpecExpressions.expressions",startIndex:"startIndex",stquery:"stquery",syncParametersFullSyncOption:"syncParameters.fullSyncOption",syncParametersSyncToken:"syncParameters.syncToken",syncToken:"syncToken",
type:"type",uploadType:"uploadType",upload_protocol:"upload_protocol",useBytes:"useBytes"},GQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new OOb(b,c)};GQ.prototype.list=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;return QOb(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:Tza(a,UOb,b)})};GQ.\u0275fac=function(a){return new (a||GQ)(t(SOb,8),t(TOb),t(MOb,8))};
GQ.\u0275prov=ec({token:GQ,factory:GQ.\u0275fac});var HQ=function(){};HQ.\u0275fac=function(a){return new (a||HQ)};HQ.\u0275prov=ec({token:HQ,factory:function(a){return GQ.\u0275fac(a)},providedIn:FQ});var IQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new OOb(b,c)};IQ.\u0275fac=function(a){return new (a||IQ)(t(SOb,8),t(TOb),t(MOb,8))};IQ.\u0275prov=ec({token:IQ,factory:IQ.\u0275fac});var JQ=function(){};JQ.\u0275fac=function(a){return new (a||JQ)};
JQ.\u0275prov=ec({token:JQ,factory:function(a){return IQ.\u0275fac(a)},providedIn:FQ});
var dAa=/.*@google.com/,VOb=new jd("onedevPeopleServiceConfig"),WOb={},KQ=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new T.Subject;this.config=WOb;c&&c.pipe(Ze(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),Ye(this.destroy$)).subscribe({next:function(e){d.config=e}})},XOb=function(a,b){return a.lookupApiClient.list({id:[b],type:"EMAIL",matchType:"EXACT",requestMaskIncludeField:"person.email,person.name,person.photo,person.organization",
requestMaskIncludeContainer:["PROFILE","DOMAIN_PROFILE","CONTACT","DOMAIN_CONTACT","GOOGLE_GROUP"],sources:["PROFILE_SOURCE"],access_token:a.config.accessToken}).pipe(C(function(c){var d;var e,f,h,k=null==c?void 0:null==(e=c.matches)?void 0:null==(f=e[0])?void 0:null==(h=f.personId)?void 0:h[0];if(k){var q;c=null==c?void 0:null==(q=c.people)?void 0:q[k];var w;k=null==(w=gAa(null==c?void 0:c.email))?void 0:w.value;var y,E;w=null==c?void 0:null==(y=c.name)?void 0:null==(E=y[0])?void 0:E.displayName;
var I;y=null==c?void 0:null==(d=c.photo)?void 0:null==(I=d[0])?void 0:I.url;E=fAa(null==c?void 0:c.organization);d=null==E?void 0:E.title;I=null==E?void 0:E.department;E=null==E?void 0:E.location;d={ldap:eAa(k),email:k||b||"",name:w||"",imageUrl:y,title:d,department:I,location:E}}else d={ldap:eAa(b),name:"",email:b};return d}))};KQ.prototype.ngOnDestroy=function(){this.destroy$.next()};KQ.\u0275fac=function(a){return new (a||KQ)(t(HQ),t(JQ),t(VOb,8))};KQ.\u0275prov=ec({token:KQ,factory:KQ.\u0275fac});
var YOb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.dayOfWeek=null==a.dayOfWeek?null:a.dayOfWeek;this.Serializable$values.periodStartMinutes=null==a.periodStartMinutes?null:a.periodStartMinutes;this.Serializable$values.periodEndMinutes=null==a.periodEndMinutes?null:a.periodEndMinutes};U(YOb,uo);YOb.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
ki.Object.defineProperties(YOb.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"dayOfWeek")?ro(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"periodEndMinutes")?ro(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"periodStartMinutes")?ro(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var ZOb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.userIds=null==a.userIds?null:a.userIds;this.Serializable$values.debugOptions=null==a.debugOptions?null:a.debugOptions};U(ZOb,uo);ZOb.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:LQ},keys:["debugOptions","userIds"],objects:{debugOptions:MQ}}};
ki.Object.defineProperties(ZOb.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"debugOptions")?ro(this,"debugOptions"):this.debugOptions=new MQ},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"userIds")?ro(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var $Ob=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.results=null==a.results?null:a.results};U($Ob,uo);$Ob.prototype.getPartialClassMetadata=function(){return{arrays:{results:aPb},keys:["results"]}};
ki.Object.defineProperties($Ob.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return null!==ro(this,"results")}},results:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"results")?ro(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var NQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary;this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};U(NQ,uo);NQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","nextAvailable","occupiedUntil"]}};
ki.Object.defineProperties(NQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"eventSummary")?ro(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"nextAvailable")?ro(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"occupiedUntil")?ro(this,"occupiedUntil"):
""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var OQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location;this.Serializable$values.geoCoordinates=null==a.geoCoordinates?null:a.geoCoordinates};U(OQ,uo);OQ.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","location"],objects:{geoCoordinates:PQ}}};
ki.Object.defineProperties(OQ.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"geoCoordinates")?ro(this,"geoCoordinates"):this.geoCoordinates=new PQ},set:function(a){this.Serializable$values.geoCoordinates=a}},location:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"location")?ro(this,"location"):""},set:function(a){this.Serializable$values.location=a}}});
var QQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};U(QQ,uo);QQ.prototype.getPartialClassMetadata=function(){return{keys:["nextAvailable","occupiedUntil"]}};
ki.Object.defineProperties(QQ.prototype,{nextAvailable:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"nextAvailable")?ro(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"occupiedUntil")?ro(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var bPb=function(){this.Serializable$values={}};U(bPb,uo);bPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var RQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary;this.Serializable$values.inMeetingsUntil=null==a.inMeetingsUntil?null:a.inMeetingsUntil;this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};U(RQ,uo);
RQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
ki.Object.defineProperties(RQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"eventSummary")?ro(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"inMeetingsUntil")?ro(this,"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"nextAvailable")?ro(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"occupiedUntil")?ro(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var cPb=function(){this.Serializable$values={}};U(cPb,uo);cPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var PQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.latitude=null==a.latitude?null:a.latitude;this.Serializable$values.longitude=null==a.longitude?null:a.longitude};U(PQ,uo);PQ.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
ki.Object.defineProperties(PQ.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"latitude")?ro(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"longitude")?ro(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var SQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=null==a.timeZone?null:a.timeZone};
U(SQ,uo);SQ.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};ki.Object.defineProperties(SQ.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"timeZone")?ro(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var TQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.experimentalBuildingId=null==a.experimentalBuildingId?null:a.experimentalBuildingId;this.Serializable$values.experimentalDeskId=null==a.experimentalDeskId?null:a.experimentalDeskId;this.Serializable$values.experimentalFloorId=null==a.experimentalFloorId?null:a.experimentalFloorId};U(TQ,uo);TQ.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId"]}};
ki.Object.defineProperties(TQ.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"experimentalBuildingId")?ro(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"experimentalDeskId")?ro(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return EQ(this,"experimentalFloorId")?ro(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}}});var UQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime;this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary};U(UQ,uo);UQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","eventSummary"]}};
ki.Object.defineProperties(UQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"comeBackTime")?ro(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"eventSummary")?ro(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}}});
var VQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime};U(VQ,uo);VQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};ki.Object.defineProperties(VQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"comeBackTime")?ro(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});
var WQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.code=null==a.code?null:a.code;this.Serializable$values.message=null==a.message?null:a.message;this.Serializable$values.details=null==a.details?null:a.details};U(WQ,uo);WQ.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
ki.Object.defineProperties(WQ.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"code")?ro(this,"code"):0},set:function(a){this.Serializable$values.code=a}},hasDetails:{configurable:!0,enumerable:!0,get:function(){return null!==ro(this,"details")}},details:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"details")?ro(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return EQ(this,
"message")?ro(this,"message"):""},set:function(a){this.Serializable$values.message=a}}});var XQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.startTime=null==a.startTime?null:a.startTime;this.Serializable$values.endTime=null==a.endTime?null:a.endTime};U(XQ,uo);XQ.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
ki.Object.defineProperties(XQ.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"endTime")?ro(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"startTime")?ro(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var YQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.overrideCurrentTime=null==a.overrideCurrentTime?null:a.overrideCurrentTime;this.Serializable$values.computationDuration=null==a.computationDuration?null:a.computationDuration};U(YQ,uo);YQ.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
ki.Object.defineProperties(YQ.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"computationDuration")?ro(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"overrideCurrentTime")?ro(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var ZQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange};U(ZQ,uo);ZQ.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:XQ}}};ki.Object.defineProperties(ZQ.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"timeRange")?ro(this,"timeRange"):this.timeRange=new XQ},set:function(a){this.Serializable$values.timeRange=a}}});
var $Q=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availabilities=null==a.availabilities?null:a.availabilities;this.Serializable$values.workingHours=null==a.workingHours?null:a.workingHours;this.Serializable$values.nextPollTime=null==a.nextPollTime?null:a.nextPollTime};U($Q,uo);$Q.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:dPb},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:aR}}};
ki.Object.defineProperties($Q.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"availabilities")?ro(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"nextPollTime")?ro(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"workingHours")?
ro(this,"workingHours"):this.workingHours=new aR},set:function(a){this.Serializable$values.workingHours=a}}});var MQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.forceEnableUserStatusCache=null==a.forceEnableUserStatusCache?null:a.forceEnableUserStatusCache;this.Serializable$values.timeSettings=null==a.timeSettings?null:a.timeSettings};U(MQ,uo);MQ.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:YQ}}};
ki.Object.defineProperties(MQ.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"forceEnableUserStatusCache")?ro(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"timeSettings")?ro(this,"timeSettings"):this.timeSettings=new YQ},set:function(a){this.Serializable$values.timeSettings=a}}});
var aPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.userId=null==a.userId?null:a.userId;this.Serializable$values.status=null==a.status?null:a.status;this.Serializable$values.userAvailabilities=null==a.userAvailabilities?null:a.userAvailabilities};U(aPb,uo);aPb.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:WQ,userAvailabilities:$Q,userId:LQ}}};
ki.Object.defineProperties(aPb.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==ro(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"status")?ro(this,"status"):this.status=new WQ},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return null!==ro(this,"userAvailabilities")}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"userAvailabilities")?
ro(this,"userAvailabilities"):this.userAvailabilities=new $Q},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return null!==ro(this,"userId")}},userId:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"userId")?ro(this,"userId"):this.userId=new LQ},set:function(a){this.Serializable$values.userId=a}}});
var dPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange;this.Serializable$values.status=null==a.status?null:a.status;this.Serializable$values.contexts=null==a.contexts?null:a.contexts};U(dPb,uo);dPb.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:bR,status:cR,timeRange:XQ}}};
ki.Object.defineProperties(dPb.prototype,{contexts:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"contexts")?ro(this,"contexts"):this.contexts=new bR},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==ro(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"status")?ro(this,"status"):this.status=new cR},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,
enumerable:!0,get:function(){return EQ(this,"timeRange")?ro(this,"timeRange"):this.timeRange=new XQ},set:function(a){this.Serializable$values.timeRange=a}}});var bR=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.workingElsewhere=null==a.workingElsewhere?null:a.workingElsewhere;this.Serializable$values.upcomingOoo=null==a.upcomingOoo?null:a.upcomingOoo;this.Serializable$values.localTime=null==a.localTime?null:a.localTime};U(bR,uo);
bR.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingOoo","workingElsewhere"],objects:{localTime:SQ,upcomingOoo:ZQ,workingElsewhere:dR}}};
ki.Object.defineProperties(bR.prototype,{localTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"localTime")?ro(this,"localTime"):this.localTime=new SQ},set:function(a){this.Serializable$values.localTime=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"upcomingOoo")?ro(this,"upcomingOoo"):this.upcomingOoo=new ZQ},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"workingElsewhere")?
ro(this,"workingElsewhere"):this.workingElsewhere=new dR},set:function(a){this.Serializable$values.workingElsewhere=a}}});var LQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.obfuscatedGaiaId=null==a.obfuscatedGaiaId?null:a.obfuscatedGaiaId;this.Serializable$values.email=null==a.email?null:a.email};U(LQ,uo);LQ.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
ki.Object.defineProperties(LQ.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"email")?ro(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"obfuscatedGaiaId")?ro(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var eR=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.homeLocation=null==a.homeLocation?null:a.homeLocation;this.Serializable$values.customLocation=null==a.customLocation?null:a.customLocation;this.Serializable$values.officeLocation=null==a.officeLocation?null:a.officeLocation};U(eR,uo);eR.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:OQ,homeLocation:bPb,officeLocation:TQ}}};
ki.Object.defineProperties(eR.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"customLocation")?ro(this,"customLocation"):this.customLocation=new OQ},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"homeLocation")?ro(this,"homeLocation"):this.homeLocation=new bPb},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return EQ(this,
"officeLocation")?ro(this,"officeLocation"):this.officeLocation=new TQ},set:function(a){this.Serializable$values.officeLocation=a}}});
var cR=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.inactive=null==a.inactive?null:a.inactive;this.Serializable$values.doNotDisturb=null==a.doNotDisturb?null:a.doNotDisturb;this.Serializable$values.outsideWorkingHours=null==a.outsideWorkingHours?null:a.outsideWorkingHours;this.Serializable$values.outOfOffice=null==a.outOfOffice?null:a.outOfOffice;this.Serializable$values.inMeeting=null==a.inMeeting?null:a.inMeeting;this.Serializable$values.calendarBusy=null==
a.calendarBusy?null:a.calendarBusy};U(cR,uo);cR.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:NQ,doNotDisturb:QQ,inMeeting:RQ,inactive:cPb,outOfOffice:UQ,outsideWorkingHours:VQ}}};
ki.Object.defineProperties(cR.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"calendarBusy")?ro(this,"calendarBusy"):this.calendarBusy=new NQ},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"doNotDisturb")?ro(this,"doNotDisturb"):this.doNotDisturb=new QQ},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return EQ(this,
"inMeeting")?ro(this,"inMeeting"):this.inMeeting=new RQ},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"inactive")?ro(this,"inactive"):this.inactive=new cPb},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return null!==ro(this,"outOfOffice")}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"outOfOffice")?ro(this,"outOfOffice"):
this.outOfOffice=new UQ},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"outsideWorkingHours")?ro(this,"outsideWorkingHours"):this.outsideWorkingHours=new VQ},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var dR=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location};U(dR,uo);
dR.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:eR}}};ki.Object.defineProperties(dR.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"location")?ro(this,"location"):this.location=new eR},set:function(a){this.Serializable$values.location=a}}});var aR=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=null==a.availableTime?null:a.availableTime};U(aR,uo);
aR.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:YOb},keys:["availableTime"]}};ki.Object.defineProperties(aR.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return EQ(this,"availableTime")?ro(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var ePb=new jd("API_VERSION"),fPb=new jd("REQUEST_SERVICE"),fR=function(){};fR.\u0275fac=function(a){return new (a||fR)};fR.\u0275mod=rc({type:fR});
fR.\u0275inj=fc({});var gPb={$Xgafv:"$.xgafv",access_token:"access_token",alt:"alt",callback:"callback",fields:"fields",key:"key",oauth_token:"oauth_token",prettyPrint:"prettyPrint",quotaUser:"quotaUser",uploadType:"uploadType",upload_protocol:"upload_protocol"},gR=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v1alpha":a;this.$apiClient=new OOb(b,c)};gR.\u0275fac=function(a){return new (a||gR)(t(ePb,8),t(fPb),t(MOb,8))};gR.\u0275prov=ec({token:gR,factory:gR.\u0275fac});var hR=function(){};
hR.\u0275fac=function(a){return new (a||hR)};hR.\u0275prov=ec({token:hR,factory:function(a){return gR.\u0275fac(a)},providedIn:fR});
var iR=function(a){var b=this;this.apiStub=a;this.result=new T.Subject;this.destroyed=new T.ReplaySubject(1);this.trigger=new T.Subject;this.batchedTrigger=this.trigger.pipe(aga(this.trigger.pipe(He(200))));this.responseHandler=function(c){if(c.hasResults){c=r(c.results);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d="";e.hasUserId&&e.userId.email&&(d=e.userId.email);if(d)if(e.hasUserAvailabilities){e=e.userAvailabilities.availabilities[0];if(e.hasStatus&&e.status.hasOutOfOffice){e=e.status.outOfOffice;
if(e.comeBackTime){var f=e=new Date(e.comeBackTime),h=new Date;e=h.getFullYear()===f.getFullYear()&&h.getMonth()===f.getMonth()&&h.getDate()===f.getDate()?"at "+e.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(e.getFullYear()!==(new Date).getFullYear()?e.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):e.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));e=" - back "+e}else e="";e="Out of Office"+e}else e="";b.result.next({emailAddress:d,
availability:e})}else b.result.next({emailAddress:d,availability:""})}}};this.batchedTrigger.pipe(Ye(this.destroyed)).subscribe(function(c){c=[].concat(u(new Set(c)));hPb(b,c.slice(0,100));c=r(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},hPb=function(a,b){var c,d;me(function(e){for(var f=new ZOb,h=[],k=r(b),q=k.next();!q.done;q=k.next()){q=q.value;var w=new LQ;w.email=q;h.push(w)}f.userIds=h;c=f;f=a.apiStub;var y=void 0===y?{}:y;var E=void 0===E?{}:E;d=QOb(f.$apiClient,
{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:Tza(y,gPb,E),responseCtor:$Ob});d.pipe(Ye(a.destroyed)).subscribe(a.responseHandler);oe(e)})},iPb=function(a,b){if(!b)return(0,T.of)("");a.trigger.next(b);return a.result.pipe(De(function(c){return c.emailAddress===b})).pipe(C(function(c){return c.availability}))};iR.prototype.ngOnDestroy=function(){this.destroyed.next()};
iR.\u0275fac=function(a){return new (a||iR)(t(hR))};iR.\u0275prov=ec({token:iR,factory:iR.\u0275fac});
var jPb=function(a){Z.call(this,a)};U(jPb,Z);g=jPb.prototype;g.getSize=function(){return p(this,1)};g.setSize=function(a){return l(this,1,a)};g.getWidth=function(){return p(this,12)};g.setWidth=function(a){return l(this,12,a)};g.getHeight=function(){return p(this,13)};g.setHeight=function(a){return l(this,13,a)};g.setStretch=function(a){return l(this,33,a)};g.setCrop=function(a){return l(this,2,a)};g.setCircleCrop=function(a){return l(this,51,a)};g.setImageCrop=function(a){return l(this,32,a)};
g.setSmartCrop=function(a){return l(this,19,a)};g.setSmartCropNoClip=function(a){return l(this,52,a)};g.setSmartCropUseFace=function(a){return l(this,67,a)};g.setDetectFaces=function(a){l(this,80,a)};g.setCenterCrop=function(a){return l(this,20,a)};g.setPad=function(a){return l(this,60,a)};g.setDownload=function(a){l(this,3,a)};g.setHtml=function(a){l(this,4,a)};g.getObjectId=function(){return p(this,7)};g.setObjectId=function(a){l(this,7,a)};g.setLooseFaceCrop=function(a){return l(this,65,a)};
g.setFaceCropVersion=function(a){l(this,94,a)};g.setFrameId=function(a){l(this,29,a)};g.setTileX=function(a){l(this,9,a)};g.setTileY=function(a){l(this,10,a)};g.setTileZoom=function(a){l(this,11,a)};g.setTileGeneration=function(a){l(this,14,a)};g.setForceTileGeneration=function(a){l(this,34,a)};g.setTilePyramidAsProto=function(a){l(this,72,a)};g.setExpirationTime=function(a){l(this,15,a)};g.setImageFilter=function(a){return l(this,16,a)};g.setKillAnimation=function(a){return l(this,17,a)};
g.setUnfiltered=function(a){l(this,18,a)};g.setUnfilteredWithTransforms=function(a){l(this,45,a)};g.setIncludeMetadata=function(a){l(this,22,a)};g.setIncludePublicMetadata=function(a){l(this,54,a)};g.setStripGoogleData=function(a){l(this,82,a)};g.setPreserveGoogleData=function(a){l(this,83,a)};g.setStripMetadata=function(a){l(this,93,a)};g.setStripGeoinfo=function(a){l(this,95,a)};g.setEsPortraitApprovedOnly=function(a){return l(this,21,a)};g.setBypassTakedown=function(a){l(this,23,a)};
g.getToken=function(){return p(this,24)};g.setToken=function(a){return l(this,24,a)};g.setVersionedToken=function(a){l(this,36,a)};g.setSkipRefererCheck=function(a){l(this,6,a)};g.getRotate=function(){return p(this,26)};g.setRotate=function(a){return l(this,26,a)};g.setHorizontalFlip=function(a){l(this,30,a)};g.setVerticalFlip=function(a){l(this,31,a)};g.getOverlay=function(){return Ro(this,27)};g.setOverlay=function(a){return l(this,27,a)};g.setQueryString=function(a){l(this,28,a)};
g.setRequestJpeg=function(a){return l(this,57,a)};g.setRequestPng=function(a){return l(this,58,a)};g.setRequestGif=function(a){l(this,59,a)};g.setRequestWebp=function(a){return l(this,35,a)};g.setRequestWebpUnlessMaybeTransparent=function(a){l(this,41,a)};g.setRequestAnimatedWebp=function(a){l(this,64,a)};g.setNoWebp=function(a){l(this,48,a)};g.setRequestH264=function(a){return l(this,49,a)};g.setLossy=function(a){l(this,97,a)};g.setNoOverlay=function(a){return l(this,37,a)};
g.setBorderSize=function(a){l(this,38,a)};g.setBorderRadius=function(a){l(this,86,a)};g.setBorderColor=function(a){l(this,39,a)};g.getBackgroundColor=function(){return p(this,87)};g.setBackgroundColor=function(a){l(this,87,a)};g.setPadColor=function(a){l(this,88,a)};g.setSubstitutionColor=function(a){l(this,89,a)};g.setNoSilhouette=function(a){l(this,40,a)};g.setFocusBlur=function(a){l(this,42,a)};g.setFocalPlane=function(a){l(this,43,a)};g.setQualityLevel=function(a){return l(this,44,a)};
g.setQualityBucket=function(a){return l(this,62,a)};g.setNoUpscale=function(a){l(this,46,a)};g.setPreserveAspectRatio=function(a){l(this,61,a)};g.setForceTransformation=function(a){l(this,50,a)};g.setNoDefaultImage=function(a){l(this,53,a)};g.setNoCorrectExifOrientation=function(a){l(this,55,a)};g.setSelectFrameNumber=function(a){l(this,56,a)};g.setVideoFormat=function(a){l(this,63,a)};g.setVideoMultiFormat=function(a){l(this,81,a)};g.setVideoManifest=function(a){l(this,98,a)};
g.setDownloadVideo=function(a){l(this,90,a)};g.setVideoBegin=function(a){l(this,68,a)};g.setVideoLength=function(a){l(this,69,a)};g.setMatchVersion=function(a){l(this,66,a)};g.setImageDigest=function(a){l(this,70,a)};g.setInternalClient=function(a){l(this,71,a)};g.setMonogram=function(a){l(this,73,a)};g.setForceMonogram=function(a){return l(this,84,a)};g.setMonogramDogfood=function(a){l(this,91,a)};g.setIgnoreLowResProfilePhoto=function(a){l(this,96,a)};g.setAutoloop=function(a){l(this,74,a)};
g.getImageVersion=function(){return p(this,75)};g.setImageVersion=function(a){l(this,75,a)};g.setPitchDegrees=function(a){l(this,76,a)};g.setYawDegrees=function(a){l(this,77,a)};g.setRollDegrees=function(a){l(this,78,a)};g.setFovDegrees=function(a){l(this,79,a)};g.setBadge=function(a){l(this,85,a)};g.setColorProfile=function(a){l(this,92,a)};g.setDeepCrop=function(a){l(this,99,a)};g.setRequestVideoFast=function(a){l(this,100,a)};
g.toObject=function(){var a=null!=this?{size:n(p(this,1)),width:n(p(this,12)),height:n(p(this,13)),stretch:n(Ro(this,33)),crop:W(this,2,!1),circleCrop:n(Ro(this,51)),imageCrop:n(Ro(this,32)),smartCrop:W(this,19,!1),smartCropNoClip:W(this,52,!1),smartCropUseFace:W(this,67,!1),detectFaces:n(Ro(this,80)),centerCrop:W(this,20,!1),pad:n(Ro(this,60)),download:W(this,3,!1),html:W(this,4,!1),objectId:n(p(this,7)),looseFaceCrop:n(Ro(this,65)),faceCropVersion:n(p(this,94)),frameId:n(p(this,29)),imageUrlDomain:dj(this,
8,0),tileX:n(p(this,9)),tileY:n(p(this,10)),tileZoom:n(p(this,11)),tileGeneration:W(this,14,!1),forceTileGeneration:W(this,34,!1),tilePyramidAsProto:W(this,72,!1),expirationTime:n(p(this,15)),imageFilter:n(p(this,16)),killAnimation:n(Ro(this,17)),unfiltered:n(Ro(this,18)),unfilteredWithTransforms:n(Ro(this,45)),includeMetadata:n(Ro(this,22)),includePublicMetadata:n(Ro(this,54)),stripGoogleData:n(Ro(this,82)),preserveGoogleData:n(Ro(this,83)),stripMetadata:n(Ro(this,93)),stripGeoinfo:n(Ro(this,95)),
esPortraitApprovedOnly:n(Ro(this,21)),bypassTakedown:W(this,23,!1),token:n(p(this,24)),versionedToken:n(p(this,36)),skipRefererCheck:W(this,6,!1),rotate:n(p(this,26)),horizontalFlip:n(Ro(this,30)),verticalFlip:n(Ro(this,31)),overlay:n(Ro(this,27)),queryString:n(p(this,28)),requestJpeg:n(Ro(this,57)),requestPng:n(Ro(this,58)),requestGif:n(Ro(this,59)),requestWebp:W(this,35,!1),requestWebpUnlessMaybeTransparent:W(this,41,!1),requestAnimatedWebp:W(this,64,!1),noWebp:W(this,48,!1),requestH264:W(this,
49,!1),lossy:n(Ro(this,97)),noOverlay:W(this,37,!1),borderSize:n(p(this,38)),borderRadius:n(p(this,86)),borderColor:n(p(this,39)),backgroundColor:n(p(this,87)),padColor:n(p(this,88)),substitutionColor:n(p(this,89)),noSilhouette:n(Ro(this,40)),focusBlur:n(p(this,42)),focalPlane:n(p(this,43)),qualityLevel:n(p(this,44)),qualityBucket:n(p(this,62)),noUpscale:n(Ro(this,46)),preserveAspectRatio:n(Ro(this,61)),forceTransformation:n(Ro(this,50)),noDefaultImage:n(Ro(this,53)),noCorrectExifOrientation:n(Ro(this,
55)),selectFrameNumber:n(p(this,56)),videoFormat:n(p(this,63)),videoMultiFormat:n(p(this,81)),videoManifest:n(Ro(this,98)),downloadVideo:n(Ro(this,90)),videoBegin:n(p(this,68)),videoLength:n(p(this,69)),matchVersion:n(Ro(this,66)),imageDigest:n(Ro(this,70)),internalClient:n(p(this,71)),monogram:n(Ro(this,73)),forceMonogram:n(Ro(this,84)),monogramDogfood:n(Ro(this,91)),ignoreLowResProfilePhoto:n(Ro(this,96)),autoloop:n(Ro(this,74)),imageVersion:n(p(this,75)),pitchDegrees:n(tu(this,76)),yawDegrees:n(tu(this,
77)),rollDegrees:n(tu(this,78)),fovDegrees:n(tu(this,79)),badge:n(p(this,85)),colorProfile:n(p(this,92)),deepCrop:n(p(this,99)),requestVideoFast:n(Ro(this,100))}:void 0;return a};
var jR=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};jR.prototype.set=function(a,b){kPb(this,a,b,!1)};jR.prototype.add=function(a,b){kPb(this,a,b,!0)};var kPb=function(a,b,c,d){for(var e=0;e<b.length;e++){var f=b.charAt(e);a.childNodes_[f]||(a.childNodes_[f]=new jR);a=a.childNodes_[f]}if(d&&void 0!==a.value_)throw Error("Hd`"+b);a.value_=c};jR.prototype.setAll=function(a){var b=pzb(a);a=CG(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var lPb=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};jR.prototype.get=function(a){return(a=lPb(this,a))?a.value_:void 0};jR.prototype.getValues=function(){var a=[];mPb(this,a);return a};var mPb=function(a,b){void 0!==a.value_&&b.push(a.value_);for(var c in a.childNodes_)mPb(a.childNodes_[c],b)};
jR.prototype.getKeys=function(a){var b=[];if(a){for(var c=this,d=0;d<a.length;d++){var e=a.charAt(d);if(!c.childNodes_[e])return[];c=c.childNodes_[e]}nPb(c,a,b)}else nPb(this,"",b);return b};var nPb=function(a,b,c){void 0!==a.value_&&c.push(b);for(var d in a.childNodes_)nPb(a.childNodes_[d],b+d,c)};g=jR.prototype;g.containsKey=function(a){return void 0!==this.get(a)};
g.containsValue=function(a){if(this.value_===a)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(a))return!0;return!1};g.clear=function(){this.childNodes_={};this.value_=void 0};g.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("Id`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.value_;for(delete b.value_;0<c.length;)if(e=c.pop(),b=e[0],e=e[1],b.childNodes_[e].isEmpty())delete b.childNodes_[e];else break;return a};
g.clone=function(){return new jR(this)};g.getCount=function(){return ozb(this.getValues())};g.isEmpty=function(){return void 0===this.value_&&eh(this.childNodes_)};
var qPb=function(){if(!oPb){var a=oPb=new jR,b;for(b in pPb)a.add(b,pPb[b])}},oPb,kR=function(a,b){this.types=a;this.setters=b},pPb={a:new kR([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new kR([3],[function(a,b){a.setAutoloop(b)}]),b:new kR([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new kR([0],[function(a,b){a.setBadge(b)}]),bc:new kR([0],[function(a,b){a.setBackgroundColor(b)}]),br:new kR([0],[function(a,
b){a.setBorderRadius(b)}]),c:new kR([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new kR([3],[function(a,b){a.setCircleCrop(b)}]),ci:new kR([3],[function(a,b){a.setImageCrop(b)}]),cp:new kR([0],[function(a,b){a.setColorProfile(b)}]),cv:new kR([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new kR([3],[function(a,b){a.setDownload(b)}]),dc:new kR([5],[function(a,b){a.setDeepCrop(b)}]),df:new kR([3],[function(a,b){a.setDetectFaces(b)}]),dv:new kR([3],[function(a,b){a.setDownloadVideo(b)}]),
e:new kR([0],[function(a,b){a.setExpirationTime(b)}]),f:new kR([4],[function(a,b){a.setImageFilter(b)}]),fg:new kR([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new kR([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new kR([3],[function(a,b){a.setForceMonogram(b)}]),fo:new kR([2],[function(a,b){a.setFovDegrees(b)}]),ft:new kR([3],[function(a,b){a.setForceTransformation(b)}]),fv:new kR([3],[function(a,b){a.setVerticalFlip(b)}]),g:new kR([3],[function(a,b){a.setTileGeneration(b)}]),gd:new kR([3],
[function(a,b){a.setPreserveGoogleData(b)}]),h:new kR([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new kR([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new kR([0],[function(a,b){a.setInternalClient(b)}]),id:new kR([3],[function(a,b){a.setImageDigest(b)}]),il:new kR([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new kR([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new kR([0],[function(a,b){a.setImageVersion(b)}]),j:new kR([1],[function(a,b){a.setFrameId(b)}]),
k:new kR([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new kR([0],[function(a,b){a.setQualityLevel(b)}]),lf:new kR([3],[function(a,b){a.setLooseFaceCrop(b)}]),lo:new kR([3],[function(a,b){a.setLossy(b)}]),m:new kR([0],[function(a,b){a.setVideoFormat(b)}]),md:new kR([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new kR([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new kR([3],[function(a,b){a.setMonogram(b)}]),mv:new kR([3],[function(a,b){a.setMatchVersion(b)}]),
n:new kR([3],[function(a,b){a.setCenterCrop(b)}]),nc:new kR([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new kR([3],[function(a,b){a.setNoDefaultImage(b)}]),ng:new kR([3],[function(a,b){a.setStripGeoinfo(b)}]),no:new kR([3],[function(a,b){a.setNoOverlay(b)}]),ns:new kR([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new kR([4],[function(a,b){a.setVersionedToken(b)}]),nu:new kR([3],[function(a,b){a.setNoUpscale(b)}]),nw:new kR([3],[function(a,b){a.setNoWebp(b)}]),o:new kR([1,3],[function(a,
b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),p:new kR([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new kR([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new kR([0],[function(a,b){a.setPadColor(b)}]),pd:new kR([3],[function(a,b){a.setPad(b)}]),pf:new kR([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new kR([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new kR([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new kR([3],[function(a,b){a.setSmartCropNoClip(b)}]),
q:new kR([4],[function(a,b){a.setQueryString(b)}]),r:new kR([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),rf:new kR([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new kR([3],[function(a,b){a.setRequestGif(b)}]),rh:new kR([3],[function(a,b){a.setRequestH264(b)}]),rj:new kR([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new kR([2],[function(a,b){a.setRollDegrees(b)}]),rp:new kR([3],[function(a,b){a.setRequestPng(b)}]),rw:new kR([3],[function(a,b){a.setRequestWebp(b)}]),
rwa:new kR([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new kR([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new kR([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sc:new kR([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new kR([3],[function(a,b){a.setStripGoogleData(b)}]),sm:new kR([3],[function(a,b){a.setStripMetadata(b)}]),t:new kR([4],[function(a,b){a.setToken(b)}]),u:new kR([3],[function(a,b){a.setUnfiltered(b)}]),ut:new kR([3],[function(a,
b){a.setUnfilteredWithTransforms(b)}]),v:new kR([0],[function(a,b){a.setQualityBucket(b)}]),vb:new kR([0],[function(a,b){a.setVideoBegin(b)}]),vl:new kR([0],[function(a,b){a.setVideoLength(b)}]),vm:new kR([3],[function(a,b){a.setVideoManifest(b)}]),w:new kR([0],[function(a,b){a.setWidth(b)}]),x:new kR([0],[function(a,b){a.setTileX(b)}]),y:new kR([0],[function(a,b){a.setTileY(b)}]),ya:new kR([2],[function(a,b){a.setYawDegrees(b)}]),z:new kR([0],[function(a,b){a.setTileZoom(b)}])};
qPb.prototype.parse=function(a){var b=new jPb,c=new jPb;if(""==a)a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(0==f.length)d=!1;else{var h=f,k=!1;var q=h;var w=h.charAt(0);w!=w.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var y=oPb;for(w=1;w<=q.length;++w){var E=y,I=q.substring(0,w);if(0==I.length?E.isEmpty():!lPb(E,I))break}q=1==w?null:(q=y.get(q.substring(0,w-1)))?{option:h.substring(0,w-1),value:h.substring(w-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];w=!1;for(y=0;y<q.attributes.types.length;y++){E=q.attributes.types[y];var N=q.value;I=e;if(q.signed&&1==E)for(var L=N.length;12>L&&I<a.length-1;)N+="-"+a[I+1],L=N.length,++I;else if(2==E)for(;I<a.length-1&&a[I+1].match(/^[\d\.]/);)N+="-"+a[I+1],++I;L=q.attributes.setters[y];N=rPb(this,E)(q.option,N,b,c,L);if(null===N){w=!0;e=I;break}else h.push(E),k.push(N)}if(!w)for(q=0;q<k.length;q++)y=h[q],N=k[q],sPb(this,y)(f,N);d=d&&w}else d=!1}}a=d}return new tPb(b,c,a)};
var uPb=function(a,b,c,d,e){e(c,b);a=a.charAt(0);e(d,a==a.toUpperCase())};g=qPb.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(""==b)return 0;b=Ki(b);if(isNaN(b))return 1;uPb(a,b,c,d,e);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(""==b)return 0;b=iC(b);if(isNaN(b))return 1;uPb(a,b,c,d,e);return null};g.logFloatParseError_=function(){};g.parseAndSetBoolOption_=function(a,b,c,d,e){if(""!=b)return 2;uPb(a,!0,c,d,e);return null};
g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(""==b)return 0;uPb(a,b,c,d,e);return null};g.logStringParseError_=function(){};
var rPb=function(a,b){switch(b){case 0:return Vt(a.parseAndSetIntOption_,a);case 2:return Vt(a.parseAndSetFloatOption_,a);case 3:return Vt(a.parseAndSetBoolOption_,a);case 4:case 1:return Vt(a.parseAndSetStringOption_,a);default:return function(){}}},sPb=function(a,b){switch(b){case 0:return Vt(a.logIntParseError_,a);case 2:return Vt(a.logFloatParseError_,a);case 3:return Vt(a.logBoolParseError_,a);case 4:case 1:return Vt(a.logStringParseError_,a);default:return function(){}}},tPb=function(a,b,c){this.valueProto_=
a;this.signatureFlagProto_=b;this.valid_=c};tPb.prototype.isValid=function(){return this.valid_};
var vPb=function(a,b){null!=a&&this.append.apply(this,arguments)};g=vPb.prototype;g.buffer_="";g.set=function(a){this.buffer_=""+a};g.append=function(a,b,c){this.buffer_+=String(a);if(null!=b)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};g.clear=function(){this.buffer_=""};g.toString=function(){return this.buffer_};
var lR=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;wPb(this,a)};lR.prototype.getParsedOptions=function(){return this.parsedOptions_};var xPb=function(a){null==a.parser_&&(a.parser_=new qPb);return a.parser_},wPb=function(a,b){a.parsedOptions_=b?"string"===typeof b?xPb(a).parse(b):b:xPb(a).parse("")},mR=function(a,b){return a==b?!1:!0};g=lR.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,21),Ro(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,56),p(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};g.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,74),Ro(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,23,!1),W(b.signatureFlagProto_,23,!1))&&c.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,38),p(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,85),p(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getBackgroundColor(),b.signatureFlagProto_.getBackgroundColor())&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,86),p(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};g.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,2,!1),W(b.signatureFlagProto_,2,!1))&&c.setCrop(a);return this};
g.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,39),p(b.signatureFlagProto_,39))&&c.setBorderColor(a)};g.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,51),Ro(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,32),Ro(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,92),p(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,94),p(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};g.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,3,!1),W(b.signatureFlagProto_,3,!1))&&c.setDownload(a)};
g.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,99),p(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};g.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,80),Ro(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,90),Ro(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};
g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,15),p(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};g.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,16),p(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};g.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,34,!1),W(b.signatureFlagProto_,34,!1))&&c.setForceTileGeneration(a)};
g.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,30),Ro(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,84),Ro(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,tu(c,79),tu(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,50),Ro(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,31),Ro(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,14,!1),W(b.signatureFlagProto_,14,!1))&&c.setTileGeneration(a)};
g.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,83),Ro(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,4,!1),W(b.signatureFlagProto_,4,!1))&&c.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};
g.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,22),Ro(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,71),p(b.signatureFlagProto_,71))&&c.setInternalClient(a)};g.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,70),Ro(b.signatureFlagProto_,70))&&c.setImageDigest(a)};
g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,96),Ro(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,54),Ro(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};
g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,29),p(b.signatureFlagProto_,29))&&c.setFrameId(a)};g.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,17),Ro(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,42),p(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};
g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,44),p(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};g.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,65),Ro(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,97),Ro(b.signatureFlagProto_,97))&&c.setLossy(a)};
g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,63),p(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};g.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,91),Ro(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,81),p(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};
g.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,73),Ro(b.signatureFlagProto_,73))&&c.setMonogram(a)};g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,66),Ro(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,20,!1),W(b.signatureFlagProto_,20,!1))&&c.setCenterCrop(a);return this};
g.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,55),Ro(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,53),Ro(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,95),Ro(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,37,!1),W(b.signatureFlagProto_,37,!1))&&c.setNoOverlay(a);return this};g.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,40),Ro(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,36),p(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};
g.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,46),Ro(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,48,!1),W(b.signatureFlagProto_,48,!1))&&c.setNoWebp(a)};g.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getObjectId(),b.signatureFlagProto_.getObjectId())&&c.setObjectId(a)};
g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};g.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,19,!1),W(b.signatureFlagProto_,19,!1))&&c.setSmartCrop(a);return this};g.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,43),p(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};
g.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,61),Ro(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,88),p(b.signatureFlagProto_,88))&&c.setPadColor(a)};g.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,60),Ro(b.signatureFlagProto_,60))&&c.setPad(a);return this};
g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,67,!1),W(b.signatureFlagProto_,67,!1))&&c.setSmartCropUseFace(a);return this};g.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,72,!1),W(b.signatureFlagProto_,72,!1))&&c.setTilePyramidAsProto(a)};g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,tu(c,76),tu(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};
g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,52,!1),W(b.signatureFlagProto_,52,!1))&&c.setSmartCropNoClip(a);return this};g.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,28),p(b.signatureFlagProto_,28))&&c.setQueryString(a)};g.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,6,!1),W(b.signatureFlagProto_,6,!1))&&c.setSkipRefererCheck(a)};
g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getRotate(),b.signatureFlagProto_.getRotate())&&c.setRotate(a);return this};g.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,100),Ro(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,59),Ro(b.signatureFlagProto_,59))&&c.setRequestGif(a)};
g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,49,!1),W(b.signatureFlagProto_,49,!1))&&c.setRequestH264(a);return this};g.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,57),Ro(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,tu(c,78),tu(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};
g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,58),Ro(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,35,!1),W(b.signatureFlagProto_,35,!1))&&c.setRequestWebp(a);return this};g.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,64,!1),W(b.signatureFlagProto_,64,!1))&&c.setRequestAnimatedWebp(a)};
g.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,W(c,41,!1),W(b.signatureFlagProto_,41,!1))&&c.setRequestWebpUnlessMaybeTransparent(a)};g.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,33),Ro(b.signatureFlagProto_,33))&&c.setStretch(a);return this};g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,89),p(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};g.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,82),Ro(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,93),Ro(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};g.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,18),Ro(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,45),Ro(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};
g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,62),p(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,68),p(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,69),p(b.signatureFlagProto_,69))&&c.setVideoLength(a)};
g.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;mR(a,Ro(c,98),Ro(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,9),p(b.signatureFlagProto_,9))&&c.setTileX(a)};
g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,10),p(b.signatureFlagProto_,10))&&c.setTileY(a)};g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,tu(c,77),tu(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;mR(a,p(c,11),p(b.signatureFlagProto_,11))&&c.setTileZoom(a)};g.setOptions=function(){wPb(this)};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;nR(this,"s",b.getSize(),a.getSize());nR(this,"w",b.getWidth(),a.getWidth());oR(this,"c",W(b,2,!1),W(a,2,!1));oR(this,"d",W(b,3,!1),W(a,3,!1));nR(this,"h",b.getHeight(),a.getHeight());oR(this,"s",Ro(b,33),Ro(a,33));oR(this,"h",W(b,4,!1),W(a,4,!1));oR(this,"p",W(b,19,!1),W(a,19,!1));oR(this,"pp",W(b,52,!1),W(a,52,!1));oR(this,"pf",W(b,67,!1),W(a,67,!1));oR(this,"n",W(b,20,!1),W(a,20,!1));nR(this,
"r",b.getRotate(),a.getRotate());oR(this,"r",W(b,6,!1),W(a,6,!1));oR(this,"o",b.getOverlay(),a.getOverlay());var c=b.getObjectId();pR(this,"o",c,a.getObjectId());c=p(b,29);pR(this,"j",c,p(a,29));nR(this,"x",p(b,9),p(a,9));nR(this,"y",p(b,10),p(a,10));nR(this,"z",p(b,11),p(a,11));oR(this,"g",W(b,14,!1),W(a,14,!1));nR(this,"e",p(b,15),p(a,15));pR(this,"f",p(b,16),p(a,16));oR(this,"k",Ro(b,17),Ro(a,17));oR(this,"u",Ro(b,18),!0);oR(this,"ut",Ro(b,45),!0);oR(this,"i",Ro(b,22),!0);oR(this,"a",Ro(b,21),
Ro(a,21));oR(this,"b",W(b,23,!1),W(a,23,!1));nR(this,"b",p(b,38),p(a,38));nR(this,"c",p(b,39),p(a,39),16,8);pR(this,"q",p(b,28),p(a,28));oR(this,"fh",Ro(b,30),Ro(a,30));oR(this,"fv",Ro(b,31),Ro(a,31));oR(this,"fg",W(b,34,!1),W(a,34,!1));oR(this,"ci",Ro(b,32),Ro(a,32));pR(this,"t",b.getToken(),a.getToken());pR(this,"nt0",p(b,36),p(a,36));oR(this,"rw",W(b,35,!1),W(a,35,!1));oR(this,"rwu",W(b,41,!1),W(a,41,!1));oR(this,"rwa",W(b,64,!1),W(a,64,!1));oR(this,"nw",W(b,48,!1),W(a,48,!1));oR(this,"rh",W(b,
49,!1),W(a,49,!1));oR(this,"no",W(b,37,!1),W(a,37,!1));oR(this,"ns",Ro(b,40),Ro(a,40));nR(this,"k",p(b,42),p(a,42));nR(this,"p",p(b,43),p(a,43));nR(this,"l",p(b,44),p(a,44));nR(this,"v",p(b,62),p(a,62));oR(this,"nu",Ro(b,46),Ro(a,46));oR(this,"ft",Ro(b,50),Ro(a,50));oR(this,"cc",Ro(b,51),Ro(a,51));oR(this,"nd",Ro(b,53),Ro(a,53));oR(this,"ip",Ro(b,54),Ro(a,54));oR(this,"nc",Ro(b,55),Ro(a,55));nR(this,"a",p(b,56),p(a,56));oR(this,"rj",Ro(b,57),Ro(a,57));oR(this,"rp",Ro(b,58),Ro(a,58));oR(this,"rg",
Ro(b,59),Ro(a,59));oR(this,"pd",Ro(b,60),Ro(a,60));oR(this,"pa",Ro(b,61),Ro(a,61));nR(this,"m",p(b,63),p(a,63));nR(this,"vb",p(b,68),p(a,68));nR(this,"vl",p(b,69),p(a,69));oR(this,"lf",Ro(b,65),Ro(a,65));oR(this,"mv",Ro(b,66),Ro(a,66));oR(this,"id",Ro(b,70),Ro(a,70));nR(this,"ic",p(b,71),!0);oR(this,"pg",W(b,72,!1),W(a,72,!1));oR(this,"mo",Ro(b,73),Ro(a,73));oR(this,"al",Ro(b,74),Ro(a,74));nR(this,"iv",b.getImageVersion(),a.getImageVersion());nR(this,"pi",tu(b,76),tu(a,76));nR(this,"ya",tu(b,77),
tu(a,77));nR(this,"ro",tu(b,78),tu(a,78));nR(this,"fo",tu(b,79),tu(a,79));oR(this,"df",Ro(b,80),Ro(a,80));pR(this,"mm",p(b,81),p(a,81));oR(this,"sg",Ro(b,82),Ro(a,82));oR(this,"gd",Ro(b,83),Ro(a,83));oR(this,"fm",Ro(b,84),Ro(a,84));nR(this,"ba",p(b,85),p(a,85));nR(this,"br",p(b,86),p(a,86));nR(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);nR(this,"pc",p(b,88),p(a,88),16,8);nR(this,"sc",p(b,89),p(a,89),16,8);oR(this,"dv",Ro(b,90),Ro(a,90));oR(this,"md",Ro(b,91),Ro(a,91));nR(this,"cp",
p(b,92),p(a,92));oR(this,"sm",Ro(b,93),Ro(a,93));nR(this,"cv",p(b,94),p(a,94));oR(this,"ng",Ro(b,95),Ro(a,95));oR(this,"il",Ro(b,96),Ro(a,96));oR(this,"lo",Ro(b,97),Ro(a,97));oR(this,"vm",Ro(b,98),Ro(a,98));pR(this,"dc",p(b,99),p(a,99));oR(this,"rf",Ro(b,100),Ro(a,100));return this.components_.join("-")};
var nR=function(a,b,c,d,e,f){if(null!=c){var h=void 0==e||10!=e&&16!=e?10:e;c=c.toString(h);e=new vPb;e.append(16==h?"0x":"");h=e.append;void 0==f?f="":(f-=c.length,f=0>=f?"":fC("0",f));h.call(e,f);e.append(c);yPb(a,b,e.toString(),!!d)}},oR=function(a,b,c,d){c&&yPb(a,b,"",!!d)},pR=function(a,b,c,d){c&&yPb(a,b,c,!!d)},yPb=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};
var qR=function(a){lR.call(this,a)};Zt(qR,lR);g=qR.prototype;g.setCrop=function(a){a&&rR(this);return qR.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return qR.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&rR(this);return qR.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return qR.superClass_.setQualityLevel.call(this,a)};
g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return qR.superClass_.setImageFilter.call(this,a)};g.setImageCrop=function(a){a&&rR(this);return qR.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&rR(this);return qR.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){Da(a)&&(a=Math.max(a.width,a.height));a=null==a||0>a?void 0:a;null!=a&&(this.setWidth(),this.setHeight());return qR.superClass_.setSize.call(this,a)};
g.setSmartCrop=function(a){a&&rR(this);return qR.superClass_.setSmartCrop.call(this,a)};g.setSmartCropNoClip=function(a){a&&rR(this);return qR.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&rR(this);return qR.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&rR(this);return qR.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&rR(this);return qR.superClass_.setPad.call(this,a)};
g.setWidth=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return qR.superClass_.setWidth.call(this,a)};var rR=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};
qR.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Ro(a,18)||Ro(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),rR(this)));return qR.superClass_.build.call(this)};
var zPb=/^[^\/]*\/\//,sR=function(a,b){b=void 0===b?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(zPb))&&a[0]?(this.originalPrefix_=a[0],a=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):a="http://"+this.original_;this.uri_=LG(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},APb=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},tR=function(a){if(void 0==a.components_){var b=a.uri_.getPath().substring(1);
a.pathPrefix_=null;if(a.isFreeformUrl_){a.components_=[];if(1<(b.match(/=/g)||[]).length)return a.valid_=!1,a.components_;var c=b.indexOf("=");-1!=c?(a.components_.push(b.substr(0,c)),a.components_.push(b.substr(c+1))):a.components_.push(b);return a.components_}a.components_=b.split("/");b=a.components_.length;2<b&&"u"==a.components_[0]&&(APb(a,a.components_[0]+"/"+a.components_[1]),a.components_.shift(),a.components_.shift(),b-=2);if(0==b||4==b||7<b)return a.valid_=!1,a.components_;if(2==b)APb(a,
a.components_[0]);else if("image"==a.components_[0])APb(a,a.components_[0]);else if(7==b||3==b)return a.valid_=!1,a.components_;if(3>=b){a.obfuscated_=!0;3==b&&(APb(a,a.components_[1]),a.components_.shift(),--b);--b;c=a.components_[b];var d=c.indexOf("=");-1!=d&&(a.components_[b]=c.substr(0,d),a.components_.push(c.substr(d+1)))}}return a.components_};sR.prototype.isValid=function(){tR(this);return this.valid_};var BPb=function(a){tR(a);return a.obfuscated_},CPb=function(a){tR(a);return a.isFreeformUrl_};
sR.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};sR.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var uR=function(a){tR(a);void 0==a.pathPrefix_&&(a.pathPrefix_=null);return a.pathPrefix_};sR.prototype.hasOptions=function(){switch(tR(this).length){case 7:return!0;case 6:return null==uR(this);case 5:return!1;case 3:return!0;case 2:return null==uR(this);case 1:return!1;default:return!1}};
var vR=function(a,b){if(CPb(a))a:{switch(b){case 7:b=0;break;case 4:if(!a.hasOptions()){a=null;break a}b=1;break;default:a=null;break a}a=tR(a)[b]}else if(BPb(a))a:{var c=null!=uR(a)?1:0;switch(b){case 6:b=c;break;case 4:if(!a.hasOptions()){a=null;break a}b=1+c;break;default:a=null;break a}a=tR(a)[b]}else a:{c=null!=uR(a)?1:0;switch(b){case 0:b=c;break;case 1:b=1+c;break;case 2:b=2+c;break;case 3:b=3+c;break;case 4:if(!a.hasOptions()){a=null;break a}b=4+c;break;case 5:b=a.hasOptions()?1:0;b=4+c+b;
break;default:a=null;break a}a=tR(a)[b]}return a};g=sR.prototype;g.getOriginal=function(){return this.original_};g.getObfuscatedGaiaId=function(){void 0==this.obfuscatedGaiaId_&&(this.obfuscatedGaiaId_=vR(this,0));return this.obfuscatedGaiaId_};g.getImageVersion=function(){void 0==this.imageVersion_&&(this.imageVersion_=vR(this,2));return this.imageVersion_};g.getOptions=function(){void 0==this.options_&&(this.options_=vR(this,4));return this.options_};
g.getFilename=function(){void 0==this.filename_&&(this.filename_=vR(this,5));return this.filename_};
var DPb=function(){};DPb.prototype.parse=function(a,b){return new EPb(a,void 0===b?!1:b)};var EPb=function(a,b){sR.call(this,a,void 0===b?!1:b)};U(EPb,sR);EPb.prototype.getParsedOptions=function(){if(void 0==this.parsedOptions_){var a=this.getOptions();a||(a="");this.parsedOptions_=(new qPb).parse(a)}return this.parsedOptions_};
var wR=function(a,b){b=void 0===b?!1:b;this.parsedImageUrl_=null;a instanceof EPb||(void 0==FPb&&(FPb=new DPb),a=FPb.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();lR.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},FPb;Zt(wR,qR);wR.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
wR.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.getOriginal();var a=wR.superClass_.build.call(this),b=[];null!=uR(this.parsedImageUrl_)&&b.push(uR(this.parsedImageUrl_));var c=CPb(this.parsedImageUrl_);if(BPb(this.parsedImageUrl_)){var d=this.parsedImageUrl_;void 0==d.obfuscatedData_&&(d.obfuscatedData_=vR(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;void 0===e.freeformUrlPath_&&(e.freeformUrlPath_=vR(e,7));
d.call(b,e.freeformUrlPath_);a&&b.push(a)}else b.push(this.parsedImageUrl_.getObfuscatedGaiaId()),d=b.push,e=this.parsedImageUrl_,void 0==e.photoId_&&(e.photoId_=vR(e,1)),d.call(b,e.photoId_),b.push(this.parsedImageUrl_.getImageVersion()),d=b.push,e=this.parsedImageUrl_,void 0==e.signature_&&(e.signature_=vR(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=LG(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();
a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));return a};
var GPb=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],xR=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new T.ReplaySubject(1);this.person$=this.providedEmail$.pipe(Xe(function(d){return XOb(c.peopleService,d)}),C(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;var k=new wR(h);k.setSize(48);h=k.build()||h}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),Ue(1));this.outOfOfficeDescription$=
new T.ReplaySubject;this.init=new T.ReplaySubject(1);this.destroyed$=new T.ReplaySubject(1)};xR.prototype.ngOnInit=function(){var a=this;this.person$.pipe(Me(),Ye(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&HPb(this)};var HPb=function(a){a.waldoService&&a.person$.pipe(Xe(function(b){return b?iPb(a.waldoService,b.email):(0,T.of)("")}),Ye(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
ki.Object.defineProperties(xR.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});xR.\u0275fac=function(a){return new (a||xR)(F(KQ),F(iR,8))};
xR.\u0275cmp=v({type:xR,selectors:[["onedev-person-hovercard"]],inputs:{email:"email",enableWaldo:"enableWaldo"},outputs:{init:"init"},ngContentSelectors:["onedev-hovercard-action","[onedev-additional-content]"],decls:2,vars:3,consts:[[3,"person","outOfOfficeDescription",4,"ngIf"],[3,"person","outOfOfficeDescription"]],template:function(a,b){a&1&&(Cf(GPb),O(0,hAa,4,4,"onedev-person-hovercard-body",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.person$))},dependencies:[sx,DQ,Fx],encapsulation:2,changeDetection:0});
var IPb=[[["onedev-hovercard-action"],["",8,"actions"]]],yR=function(){};yR.prototype.ngOnInit=function(){};yR.\u0275fac=function(a){return new (a||yR)};
yR.\u0275cmp=v({type:yR,selectors:[["b-person-card"]],inputs:{email:"email"},ngContentSelectors:["onedev-hovercard-action, .actions"],decls:1,vars:0,consts:[[3,"email","enableWaldo","onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"email","enableWaldo","onedevIsHovercardReady"],["cardBody",""]],template:function(a){a&1&&(Cf(IPb),O(0,iAa,3,3,"onedev-person-hovercard",0))},dependencies:[xR,qN,rN],styles:["onedev-hovercard-action[_ngcontent-%COMP%]   .label-enabled[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}onedev-hovercard-action[_ngcontent-%COMP%]   .label-disabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.2)}[_nghost-%COMP%]     .onedev-hovercard-content .onedev-hovercard-body a:focus{outline-width:1px}"],
changeDetection:0});var zR=function(){this.isNonObfuscatedEmail=Ln};zR.\u0275fac=function(a){return new (a||zR)};
zR.\u0275cmp=v({type:zR,selectors:[["b-person-hovercard"]],inputs:{email:"email",triggerClass:"triggerClass"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],[3,"onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],["card",""],[3,"email"]],template:function(a,b){a&1&&(Cf(),O(0,kAa,6,4,"ng-container",0),O(1,lAa,1,0,"ng-template",null,1,gg));if(a&2){var c=Hf(2);D("ngIf",!!b.email&&b.isNonObfuscatedEmail(b.email))("ngIfElse",c)}},dependencies:[sx,
Cx,pN,tN,yR],encapsulation:2,changeDetection:0});
var AR=function(){};AR.prototype.transform=function(a){if(Ln(a))return a};AR.\u0275fac=function(a){return new (a||AR)};AR.\u0275pipe=tc({name:"omitObfuscatedEmail",type:AR,pure:!0});
var BR=function(a){Z.call(this,a)};U(BR,Z);BR.prototype.getDisplayName=function(){return V(this,1)};BR.prototype.setDisplayName=function(a){return l(this,1,a)};BR.prototype.getPhotoUrl=function(){return V(this,2)};BR.prototype.toObject=function(){return JPb(void 0,this)};var JPb=function(a,b){if(null!=b){var c={displayName:n(p(b,1)),photoUrl:n(p(b,2)),highResolutionPhotoUrl:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var CR=function(a){Z.call(this,a)};U(CR,Z);CR.prototype.toObject=function(){var a=null!=this?{userProfileMap:Db(Yi(this,1,BR),void 0,JPb)}:void 0;return a};CR.messageId="b.UserProfileBatchResponse";
var DR=function(a,b){var c=this;this.userProfilesBatchApiConfig=a;this.batchApiAdapter=b;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new EJb(function(d){return c.batchAdaptedGet(d)},100)};DR.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};DR.\u0275fac=function(a){return new (a||DR)(t(ER),t(YK))};DR.\u0275prov=ec({token:DR,factory:DR.\u0275fac,providedIn:"root"});var ER=function(a){this.executor=a};
ER.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(u(a)).join(",")}},responseConstructor:CR}).pipe(Ie(function(){return(0,T.of)(new CR)}))};ER.prototype.split=function(a,b){return Yi(b,1,BR).get(a)||new BR};ER.\u0275fac=function(a){return new (a||ER)(t(pI))};ER.\u0275prov=ec({token:ER,factory:ER.\u0275fac,providedIn:"root"});
var FR=function(a){var b=this;this.waldoAvailabilityService=a;this.user="";this.userSubject=new T.ReplaySubject(1);this.availability=this.userSubject.pipe(Xe(function(c){return iPb(b.waldoAvailabilityService,c)}))};FR.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};FR.\u0275fac=function(a){return new (a||FR)(F(iR))};
FR.\u0275cmp=v({type:FR,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},features:[Ac],decls:2,vars:3,consts:[["class","chip__container",4,"ngIf"],[1,"chip__container"],["preserveAspectRatio","xMidYMid meet","width","100%","height","100%","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 24 24","aria-hidden","true",1,"chip__icon"],["d","M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 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 16H5V8h14v11z"],
["aria-hidden","true",1,"chip__text"]],template:function(a,b){a&1&&(O(0,mAa,6,3,"div",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.availability))},dependencies:[sx,Fx],styles:["[_nghost-%COMP%]{display:inline-block;height:18px;vertical-align:middle}[_nghost-%COMP%]:empty{display:none}[coinonly][_nghost-%COMP%]   .chip__container[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__container[_ngcontent-%COMP%]{background:#f1f3f4;padding:0 1px}[coinonly][_nghost-%COMP%]   .chip__icon[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__icon[_ngcontent-%COMP%]{fill:#5f6368}[coinonly][_nghost-%COMP%]   .chip__text[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__text[_ngcontent-%COMP%]{display:none}.chip__container[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background:#fef7e0;border:1px solid transparent;border-radius:20px;-moz-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:18px;padding:0 6px;white-space:nowrap;width:100%}.chip__icon[_ngcontent-%COMP%]{fill:#b06000;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:14px;width:14px}.chip__text[_ngcontent-%COMP%]{color:#202124;font-family:Google Sans Display,Roboto,Arial,sans-serif;font-size:12px;letter-spacing:.025em;line-height:16px;margin:0 0 0 6px;overflow:hidden;text-overflow:ellipsis}"],
changeDetection:0});
var GR=function(a){this.refreshMonitor=a;this.user="";this.coinonly=null};GR.\u0275fac=function(a){return new (a||GR)(F(uL))};GR.\u0275cmp=v({type:GR,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&O(0,nAa,1,2,"ng-template",0);a&2&&D("refreshable",b.refreshMonitor.getObservable())},dependencies:[FR,eP],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});
var HR=function(){this.issueId=0;this.customFieldMap={};this.currentUserEmail="";this.createdTimeMicros=this.authorUser=this.user=this.originalModelData=null;this.componentId=0;this.severity=this.priority=this.type=this.version=null;this.title="";this.verifierUser=this.verifier=this.assigneeUser=this.assignee=this.reporterUser=this.reporter=null;this.cc=[];this.ccUsers=[];this.hotlistId=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.postmortems=this.changelist=this.blockingIssueId=
this.blockedByIssueId=this.duplicateOfIssueId=this.attachmentId=null;this.customField=[];this.duplicateIssueId=this.significanceOverride=this.deletionReason=this.isDeleted=this.snapshotNumber=null;this.isArchived=this.inProd=!1;this.effortEstimate=this.sloSnoozeUntil=null;this.status="NEW"};
HR.prototype.setData=function(a,b,c){this.issueId=b;a=Fi(a);a.status=a.status||"NEW";a.blockingIssueId=a.blockingIssueId||[];a.componentId=a.componentId||0;a.changelist=a.changelist||[];a.postmortems=a.postmortems||[];a.blockedByIssueId=a.blockedByIssueId||[];a.foundInVersion=a.foundInVersion||[];a.hotlistId=a.hotlistId||[];a.targetedToVersion=a.targetedToVersion||[];a.verifiedInVersion=a.verifiedInVersion||[];a.customField=a.customField||[];a.deletionReason=a.deletionReason||null;a.duplicateOfIssueId=
a.duplicateOfIssueId||null;a.isDeleted=a.isDeleted||!1;this.originalModelData=Fi(a);this.assignee=Ll(a.assigneeUser);this.assigneeUser=a.assigneeUser;this.authorUser=a.authorUser;this.attachmentId=a.attachmentId;this.blockedByIssueId=a.blockedByIssueId;this.blockingIssueId=a.blockingIssueId;this.cc=Hqa(a.ccUsers)||[];this.ccUsers=a.ccUsers||[];this.changelist=a.changelist;this.componentId=a.componentId||0;this.createdTimeMicros=a.createdTimeMicros;this.deletionReason=a.deletionReason;this.duplicateIssueId=
a.duplicateIssueId;this.duplicateOfIssueId=a.duplicateOfIssueId;this.foundInVersion=a.foundInVersion;this.hotlistId=a.hotlistId;this.inProd=a.inProd;this.isArchived=a.isArchived;this.isDeleted=a.isDeleted;this.postmortems=a.postmortems;this.priority=a.priority;this.reporter=Ll(a.reporterUser);this.reporterUser=a.reporterUser;this.severity=a.severity;this.significanceOverride=a.significanceOverride;this.snapshotNumber=a.snapshotNumber;this.status=a.status||"NEW";this.targetedToVersion=a.targetedToVersion;
this.title=a.title;this.type=a.type;this.user=Ll(a.authorUser);this.verifiedInVersion=a.verifiedInVersion;this.verifier=Ll(a.verifierUser);this.verifierUser=a.verifierUser;this.version=a.version;this.sloSnoozeUntil=a.sloSnoozeUntil;var d,e;this.effortEstimate=null!=(e=null==(d=a.effort)?void 0:V(d,2))?e:null;this.customField=[];a&&(this.customField=(a.customField||[]).filter(function(f){return f}).map(function(f){return new KPb(f)}));d={};c=r(c);for(e=c.next();!e.done;d={$jscomp$loop$prop$fieldResource$1654:d.$jscomp$loop$prop$fieldResource$1654},
e=c.next())d.$jscomp$loop$prop$fieldResource$1654=e.value,e=d.$jscomp$loop$prop$fieldResource$1654.allowedValue?d.$jscomp$loop$prop$fieldResource$1654.allowedValue.map(function(f){return{value:f,displayText:f}}):null,(a=this.customField.find(function(f){return function(h){return h.customFieldId===f.$jscomp$loop$prop$fieldResource$1654.customFieldId}}(d)))?(a.type=d.$jscomp$loop$prop$fieldResource$1654.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1654.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1654.customFieldId)]=
a):(a=new KPb({customFieldId:d.$jscomp$loop$prop$fieldResource$1654.customFieldId}),a.type=d.$jscomp$loop$prop$fieldResource$1654.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1654.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1654.customFieldId)]=a)};
var MPb=function(a){for(var b=[],c=r(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=LPb(a,d.customFieldId);e=e?e.getValue():null;var f=d.getValue();if(!Ei(e,f)){if(e=d.isEmpty())d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalModelData){IR(Ll(a.originalModelData.assigneeUser),a.assignee,"assignee",b);IR(a.originalModelData.componentId,a.componentId,"componentId",b);IR(a.originalModelData.createdTimeMicros,
a.createdTimeMicros,"createdTimeMicros",b);IR(a.originalModelData.deletionReason,a.deletionReason,"deletionReason",b);IR(a.originalModelData.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);IR(a.originalModelData.inProd,a.inProd,"inProd",b);IR(a.originalModelData.isArchived,a.isArchived,"isArchived",b);IR(a.originalModelData.isDeleted,a.isDeleted,"isDeleted",b);IR(a.originalModelData.priority,a.priority,"priority",b);IR(Ll(a.originalModelData.reporterUser),a.reporter,"reporter",b);
IR(a.originalModelData.severity,a.severity,"severity",b);IR(a.originalModelData.significanceOverride,a.significanceOverride,"significanceOverride",b);IR(a.originalModelData.snapshotNumber,a.snapshotNumber,"snapshotNumber",b);IR(a.originalModelData.status,a.status,"status",b);IR(a.originalModelData.title,a.title,"title",b);IR(a.originalModelData.type,a.type,"type",b);IR(Ll(a.originalModelData.authorUser),a.user,"user",b);IR(Ll(a.originalModelData.verifierUser),a.verifier,"verifier",b);IR(a.originalModelData.version,
a.version,"version",b);var h,k,q,w;IR(null!=(q=null==(h=a.originalModelData.sloSnoozeUntil)?void 0:h.getSeconds())?q:0,null!=(w=null==(k=a.sloSnoozeUntil)?void 0:k.getSeconds())?w:0,"sloSnoozeUntil",b);var y,E;IR(null!=(E=null==(y=a.originalModelData.effort)?void 0:V(y,2))?E:null,a.effortEstimate,"effortEstimate",b);JR(a.originalModelData.attachmentId,a.attachmentId,"attachmentId",b);JR(Hqa(a.originalModelData.ccUsers),a.cc,"ccs",b);JR(a.originalModelData.changelist,a.changelist,"changelists",b);
JR(a.originalModelData.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);JR(a.originalModelData.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);JR(a.originalModelData.foundInVersion,a.foundInVersion,"foundInVersion",b);JR(a.originalModelData.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);JR(a.originalModelData.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);JR(a.originalModelData.hotlistId,a.hotlistId,"hotlists",b)}return 0==b.length?null:{issueId:a.issueId,
actions:b}},IR=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:null!=b?String(b):void 0})},JR=function(a,b,c,d){var e=Oi(b||[],new Set(a));a=Oi(a||[],new Set(b));0==e.length||d.push({fieldName:c,value:e.join(","),actionType:"ADD"});0==a.length||d.push({fieldName:c,value:a.join(","),actionType:"REMOVE"})};g=HR.prototype;
g.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TEXT":this.customFieldMap[a].textValue=b||"";break;case "DATE":this.customFieldMap[a].dateValue=b||{day:0,month:0,year:0};break;case "ENUM":this.customFieldMap[a].enumValue=b||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue={values:b};break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=
{values:b};break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue={values:b};break;default:bh(c,"Unexpected custom field type: "+c)}}};g.setIsDeleted=function(a){this.isDeleted=a};g.setIsArchived=function(a){this.isArchived=a};g.setDeletionReason=function(a){this.deletionReason=a};g.setReporter=function(a){this.reporter=a};g.setType=function(a){this.type=a};g.setPriority=function(a){this.priority=a};
g.setSeverity=function(a){this.severity=a};g.setAssignee=function(a){this.assignee=a;a=zn[this.status];!this.assignee&&this.originalModelData&&Ll(this.originalModelData.assigneeUser)&&"REQUIRED"===(null==a?void 0:a.assigneeRequirement)?this.status="NEW":this.assignee&&"FIXED"!==this.status&&"VERIFIED"!==this.status&&(this.status="ASSIGNED")};
g.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalModelData&&Ll(this.originalModelData.verifierUser)&&"VERIFIED"===this.originalModelData.status&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=zn[this.status];"FORBIDDEN"===(null==a?void 0:a.assigneeRequirement)&&this.assigneeUser?this.assignee="":"REQUIRED"!==(null==a?void 0:a.assigneeRequirement)||this.assigneeUser||(this.assignee=this.currentUserEmail);"VERIFIED"!==this.status||this.verifier||(this.verifier=this.currentUserEmail)};g.setInProd=function(a){this.inProd=a};var NPb=function(a,b){a.blockingIssueId=b},OPb=function(a,b){a.blockedByIssueId=b};
HR.prototype.setSloSnoozeUntil=function(a){this.sloSnoozeUntil=a};var LPb=function(a,b){return a.originalModelData?(a=(a.originalModelData.customField||[]).find(function(c){return c.customFieldId===b}))?new lJ(a):null:null},KPb=function(a){lJ.call(this,a);this.choices=this.customFieldName=this.type=null};U(KPb,lJ);KPb.prototype.isRepeated=function(){return null==this.type?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var PPb=new Map([["assignee",function(a,b){a.assigneeUser=Tl(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Tl).filter($k)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Tl(b.reporter)}],["verifier",function(a,b){a.verifierUser=Tl(b.verifier)}],["componentId",function(a,b){a.componentId=b.componentId}],["createdTimeMicros",function(a,b){a.createdTimeMicros=b.createdTimeMicros}],["deletionReason",
function(a,b){a.deletionReason=b.deletionReason}],["duplicateOfIssueId",function(a,b){a.duplicateOfIssueId=b.duplicateOfIssueId}],["inProd",function(a,b){a.inProd=b.inProd}],["isArchived",function(a,b){a.isArchived=b.isArchived}],["isDeleted",function(a,b){a.isDeleted=b.isDeleted}],["priority",function(a,b){a.priority=b.priority}],["severity",function(a,b){a.severity=b.severity}],["significanceOverride",function(a,b){a.significanceOverride=b.significanceOverride}],["snapshotNumber",function(a,b){a.snapshotNumber=
b.snapshotNumber}],["status",function(a,b){a.status=b.status}],["title",function(a,b){a.title=b.title}],["type",function(a,b){a.type=b.type}],["user",function(a,b){a.authorUser=b.authorUser}],["version",function(a,b){a.version=b.version}],["attachmentId",function(a,b){a.attachmentId=b.attachmentId}],["blockedByIssueId",function(a,b){a.blockedByIssueId=b.blockedByIssueId}],["blockingIssueId",function(a,b){a.blockingIssueId=b.blockingIssueId}],["foundInVersion",function(a,b){a.foundInVersion=b.foundInVersion}],
["targetedToVersion",function(a,b){a.targetedToVersion=b.targetedToVersion}],["verifiedInVersion",function(a,b){a.verifiedInVersion=b.verifiedInVersion}]]);
var KR=function(a){this.$window=a};KR.\u0275fac=function(a){return new (a||KR)(t(wM))};KR.\u0275prov=ec({token:KR,factory:KR.\u0275fac,providedIn:"root"});
var LR=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.confirmationDialogService=c},QPb=function(a,b){return new Promise(function(c){MR(a,b,function(){c(!0)},function(){c(!1)})})},MR=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Nn("");if("VULNERABILITY"===b)e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Qn(My('A security "Vulnerability" is a weakness in software and hardware components that, when exploited, results in a negative impact to confidentiality, integrity, or availability. \n\nThis issue type is subject to stricter SLOs than other types. Please refer to the security guidelines for more information on on proper usage.\n\n'),
Pn("A",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more"));else if("PRIVACY_ISSUE"===b){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var h={};f=Qn(My('The "Privacy Issue" type tracks situations in which Google systems risk falling out of alignment with internal privacy  standards and requirements, and is subject to stricter SLOs than other types. '),Pn("A",(b.href="http://goto.google.com/pib-slo",b.target="_blank",b),"Learn more"),My(".\n\nDO NOT use this type to file "),
Pn("A",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),My(". Incidents should be filed at "),Pn("A",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),My(".\n\nDO NOT use this type unless you are on one of the following teams or have been specifically requested by one of these teams to file a Privacy Issue bug: Privacy Incident Management, Privacy Investigations, Privacy Remediation."))}a.confirmationDialogService.open({title:e,
content:f,onConfirm:null!=c?c:function(){},onDismiss:null!=d?d:function(){}})}};LR.\u0275fac=function(a){return new (a||LR)(t(pH),t(tP),t(aN))};LR.\u0275prov=ec({token:LR,factory:LR.\u0275fac,providedIn:"root"});
var RPb=function(a){var b=[],c=[].concat.apply([],u(a.map(function(e){return e.actions})));a={};c=r(c);for(var d=c.next();!d.done;a={$jscomp$loop$prop$action$1656:a.$jscomp$loop$prop$action$1656},d=c.next())a.$jscomp$loop$prop$action$1656=d.value,b.some(function(e){return function(f){return Ei(e.$jscomp$loop$prop$action$1656,f)}}(a))||b.push(a.$jscomp$loop$prop$action$1656);return b},SPb=function(a){return Array.from(new Set([].concat.apply([],u(a.map(function(b){return b.issueIds})))))};
var NR=function(a){this.dateFormatter=a};
NR.prototype.format=function(a){var b=this;if(a){if(a.textValue)return a.textValue;if(a.dateValue)return(a=a.dateValue)&&a.day&&a.month&&a.year?this.dateFormatter.formatUserCalendar(Lk(a)):"";if(a.enumValue)return a.enumValue;if(a.numericValue||0===a.numericValue)return String(a.numericValue);if(a.repeatedTextValue)return a.repeatedTextValue.values.join(", ");if(a.repeatedDateValue)return a.repeatedDateValue.values.map(function(c){return b.dateFormatter.formatUserCalendar(Lk(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};NR.\u0275fac=function(a){return new (a||NR)(t(JP))};NR.\u0275prov=ec({token:NR,factory:NR.\u0275fac,providedIn:"root"});
var OR=function(a,b){this.customFieldFormatter=a;this.hotlistFridge=b;this.FIELD_TEXT_MAP={assignee:"Assignee",type:"Issue Type",componentId:"Component ID",duplicateOfIssueId:"Canonical Issue ID",inProd:"In Prod",priority:"Priority",severity:"Severity",status:"Status",title:"Title",verifier:"Verifier",effortEstimate:"Estimated Effort",sloSnoozeUntil:"SLO Snooze Until",blockingIssueId:"Blocked Issues",ccs:"CCs",changelists:"Changelists",blockedByIssueId:"Blocking Issues",foundInVersion:"Found In",
hotlists:"Hotlists",targetedToVersion:"Targeted To",verifiedInVersion:"Verified In"};this.ENUM_FIELDS=["type","status"]},VPb=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e;b.bulkEditOps&&(e=SPb(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=RPb(b.bulkEditOps));b=TPb(f).map(function(h){return UPb(a,h,c,d)});b=b.filter(Boolean);if(!b.length)return"Issue(s) updated.";b=b.join(", ");return b=e?1==e.length?b+" on 1 issue.":b+(" on "+e.length+" issues."):b+"."},TPb=function(a){var b=
[],c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,"status"===d.fieldName?c.push(d):b.push(d);return b.concat(c)},UPb=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=new lJ(b.customFieldValue),e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):e="effortEstimate"===b.fieldName&&d?d:a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName;"hotlists"===
b.fieldName?f=b.value.split(",").map(function(h){var k,q;return(k=null==(q=Pj(a.hotlistFridge.watch(String(h),{trustUncertainMemory:!0})))?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?Kk(f.replace(/_/g," ").toLowerCase()):"");return"ADD"===b.actionType&&"hotlists"===b.fieldName?(f=f.replace(/,/g,", "),"Added issue to Hotlist ["+f+"]"):"REMOVE"===b.actionType&&"hotlists"===b.fieldName?(f=f.replace(/,/g,", "),"Removed issue from Hotlist ["+f+"]"):b.actionType||"status"!==
b.fieldName?b.actionType||"comment"!==b.fieldName?b.actionType||"attachments"!==b.fieldName?b.actionType||"sloSnoozeUntil"!==b.fieldName?"ADD"!==b.actionType||b.customFieldValue?"REMOVE"!==b.actionType||b.customFieldValue?"isArchived"===b.fieldName?"true"===b.value?"Archived successfully":"Unarchived successfully":e+' set to "'+f+'"':(f=f.replace(/,/g,", "),'"'+f+'" removed from '+e):(f=f.replace(/,/g,", "),'"'+f+'" added to '+e):b.value?"SLO snoozed":"SLO un-snoozed":"":"Comment added":'Status set to "'+
zn[b.value].displayValue+'"'};OR.\u0275fac=function(a){return new (a||OR)(t(NR),t(sL))};OR.\u0275prov=ec({token:OR,factory:OR.\u0275fac,providedIn:"root"});
var PR=function(a){Z.call(this,a,-1,WPb)};U(PR,Z);PR.prototype.getAttachmentsList=function(){return rb(this,an,1)};PR.prototype.setAttachmentsList=function(a){zb(this,1,a)};var WPb=[1];PR.prototype.toObject=function(){var a=null!=this?{attachmentsList:Bb(this.getAttachmentsList(),vHb)}:void 0;return a};PR.messageId="b.CreateAttachmentsResponse";
var QR=function(a){Z.call(this,a)};U(QR,Z);QR.prototype.getErrorMessage=function(){return V(this,2)};QR.prototype.setErrorMessage=function(a){l(this,2,a)};QR.prototype.toObject=function(){var a=null!=this?{encryptedMedia:Eb(Lm(this,1)),errorMessage:n(p(this,2))}:void 0;return a};QR.messageId="b.EncryptedMediaResponse";
var RR=function(){},SR=function(a){this.apiResourceFactory=a;this.attachmentsResource=LJ(this.apiResourceFactory,"action/issues/:issueId/attachments");this.driveAttachmentResource=LJ(this.apiResourceFactory,"action/issues/drive_attachment")};U(SR,RR);SR.prototype.createAttachment=function(a){return this.attachmentsResource.save({issueId:a.issueId},a)};SR.prototype.createDriveAttachment=function(a){return this.driveAttachmentResource.save({},a)};SR.\u0275fac=function(a){return new (a||SR)(t(JJ))};
SR.\u0275prov=ec({token:SR,factory:SR.\u0275fac,providedIn:"root"});var TR=function(a){this.executor=a};U(TR,RR);TR.prototype.createAttachment=function(a){var b=new iK;b.setIssueId(String(a.issueId));void 0!==a.attachments&&b.setAttachmentsList(a.attachments);if(void 0!==a.attachmentsWithJudgements){var c=a.attachmentsWithJudgements.map(usa);zb(b,3,c)}return this.executor.post({url:"action/issues/"+a.issueId+"/attachments",body:b,responseConstructor:PR}).then(vsa)};
TR.prototype.createDriveAttachment=function(a){var b=new NGb;b.setFilename(a.filename);b.setMimeType(a.mimeType);null!=a.encryptedBlobId&&l(b,3,a.encryptedBlobId);l(b,4,a.docId);null!=a.size&&b.setSize(a.size);return this.executor.post({url:"action/issues/drive_attachment",body:b,responseConstructor:QR}).then(tsa)};TR.\u0275fac=function(a){return new (a||TR)(t(qI))};TR.\u0275prov=ec({token:TR,factory:TR.\u0275fac,providedIn:"root"});
var UR=function(){};UR.\u0275fac=function(a){return new (a||UR)};UR.\u0275prov=ec({token:UR,factory:UR.\u0275fac,providedIn:"root"});var VR=function(a){this.$http=a};U(VR,UR);VR.prototype.delete=function(a,b,c){a="action/issues/"+a+"/attachments/"+b.attachmentId;var d={};b={params:{reason:c},headers:(d["If-Match"]=b.etag,d)};return this.$http.delete(a,b).then(function(){})};
VR.prototype.undelete=function(a,b){var c={};return this.$http.post("action/issues/"+a+"/attachments/"+b.attachmentId,{},{headers:(c["If-Match"]=b.etag,c)}).then(function(d){return d.data})};VR.\u0275fac=function(a){return new (a||VR)(t(DJ))};VR.\u0275prov=ec({token:VR,factory:VR.\u0275fac,providedIn:"root"});var WR=function(a){this.executor=a};U(WR,UR);
WR.prototype.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/attachments/"+b.attachmentId,options:{headers:{"If-Match":b.etag},params:{reason:c}},responseConstructor:null})};WR.prototype.undelete=function(a,b){return this.executor.post({url:"action/issues/"+a+"/attachments/"+b.attachmentId,body:null,options:{headers:{"If-Match":b.etag}},responseConstructor:an}).then(Nm)};WR.\u0275fac=function(a){return new (a||WR)(t(qI))};
WR.\u0275prov=ec({token:WR,factory:WR.\u0275fac,providedIn:"root"});
var YR=function(a,b,c){this.dialogRef=a;this.data=c;this.readMoreLink=b.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings";this.userEmails=c.userEmails};YR.prototype.close=function(a){this.dialogRef.close(a)};YR.\u0275fac=function(a){return new (a||YR)(F(AB),F(tP),F(FB))};
YR.\u0275cmp=v({type:YR,selectors:[["confirm-no-access-dialog"]],decls:18,vars:2,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],[1,"help-label"],["target","_blank",3,"href"],["mat-button","","color","primary",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",3,"click"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"h1",1),P(2,"User may not have access"),H(),G(3,"section",2)(4,"p"),P(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),
H(),G(6,"ul"),O(7,pAa,2,1,"li",3),H(),G(8,"section"),P(9,"Continue anyway?"),H()(),G(10,"footer",4)(11,"div",5)(12,"a",6),P(13,"Learn more"),H()(),G(14,"button",7),K("click",function(){return b.close(!0)}),P(15,"Continue"),H(),G(16,"button",8),K("click",function(){return b.close(!1)}),P(17,"Cancel"),H()()());a&2&&(B(7),D("ngForOf",b.userEmails),B(5),D("href",b.readMoreLink,Kd))},dependencies:[wx,pB,JB,KB,LB],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});
var ZR=function(a,b,c,d,e){this.matDialogService=a;this.analytics=b;this.butterBar=c;this.logger=d;this.accessPolicy=e},YPb=function(a,b){var c=b.componentId,d=b.userEmails,e=b.relation,f=b.analyticsEventLabel,h,k,q;return me(function(w){switch(w.nextAddress){case 1:if(d.every(function(y){return 0===y.length}))return w.return(!0);Lt(w,2);return ne(w,XPb(a,c,d,e),4);case 4:h=w.yieldResult;if(0===h.length)return w.return(!0);bo(a.analytics,go.ADD_USER_WITHOUT_ACCESS,"warn",f);return ne(w,a.confirm(h,
e),5);case 5:k=w.yieldResult;if(!k)return PK(a.butterBar,"Save cancelled.",4E3),bo(a.analytics,go.ADD_USER_WITHOUT_ACCESS,"cancel",f),w.return(!1);bo(a.analytics,go.ADD_USER_WITHOUT_ACCESS,"proceed",f);return w.return(!0);case 2:return q=Nt(w),a.logger.error(q),w.return(!1)}})},XPb=function(a,b,c,d){var e;return me(function(f){if(1==f.nextAddress)return ne(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(u(e.noAccessEmails||[]),u(e.unknownEmails||
[])))})};ZR.prototype.confirm=function(a,b){var c=this,d,e,f;return me(function(h){if(1==h.nextAddress)return d={userEmails:a,relation:b},e=c.matDialogService.open(YR,{width:"400px",data:d}),ne(h,(0,T.firstValueFrom)(e._afterClosed),2);f=h.yieldResult;return h.return(!!f)})};ZR.\u0275fac=function(a){return new (a||ZR)(t(HB),t(SM),t(OK),t(RK),t(iO))};ZR.\u0275prov=ec({token:ZR,factory:ZR.\u0275fac,providedIn:"root"});
var $R=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};$R.prototype.cancel=function(){this.state=4};var ZPb={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};
var aS=function(a,b){this.initialComment=a=void 0===a?"":a;this.fromTemplate=void 0===b?!1:b;this.uploads=[];this.formattingMode=1;this.value=a};aS.prototype.reset=function(){this.value="";$Pb(this)};
var $Pb=function(a){for(var b=r(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},aQb=function(a){return a.fromTemplate&&a.initialComment===a.value},bQb=function(a){var b=[];a=r(a.uploads);for(var c=a.next();!c.done;c=a.next())c=c.value,2===c.state&&c.blobRef&&b.push(Fi(c.blobRef));return b};aS.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var cQb=function(a){return!a.isEmpty()&&!Gs(a)};aS.prototype.isEmpty=function(){return!this.value&&!dQb(this)};
var Gs=function(a){return a.uploads.some(function(b){return 1===b.state||3===b.state})},dQb=function(a){return a.uploads.some(function(b){return 2===b.state})};
var bS=new jd("routeParams",{factory:function(){return t(tM).params}});
var cS=function(a,b,c,d){this.routeParams=a;this.issueComments=b;this.draftStore=c;this.errorHandler=d};cS.prototype.get=function(a){var b=this;if(this.routeParams.comment)return(0,T.of)(this.routeParams.comment);if(this.routeParams.template_issue){var c=this.routeParams.template_issue,d=Ki(this.routeParams.template_comment)||1;return(0,T.defer)(function(){return eQb(b,c,d)})}return a?(0,T.of)(this.draftStore.$window.sessionStorage.getItem(vo(iC(a)))||""):(0,T.of)("")};
var eQb=function(a,b,c){var d,e;return me(function(f){if(1==f.nextAddress)return Lt(f,2),ne(f,a.issueComments.get(b,c),4);if(2!=f.nextAddress)return d=f.yieldResult,f.return(d.unlinkifiedComment||d.comment);e=Nt(f);UK(a.errorHandler,e);return f.return("")})};cS.\u0275fac=function(a){return new (a||cS)(t(bS),t(rO),t(KR),t(SK))};cS.\u0275prov=ec({token:cS,factory:cS.\u0275fac,providedIn:"root"});
var fQb=function(a,b,c,d){var e=this;this.issueId=a;this.defaultCommentSource=b;this.issueFetchResponseFridge=c;this.activeSession=d;this.issueFr$=CL(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFr$.pipe(C(function(f){return null==f?void 0:f.issue}));this.componentId$=this.issue$.pipe(C(function(f){return null==f?void 0:f.snapshot[0].componentId}),Le());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(C(function(f){return new aS(f)}),We(new aS("")),Ue({bufferSize:1,
refCount:!0}));this.comment=function(){return Pj(e.comment$)};this.createRestrictedResourcesComponentWhitelist=jb(this.activeSession.config,13);this.componentJudgementForNewContent$=this.componentId$.pipe(C(function(f){if(f&&e.createRestrictedResourcesComponentWhitelist.includes(f))return(new Dl).setSeverity(2).setJudgementReason("None Specified")}),Ue({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new T.BehaviorSubject(void 0);this.judgementForNewContent$=(0,T.combineLatest)([this.componentJudgementForNewContent$,
this.userDefinedJudgementForNewContent$]).pipe(C(function(f){var h=r(f);f=h.next().value;h=h.next().value;return null!=h?h:f}),Ue({bufferSize:1,refCount:!1}));this.judgementForNewContent=function(){return Pj(e.judgementForNewContent$)}},gQb=function(a){var b=a.comment(),c,d=1===(null==(c=a.judgementForNewContent())?void 0:c.getSeverity())?void 0:a.judgementForNewContent();a=b.value;c=b.formattingMode;var e=[];b=r(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,2===f.state&&f.blobRef&&(f=
Fi({attachment:f.blobRef}),d&&(f.contentJudgement={severity:zl(d.getSeverity()),judgementReason:d.getJudgementReason()}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},hQb=function(a){var b=gQb(a),c=b.attachmentsWithJudgements;a={issueId:Number(a.issueId),actions:[]};b.commentText&&a.actions.push({fieldName:"comment"});c.length&&a.actions.push({fieldName:"attachments"});return a},dS=function(a,b,c){this.defaultCommentSource=a;this.issueFetchResponseFridge=
b;this.activeSession=c};dS.prototype.create=function(a){return new fQb(a,this.defaultCommentSource,this.issueFetchResponseFridge,this.activeSession)};dS.\u0275fac=function(a){return new (a||dS)(t(cS),t(BL),t(pH))};dS.\u0275prov=ec({token:dS,factory:dS.\u0275fac,providedIn:"root"});
var eS=function(){};eS.prototype.isSloSnoozed=function(a){return!!a&&a.getSeconds()>Date.now()/1E3};
var fS=function(a){return!!a&&a.hasTargetTime()&&0!==a.getTargetTime().getSeconds()},iQb=function(a){return fS(a.getAssignmentBounds())||fS(a.getResponseBounds())||fS(a.getClosureBounds())},jQb=function(a){if(!a)return null;var b=[],c=[];a.hasAssignmentBounds()&&qAa(b,c,a.getAssignmentBounds(),"ASSIGNMENT");a.hasResponseBounds()&&qAa(b,c,a.getResponseBounds(),"RESPONSE");a.hasClosureBounds()&&qAa(b,c,a.getClosureBounds(),"CLOSURE");return 0<b.length?(b.sort(rAa),b[0]):0<c.length?(c.sort(rAa),{sloBounds:c[0].sloBounds,
sloMetric:""}):null};eS.\u0275fac=function(a){return new (a||eS)};eS.\u0275prov=ec({token:eS,factory:eS.\u0275fac,providedIn:"root"});
var kQb=function(a,b,c,d,e){var f=this;this.issueId=a;this.issueFetchResponseFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.enableWtdmFieldPerTypeVisibility=Zi("enableWtdmMvpUi")||!1;this.enableNonWtdmFieldPerTypeVisibility=Zi("enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issueFetchResponse$=CL(this.issueFetchResponseFridge,this.issueId);this.issue$=
this.issueFetchResponse$.pipe(C(function(h){return null==h?void 0:h.issue}));this.issueSnapshot$=this.issue$.pipe(C(function(h){return null==h?void 0:h.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(C(function(h){var k;return null==h?void 0:null==(k=h.aggregatedData)?void 0:k.sloStatus}),C(jva),C(function(h){return!!h&&iQb(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(C(function(h){return null!=(null==h?void 0:h.type)&&vCb.has(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(C(function(h){return h?
!f.enableWtdmFieldPerTypeVisibility:!f.enableNonWtdmFieldPerTypeVisibility}));this.isSloStatusPrimary$=(0,T.combineLatest)([this.hasSloDefined$,this.isWtdmType$]).pipe(C(function(h){var k=r(h);h=k.next().value;k=k.next().value;return!f.enableWtdmFieldPerTypeVisibility||h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(C(function(h){return!f.enableWtdmFieldPerTypeVisibility||!h}));this.isChangelistPrimary$=(0,T.combineLatest)([this.isWtdmType$,this.issueSnapshot$]).pipe(C(function(h){var k=r(h);
h=k.next().value;k=k.next().value;return!f.enableWtdmFieldPerTypeVisibility||!h||"STORY"===(null==k?void 0:k.type)||"TASK"===(null==k?void 0:k.type)}));this.customFields$=this.issueFetchResponse$.pipe(C(function(h){var k;return null!=(k=null==h?void 0:h.customFields)?k:[]}));this.visibleFields$=this.issue$.pipe(C(function(h){var k;return null!=(k=null==h?void 0:h.visibleFields)?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(C(function(h){return h.map(function(k){return k.customFieldId}).filter($k)}),
C(function(h){return new Set(h)}),Ue({refCount:!0,bufferSize:1}));this.visibleCustomFields$=(0,T.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(C(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),Ue({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=(0,T.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(C(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),
Ue({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=(0,T.combineLatest)([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(C(function(h){var k=r(h);h=k.next().value;var q=k.next().value,w=k.next().value,y=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||w?0:1)+(!f.showChangelists||y?0:2)+k.length}),Ue({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(C(function(h){return 0<
h}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(C(function(h){return 1===h?"Show 1 additional field":"Show "+h+" additional fields"}))},gS=function(a,b,c,d){this.issueFetchResponseFridge=a;this.constants=b;this.activeSession=c;this.sloStatusHelpersService=d};gS.prototype.create=function(a){return new kQb(a,this.issueFetchResponseFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};gS.\u0275fac=function(a){return new (a||gS)(t(BL),t(ZH),t(pH),t(eS))};
gS.\u0275prov=ec({token:gS,factory:gS.\u0275fac,providedIn:"root"});
var pKb=go.EDIT_ISSUE,hS=function(a,b){BI.call(this);this.analytics=a;this.clearcut=b;this.issueToTrackingState=new Map;this.getState=wo(this.issueToTrackingState,sAa);this.trackFirstAction=this.analytics.preapply()("first-action");this.trackEdit=this.analytics.preapply()("edit");this.trackNavigation=this.analytics.preapply()("navigate");this.trackDestroy=this.analytics.preapply()("destroyed")};U(hS,BI);hS.\u0275dir=BI.\u0275dir;
var lQb=function(a,b){a.resetState(b);a.getState(b)},iS=function(a,b,c){var d=a.getState(b);c&&(d.editCount++,a.trackEdit(c.label,c.value));d.firstActionSeen||(b=Date.now()-a.getState(b).startTime,a.trackFirstAction("time-to-action",b),a=a.clearcut,a.userLatency.record(b,"idp-time-to-action",a.frontendAccessMode,a.environmentType),d.firstActionSeen=!0)};hS.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};hS.\u0275fac=function(a){return new (a||hS)(t(SM),t(SO))};
hS.\u0275prov=ec({token:hS,factory:hS.\u0275fac,providedIn:"root"});
var mQb={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},nQb={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},oQb={type:"START",displayText:"Start work",description:"Change issue status to 'Accepted'"},pQb={type:"FIX",displayText:"Mark fixed",description:"Change issue status to 'Fixed'"},qQb={type:"VERIFY",displayText:"Verify",description:"Change issue status to 'Verified'"},rQb={type:"REOPEN",displayText:"Re-open",
description:"Change issue status back to 'Assigned'"};
var tQb=function(a,b,c,d){var e=this;this.issueId=a;this.activeSession=b;this.issueFridge=c;this.componentTemplatesFridge=d;this.defaultAssigneeQuickActionEnabled=this.activeSession.isInternalSession();this.issue$=this.issueFridge.watch(this.issueId).pipe(Ue({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(C(function(f){return null==f?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(C(function(f){return(null==f?void 0:f.assigneeUser)&&Pl(f.assigneeUser)}),C(Wk));
this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(C(function(f){return null==f?void 0:f.componentId}),Le(),Xe(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):(0,T.of)(void 0)}),C(function(f){return f&&Pl(f.snapshot.assigneeUser)}),Ue({bufferSize:1,refCount:!0}));this.defaultAssigneeForComponent=function(){return Pj(e.defaultAssigneeForComponent$)};this.issueAssigneeQuickAction$=(0,T.combineLatest)([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(C(function(f){var h=
r(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&h&&f!==h?nQb:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(C(function(f){return f&&sQb(e,f)}))},sQb=function(a,b){var c=a.activeSession.getUserEmail();a=Pl(b.assigneeUser)===c;c=Pl(b.verifierUser)===c;b=b.status;if(c&&"FIXED"===b)return qQb;if(a)switch(b){case "ASSIGNED":return oQb;case "ACCEPTED":return pQb;default:return rQb}switch(b){case "NEW":return mQb;case "ASSIGNED":return mQb;case "ACCEPTED":return mQb;
default:return rQb}},jS=function(a,b,c){this.activeSession=a;this.issueFridge=b;this.componentTemplatesFridge=c};jS.prototype.create=function(a){return new tQb(a,this.activeSession,this.issueFridge,this.componentTemplatesFridge)};jS.\u0275fac=function(a){return new (a||jS)(t(pH),t(yL),t(XK))};jS.\u0275prov=ec({token:jS,factory:jS.\u0275fac,providedIn:"root"});
var uQb=function(){this.changed$=new T.BehaviorSubject(void 0);this.propertiesBeingSaved=new Set};uQb.prototype.get=function(a){return this.propertiesBeingSaved.has(Rn(a))};var Ms=function(a,b){return a.changed$.pipe(C(function(){return a.get(Rn(b))}),Le())},kS=function(a,b){a.propertiesBeingSaved.add(Rn(b));a.changed$.next()},lS=function(a,b){a.propertiesBeingSaved.delete(Rn(b));a.changed$.next()};uQb.prototype.properties=function(){return[].concat(u(this.propertiesBeingSaved.values()))};
var mS=function(){};mS.prototype.transform=function(a){return xo(a)};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275pipe=tc({name:"appendDomain",type:mS,pure:!0});
var nS=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb){var ta=this;this.issueFetchResponseFridge=a;this.activeSession=b;this.butterBar=c;this.issueInteractionsTracking=d;this.issueApi=e;this.componentFridge=f;this.permissionsFridge=h;this.eventsForIssueFridge=k;this.statusMessages=q;this.errorHandler=w;this.confirmationDialogService=y;this.principalTypes=E;this.issuePermissionService=I;this.accessPolicy=N;this.issueTypeDialog=L;this.logger=S;this.issueFridge=Y;this.confirmNoAccessService=
ka;this.issueService=ha;this.attachmentsMember=ya;this.userPreferencesManager=Ha;this.issueComments=Ja;this.draftStore=Ka;this.attachmentApi=Ma;this.issueFieldsFactory=hb;this.issueQuickActionsFactory=fb;this.issueCommentDraftFactory=Lb;this.isSavingMap=new Map;this.savingState=wo(this.isSavingMap,function(){return new uQb});this.issueFieldsMap=new Map;this.issueFields=wo(this.issueFieldsMap,function(Aa){return ta.issueFieldsFactory.create(Aa)});this.issueQuickActionsMap=new Map;this.issueQuickActions=
wo(this.issueQuickActionsMap,function(Aa){return ta.issueQuickActionsFactory.create(Aa)});this.editableIssueMap=new Map;this.editableIssue$=wo(this.editableIssueMap,function(Aa){return vQb(ta,Aa)});this.editableIssue=function(Aa){return ta.editableIssue$(Aa).value};this.subscriptions=new Map;this.getSubscription=wo(this.subscriptions,function(){return new T.Subscription});this.issueCommentDraftMap=new Map;this.issueCommentDraft=wo(this.issueCommentDraftMap,function(Aa){return ta.issueCommentDraftFactory.create(Aa)});
this.LEGACY_EDIT_ISSUE={getRequestDataForUpdate:this.getRequestDataForUpdate.bind(this),updateIssue:this.updateIssue.bind(this),preUpdate:this.preUpdate.bind(this),postUpdate:this.postUpdate.bind(this)};this.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY={saveCommentDraft:this.saveCommentDraft.bind(this)}};nS.prototype.clear=function(a){this.isSavingMap.delete(a);this.issueFieldsMap.delete(a);this.issueQuickActionsMap.delete(a);this.editableIssueMap.delete(a);this.issueCommentDraftMap.delete(a);this.getSubscription(a).unsubscribe()};
nS.prototype.updateComponent=function(a,b,c){var d=this,e,f,h,k,q;return me(function(w){if(1==w.nextAddress)return e=d.editableIssue(a),e.componentId=b,(f=d.getRequestDataForUpdate(e))&&f.actions&&f.actions.length?ne(w,d.getRetentionState(a),2):w.return();h=w.yieldResult;d.preUpdate(f);k={issueId:a,componentId:b};q=c?d.issueApi.moveIssueExternal(a,k):d.issueApi.moveIssue(a,k);return w.return(d.postUpdate(q,f,{originalRetentionState:h}))})};
var H6a=function(a,b,c){var d;return me(function(e){if(!c)return QK(a.butterBar,"Reporter can't be empty."),e.return();a.editableIssue(b).setReporter(c);return e.return(null!=(d=a.updateIssue(b))?d:Promise.resolve())})},$7a=function(a,b,c){var d,e,f,h;return me(function(k){if(1==k.nextAddress){d=ZAb(c);if(!d)return a.logger.warn("unknown issue type: "+c),k.return();e=a.editableIssue(b);return"VULNERABILITY"!==d&&"PRIVACY_ISSUE"!==d?k.jumpTo(2):ne(k,QPb(a.issueTypeDialog,d),3)}if(2!=k.nextAddress&&
(f=k.yieldResult,!f))return k.return();e.setType(d);return k.return(null!=(h=a.updateIssue(b))?h:Promise.resolve())})},b8a=function(a,b,c){var d,e,f;return me(function(h){d=a8a(c);if(!d)return a.logger.warn("unknown priority: "+c),h.return();e=a.editableIssue(b);e.setPriority(d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},xQb=function(a,b,c){var d,e,f;return me(function(h){d=a.editableIssue(b);d.duplicateOfIssueId=Number(c);d.status="DUPLICATE";e=a.getRequestDataForUpdate(d);
return e?(f=e.actions.find(function(k){return"duplicateOfIssueId"===k.fieldName&&!Vi(k.value||"")}))&&f.value?h.return(wQb(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})};
nS.prototype.clearCanonicalIssue=function(a){var b=this,c,d,e,f;return me(function(h){c=b.editableIssue(a);if(!c.duplicateOfIssueId)return h.return();d={issueId:Number(a),targetIds:[c.duplicateOfIssueId],actionType:"REMOVE",relation:"DUPLICATE"};c.setStatus(c.assignee?"ASSIGNED":"NEW");e=b.getRequestDataForUpdate(c);if(!e||!e.actions)return h.return();b.preUpdate(e);f=b.issueApi.relateIssue(a,d);return h.return(b.postUpdate(f,e))})};
var yQb=function(a,b,c){var d,e;return me(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})};
nS.prototype.performQuickAction=function(a,b){var c=this,d,e,f;return me(function(h){if(!b)return h.return();d=c.editableIssue(a);e=c.issueQuickActions(a);switch(b.type){case "TAKE":"NEW"===d.status&&(d.status="ASSIGNED");d.assignee=e.activeSession.getUserEmail();break;case "DEFAULT_ASSIGNEE":var k=e.defaultAssigneeForComponent();k&&("NEW"===d.status&&(d.status="ASSIGNED"),d.assignee=k);break;case "START":d.status="ACCEPTED";break;case "FIX":d.status="FIXED";break;case "VERIFY":d.status="VERIFIED";
break;case "REOPEN":d.status=d.assignee?"ASSIGNED":"NEW";break;default:bh(b.type)}return h.return(null!=(f=c.updateIssue(a))?f:Promise.resolve())})};
var O6a=function(a,b,c){var d,e;return me(function(f){d=a.editableIssue(b);var h;d.effortEstimate=null!=(h=null==c?void 0:V(c,2))?h:null;return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},L7a=function(a,b,c){var d,e,f;return me(function(h){d=a.editableIssue(b);e=Ri(c,!1);d.foundInVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},P7a=function(a,b,c){var d,e,f;return me(function(h){d=a.editableIssue(b);e=Ri(c,!1);d.verifiedInVersion=e;return h.return(null!=
(f=a.updateIssue(b))?f:Promise.resolve())})},N7a=function(a,b,c){var d,e,f;return me(function(h){d=a.editableIssue(b);e=Ri(c,!1);d.targetedToVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},R7a=function(a,b,c){var d,e;return me(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},G7a=function(a,b,c){var d,e,f;return me(function(h){d=$Ab(c);if(!d)return a.logger.warn("unknown severity: "+c),h.return();e=a.editableIssue(b);
e.setSeverity(d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},D7a=function(a,b,c){var d,e;return me(function(f){d=a.editableIssue(b);d.setSloSnoozeUntil(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},J7a=function(a,b,c){var d,e,f;return me(function(h){d=a.editableIssue(b);d.changelist=null!=(e=c)?e:[];return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},Y7a=function(a,b,c,d){var e,f;return me(function(h){e=a.editableIssue(b);e.setCustomField(c,
d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},d7a=function(a,b,c){var d,e,f;return me(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):ne(h,YPb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"verifier"}),3);if(2!=h.nextAddress&&(e=h.yieldResult,!e))return h.return();d.setVerifier(c);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},
gt=function(a,b,c){var d,e,f;return me(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):ne(h,YPb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"assignee"}),3);if(2!=h.nextAddress&&(e=h.yieldResult,!e))return h.return();d.setAssignee(c);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},AQb=function(a,b,c){var d,e,f,h,k,q,w,y,E;return me(function(I){switch(I.nextAddress){case 1:d=
a.editableIssue(b);e=Nna(d.cc,c);f=e.added;h=e.removed;if(a.issuePermissionService.isImplicitAccessEnabled()){q=d.cc.some(function(N){return nO(a.issuePermissionService,N)});w=h.some(function(N){return nO(a.issuePermissionService,N)});if(!q||!w){I.jumpTo(3);break}return ne(I,zQb(a,b,d.componentId),6)}return ne(I,YPb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:k=I.yieldResult;if(!k)return I.return();I.jumpTo(3);break;
case 6:if(y=I.yieldResult,!y)return I.return();case 3:return d.cc=c,I.return(null!=(E=a.updateIssue(b))?E:Promise.resolve())}})};nS.prototype.unarchive=function(a){var b=this,c,d;return me(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return(null!=(d=b.updateIssue(a))?d:Promise.resolve())})};
nS.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return me(function(h){switch(h.nextAddress){case 1:return d={issueId:Number(a),retention:b},e=c.savingState(a),kS(e,"retention"),Lt(h,2,3),ne(h,c.issueApi.updateIssueRetention(a,d),5);case 5:return ne(h,et(c.issueFridge,a),6);case 6:PK(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Ot(h);lS(e,"retention");Pt(h,0);break;case 2:f=Nt(h),UK(c.errorHandler,f),h.jumpTo(3)}})};
var BQb=function(a,b){var c,d,e;return me(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=a.getRequestDataForUpdate(c);if(!d||!d.actions)return f.jumpTo(0);a.preUpdate(d);e=a.issueService.delete(Number(b),"ABUSE");return ne(f,a.postUpdate(e,d),0)})},o8a=function(a,b){var c,d,e;return me(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=a.getRequestDataForUpdate(c);if(!d||!d.actions)return f.jumpTo(0);a.preUpdate(d);e=a.issueService.undelete(Number(b));
return ne(f,a.postUpdate(e,d),0)})};
nS.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return me(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),ne(q,(0,T.firstValueFrom)(c.issueFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=q.yieldResult;h=null==(f=e)?void 0:f.userData;if(null==h||d.get("subscribe"))return q.return();Lt(q,3,4);kS(d,"subscribe");return ne(q,c.issueFridge.setNotificationSubscription(a,b),4);case 4:Ot(q);lS(d,"subscribe");Pt(q,0);break;case 3:k=Nt(q),UK(c.errorHandler,k),q.jumpTo(4)}})};
var CQb=function(a,b,c){var d,e;me(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();Lt(f,2,3);PK(a.butterBar,"Restoring attachment...");kS(d,"undeleteAttachment");return ne(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:PK(a.butterBar,"Attachment restored."),DL(a.issueFetchResponseFridge,b),et(a.eventsForIssueFridge,b);case 3:Ot(f);lS(d,"undeleteAttachment");Pt(f,0);break;case 2:e=Nt(f),UK(a.errorHandler,e),f.jumpTo(3)}})},
DQb=function(a,b,c,d){var e,f;return me(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();Lt(h,2,3);PK(a.butterBar,"Deleting attachment...");kS(e,"deleteAttachment");return ne(h,a.attachmentsMember.delete(b,c,d),5);case 5:PK(a.butterBar,"Attachment deleted."),DL(a.issueFetchResponseFridge,b),et(a.eventsForIssueFridge,b);case 3:Ot(h);lS(e,"deleteAttachment");Pt(h,0);break;case 2:f=Nt(h),UK(a.errorHandler,f),h.jumpTo(3)}})};
nS.prototype.saveCommentDraft=function(a){var b=this,c=this.issueCommentDraft(a),d=c.comment(),e=gQb(c);if(!e.commentText&&!e.attachmentsWithJudgements.length)return Promise.resolve();var f=hQb(c);this.preUpdate(f);return this.postUpdate(function(){return me(function(h){switch(h.nextAddress){case 1:return ne(h,EQb(b,a),2);case 2:if(!e.commentText){h.jumpTo(3);break}return ne(h,b.issueComments.create(String(a),e.commentText,e.formattingMode,e.judgementForNewContent),4);case 4:d.reset(),b.draftStore.$window.sessionStorage.removeItem(vo(Number(a)));
case 3:if(!e.attachmentsWithJudgements.length){h.jumpTo(5);break}return ne(h,b.attachmentApi.createAttachment({issueId:a,attachmentsWithJudgements:e.attachmentsWithJudgements}),6);case 6:d.reset();case 5:return c.userDefinedJudgementForNewContent$.next(void 0),h.return(DL(b.issueFetchResponseFridge,a))}})}(),f)};
var EQb=function(a,b){var c,d;return me(function(e){if(!Fi(a.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();c=a.editableIssue(b);var f=[].concat(u(c.cc),[a.activeSession.getUserEmail()]);c.cc=f;d={issueId:Number(b),actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return ne(e,a.issueApi.updateIssue(Number(b),d),0)})},vQb=function(a,b){var c=
CL(a.issueFetchResponseFridge,b).pipe(C(function(e){var f=new HR;if(e){var h=FQb(a,b,Fi(pa(e.issue.snapshot))),k=a.activeSession.getUserEmail();f.currentUserEmail=k;var q;f.setData(h,Number(b),null!=(q=e.customFields)?q:[])}return f})),d=new T.BehaviorSubject(new HR);a.getSubscription(b).add(c.subscribe(d));return d};
nS.prototype.updateIssue=function(a){var b=this.editableIssue(a),c=this.getRequestDataForUpdate(b);if(!c)return null;for(var d=!1,e=[],f=[],h=a,k=r(c.actions),q=k.next();!q.done;q=k.next()){q=q.value;var w=q.value||"";if("REMOVE"!==q.actionType)switch(q.fieldName){case "ccs":e=w.split(",").filter(Boolean);break;case "verifier":case "assignee":f=w.split(",").filter(Boolean);break;case "duplicateOfIssueId":Vi(w)||(e=b.cc,h=String(w),d=!0)}}b=1===c.actions.length&&"ccs"===c.actions[0].fieldName&&"REMOVE"===
c.actions[0].actionType&&nO(this.issuePermissionService,c.actions[0].value);return wQb(this,a,{actionIssueId:h,implicitAppenders:e,implicitEditors:f,isDeduping:d,isRemovingSelfFromCc:b,requestData:c})};
var wQb=function(a,b,c){var d=c.actionIssueId,e=c.implicitAppenders,f=c.implicitEditors,h=c.isDeduping,k=c.isRemovingSelfFromCc,q=c.requestData,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka;return me(function(Ma){switch(Ma.nextAddress){case 1:return ne(Ma,Promise.all([GQb(a,e,"appender",d),GQb(a,f,"writer",d)]),2);case 2:w=Ma.yieldResult;y=r(w);E=y.next().value;I=y.next().value;N=E;L=I;S=N.noAccessEmails||[];Y=L.noAccessEmails||[];ka=[].concat(u(S),u(Y));if(0===ka.length)return Ma.return(HQb(a,q,h,k));Lt(Ma,
3);return ne(Ma,Promise.all(ka.map(function(hb){return IQb(a,hb)})),5);case 5:return ha=Ma.yieldResult,ya=Uta({userPrincipals:ha,newEditors:Y,newImplicitUsers:ka,isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),Ha=ya.title,Ja=ya.content,ne(Ma,OKb(a.confirmationDialogService,{title:Ha,content:Nn(Ja),confirmButtonText:"Allow"}),6);case 6:if(Ka=Ma.yieldResult)return Ma.return(HQb(a,q,h,k));et(a.permissionsFridge,"issues/"+b);DL(a.issueFetchResponseFridge,b);Mt(Ma,0);
break;case 3:Nt(Ma),QK(a.butterBar,"Could not determine email type."),oe(Ma)}})},HQb=function(a,b,c,d){a.preUpdate(b);var e=b.issueId;c?(c=a.editableIssue(String(e)),e=a.issueApi.relateIssue(e,{issueId:e,targetIds:[c.duplicateOfIssueId],actionType:"ADD",relation:"DUPLICATE"})):e=d?a.issueApi.unCcUser(b.issueId):a.issueApi.updateIssue(e,b);return a.postUpdate(e,b)},GQb=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?null:f;if(e&&!f)throw Error("Jd");var h=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e=
{noAccessEmails:[]};return 0!==b.length&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(xo),c,h,d):Promise.resolve(e)},FQb=function(a,b,c){var d=a.isSavingMap.get(b);a=(a=a.editableIssueMap.get(b))&&Pj(a);if(!a||!d)return c;b=d.properties();d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$customFieldId$1658:d.$jscomp$loop$prop$customFieldId$1658},e=b.next())if(e=e.value,e.match(/^\d+$/)){d.$jscomp$loop$prop$customFieldId$1658=Ki(e);var f=(c.customField||
[]).find(function(h){return function(k){return k.customFieldId===h.$jscomp$loop$prop$customFieldId$1658}}(d));e=a.customFieldMap[e];f&&e&&(f.textValue=e.textValue,f.dateValue=e.dateValue,f.enumValue=e.enumValue,f.numericValue=e.numericValue)}else f=void 0,null==(f=PPb.get(e))||f(c,a);return c};
nS.prototype.getRequestDataForUpdate=function(a){var b=MPb(a);if(!b)return null;var c=this.isSavingMap.get(String(a.issueId));b.actions=b.actions.filter(function(d){return!(null==c?0:c.get(yo(d)))});return b.actions.length?b:null};
nS.prototype.preUpdate=function(a){var b=String(a.issueId);PK(this.butterBar,"Saving...",0);var c=a.actions.map(function(d){return d.fieldName}).join(",");iS(this.issueInteractionsTracking,b,{label:c});b=this.savingState(b);a=r(a.actions);for(c=a.next();!c.done;c=a.next())kS(b,yo(c.value))};
nS.prototype.postUpdate=function(a,b,c){var d=this,e,f;return me(function(h){switch(h.nextAddress){case 1:return Lt(h,2),ne(h,a,4);case 4:return e=h.yieldResult,AL(d.issueFridge,[b.issueId]).then(function(){var k=String(b.issueId);DL(d.issueFetchResponseFridge,k);et(d.eventsForIssueFridge,k)}),ne(h,JQb(d,b,e,c),5);case 5:Mt(h,0);break;case 2:f=Nt(h),KQb(d,b,f),oe(h)}})};
var JQb=function(a,b,c,d){var e=(void 0===d?{}:d).originalRetentionState,f,h,k,q;return me(function(w){f=a.savingState(String(b.issueId));h=r(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,lS(f,yo(q));return c?ne(w,LQb(a,b,e),0):w.jumpTo(0)})},KQb=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=r(b.actions);for(var f=b.next();!f.done;f=b.next())lS(e,yo(f.value));et(a.permissionsFridge,"issues/"+d);DL(a.issueFetchResponseFridge,d);xm(c)&&403===c.status&&ym(c)?TK(a.errorHandler,
ym(c)):UK(a.errorHandler,c)},LQb=function(a,b,c){var d,e,f,h,k,q,w,y,E,I,N;return me(function(L){switch(L.nextAddress){case 1:return ne(L,a.getEffortSpec(String(b.issueId)),2);case 2:d=L.yieldResult;e=a.editableIssue(String(b.issueId));k=VPb(a.statusMessages,b,e.customFieldMap,null!=(h=null==(f=d)?void 0:f.getName())?h:"");if(!c){L.jumpTo(3);break}return ne(L,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=L.yieldResult;w=r(q);y=w.next().value;E=
w.next().value;I=y;N=E;var S=k;if("INDEFINITE"!==N&&c&&I){var Y=oAa(c);var ka=oAa(I);Y=Y===ka?"":" Issue retention period changed from "+Y+" to "+ka+"."}else Y="";k=S+Y;case 3:PK(a.butterBar,k),oe(L)}})},zQb=function(a,b,c){var d;return me(function(e){if(1==e.nextAddress)return ne(e,GQb(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);d=e.yieldResult;return d.noAccessEmails&&0!==d.noAccessEmails.length?e.return(OKb(a.confirmationDialogService,{title:"Un-CC'ing yourself may revoke your access to the issue",
content:Nn("This issue is in a component with Expanded Access enabled, and you do not have access to view this issue by default. Removing yourself from the CC list may also remove your ability to view the issue. Are you sure you would like to do this?")})):e.return(!0)})};nS.prototype.getRetentionState=function(a){return(0,T.firstValueFrom)(CL(this.issueFetchResponseFridge,a).pipe(C(wxa)))};nS.prototype.getRetention=function(a){return(0,T.firstValueFrom)(CL(this.issueFetchResponseFridge,a).pipe(C(txa)))};
nS.prototype.getEffortSpec=function(a){var b=this;return(0,T.firstValueFrom)(CL(this.issueFetchResponseFridge,a).pipe(C(Zwa),Xe(function(c){return b.componentFridge.watch(c)}),C(Bxa)))};var IQb=function(a,b){return me(function(c){if(a.activeSession.isExternalSession()){var d=c.return;var e=new Kj;e=l(e,1,0);e=l(e,2,0);c=d.call(c,e)}else c=c.return(sI(a.principalTypes,b,!0));return c})};
nS.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=r(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};nS.\u0275fac=function(a){return new (a||nS)(t(BL),t(pH),t(OK),t(hS),t(wK),t(bK),t(fM),t(NL),t(OR),t(SK),t(aN),t(rI),t(oO),t(iO),t(LR),t(RK),t(yL),t(ZR),t($K),t(UR),t(zI),t(rO),t(KR),t(RR),t(gS),t(jS),t(dS))};
nS.\u0275prov=ec({token:nS,factory:nS.\u0275fac,providedIn:"root"});
var oS=function(a,b,c){BI.call(this);this.issueDetailsBrain=a;this.issuePermissionService=b;this.editIssueService=c;this.assigneeInProgress$=new T.ReplaySubject(1);this.ccInProgress$=new T.ReplaySubject(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(C(function(d){var e;return Ll(null==(e=yn(d))?void 0:e.assigneeUser)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(C(function(d){var e;return Ml(null==(e=yn(d))?void 0:e.ccUsers)||[]}));this.assignee$=
this.assigneeUpdate$.pipe(Ue({refCount:!0,bufferSize:1}));this.cc$=this.ccUpdate$.pipe(Ue({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};U(oS,BI);oS.\u0275dir=BI.\u0275dir;
var MQb=function(a,b){var c,d,e;return me(function(f){switch(f.nextAddress){case 1:c=Pj(a.id$);if(!c)return f.return();a.assigneeInProgress$.next(!0);d="remove_user"===b.action?"":b.email;Lt(f,2,3);return ne(f,gt(a.editIssueService,c,d),5);case 5:return ne(f,(0,T.firstValueFrom)(a.assigneeUpdate$.pipe(De(function(h){h=b.email===h;return"set_user"===b.action?h:!h}),Fe(6E4))),3);case 3:Ot(f);a.assigneeInProgress$.next(!1);Pt(f,0);break;case 2:throw e=Nt(f),e;}})},NQb=function(a,b){var c,d,e,f,h;return me(function(k){switch(k.nextAddress){case 1:c=
Pj(a.id$);if(!c)return k.return();d=a.editIssueService.editableIssue(c);e=d.cc.includes(b.email);f=void 0;"set_user"!==b.action||e?"remove_user"===b.action&&e&&(f=AQb(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=AQb(a.editIssueService,c,[].concat(u(d.cc),[b.email]));if(!f)return k.return();Lt(k,2,3);a.ccInProgress$.next(!0);return ne(k,f,5);case 5:return ne(k,(0,T.firstValueFrom)(a.ccUpdate$.pipe(De(function(q){q=q.includes(b.email);return"set_user"===b.action?q:!q}),Fe(6E4))),
3);case 3:Ot(k);a.ccInProgress$.next(!1);Pt(k,0);break;case 2:throw h=Nt(k),h;}})};oS.\u0275fac=function(a){return new (a||oS)(t(mO),t(oO),t(nS))};oS.\u0275prov=ec({token:oS,factory:oS.\u0275fac});
var pS=function(a,b,c){BI.call(this);this.domSafe=a;this.cdr=b;this.actionService=c;this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};U(pS,BI);pS.\u0275dir=BI.\u0275dir;
pS.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;null==(b=this.actionService)||b.assignee$.pipe(Ye(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;null==(c=this.actionService)||c.cc$.pipe(Ye(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var tAa=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";Sn(go.PERSON_CARD,"assigneeAction",b);MQb(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},uAa=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";Sn(go.PERSON_CARD,"ccAction",b);NQb(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};pS.\u0275fac=function(a){return new (a||pS)(F(vP),F(uI,2),F(oS,8))};
pS.\u0275cmp=v({type:pS,selectors:[["b-issue-person-card"]],inputs:{email:"email"},features:[Lf([uI]),gf],decls:6,vars:4,consts:[[3,"email"],["class","actions",4,"ngIf"],[3,"click"],[1,"actions"],[3,"disabled","onAction"]],template:function(a,b){a&1&&(G(0,"b-person-card",0),O(1,vAa,9,8,"ng-container",1),Q(2,"async"),G(3,"onedev-hovercard-action",2),K("click",function(c){Tn(go.PERSON_CARD,"showAssignedIssuesAction");var d=rn({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
xP(b.domSafe,d)}),G(4,"span"),P(5,"Show assigned issues"),H()()());a&2&&(D("email",b.email),B(1),D("ngIf",b.actionService&&R(2,2,b.actionService.editAccess$)))},dependencies:[sx,ZN,yR,Fx],encapsulation:2,changeDetection:0});
var qS=function(a,b){var c=this;this.session=a;this.userProfiles=b;this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new T.ReplaySubject(1);this.showEmail$=new T.BehaviorSubject(!1);this.isNonObfuscatedEmail=Ln;this.userProfile$=this.email$.pipe(Xe(function(d){return c.userProfiles.get(d)})).pipe(We(new BR));this.content$=(0,T.combineLatest)([this.email$,this.userProfile$,this.showEmail$]).pipe(C(function(d){var e=r(d);d=e.next().value;var f=e.next().value;
e=e.next().value;return(f=f.getDisplayName())?e?d+" ("+f+")":f:d}));this.vars$=(0,T.combineLatest)([this.email$,this.content$]).pipe(C(function(d){var e=r(d);d=e.next().value;e=e.next().value;return{email:d,content:e}}));this.enableWaldoAvailability=rH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};ki.Object.defineProperties(qS.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){this.email$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});
qS.\u0275fac=function(a){return new (a||qS)(F(pH),F(DR))};
qS.\u0275cmp=v({type:qS,selectors:[["b-user-display-name"]],inputs:{availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled",email:"email",showEmail:"showEmail"},decls:2,vars:3,consts:[[4,"ngIf"],["displayName",""],[4,"ngIf","ngIfElse"],["coinonly","",3,"user"],["role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"]],template:function(a,b){a&1&&(O(0,AAa,4,2,"ng-container",
0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.vars$))},dependencies:[sx,Cx,GR,pS,pN,tN,Fx],encapsulation:2,changeDetection:0});
var rS=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};rS.prototype.getDisplayString=function(){return Ll(this.model)};var OQb=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?Gqa(Ol(b)):Gqa(b))&&!!a.getEmailAddress()};rS.prototype.getEmailAddress=function(){return Pl(this.model)||""};rS.\u0275fac=function(a){return new (a||rS)};
rS.\u0275cmp=v({type:rS,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},decls:3,vars:2,consts:[[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled",4,"ngIf"],[4,"ngIf"],[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(xf(0),O(1,BAa,1,4,"b-user-display-name",0),O(2,CAa,2,1,"span",
1),yf());a&2&&(B(1),D("ngIf",OQb(b)),B(1),D("ngIf",!OQb(b)))},dependencies:[sx,qS],styles:['.b-user-display-span[_ngcontent-%COMP%]{margin-right:2px;margin-top:-1px;font-family:"Arial","Helvetica",san-serif;font-size:13px}'],changeDetection:0});
var sS=function(a){var b=this;this.userProfiles=a;this.email$=new T.ReplaySubject(1);this.isNonObfuscatedEmail=Ln;this.userProfile$=this.email$.pipe(Xe(function(c){return c?b.userProfiles.get(c).pipe(We(new BR)):(0,T.of)(void 0)}));this.vars$=(0,T.combineLatest)([this.email$,this.userProfile$]).pipe(C(function(c){var d=r(c);c=d.next().value;d=d.next().value;if(!d)return{email:c,showImage:!1,src:void 0,srcset:void 0};var e=!d.getPhotoUrl(),f=e?void 0:d.getPhotoUrl(),h;e?h=void 0:h=V(d,3)?V(d,3)+" 2x":
d.getPhotoUrl()+" 1x";return{email:c,showImage:!e,src:f,srcset:h}}))};ki.Object.defineProperties(sS.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){Ln(a)?this.email$.next(a):this.email$.next(void 0)}}});sS.\u0275fac=function(a){return new (a||sS)(F(DR))};
sS.\u0275cmp=v({type:sS,selectors:[["b-user-image"]],inputs:{email:"email"},decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["imageDisplay",""],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"user-avatar","material"],["alt","",3,"src","srcset",4,"ngIf"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(O(0,HAa,4,2,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.vars$))},dependencies:[sx,Cx,pS,pN,tN,Fx],styles:['.user-avatar.anonymous[_ngcontent-%COMP%]{border:1px solid;border-color:#bdc1c6;border-color:var(--c400);border-radius:18px;background-image:url("https://www.gstatic.com/buganizer/img/v0/logo_avatar_anonymous.svg");background-repeat:no-repeat;background-position:center}.material.user-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .material.user-avatar.anonymous[_ngcontent-%COMP%]{border-radius:50%}[_nghost-%COMP%]{display:inline-flex;vertical-align:middle}'],
changeDetection:0});
var tS=function(a,b,c,d,e,f,h){var k=this;this.cdr=a;this.codefont=b;this.location=e;this.paths=f;this.userFeedback=h;this.commentVersion=-1;this.history=[];this.diffView=this.isLoading=!0;this.issueId=c.issueId;this.commentNumber=c.commentNumber;this.commentVersion=c.commentVersion;c.commentHistory.then(function(q){k.history=q}).catch(function(q){d.errorHandler(null,q)}).finally(function(){k.isLoading=!1;k.cdr.detectChanges()})};tS.prototype.trackByIndex=function(a){return a};
tS.prototype.startFeedback=function(){this.userFeedback.startFeedback()};tS.\u0275fac=function(a){return new (a||tS)(F(uI,2),F(zQ),F(FB),F(SK),F(Tx),F(dL),F(WO))};
tS.\u0275cmp=v({type:tS,selectors:[["comment-history-dialog"]],features:[Lf([uI])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"diff-checkbox"],["label","Show Diff",3,"checked","change"],[1,"dialog-feedback",3,"click"],[1,"float-clear"],["class","bv2-view-loading",4,"ngIf"],["class","comment-history-list",4,"ngIf"],["mat-button","","mat-dialog-close",""],[1,"bv2-view-loading"],[1,"comment-history-list"],["class","comment-version",3,"comment-version-open",4,"ngFor","ngForOf","ngForTrackBy"],
[1,"comment-version"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"comment-version-header",3,"click"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",1,"bv2-event-timestamp",3,"timestamp"],["class","muted float-right float-clear",4,"ngIf"],[4,"ngIf"],[1,"muted","float-right","float-clear"],["class","type-xs",3,"innerHtml",4,"ngIf"],["class","type-xs",4,"ngIf"],[1,"type-xs",3,"innerHtml"],[1,"type-xs"],[1,"comment-version-email"],[3,"email"],[3,"id","click"],["class",
"comment-version-preview",4,"ngIf"],["class","comment-version-preview deleted",4,"ngIf"],["class","comment-version-restricted",4,"ngIf"],[1,"comment-version-preview"],[1,"comment-version-preview","deleted"],[1,"comment-version-restricted"],["class","comment-version-content deleted",4,"ngIf"],["class","comment-version-content",3,"codefont","innerHtml",4,"ngIf"],[1,"comment-version-content","deleted"],[1,"comment-version-content",3,"innerHtml"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1),H(),G(2,
"mat-dialog-content")(3,"div",1)(4,"b-checkbox",2),K("change",function(c){return b.diffView=c}),H()(),G(5,"a",3),K("click",function(){return b.startFeedback()}),P(6,"Feedback"),H(),J(7,"br",4),O(8,IAa,2,0,"div",5),O(9,XAa,2,2,"ul",6),H(),G(10,"mat-dialog-actions")(11,"button",7),P(12,"Close"),H()());a&2&&(B(1),If("History for Comment #",b.commentNumber,""),B(3),D("checked",b.diffView),B(4),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[wx,sx,LP,vQ,pB,IB,JB,KB,LB,zR,mN,sS,rS,Fx,
mS,AR],styles:[".comment-history-list[_ngcontent-%COMP%]{max-height:500px;overflow:auto;padding:0}.comment-version[_ngcontent-%COMP%]{position:relative;background-color:#f1f3f4;background-color:var(--c100);border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);border-top:1px solid;border-color:#dadce0;border-color:var(--divider);padding:8px 5px}.comment-version-open[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);color:#202124;color:var(--text)}.comment-version[_ngcontent-%COMP%] > .bv2-event-user-image-cell[_ngcontent-%COMP%]{padding-top:8px;padding-left:5px}.comment-version-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-preview[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-restricted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version-header[_ngcontent-%COMP%]{cursor:pointer;margin-left:40px}.comment-version-content[_ngcontent-%COMP%]{cursor:auto;margin:20px 0 10px 40px;white-space:pre-wrap}.comment-version[_ngcontent-%COMP%]   .deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version[_ngcontent-%COMP%] + .comment-version[_ngcontent-%COMP%]{border-top:0}.comment-version[_ngcontent-%COMP%]   .bv2-event-user-image-cell[_ngcontent-%COMP%]{margin:0}.dialog-feedback[_ngcontent-%COMP%]{float:right}.diff-checkbox[_ngcontent-%COMP%]{float:right;margin-right:10px;margin-left:10px}[_nghost-%COMP%]     .diff-added{background-color:#ceead6;background-color:var(--good-bg)}[_nghost-%COMP%]     .diff-removed{background-color:#fce8e6;background-color:var(--bad-bg);text-decoration:line-through}\n/*# sourceMappingURL=comment_history_dialog.css.map */"],
changeDetection:0});
var uS=function(){};uS.\u0275fac=function(a){return new (a||uS)};uS.\u0275mod=rc({type:uS});uS.\u0275inj=fc({imports:[[Mx]]});
var vS=function(){};vS.\u0275fac=function(a){return new (a||vS)};vS.\u0275mod=rc({type:vS});vS.\u0275inj=fc({});
var wS=function(){};wS.\u0275fac=function(a){return new (a||wS)};wS.\u0275mod=rc({type:wS});wS.\u0275inj=fc({imports:[[uS,Mx,vS,dF]]});
var xS=function(){};xS.\u0275fac=function(a){return new (a||xS)};xS.\u0275mod=rc({type:xS});xS.\u0275inj=fc({providers:[KQ],imports:[[FQ]]});
/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var yS=function(a,b){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=b||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
yS.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof yS&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,0>=b.branches_&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new zS(this))}};yS.prototype.continue_=function(a,b){this.blocked_=!1;PQb(this,a,b)};
var PQb=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;QQb(a)},SQb=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new RQb(a);a.silentlyCanceled_=!1}};yS.prototype.callback=function(a){SQb(this);PQb(this,!0,a)};yS.prototype.errback=function(a){SQb(this);PQb(this,!1,a)};yS.prototype.addCallback=function(a,b){return TQb(this,a,null,b)};var TQb=function(a,b,c,d){a.sequence_.push([b,c,d]);a.fired_&&QQb(a);return a};
yS.prototype.then=function(a,b,c){var d,e,f=new mD(function(h,k){e=h;d=k});TQb(this,e,function(h){h instanceof zS?f.cancel():d(h)});return f.then(a,b,c)};yS.prototype.$goog_Thenable=!0;yS.prototype.branch=function(a){var b=new yS;TQb(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};yS.prototype.isError=function(a){return a instanceof Error};
var UQb=function(a){return kib(a.sequence_,function(b){return"function"===typeof b[1]})},QQb=function(a){if(a.unhandledErrorId_&&a.fired_&&UQb(a)){var b=a.unhandledErrorId_,c=VQb[b];c&&(ba.clearTimeout(c.id_),delete VQb[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),f=e[0],h=e[1];e=e[2];if(f=a.hadError_?h:f)try{var k=f.call(e||a.defaultScope_,b);void 0!==k&&(a.hadError_=a.hadError_&&
(k==b||a.isError(k)),a.result_=b=k);if(nsb(b)||"function"===typeof ba.Promise&&b instanceof ba.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,UQb(a)||(c=!0)}}a.result_=b;d&&(k=Vt(a.continue_,a,!0),d=Vt(a.continue_,a,!1),b instanceof yS?(TQb(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new WQb(b),VQb[b.id_]=b,a.unhandledErrorId_=b.id_)},RQb=function(){aa.call(this)};Zt(RQb,aa);RQb.prototype.message="Deferred has already fired";RQb.prototype.name="AlreadyCalledError";var zS=function(){aa.call(this)};
Zt(zS,aa);zS.prototype.message="Deferred was canceled";zS.prototype.name="CanceledError";var WQb=function(a){this.id_=ba.setTimeout(Vt(this.throwError,this),0);this.error_=a};WQb.prototype.throwError=function(){delete VQb[this.id_];throw this.error_;};var VQb={};
var bBa=function(a,b){var c=b||{};b=c.document||document;var d=uh(a),e=(new VC(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new yS(XQb,f),k=null,q=null!=c.timeout?c.timeout:5E3;0<q&&(k=window.setTimeout(function(){YQb(e,!0);h.errback(new ZQb(1,"Timeout reached for loading script "+d))},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(YQb(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=function(){YQb(e,
!0,k);h.errback(new ZQb(0,"Error while loading script "+d))};f=c.attributes||{};Ija(f,{type:"text/javascript",charset:"UTF-8"});Vrb(e,f);Nqb(e,a);$Qb(b).appendChild(e);return h},$Qb=function(a){var b=YC("HEAD",a);return b&&0!==b.length?b[0]:a.documentElement},XQb=function(){if(this&&this.script_){var a=this.script_;a&&"SCRIPT"==a.tagName&&YQb(a,!0,this.timeout_)}},YQb=function(a,b,c){null!=c&&ba.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){eD(a)},
0)},ZQb=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);aa.call(this,c);this.code=a};Zt(ZQb,aa);
var YAa=null,Bo=new WeakMap;
var AS=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?{}:d;var e=this;this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c;this.gapiAuthParams=d;this.gapi=(0,T.defer)(function(){return $Aa().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return eBa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};U(AS,ROb);
AS.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(we(function(c){var d=(0,T.of)(void 0);void 0!==b.gapiAuthParams.minAuthTokenTimeRemaining&&(d=(0,T.from)(dBa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(we(function(){b.setGapiConfig(c);return b.parseResponse(c.client.request({path:b.gapiUrl+a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers}))}))}))};
AS.prototype.parseResponse=function(a){return new T.Observable(function(b){a.then(function(c){!1===c.result&&null!=c.body?b.next({data:c.body}):b.next(c.result);b.complete()},function(c){b.error(c.result)})})};AS.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&cBa(a,b,this.gapiConfigUpdates[b])};
var aRb=function(a,b,c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;AS.call(this,a,c,d,e);this.waldoApiKey=b};U(aRb,AS);aRb.prototype.makeRequest=function(a){var b=AS.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};
var Dt=function(a){this.proxiedService=a};U(Dt,ROb);Dt.prototype.makeRequest=function(a){var b=this;return(0,T.defer)(function(){return b.proxiedService.makeRequest(a)})};
var bRb=new jd("environment"),cRb={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},BS=function(){};BS.\u0275fac=function(a){return new (a||BS)};BS.\u0275mod=rc({type:BS});BS.\u0275inj=fc({imports:[[Mx,fR]]});
var CS=function(){};CS.\u0275fac=function(a){return new (a||CS)};CS.\u0275mod=rc({type:CS});CS.\u0275inj=fc({imports:[[Mx,xS,wS,BS]]});
var DS=function(){};DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275mod=rc({type:DS});DS.\u0275inj=fc({imports:[[Mx,CS,$N]]});
var ES=function(){};ES.\u0275fac=function(a){return new (a||ES)};ES.\u0275mod=rc({type:ES});ES.\u0275inj=fc({imports:[[BS,Mx,mP]]});
var FS=function(){};FS.\u0275fac=function(a){return new (a||FS)};FS.\u0275mod=rc({type:FS});FS.\u0275inj=fc({imports:[[Mx,$N,DS]]});
var GS=function(a){this.session=a;this.isNonObfuscatedEmail=Ln;this.email="";this.withProfile=!0;this.enableWaldoAvailability=rH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};GS.\u0275fac=function(a){return new (a||GS)(F(pH))};
GS.\u0275cmp=v({type:GS,selectors:[["b-user-email"]],inputs:{email:"email",withProfile:"withProfile"},decls:6,vars:4,consts:[[1,"bv2-email-with-profile-container"],["class","bv2-email-with-profile-avatar",3,"email",4,"ngIf"],[4,"ngIf","ngIfElse"],["emailDisplay",""],["class","bv2-email-with-profile-waldo",4,"ngIf"],[1,"bv2-email-with-profile-avatar",3,"email"],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"bv2-email-with-profile-waldo"],["coinonly","",3,"user"]],template:function(a,
b){a&1&&(G(0,"span",0),O(1,fBa,1,1,"b-user-image",1),O(2,hBa,6,3,"ng-container",2),O(3,iBa,2,1,"ng-template",null,3,gg),O(5,jBa,2,1,"span",4),H());if(a&2){var c=Hf(4);B(1);D("ngIf",b.withProfile);B(1);D("ngIf",b.isNonObfuscatedEmail(b.email))("ngIfElse",c);B(3);D("ngIf",b.enableWaldoAvailability)}},dependencies:[sx,Cx,GR,pS,pN,tN,sS],styles:["[_nghost-%COMP%]     span.bv2-email-with-profile-avatar, [_nghost-%COMP%]     .bv2-email-with-profile-avatar .user-avatar{background-size:103%;display:inline-block;height:1.5em;margin-right:2px;margin-top:-1px;width:1.5em;vertical-align:middle}[_nghost-%COMP%]     span.bv2-email-with-profile-avatar img, [_nghost-%COMP%]     .bv2-email-with-profile-avatar .user-avatar img{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);height:1.5em;width:1.5em}"],
changeDetection:0});
var dRb=0,HS=function(a,b){var c=this;this.teamsService=a;this.session=b;this.teamId="";this.enableSmallChip=!1;this.providedTeamId$=new T.ReplaySubject(1);this.providedUser$=new T.ReplaySubject(1);this.providedEmail$=new T.ReplaySubject(1);this.isNonObfuscatedEmail=Ln;this.fetchedTeam$=this.providedTeamId$.pipe(Xe(function(d){return c.teamsService.getTeam(d)}),Ie(function(){return(0,T.of)((new hM).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.detailedUserType$=this.providedUser$.pipe(C(function(d){d=
d?d&&d.getUserGaiaStatus?d.getAliasesList():d.aliases||[]:[];return d.includes("googlers_unrestricted")?1:d.includes("google_domain")?2:d.includes("issue_creation_only_accounts")?5:d.includes("external_partners")?3:d.includes("public_non_google")?4:0}),We(0));this.isTeamMember$=(0,T.combineLatest)([this.providedTeamId$,this.providedEmail$]).pipe(Xe(function(d){var e=r(d);d=e.next().value;e=e.next().value;return ZJb(c.teamsService,d,e)}),We(!1),Ie(function(){return(0,T.of)(!1)}));this.teamUser$=this.fetchedTeam$.pipe(C(function(d){return"Member of "+
d.getName()}));this.groupMembershipType$=(0,T.combineLatest)([this.detailedUserType$,this.isTeamMember$]).pipe(C(function(d){var e=r(d);d=e.next().value;e=e.next().value;if(c.enableExternalAnnotations){if(4===d)return"PUBLIC_USER";if(3===d)return"PARTNER_USER"}return e?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableExternalAnnotations=rH(this.session,"enableExternalAnnotations");this.enableWaldoAvailability=rH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession();
this.userTypeClass$=this.groupMembershipType$.pipe(C(function(d){return c.enableSmallChip?"user-chip-small":d&&"INTERNAL_NON_TEAM_MEMBER"!==d?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(C(function(d){if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return"team-member-chip";if("PARTNER_USER"===d)return"partner-chip";if("PUBLIC_USER"===d)return"public-chip"}else return"internal-non-team-member-chip";return""}));this.shouldShowIcon$=this.groupMembershipType$.pipe(C(function(d){return d&&
"INTERNAL_NON_TEAM_MEMBER"!==d}));this.iconName$=this.groupMembershipType$.pipe(C(function(d){if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return"people-outline";if("PARTNER_USER"===d)return"enterprise";if("PUBLIC_USER"===d)return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe($e(this.teamUser$),C(function(d){var e=r(d);d=e.next().value;e=e.next().value;if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return e;if("PARTNER_USER"===d)return"Partner user";
if("PUBLIC_USER"===d)return"Public user"}return""}));dRb++};HS.prototype.ngOnInit=function(){};HS.prototype.ngOnChanges=function(a){a.teamId&&this.teamId&&this.providedTeamId$.next(this.teamId);a.user&&this.user&&this.providedUser$.next(this.user);a.email&&this.email&&this.providedEmail$.next(this.email)};HS.\u0275fac=function(a){return new (a||HS)(F(lM),F(pH))};
HS.\u0275cmp=v({type:HS,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip"},features:[Ac],decls:11,vars:13,consts:[[3,"ngClass"],["class","bv2-profile-avatar",3,"email",4,"ngIf"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled",4,"ngIf","ngIfElse"],["smallChipContents",""],[3,"svgIcon","matTooltip",4,"ngIf"],[4,"ngIf"],[1,"bv2-profile-avatar",3,"email"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled"],
[4,"ngIf","ngIfElse"],["emailDisplay",""],["tabindex","0","role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"user-chip-name"],[3,"svgIcon","matTooltip"],["coinonly","",3,"user"]],template:function(a,b){a&1&&(G(0,"span",0),Q(1,"async"),G(2,"span",0),Q(3,"async"),O(4,kBa,1,1,"b-user-image",1),O(5,lBa,1,3,"b-user-display-name",2),O(6,pBa,3,2,"ng-template",null,3,gg),O(8,qBa,3,6,"mat-icon",4),Q(9,"async"),H()(),O(10,rBa,2,1,"ng-container",
5));if(a&2){var c=Hf(7),d,e;D("ngClass",null!==(d=R(1,7,b.userTypeClass$))&&void 0!==d?d:"");B(2);D("ngClass",null!==(e=R(3,9,b.userChipType$))&&void 0!==e?e:"");B(2);D("ngIf",b.enableSmallChip);B(1);D("ngIf",!b.enableSmallChip)("ngIfElse",c);B(3);D("ngIf",R(9,11,b.shouldShowIcon$));B(2);D("ngIf",b.enableWaldoAvailability&&!b.enableSmallChip)}},dependencies:[vx,sx,Cx,GR,LE,$E,pS,pN,tN,sS,qS,Fx],styles:[".user-chip-without-icon[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip-without-icon[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px}.user-chip-without-icon[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;display:flex;height:1.75em;line-height:1.75em;padding:0 8px}.user-chip[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:16px;margin-left:3%;padding:0 14px 0 0;position:relative;width:16px}.user-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px;padding:0 0 0 8px}.team-member-chip[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--team-member-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.team-member-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1967d2;color:var(--team-member-gfx)}.partner-chip[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.partner-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.partner-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .partner-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.public-chip[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.public-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.public-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .public-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.user-chip-small[_ngcontent-%COMP%]{display:flex;height:1.25em}.user-chip-small[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:11px;padding:0 0 1px 2px;width:11px}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px;min-width:0}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--user-bg-focus)}.user-chip-small[_ngcontent-%COMP%]   .team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .partner-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .public-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:normal;height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;letter-spacing:.3px;line-height:16px;padding:0 0 0 2px}[_nghost-%COMP%]{min-width:0}[_nghost-%COMP%]     span.bv2-profile-avatar, [_nghost-%COMP%]     .bv2-profile-avatar .user-avatar{background-size:103%;display:inline-block;height:12px;vertical-align:middle;width:12px}[_nghost-%COMP%]     span.bv2-profile-avatar img, [_nghost-%COMP%]     .bv2-profile-avatar .user-avatar img{background-color:#f1f3f4;background-color:var(--c100);height:12px;width:12px}"],
changeDetection:0});
var IS=function(){};IS.\u0275fac=function(a){return new (a||IS)};IS.\u0275mod=rc({type:IS});IS.\u0275inj=fc({imports:[[Mx,ES,dF,bH,DS,FS,$N]]});
var JS=function(){};JS.prototype.transform=function(a,b){switch(a){case "EXTERNAL_PARTNER":return b?"Partners":"Visible to Partners";case "EXTERNAL_PUBLIC":return b?"Public":"Visible to Public";default:return""}};JS.\u0275fac=function(a){return new (a||JS)};JS.\u0275pipe=tc({name:"toAccessLevelLabel",type:JS,pure:!0});
var eRb={TEXT:"Text",DATE:"Date",ENUM:"Enum",NUMERIC:"Numeric",REPEATED_TEXT:"Repeated Text",REPEATED_DATE:"Repeated Date",REPEATED_ENUM:"Repeated Enum",REPEATED_NUMERIC:"Repeated Numeric"},KS=function(){};KS.prototype.transform=function(a){return eRb[a]};KS.\u0275fac=function(a){return new (a||KS)};KS.\u0275pipe=tc({name:"toCustomFieldTypeDisplayValue",type:KS,pure:!0});
var LS=function(){};LS.\u0275fac=function(a){return new (a||LS)};LS.\u0275mod=rc({type:LS});LS.\u0275inj=fc({imports:[[Mx]]});
var MS=function(){};MS.\u0275fac=function(a){return new (a||MS)};MS.\u0275mod=rc({type:MS});MS.\u0275inj=fc({imports:[[Mx,eQ,wQ,jG,MB,DS,LS,YN,IS]]});
var sBa=function(){},Co=function(a,b,c,d,e){"undefined"==typeof e&&(e=(new Date).getTime()+1E3);if(null==b||null==c)throw Error("Ld");if(b==c)return b?[[0,b]]:[];"undefined"==typeof d&&(d=!0);var f=fRb(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=gRb(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=hRb(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);iRb(a,b);return b},hRb=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,h=b.length>c.length?c:b,k=f.indexOf(h);if(-1!=k)return a=[[1,f.substring(0,k)],[0,h],[1,f.substring(k+h.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(1==h.length)return[[-1,b],[1,c]];if(f=jRb(b,c))return c=f[1],h=f[3],b=f[4],f=Co(a,f[0],f[2],d,e),a=Co(a,c,h,d,e),f.concat([[0,b]],a);if(d&&100<b.length&&100<c.length){c=kRb(b,c);b=c.chars1;d=c.chars2;c=c.lineArray;b=Co(a,b,d,!1,e);for(d=0;d<b.length;d++){f=b[d][1];h=[];for(k=0;k<f.length;k++)h[k]=c[f.charCodeAt(k)];b[d][1]=
h.join("")}tBa(a,b);b.push([0,""]);f=d=c=0;for(k=h="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;h+=b[c][1];break;case 0:if(1<=d&&1<=f){b.splice(c-d-f,d+f);c=c-d-f;d=Co(a,h,k,!1,e);for(f=d.length-1;0<=f;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=h=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;h=Math.ceil((d+f)/2);k=2*h;for(var q=Array(k),w=Array(k),y=0;y<k;y++)q[y]=-1,w[y]=-1;q[h+1]=0;w[h+1]=0;y=d-f;for(var E=0!=y%2,I=0,N=0,L=0,S=0,Y=0;Y<h&&!((new Date).getTime()>e);Y++){for(var ka=
-Y+I;ka<=Y-N;ka+=2){var ha=h+ka;var ya=ka==-Y||ka!=Y&&q[ha-1]<q[ha+1]?q[ha+1]:q[ha-1]+1;for(var Ha=ya-ka;ya<d&&Ha<f&&b.charAt(ya)==c.charAt(Ha);)ya++,Ha++;q[ha]=ya;if(ya>d)N+=2;else if(Ha>f)I+=2;else if(E&&(ha=h+y-ka,0<=ha&&ha<k&&-1!=w[ha])){var Ja=d-w[ha];if(ya>=Ja){a=lRb(a,b,c,ya,Ha,e);break a}}}for(ka=-Y+L;ka<=Y-S;ka+=2){ha=h+ka;Ja=ka==-Y||ka!=Y&&w[ha-1]<w[ha+1]?w[ha+1]:w[ha-1]+1;for(ya=Ja-ka;Ja<d&&ya<f&&b.charAt(d-Ja-1)==c.charAt(f-ya-1);)Ja++,ya++;w[ha]=Ja;if(Ja>d)S+=2;else if(ya>f)L+=2;else if(!E&&
(ha=h+y-ka,0<=ha&&ha<k&&-1!=q[ha]&&(ya=q[ha],Ha=h+ya-ha,Ja=d-Ja,ya>=Ja))){a=lRb(a,b,c,ya,Ha,e);break a}}}a=[[-1,b],[1,c]]}return a},lRb=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=Co(a,b.substring(0,d),c.substring(0,e),!1,f);a=Co(a,h,k,!1,f);return b.concat(a)},kRb=function(a,b){function c(h){for(var k="",q=0,w=-1,y=d.length;w<h.length-1;){w=h.indexOf("\n",q);-1==w&&(w=h.length-1);var E=h.substring(q,w+1);(e.hasOwnProperty?e.hasOwnProperty(E):void 0!==e[E])?k+=String.fromCharCode(e[E]):
(y==f&&(E=h.substring(q),w=h.length),k+=String.fromCharCode(y),e[E]=y,d[y++]=E);q=w+1}return k}var d=[],e={};d[0]="";var f=4E4;a=c(a);f=65535;b=c(b);return{chars1:a,chars2:b,lineArray:d}},fRb=function(a,b){if(!a||!b||a.charAt(0)!=b.charAt(0))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e},gRb=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),
e=d,f=0;c<e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e},mRb=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c>d?a=a.substring(c-d):c<d&&(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=b.indexOf(a.substring(c-e));if(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}},jRb=function(a,b){function c(k,q,w){for(var y=k.substring(w,w+Math.floor(k.length/4)),E=-1,I="",
N,L,S,Y;-1!=(E=q.indexOf(y,E+1));){var ka=fRb(k.substring(w),q.substring(E)),ha=gRb(k.substring(0,w),q.substring(0,E));I.length<ha+ka&&(I=q.substring(E-ha,E)+q.substring(E,E+ka),N=k.substring(0,w-ha),L=k.substring(w+ka),S=q.substring(0,E-ha),Y=q.substring(E+ka))}return 2*I.length>=k.length?[N,L,S,Y,I]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var h;if(f||d)d?h=f?f[4].length>
d[4].length?f:d:d:h=f;else return null;a.length>b.length?(a=h[0],b=h[1],f=h[2],d=h[3]):(f=h[0],d=h[1],a=h[2],b=h[3]);return[a,b,f,d,h[4]]},tBa=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,w=0,y=0;h<b.length;)0==b[h][0]?(d[e++]=h,k=w,q=y,y=w=0,f=b[h][1]):(1==b[h][0]?w+=b[h][1].length:y+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(w,y)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,h=0<e?d[e-1]:-1,y=w=q=k=0,f=null,c=!0)),h++;c&&iRb(a,b);nRb(b);for(h=1;h<b.length;){if(-1==
b[h-1][0]&&1==b[h][0]){a=b[h-1][1];c=b[h][1];d=mRb(a,c);e=mRb(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(h,0,[0,c.substring(0,d)]),b[h-1][1]=a.substring(0,a.length-d),b[h+1][1]=c.substring(d),h++}else if(e>=a.length/2||e>=c.length/2)b.splice(h,0,[0,a.substring(0,e)]),b[h-1][0]=1,b[h-1][1]=c.substring(0,c.length-e),b[h+1][0]=-1,b[h+1][1]=a.substring(e),h++;h++}h++}},nRb=function(a){function b(E,I){if(!E||!I)return 6;var N=E.charAt(E.length-1),L=I.charAt(0),S=N.match(oRb),Y=L.match(oRb),
ka=S&&N.match(pRb),ha=Y&&L.match(pRb);N=ka&&N.match(qRb);L=ha&&L.match(qRb);E=N&&E.match(rRb);I=L&&I.match(sRb);return E||I?5:N||L?4:S&&!ka&&ha?3:ka||ha?2:S||Y?1:0}for(var c=1;c<a.length-1;){if(0==a[c-1][0]&&0==a[c+1][0]){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],h=gRb(d,e);if(h){var k=e.substring(e.length-h);d=d.substring(0,d.length-h);e=k+e.substring(0,e.length-h);f=k+f}h=d;k=e;for(var q=f,w=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var y=
b(d,e)+b(e,f);y>=w&&(w=y,h=d,k=e,q=f)}a[c-1][1]!=h&&(h?a[c-1][1]=h:(a.splice(c-1,1),c--),a[c][1]=k,q?a[c+1][1]=q:(a.splice(c+1,1),c--))}c++}},oRb=/[^a-zA-Z0-9]/,pRb=/\s/,qRb=/[\r\n]/,rRb=/\n\r?\n$/,sRb=/^\r?\n\r?\n/,iRb=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",h="",k;c<b.length;)switch(b[c][0]){case 1:e++;h+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:1<d+e?(0!==d&&0!==e&&(k=fRb(h,f),0!==k&&(0<c-d-e&&0==b[c-d-e-1][0]?b[c-d-e-1][1]+=h.substring(0,k):(b.splice(0,0,[0,h.substring(0,
k)]),c++),h=h.substring(k),f=f.substring(k)),k=gRb(h,f),0!==k&&(b[c][1]=h.substring(h.length-k)+b[c][1],h=h.substring(0,h.length-k),f=f.substring(0,f.length-k))),0===d?b.splice(c-e,d+e,[1,h]):0===e?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,h]),c=c-d-e+(d?1:0)+(e?1:0)+1):0!==c&&0==b[c-1][0]?(b[c-1][1]+=b[c][1],b.splice(c,1)):c++,d=e=0,h=f=""}""===b[b.length-1][1]&&b.pop();d=!1;for(c=1;c<b.length-1;)0==b[c-1][0]&&0==b[c+1][0]&&(b[c][1].substring(b[c][1].length-b[c-1][1].length)==b[c-1][1]?
(b[c][1]=b[c-1][1]+b[c][1].substring(0,b[c][1].length-b[c-1][1].length),b[c+1][1]=b[c-1][1]+b[c+1][1],b.splice(c-1,1),d=!0):b[c][1].substring(0,b[c+1][1].length)==b[c+1][1]&&(b[c-1][1]+=b[c+1][1],b[c][1]=b[c][1].substring(b[c+1][1].length)+b[c+1][1],b.splice(c+1,1),d=!0)),c++;d&&iRb(a,b)};
var NS=function(a,b,c){this.analytics=a;this.issueComments=b;this.dialogManager=c};NS.prototype.show=function(a,b,c){var d=this,e;return me(function(f){if(d.dialog&&2!==d.dialog.getState())return f.return();bo(d.analytics,"commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:tRb(d,a,b,c)};d.dialog=d.dialogManager.open(tS,{data:e,width:"50vw"});return f.return((0,T.firstValueFrom)(d.dialog._afterClosed))})};
var tRb=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=0<e.length?e[0].unlinkifiedComment:"",h=0<e.length?e[0].formattingMode:"",k=!1,q=[];e=r(e);for(var w=e.next();!w.done;w=e.next()){w=w.value;var y=vBa(w);y||k?(f=OS(w.unlinkifiedComment),h=OS(w.formattingMode)):(f=uBa(f,w.unlinkifiedComment),k=w.formattingMode,h=h===k?OS(k):Qn(OS(h,"diff-removed"),OS(k,"diff-added")));k=void 0===w.unlinkifiedComment?"":w.unlinkifiedComment;var E=w.version,I=w.commentContentVerdict;
q.push({comment:w.comment,unlinkifiedComment:k,lastEditorUser:w.lastEditorUser,version:E,formattingMode:w.formattingMode,formattingModeDiff:h,lastModified:Number(w.lastModified)/1E3,open:25>E,preview:48>=k.length?k:k.substring(0,45)+"...",diff:f,restricted:I&&I.piiVerdict&&"NONE_DETECTED"!==I.piiVerdict.severity||!1,deleted:vBa(w)});f=w.unlinkifiedComment;h=w.formattingMode;k=y}-1<d?q[d].open=!0:q[0].open=!0;return q})},OS=function(a,b){return Pn("SPAN",b?{"class":b}:null,a)};
NS.\u0275fac=function(a){return new (a||NS)(t(SM),t(rO),t(HB))};NS.\u0275prov=ec({token:NS,factory:NS.\u0275fac,providedIn:"root"});
var uRb=new Map([["name","Name"],["description","Description"],["parentComponentId","Parent component ID"],["slo","SLO"],["team","Team"],["commentEditState","Editable comments"],["isArchived","Archived"],["defaultTemplateId","Default template ID"],["retentionSettings","Retention Settings"]]),vRb=new Map([[0,"Unknown"],[1,"Enabled"],[2,"Disabled"]]),wRb=new Map([[1,"Default (10 years)"],[2,"Custom Period"],[3,"Indefinite"]]),xRb=new Map([[1,"Default (60 days)"],[2,"Custom Period"],[3,"Match Issue Retention"]]);
var yRb=function(a){return a?new Set(jb(a,1).map(function(b){return Ii(b)})):new Set},PS=function(a,b,c){return a.has(b)?c:""},zRb=function(a,b,c){return a.has(b)?c:[]},QS=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}};
var RS=function(a,b){this.$log=a;this.sessionIsInternal=b.isInternalSession()};RS.\u0275fac=function(a){return new (a||RS)(t(RK),t(pH))};RS.\u0275prov=ec({token:RS,factory:RS.\u0275fac,providedIn:"root"});
var ARb=function(a){if(!a)return"";var b=wRb.get(X(a,1,0)),c=dj(a,2),d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=xRb.get(X(a,3,0));c=dj(a,4);a=dj(a,5);d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},CRb=function(a){if(!a)return"";var b=a.getInherit(),c=BRb.get(a.getSource()),d=a.getId();a=a.getComment();b="Inherit: "+b+", Source: "+c+", ID: "+d;return a?b+(", Justification: "+a):b},BRb=new Map([[0,"--"],[1,"User"],[2,"Bugscope"]]),
DRb=function(a){if(!a)return"";var b=a.getInherit();a=a.getId();return"Inherit: "+b+", ID: "+a};
var ERb=Fh({opacity:"0"}),FRb=De(function(a){return a}),GRb=(0,T.pipe)(Le(),FRb,Pe()),HRb=new jd("xap-bubble UX style"),SS=function(a){var b=this;this.activity=new T.Subject;this.openedSubject=new T.BehaviorSubject(!1);this.destroy=new T.ReplaySubject;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new Iw;this.onOpened=new Iw;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Zfa(function(){return b.activity.pipe(Je(b.hoverDelayMs))}));
a=Ye(this.destroy);this.opened.pipe(GRb,a).subscribe(this.onOpened);this.openedSubject.pipe(FRb,Nga(function(){return b.opened.pipe(De(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};SS.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};SS.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};SS.\u0275fac=function(a){return new (a||SS)(F(HRb,8))};
SS.\u0275cmp=v({type:SS,selectors:[["xap-bubble"]],inputs:{panelTemplate:"panelTemplate",overlayPositions:"overlayPositions",overlayPanelClass:"overlayPanelClass",hoverDelayMs:"hoverDelayMs"},outputs:{beforeOpened:"beforeOpened",beforeShow:"beforeShow",onOpened:"opened"},ngContentSelectors:["*"],decls:5,vars:7,consts:[["cdkOverlayOrigin","",1,"xap-bubble-trigger",3,"ngClass","mouseenter","mouseleave","mousemove"],["trigger","cdkOverlayOrigin"],["cdkConnectedOverlay","","cdkConnectedOverlayPush","true",
3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],[1,"xap-bubble-panel",3,"ngClass","mouseenter","mouseleave","mousemove"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(Cf(),G(0,"span",0,1),K("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("mousemove",function(){b.activity.next()}),Df(2),H(),O(3,xBa,2,3,"ng-template",2),Q(4,"async"));if(a&2){var c=Hf(1);D("ngClass",b.bubbleStyle);
B(3);D("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",R(4,5,b.opened))}},dependencies:[vx,Cx,TA,SA,Fx],styles:[".xap-bubble-trigger{cursor:default;pointer-events:auto}.xap-bubble-trigger.xap-bubble-reach{-webkit-text-decoration:underline dashed #80868b;-moz-text-decoration:underline dashed #80868b;text-decoration:underline dashed #80868b;text-underline-position:under}.xap-bubble-panel{overflow:auto;padding:16px;will-change:opacity}.xap-bubble-panel.xap-bubble-md1{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);max-height:400px;max-width:400px}.xap-bubble-panel.xap-bubble-reach{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);border-radius:8px;max-height:420px;max-width:420px;min-height:40px;min-width:220px}"],
encapsulation:2,data:{animation:[Dh("fade",[Hh(":enter",[ERb,Eh("225ms")]),Hh(":leave",[Eh("195ms",ERb)])])]}});
var TS=function(a,b){this.activeSession=a;this.documentationLinks=b;this.labelOnlyMode=this.compactMode=!1;this.bubbleText=this.chipClass=""};
TS.prototype.ngOnChanges=function(){if(this.accessLevel)switch(this.accessLevel){case "EXTERNAL_PARTNER":this.chipClass="partner";this.bubbleText=' Components and issues designated as "Visible to Partners" can be shared with specific external partners listed in the component\'s access control settings.';break;case "EXTERNAL_PUBLIC":this.chipClass="public";this.bubbleText='Components and issues designated as "Visible to Public" can be \n              shared with any authenticated Google Account, such as someone with\n               an @gmail.com email address.';
break;default:this.bubbleText=this.chipClass=""}};TS.\u0275fac=function(a){return new (a||TS)(F(pH),F(tP))};
TS.\u0275cmp=v({type:TS,selectors:[["b-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},features:[Ac],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["withBubble",""],[1,"label",3,"ngClass"],[3,"panelTemplate"],["popup",""],[1,"bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&O(0,BBa,4,2,"ng-container",0);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?"EXTERNAL_PARTNER"===b.accessLevel||
"EXTERNAL_PUBLIC"===b.accessLevel:qH(b.activeSession)?"EXTERNAL_PUBLIC"===b.accessLevel:!1;D("ngIf",a)}},dependencies:[vx,sx,SS,JS],styles:[".label[_ngcontent-%COMP%]{border-radius:8px;display:inline-block;line-height:18px;padding:0 10px;color:#202124;color:var(--text-high-contrast)}.label.partner[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-outline)}.label.public[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-outline)}.label.compact-chip[_ngcontent-%COMP%]{font-size:.7em;margin-top:0;padding:0 6px;box-shadow:none}.bubble[_ngcontent-%COMP%]{width:300px}"]});
var US=function(a,b){BI.call(this);var c=this;this.componentFridge=a;this.activeSession=b;this.providedComponentId$=new T.ReplaySubject(1);this.component$=this.providedComponentId$.pipe(Xe(function(d){return c.componentFridge.watch(d)}),Ue({refCount:!0,bufferSize:1}));this.init=new T.ReplaySubject(1);this.isAnonymous=this.activeSession.isAnonymous()};U(US,BI);US.\u0275dir=BI.\u0275dir;
US.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=rn({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=qn("issues/new",{params:void 0})+"?component="+this.componentId;this.viewComponentUrl=jta(this.componentId,"basic");this.component$.pipe(Me(),Ye(this.destroyed$)).subscribe(function(){a.init.next()})};US.\u0275fac=function(a){return new (a||US)(F(bK),F(pH))};
US.\u0275cmp=v({type:US,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},features:[gf],decls:4,vars:3,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],[3,"accessLevel","labelOnlyMode"],["tabindex","0",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1),O(2,DBa,16,8,"ng-container",2),Q(3,"async"),H()());a&2&&(B(2),D("ngIf",R(3,1,b.component$)))},dependencies:[sx,
TS,Fx],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});
var VS=function(){this.changes=new T.Subject;this.itemsPerPageLabel="Items per page:";this.nextPageLabel="Next page";this.previousPageLabel="Previous page";this.firstPageLabel="First page";this.lastPageLabel="Last page";this.getRangeLabel=function(a,b,c){if(0==c||0==b)return"0 of "+c;c=Math.max(c,0);a*=b;return a+1+" \u2013 "+(a<c?Math.min(a+b,c):a+b)+" of "+c}};VS.\u0275fac=function(a){return new (a||VS)};VS.\u0275prov=ec({token:VS,factory:VS.\u0275fac,providedIn:"root"});
var IRb={provide:VS,deps:[[new Ev,new Fv,VS]],useFactory:function(a){return a||new VS}};
var JRb=Dh("transformPanelWrap",[Hh("* => void",Jh("@transformPanel",[Ih()]))]),KRb=Dh("transformPanel",[Gh("void",Fh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Gh("showing",Fh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Gh("showing-multiple",Fh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Hh("void => *",Eh("120ms cubic-bezier(0, 0, 0.2, 1)")),Hh("* => void",Eh("100ms 25ms linear",Fh({opacity:0})))]);
var LRb=["trigger"],MRb=["panel"],NRb=[[["mat-select-trigger"]],"*"],ORb=0,PRb=new jd("mat-select-scroll-strategy"),QRb=new jd("MAT_SELECT_CONFIG"),RRb={provide:PRb,deps:[RA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},SRb=function(a,b){this.source=a;this.value=b},TRb=mi(oi(ni(mla(function(a,b,c,d,e){this._elementRef=a;this._defaultErrorStateMatcher=b;this._parentForm=c;this._parentFormGroup=d;this.ngControl=e;this.stateChanges=new T.Subject})))),URb=new jd("MatSelectTrigger"),
WS=function(){};WS.\u0275fac=function(a){return new (a||WS)};WS.\u0275dir=v({type:WS,selectors:[["mat-select-trigger"]],features:[Lf([{provide:URb,useExisting:WS}])]});
var XS=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N){var L=TRb.call(this,e,d,h,k,w)||this;L._viewportRuler=a;L._changeDetectorRef=b;L._ngZone=c;L._dir=f;L._parentFormField=q;L._liveAnnouncer=I;L._defaultOptions=N;L._panelOpen=!1;L._compareWith=function(ha,ya){return ha===ya};L._uid="mat-select-"+ORb++;L._triggerAriaLabelledBy=null;L._destroy=new T.Subject;L._onChange=function(){};L._onTouched=function(){};L._valueId="mat-select-value-"+ORb++;L._panelDoneAnimatingStream=new T.Subject;var S;L._overlayPanelClass=
(null==(S=L._defaultOptions)?void 0:S.overlayPanelClass)||"";L._focused=!1;L.controlType="mat-select";L._multiple=!1;var Y,ka;L._disableOptionCentering=null!=(ka=null==(Y=L._defaultOptions)?void 0:Y.disableOptionCentering)?ka:!1;L.ariaLabel="";L.optionSelectionChanges=(0,T.defer)(function(){var ha=L.options;return ha?ha.changes.pipe(We(ha),Xe(function(){return T.merge.apply(null,u(ha.map(function(ya){return ya.onSelectionChange})))})):L._ngZone.onStable.pipe(Me(),Xe(function(){return L.optionSelectionChanges}))});
L.openedChange=new Iw;L._openedStream=L.openedChange.pipe(De(function(ha){return ha}),C(function(){}));L._closedStream=L.openedChange.pipe(De(function(ha){return!ha}),C(function(){}));L.selectionChange=new Iw;L.valueChange=new Iw;L.ngControl&&(L.ngControl.valueAccessor=L);null!=(null==N?void 0:N.typeaheadDebounceInterval)&&(L._typeaheadDebounceInterval=N.typeaheadDebounceInterval);L._scrollStrategyFactory=E;L._scrollStrategy=L._scrollStrategyFactory();L.tabIndex=parseInt(y)||0;L.id=L.id;return L};
U(XS,TRb);g=XS.prototype;g.ngOnInit=function(){var a=this;this._selectionModel=new uA(this.multiple);this.stateChanges.next();this._panelDoneAnimatingStream.pipe(Le(),Ye(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})};
g.ngAfterContentInit=function(){var a=this;this._initKeyManager();this._selectionModel.changed.pipe(Ye(this._destroy)).subscribe(function(b){b.added.forEach(function(c){return c.select()});b.removed.forEach(function(c){return c.deselect()})});this.options.changes.pipe(We(null),Ye(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
g.ngDoCheck=function(){var a=this._getTriggerAriaLabelledby(),b=this.ngControl;if(a!==this._triggerAriaLabelledBy){var c=this._elementRef.nativeElement;(this._triggerAriaLabelledBy=a)?c.setAttribute("aria-labelledby",a):c.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(void 0!==this._previousControl&&null!==b.disabled&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())};
g.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&aA(this._keyManager,this._typeaheadDebounceInterval)};g.ngOnDestroy=function(){this._destroy.next();this._destroy.complete();this.stateChanges.complete()};g.toggle=function(){this.panelOpen?this.close():this.open()};g.open=function(){this._canOpen()&&(this._panelOpen=!0,$z(this._keyManager,null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())};
g.close=function(){this._panelOpen&&(this._panelOpen=!1,$z(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())};g.writeValue=function(a){this._assignValue(a)};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};g._isRtl=function(){return this._dir?"rtl"===this._dir.value:!1};
g._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};g._handleClosedKeydown=function(a){var b=a.keyCode,c=40===b||38===b||37===b||39===b,d=this._keyManager;!(0<d._pressedLetters.length||13!==b&&32!==b||gi(a))||(this.multiple||a.altKey)&&c?(a.preventDefault(),this.open()):this.multiple||(b=this.selected,d.onKeydown(a),(a=this.selected)&&b!==a&&this._liveAnnouncer.announce(a.viewValue,1E4))};
g._handleOpenKeydown=function(a){var b=this._keyManager,c=a.keyCode,d=40===c||38===c,e=0<b._pressedLetters.length;if(d&&a.altKey)a.preventDefault(),this.close();else if(e||13!==c&&32!==c||!b.activeItem||gi(a))if(!e&&this._multiple&&65===c&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(h){return!h.disabled&&!h.selected});this.options.forEach(function(h){h.disabled||(f?h.select():h.deselect())})}else c=b.activeItemIndex,b.onKeydown(a),this._multiple&&d&&a.shiftKey&&b.activeItem&&b.activeItemIndex!==
c&&b.activeItem._selectViaInteraction();else a.preventDefault(),b.activeItem._selectViaInteraction()};g._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};g._onBlur=function(){this._focused=!1;this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};g._onAttached=function(){var a=this;this._overlayDir.positionChange.pipe(Me()).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()})};
g._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};g._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
g._setSelectionByValue=function(a){var b=this;this._selectionModel.selected.forEach(function(c){return c.setInactiveStyles()});this._selectionModel.clear();this.multiple&&a?(Array.isArray(a),a.forEach(function(c){return b._selectOptionByValue(c)}),this._sortValues()):(a=this._selectOptionByValue(a))?cA(this._keyManager,a):this.panelOpen||cA(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
g._selectOptionByValue=function(a){var b=this,c=this.options.find(function(d){if(b._selectionModel.isSelected(d))return!1;try{return null!=d.value&&b._compareWith(d.value,a)}catch(e){return!1}});c&&this._selectionModel.select(c);return c};g._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};
g._initKeyManager=function(){var a=this;this._keyManager=rpb(bA($z(Zz(aA(new fA(this.options),this._typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")));this._keyManager.tabOut.pipe(Ye(this._destroy)).subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.pipe(Ye(this._destroy)).subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):a._panelOpen||
a.multiple||!a._keyManager.activeItem||a._keyManager.activeItem._selectViaInteraction()})};g._resetOptions=function(){var a=this,b=(0,T.merge)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ye(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});T.merge.apply(null,u(this.options.map(function(c){return c._stateChanges}))).pipe(Ye(b)).subscribe(function(){a._changeDetectorRef.markForCheck();a.stateChanges.next()})};
g._onSelect=function(a,b){var c=this._selectionModel.isSelected(a);null!=a.value||this._multiple?(c!==a.selected&&(a.selected?this._selectionModel.select(a):this._selectionModel.deselect(a)),b&&this._keyManager.setActiveItem(a),this.multiple&&(this._sortValues(),b&&this.focus())):(a.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(a.value));c!==this._selectionModel.isSelected(a)&&this._propagateChanges();this.stateChanges.next()};
g._sortValues=function(){var a=this;if(this.multiple){var b=this.options.toArray();this._selectionModel.sort(function(c,d){return a.sortComparator?a.sortComparator(c,d,b):b.indexOf(c)-b.indexOf(d)});this.stateChanges.next()}};g._propagateChanges=function(a){var b=null;this.multiple?b=this.selected.map(function(c){return c.value}):b=this.selected?this.selected.value:a;this._value=b;this.valueChange.emit(b);this._onChange(b);this.selectionChange.emit(this._getChangeEvent(b));this._changeDetectorRef.markForCheck()};
g._highlightCorrectOption=function(){this._keyManager&&(this.empty?dA(this._keyManager):this._keyManager.setActiveItem(this._selectionModel.selected[0]))};g._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&0<(null==(a=this.options)?void 0:a.length)};g.focus=function(a){this._elementRef.nativeElement.focus(a)};
g._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=null==(a=this._parentFormField)?void 0:a.getLabelId();return this.ariaLabelledby?(b?b+" ":"")+this.ariaLabelledby:b};g._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
g._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=null==(a=this._parentFormField)?void 0:a.getLabelId();a=(b?b+" ":"")+this._valueId;this.ariaLabelledby&&(a+=" "+this.ariaLabelledby);return a};g._panelDoneAnimating=function(a){this.openedChange.emit(a)};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};
g.onContainerClick=function(){this.focus();this.open()};
ki.Object.defineProperties(XS.prototype,{focused:{configurable:!0,enumerable:!0,get:function(){return this._focused||this._panelOpen}},placeholder:{configurable:!0,enumerable:!0,get:function(){return this._placeholder},set:function(a){this._placeholder=a;this.stateChanges.next()}},required:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return null!=(d=null!=(c=this._required)?c:null==(a=this.ngControl)?void 0:null==(b=a.control)?void 0:jnb(b))?d:!1},set:function(a){this._required=Rg(a);
this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=Rg(a)}},disableOptionCentering:{configurable:!0,enumerable:!0,get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=Rg(a)}},compareWith:{configurable:!0,enumerable:!0,get:function(){return this._compareWith},set:function(a){this._compareWith=a;this._selectionModel&&this._initializeSelection()}},value:{configurable:!0,enumerable:!0,
get:function(){return this._value},set:function(a){this._assignValue(a)&&this._onChange(a)}},typeaheadDebounceInterval:{configurable:!0,enumerable:!0,get:function(){return this._typeaheadDebounceInterval},set:function(a){this._typeaheadDebounceInterval=Ug(a)}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=a||this._uid;this.stateChanges.next()}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen}},selected:{configurable:!0,enumerable:!0,
get:function(){var a,b;return this.multiple?(null==(a=this._selectionModel)?void 0:a.selected)||[]:null==(b=this._selectionModel)?void 0:b.selected[0]}},triggerValue:{configurable:!0,enumerable:!0,get:function(){if(this.empty)return"";if(this._multiple){var a=this._selectionModel.selected.map(function(b){return b.viewValue});this._isRtl()&&a.reverse();return a.join(", ")}return this._selectionModel.selected[0].viewValue}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._selectionModel||
this._selectionModel.isEmpty()}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}});XS.\u0275fac=function(a){return new (a||XS)(F(wA),F(lx),F(ef),F(dB),F(nd),F(hA,8),F(fy,8),F(oy,8),F(WB,8),F(Zx,10),Xc("tabindex"),F(PRb),F(Qz),F(QRb,8))};
XS.\u0275dir=v({type:XS,viewQuery:function(a,b){a&1&&(Zf(LRb,5),Zf(MRb,5),Zf(TA,5));if(a&2){var c;Yf(c=ag())&&(b.trigger=c.first);Yf(c=ag())&&(b.panel=c.first);Yf(c=ag())&&(b._overlayDir=c.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],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:[gf,Ac]});
var YS=function(){var a=XS.apply(this,arguments)||this;a._scrollTop=0;a._triggerFontSize=0;a._transformOrigin="top";a._offsetY=0;a._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}];return a};U(YS,XS);YS.\u0275dir=XS.\u0275dir;g=YS.prototype;g._calculateOverlayScroll=function(a,b,c){var d=this._getItemHeight();return Math.min(Math.max(0,d*a-b+d/2),c)};
g.ngOnInit=function(){var a=this;XS.prototype.ngOnInit.call(this);this._viewportRuler.change().pipe(Ye(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})};
g.open=function(){var a=this;XS.prototype._canOpen.call(this)&&(XS.prototype.open.call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Me()).subscribe(function(){a._triggerFontSize&&a._overlayDir.overlayRef&&a._overlayDir.overlayRef.overlayElement&&(a._overlayDir.overlayRef.overlayElement.style.fontSize=a._triggerFontSize+
"px")}))};g._scrollOptionIntoView=function(a){var b=ula(a,this.options,this.optionGroups),c=this._getItemHeight();this.panel.nativeElement.scrollTop=0===a&&1===b?0:vla((a+b)*c,c,this.panel.nativeElement.scrollTop,256)};g._positioningSettled=function(){this._calculateOverlayOffsetX();this.panel.nativeElement.scrollTop=this._scrollTop};
g._panelDoneAnimating=function(a){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck());XS.prototype._panelDoneAnimating.call(this,a)};g._getChangeEvent=function(a){return new SRb(this,a)};
g._calculateOverlayOffsetX=function(){var a=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),b=this._viewportRuler.getViewportSize(),c=this._isRtl(),d=this.multiple?56:32;var e=this.multiple?40:this.disableOptionCentering?16:(e=this._selectionModel.selected[0]||this.options.first)&&e.group?32:16;c||(e*=-1);var f=-(a.left+e-(c?d:0));a=a.right+e-b.width+(c?0:d);0<f?e+=f+8:0<a&&(e-=a+8);this._overlayDir.offsetX=Math.round(e);this._overlayDir.overlayRef.updatePosition()};
g._calculateOverlayOffsetY=function(a,b,c){var d=this._getItemHeight(),e=(d-this._triggerRect.height)/2,f=Math.floor(256/d);return this.disableOptionCentering?0:Math.round(-1*(0===this._scrollTop?a*d:this._scrollTop===c?(a-(this._getItemCount()-f))*d+(d-(this._getItemCount()*d-256)%d):b-d/2)-e)};
g._checkOverlayWithinViewport=function(a){var b=this._getItemHeight(),c=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8;c=c.height-this._triggerRect.bottom-8;var e=Math.abs(this._offsetY);b=Math.min(this._getItemCount()*b,256)-e-this._triggerRect.height;b>c?this._adjustPanelUp(b,c):e>d?this._adjustPanelDown(e,d,a):this._transformOrigin=this._getOriginBasedOnOption()};
g._adjustPanelUp=function(a,b){a=Math.round(a-b);this._scrollTop-=a;this._offsetY-=a;this._transformOrigin=this._getOriginBasedOnOption();0>=this._scrollTop&&(this._offsetY=this._scrollTop=0,this._transformOrigin="50% bottom 0px")};g._adjustPanelDown=function(a,b,c){a=Math.round(a-b);this._scrollTop+=a;this._offsetY+=a;this._transformOrigin=this._getOriginBasedOnOption();this._scrollTop>=c&&(this._scrollTop=c,this._offsetY=0,this._transformOrigin="50% top 0px")};
g._calculateOverlayPosition=function(){var a=this._getItemHeight(),b=this._getItemCount(),c=Math.min(b*a,256);a=b*a-c;b=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0);b+=ula(b,this.options,this.optionGroups);c/=2;this._scrollTop=this._calculateOverlayScroll(b,c,a);this._offsetY=this._calculateOverlayOffsetY(b,c,a);this._checkOverlayWithinViewport(a)};
g._getOriginBasedOnOption=function(){var a=this._getItemHeight();return"50% "+(Math.abs(this._offsetY)-(a-this._triggerRect.height)/2+a/2)+"px 0px"};g._getItemHeight=function(){return 3*this._triggerFontSize};g._getItemCount=function(){return this.options.length+this.optionGroups.length};YS.\u0275fac=function(){var a;return function(b){return(a||(a=cd(YS)))(b||YS)}}();
YS.\u0275cmp=v({type:YS,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&($f(c,URb,5),$f(c,lB,5),$f(c,Ppb,5));if(a&2){var d;Yf(d=ag())&&(b.customTrigger=d.first);Yf(d=ag())&&(b.options=d);Yf(d=ag())&&(b.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(a,b){a&1&&K("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});
a&2&&(nf("id",b.id)("tabindex",b.tabIndex)("aria-controls",b.panelOpen?b.id+"-panel":null)("aria-expanded",b.panelOpen)("aria-label",b.ariaLabel||null)("aria-required",b.required.toString())("aria-disabled",b.disabled.toString())("aria-invalid",b.errorState)("aria-activedescendant",b._getAriaActiveDescendant()),sf("mat-select-disabled",b.disabled)("mat-select-invalid",b.errorState)("mat-select-required",b.required)("mat-select-empty",b.empty)("mat-select-multiple",b.multiple))},inputs:{disabled:"disabled",
disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Lf([{provide:SB,useExisting:YS},{provide:Opb,useExisting:YS}]),gf],ngContentSelectors:["mat-select-trigger","*"],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(a,b){a&1&&(Cf(NRb),G(0,"div",0,1),K("click",function(){return b.toggle()}),G(3,"div",2),O(4,EBa,2,1,"span",3),O(5,HBa,3,2,"span",4),H(),G(6,"div",5),J(7,"div",6),H()(),O(8,IBa,4,14,"ng-template",7),K("backdropClick",function(){return b.close()})("attach",function(){return b._onAttached()})("detach",
function(){return b.close()}));if(a&2){var c=Hf(1);nf("aria-owns",b.panelOpen?b.id+"-panel":null);B(3);D("ngSwitch",b.empty);nf("id",b._valueId);B(1);D("ngSwitchCase",!0);B(1);D("ngSwitchCase",!1);B(3);D("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.panelOpen)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayMinWidth",null==b._triggerRect?null:b._triggerRect.width)("cdkConnectedOverlayOffsetY",
b._offsetY)}},dependencies:[vx,yx,zx,Ax,TA,SA],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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;visibility:hidden}\n'],
encapsulation:2,data:{animation:[JRb,KRb]},changeDetection:0});
var ZS=function(){};ZS.\u0275fac=function(a){return new (a||ZS)};ZS.\u0275mod=rc({type:ZS});ZS.\u0275inj=fc({providers:[RRb],imports:[[Mx,UA,oB,VA],xA,YB,oB,VA]});
var VRb=new jd("MAT_PAGINATOR_DEFAULT_OPTIONS"),WRb=ni(nla(function(){})),$S=function(a,b,c){var d=WRb.call(this)||this;d._intl=a;d._changeDetectorRef=b;d._pageIndex=0;d._length=0;d._pageSizeOptions=[];d._hidePageSize=!1;d._showFirstLastButtons=!1;d.selectConfig={};d.page=new Iw;d._intlChanges=a.changes.subscribe(function(){return d._changeDetectorRef.markForCheck()});if(c){var e=c.pageSize,f=c.pageSizeOptions,h=c.hidePageSize;c=c.showFirstLastButtons;null!=e&&(d._pageSize=e);null!=f&&(d._pageSizeOptions=
f);null!=h&&(d._hidePageSize=h);null!=c&&(d._showFirstLastButtons=c)}return d};U($S,WRb);g=$S.prototype;g.ngOnInit=function(){this._initialized=!0;this._updateDisplayedPageSizeOptions();this._markInitialized()};g.ngOnDestroy=function(){this._intlChanges.unsubscribe()};g.nextPage=function(){if(this.hasNextPage()){var a=this.pageIndex;this.pageIndex+=1;this._emitPageEvent(a)}};g.hasPreviousPage=function(){return 1<=this.pageIndex&&0!=this.pageSize};
g.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&0!=this.pageSize};g._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};g._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};g._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
g._updateDisplayedPageSizeOptions=function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,b){return a-b}),this._changeDetectorRef.markForCheck())};
g._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};
ki.Object.defineProperties($S.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(Ug(a),0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=Ug(a);this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(Ug(a),0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return Ug(b)});this._updateDisplayedPageSizeOptions()}},hidePageSize:{configurable:!0,enumerable:!0,get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=Rg(a)}},showFirstLastButtons:{configurable:!0,enumerable:!0,get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=Rg(a)}}});
$S.\u0275fac=function(){wf()};$S.\u0275dir=v({type:$S,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[gf]});var aT=function(a,b,c){a=$S.call(this,a,b,c)||this;c&&null!=c.formFieldAppearance&&(a._formFieldAppearance=c.formFieldAppearance);return a};U(aT,$S);aT.\u0275dir=$S.\u0275dir;
aT.\u0275fac=function(a){return new (a||aT)(F(VS),F(lx),F(VRb,8))};
aT.\u0275cmp=v({type:aT,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[gf],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","panelClass","disableOptionCentering","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(a,b){a&1&&(G(0,"div",0)(1,"div",1),O(2,MBa,5,3,"div",2),G(3,"div",3)(4,"div",4),P(5),H(),O(6,NBa,3,5,"button",5),G(7,"button",6),K("click",function(){if(b.hasPreviousPage()){var c=b.pageIndex;--b.pageIndex;b._emitPageEvent(c)}}),Lc(),G(8,"svg",7),J(9,"path",8),H()(),Mc(),G(10,"button",9),K("click",function(){return b.nextPage()}),Lc(),G(11,"svg",7),J(12,"path",10),H()(),O(13,OBa,3,5,"button",11),H()()());a&2&&(B(2),D("ngIf",!b.hidePageSize),B(3),If(" ",b._intl.getRangeLabel(b.pageIndex,
b.pageSize,b.length)," "),B(1),D("ngIf",b.showFirstLastButtons),B(1),D("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("matTooltipPosition","above")("disabled",b._previousButtonsDisabled()),nf("aria-label",b._intl.previousPageLabel),B(3),D("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("matTooltipPosition","above")("disabled",b._nextButtonsDisabled()),nf("aria-label",b._intl.nextPageLabel),B(3),D("ngIf",b.showFirstLastButtons))},
dependencies:[wx,sx,pB,XB,YS,lB,$E],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});
var bT=function(a){this.paths=a;this.children=[];this.onVisit=new Iw;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};bT.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};bT.\u0275fac=function(a){return new (a||bT)(F(dL))};
bT.\u0275cmp=v({type:bT,selectors:[["b-component-children-list"]],inputs:{children:"children"},outputs:{onVisit:"onVisit"},decls:3,vars:2,consts:[[3,"length","pageSize","pageSizeOptions","page",4,"ngIf"],[1,"component-children"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageSizeOptions","page"],[1,"keep-underline","keep-focus-ring",3,"onedevHovercardTrigger","href","click"],["card","onedevHovercard"],[3,"componentId"]],template:function(a,b){a&1&&(O(0,PBa,1,3,"mat-paginator",0),G(1,"ul",1),O(2,
QBa,6,4,"li",2),H());a&2&&(D("ngIf",b.children.length>b.pageSize),B(2),D("ngForOf",b.childrenOnPage))},dependencies:[wx,sx,pN,tN,US,aT],encapsulation:2});
var cT=function(){};cT.\u0275fac=function(a){return new (a||cT)};cT.\u0275mod=rc({type:cT});cT.\u0275inj=fc({imports:[[Mx,UA]]});
var dT=function(){};dT.\u0275fac=function(a){return new (a||dT)};dT.\u0275mod=rc({type:dT});dT.\u0275inj=fc({imports:[[Mx,LS,cT]]});
var eT=function(){};eT.\u0275fac=function(a){return new (a||eT)};eT.\u0275mod=rc({type:eT});eT.\u0275inj=fc({imports:[[Mx,dT]]});
var fT=function(){};fT.\u0275fac=function(a){return new (a||fT)};fT.\u0275mod=rc({type:fT});fT.\u0275inj=fc({providers:[IRb],imports:[[Mx,jG,ZS,bH,VA]]});
var gT=function(){};gT.\u0275fac=function(a){return new (a||gT)};gT.\u0275mod=rc({type:gT});gT.\u0275inj=fc({imports:[[Mx,$N,eT,fT]]});
var hT=function(){this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new Iw};hT.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};hT.\u0275fac=function(a){return new (a||hT)};
hT.\u0275cmp=v({type:hT,selectors:[["b-conditional-link"]],inputs:{isGreyedOut:"isGreyedOut",displayName:"displayName",linkUrl:"linkUrl",linkEnabled:"linkEnabled",useCustomHandler:"useCustomHandler"},outputs:{customHandler:"customHandler"},decls:2,vars:2,consts:[[3,"muted",4,"ngIf"],["class","normal-link","target","_blank",3,"href","click",4,"ngIf"],["target","_blank",1,"normal-link",3,"href","click"]],template:function(a,b){a&1&&(O(0,RBa,2,3,"span",0),O(1,SBa,2,2,"a",1));a&2&&(D("ngIf",b.isGreyedOut||
!b.linkEnabled),B(1),D("ngIf",!b.isGreyedOut&&b.linkEnabled))},dependencies:[sx],encapsulation:2,changeDetection:0});
var iT=function(){};iT.\u0275fac=function(a){return new (a||iT)};iT.\u0275mod=rc({type:iT});iT.\u0275inj=fc({imports:[[Mx]]});
var jT=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new Iw;this.onClickCopyIssueShortLinks=new Iw;this.onClickCopyAsIssueSearch=new Iw};jT.\u0275fac=function(a){return new (a||jT)};
jT.\u0275cmp=v({type:jT,selectors:[["b-copy-issue-id-button"]],inputs:{shouldShowCopyIssueShortLinks:"shouldShowCopyIssueShortLinks",shortLinkPrefix:"shortLinkPrefix"},outputs:{onClickCopyIssueIds:"onClickCopyIssueIds",onClickCopyIssueShortLinks:"onClickCopyIssueShortLinks",onClickCopyAsIssueSearch:"onClickCopyAsIssueSearch"},decls:10,vars:2,consts:[["mat-button","","aria-label","Copy selected issue IDs",1,"gmat-button","medium","icon-only",3,"click"],["name","copy","size","small"],["mat-button",
"","aria-label","More copy issue ID options",1,"gmat-button","medium","compact",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["splitMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&(G(0,"b-button-group")(1,"button",0),K("click",function(){return b.onClickCopyIssueIds.emit()}),J(2,"b-icon",1),H(),G(3,"button",2),J(4,"b-icon",3),H(),G(5,"mat-menu",null,4),O(7,TBa,2,1,"button",5),G(8,"button",6),K("click",function(){return b.onClickCopyAsIssueSearch.emit()}),
P(9," Copy as issue search "),H()()());if(a&2){var c=Hf(6);B(3);D("matMenuTriggerFor",c);B(4);D("ngIf",b.shouldShowCopyIssueShortLinks)}},dependencies:[sx,QE,OE,TE,pB,eH,uH],encapsulation:2,changeDetection:0});
var XRb=function(a,b){this._document=b;var c=this._textarea=this._document.createElement("textarea"),d=c.style;d.position="fixed";d.top=d.opacity="0";d.left="-999em";c.setAttribute("aria-hidden","true");c.value=a;this._document.body.appendChild(c)};XRb.prototype.copy=function(){var a=this._textarea,b=!1;try{if(a){var c=this._document.activeElement;a.select();a.setSelectionRange(0,a.value.length);b=this._document.execCommand("copy");c&&c.focus()}}catch(d){}return b};
XRb.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};
var kT=function(a){this._document=a};kT.prototype.copy=function(a){a=new XRb(a,this._document);var b=a.copy();a.destroy();return b};kT.\u0275fac=function(a){return new (a||kT)(t(ii))};kT.\u0275prov=ec({token:kT,factory:kT.\u0275fac,providedIn:"root"});
new jd("CDK_COPY_TO_CLIPBOARD_CONFIG");
new jd("xap-clipboard-snackbar-options");
var lT=function(){};lT.\u0275fac=function(a){return new (a||lT)};lT.\u0275mod=rc({type:lT});lT.\u0275inj=fc({imports:[[Mx,jG,dF,JK]]});
var mT=function(){};mT.\u0275fac=function(a){return new (a||mT)};mT.\u0275mod=rc({type:mT});mT.\u0275inj=fc({imports:[[Mx,UE,jG,cI,dI,lT]]});
var nT=function(a,b,c,d,e){this.clipboard=a;this.analytics=c;this.butterBar=d;this.window=e;this.shortLinkPrefix="QA"!==b.getEnvironmentType()?"b/":"b-qa/"},MJa=function(a,b){a.clipboard.copy(b.join(", "));PK(a.butterBar,"Issue IDs copied.",2E3);bo(a.analytics,go.LIST_ISSUES,"copyIssueId","IDs")},NJa=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));PK(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);bo(a.analytics,go.LIST_ISSUES,"copyIssueId","b/ links")},
OJa=function(a,b){b=rn({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+"/"+b);PK(a.butterBar,"Issue search link copied.",2E3);bo(a.analytics,go.LIST_ISSUES,"copyIssueId","Issue search link")};nT.\u0275fac=function(a){return new (a||nT)(t(kT),t(pH),t(SM),t(OK),t(wM))};nT.\u0275prov=ec({token:nT,factory:nT.\u0275fac,providedIn:"root"});
var oT=function(a){this.el=a;this.minWidth=100;this.maxWidth=500;this.shadowInput=document.createElement("span");this.shadowInput.style.position="absolute";this.shadowInput.style.top="0px";this.shadowInput.style.left="0px";this.shadowInput.style.visibility="hidden";this.shadowInput.style.width="10px";this.shadowInput.style.whiteSpace="pre";this.shadowInput.style.overflow="hidden";this.shadowInput.style.padding="0";document.body.appendChild(this.shadowInput)};oT.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
oT.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};oT.prototype.resize=function(a){for(;this.shadowInput.firstChild;)this.shadowInput.removeChild(this.shadowInput.firstChild);this.shadowInput.appendChild(document.createTextNode(a));this.el.nativeElement.style.width=Math.min(Math.max(this.shadowInput.scrollWidth,this.minWidth),this.maxWidth)+"px"};oT.\u0275fac=function(a){return new (a||oT)(F(nd))};
oT.\u0275dir=v({type:oT,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&K("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"}});var pT=function(){};pT.\u0275fac=function(a){return new (a||pT)};pT.\u0275mod=rc({type:pT});pT.\u0275inj=fc({});
var qT=function(){QI.apply(this,arguments)};U(qT,QI);ki.Object.defineProperties(qT.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});qT.\u0275fac=function(){var a;return function(b){return(a||(a=cd(qT)))(b||qT)}}();qT.\u0275dir=v({type:qT,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},features:[gf]});var rT=function(){};
rT.\u0275fac=function(a){return new (a||rT)};rT.\u0275mod=rc({type:rT});rT.\u0275inj=fc({imports:[[Mx,WI]]});
var sT=function(){this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};ki.Object.defineProperties(sT.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){this.componentPath="settings"===this.componentPathsLinkTo?Eo(a,mta):Eo(a)}}});sT.\u0275fac=function(a){return new (a||sT)};
sT.\u0275cmp=v({type:sT,selectors:[["b-component-breadcrumb"]],inputs:{componentPathsLinkTo:"componentPathsLinkTo",componentPathInfo:"componentPathInfo",isArchived:"isArchived",label:"label",openTab:"openTab"},decls:6,vars:3,consts:[["role","navigation","aria-labelledby","breadcrumb-label",1,"breadcrumb"],["id","breadcrumb-label"],[1,"breadcrumb-items"],["class","breadcrumb-item",4,"ngFor","ngForOf"],["class","breadcrumb-archived-indicator",4,"ngIf"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"onedevHovercardTrigger",
"routerLinkObj"],["card","onedevHovercard"],[3,"componentId"],[1,"breadcrumb-archived-indicator"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"p",1),P(2),H(),G(3,"span",2),O(4,UBa,6,4,"span",3),O(5,VBa,2,0,"span",4),H()());a&2&&(B(2),If("",b.label,":"),B(2),D("ngForOf",b.componentPath),B(1),D("ngIf",b.isArchived))},dependencies:[wx,sx,pN,tN,US,qT],encapsulation:2});
var tT=function(){};tT.\u0275fac=function(a){return new (a||tT)};tT.\u0275mod=rc({type:tT});tT.\u0275inj=fc({imports:[[Mx,$N,eT,rT]]});
var uT=function(){this.warningChunks=[]};uT.prototype.ngOnInit=function(){var a=this.warningText,b=YRb(a,"EXTERNAL_PUBLIC")||YRb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};uT.prototype.isText=function(a){return void 0!==a.text};uT.\u0275fac=function(a){return new (a||uT)};
uT.\u0275cmp=v({type:uT,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"accessLevel"]],template:function(a,b){a&1&&(G(0,"div"),O(1,YBa,3,2,"span",0),H());a&2&&(B(1),D("ngForOf",b.warningChunks))},dependencies:[wx,sx,TS],encapsulation:2});
var ZRb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]),YRb=function(a,b){var c=ZRb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return 0<=a?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null};
var vT=function(a,b,c){this.data=a;this.documentationLinks=b;this.dialogRef=c;this.acknowledged=!0;this.warning=this.header="";this.isAllowed=this.isExternalMove=!1;this.callbacks={allow:function(){},cancel:function(){}};this.learnMore=eNb(b);this.header=a.response.warningHeader;this.warning=a.response.warning;if(this.isExternalMove=a.response.isExternalMove)this.acknowledged=!1;this.isAllowed=a.response.isAllowed;this.callbacks=a.callbacks};
vT.prototype.allow=function(){var a;null==(a=this.dialogRef)||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow()};vT.prototype.cancel=function(){var a;null==(a=this.dialogRef)||a.close();this.callbacks.cancel()};vT.\u0275fac=function(a){return new (a||vT)(F(FB),F(tP),F(AB))};
vT.\u0275cmp=v({type:vT,selectors:[["b-component-move-warning"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"component-move-warning-text"],[3,"warningText"],["target","_blank"],[4,"ngIf"],["mat-button","","mat-dialog-close","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","cdkFocusInitial","","class","gmat-button",3,"disabled","click",4,"ngIf"],["gmat-checkbox","",3,"ngModel","ngModelChange"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button",
3,"disabled","click"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"div",1)(3,"div",2),J(4,"b-component-move-warning-content",3),H(),J(5,"br"),G(6,"a",4),P(7,"Learn more"),H(),O(8,ZBa,5,1,"div",5),H(),G(9,"mat-dialog-actions")(10,"button",6),K("click",function(){return b.cancel()}),P(11," Cancel "),H(),O(12,$Ba,2,1,"button",7),H());a&2&&(B(1),Jf(b.header),B(3),D("warningText",b.warning),B(2),nf("href",b.learnMore,Kd),B(2),D("ngIf",b.isExternalMove&&b.isAllowed),B(4),D("ngIf",b.isAllowed))},
dependencies:[sx,by,hy,pB,LO,IB,JB,KB,LB,uT],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});
var wT=function(){};wT.\u0275fac=function(a){return new (a||wT)};wT.\u0275mod=rc({type:wT});wT.\u0275inj=fc({imports:[[Mx,wy,jG,PO,MB,dT]]});
var xT=function(a,b,c){this.componentActions=a;this.errorHandler=b;this.cdr=c};xT.prototype.showChildren=function(a){var b=this;a.showChildren=!0;a.children?this.cdr.detectChanges():this.componentActions.getChildren(a.componentId,this.includeArchived).then(function(c){a.children=c;0==c.length&&(a.noChildren=!0);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var yT=function(a,b){a.selectedId&&$Rb(a,a.selectedId);a.selectedId=b;if(a=aSb(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},zT=function(a){if(!a.selectedId||1>a.selectedId)return null;var b;return null!=(b=a.components.find(function(c){return c.componentId==a.selectedId}))?b:null},bSb=function(a){return!a.selectedId||1>a.selectedId?-1:a.components.findIndex(function(b){return b.componentId==a.selectedId})},$Rb=function(a,b){b&&(a=aSb(a.selectedId))&&a.setAttribute("aria-selected",
"false")},aSb=function(a){return a?document.getElementById("component-"+a):null},cSb=function(a){for(a=a.target;;){if(!a)return!1;if("A"===a.tagName)return!0;a=a.parentNode}};
new Promise(function(){});
var AT=function(a,b,c,d,e){BI.call(this);var f=this;this.componentApi=b;this.appEvents=e;this.components=a.get("components-second-level-cache")||a.create("components-second-level-cache",{capacity:25});this.subscriptions.add(this.appEvents.componentModified.subscribe(function(h){f.components.removeAll();d.invalidate(h)}));this.componentGetter=c.adapt(function(h){var k=Ba(h);Fa(k);return f.componentApi.query({id:k}).then(function(q){var w={};q=r(q);for(var y=q.next();!y.done;y=q.next())(y=y.value)&&
(w[y.componentId]=y);return h.map(function(E){return w[E]||null})})})};U(AT,BI);AT.\u0275dir=BI.\u0275dir;g=AT.prototype;g.get=function(a){var b=this.components.get(String(a));if(null!=b)return b;b=this.componentGetter.get(a).then(function(c){return null!=c?c:Promise.reject({data:{message:"Could not load details for component "+a}})});return this.components.put(String(a),b)};
g.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
g.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.getChildren=function(a,b){return this.componentApi.getChildren(a,void 0===b?!1:b)};
g.getUncached=function(a,b){b=void 0===b?!1:b;this.components.remove(String(a));var c={};b&&(c.checkEditAccess=!0);return this.componentApi.fetchComponent(a,c)};g.search=function(a,b){var c={query:a};if(void 0===b?0:b)c.includearchived=!0;return this.maybeAmendAndroidSearch(a,this.componentApi.query(c))};g.maybeAmendAndroidSearch=function(a,b){if(a.match(/^\s*android\s*$/i)){var c=psa();if(c)return Fo({publicComponent:this.get(c),rest:b}).then(function(d){return qsa(c,d.publicComponent,d.rest)})}return b};
g.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(String(f))});Fa(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var h={};f=r(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(h[k.componentId]=k);return h});var d={};c=r(c);for(var e=c.next();!e.done;d={$jscomp$loop$prop$id$1660:d.$jscomp$loop$prop$id$1660},e=c.next())d.$jscomp$loop$prop$id$1660=e.value,this.components.put(String(d.$jscomp$loop$prop$id$1660),a.then(function(f){return function(h){return h[f.$jscomp$loop$prop$id$1660]?
h[f.$jscomp$loop$prop$id$1660]:Promise.reject({data:{message:"Could not load details for component "+f.$jscomp$loop$prop$id$1660}})}}(d)))}};AT.\u0275fac=function(a){return new (a||AT)(t(mL),t(HFb),t(oI),t(bK),t(WK))};AT.\u0275prov=ec({token:AT,factory:AT.\u0275fac,providedIn:"root"});
var cCa=function(a){return{q:a}},BT=function(a,b,c,d){xT.call(this,a,c,d);this.paths=b;this.includeArchived=!1;this.childClosed=new Iw;this.selectedId=null};U(BT,xT);BT.prototype.ngOnInit=function(){};BT.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};BT.prototype.ngOnChanges=function(a){a.components&&dSb(this)};BT.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;yT(this,a);this.rootController.selectionChanged(this,a)};
var dSb=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){return a.selectNext()})};g=BT.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=bSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?($Rb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(yT(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else yT(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=bSb(this);0==a?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(yT(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=zT(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
g.showChildrenForSelectedId=function(){var a=zT(this);a&&this.showChildren(a)};g.setSelected=function(a,b){cSb(b)||(yT(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=zT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};BT.\u0275fac=function(a){return new (a||BT)(F(AT),F(dL),F(SK),F(uI,2))};
BT.\u0275cmp=v({type:BT,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},features:[Lf([uI]),gf,Ac],decls:2,vars:1,consts:[[1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click",4,"ngFor","ngForOf"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click"],[1,"component-row"],[1,"selected-indicator"],
[1,"component-tree-toggle"],["matTooltip","Show child components",3,"click",4,"ngIf"],["matTooltip","Hide child components",3,"click",4,"ngIf"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"accessLevel"],[1,"component-description"],[1,"component-buttons"],["class","gmat-button","mat-raised-button","",3,"href",4,"ngIf"],["class","child-component-list","role","group","aria-expanded","true",4,"ngIf"],["matTooltip","Show child components",3,"click"],["svgIcon",
"arrow-dropdown",2,"transform","rotate(-90deg)"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],[3,"href"],["mat-raised-button","",1,"gmat-button",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["class","component-no-children",4,"ngIf"],["class","bv2-view-loading",4,"ngIf"],[3,"components","parentComponent","rootController","includeArchived","childClosed",4,"ngIf"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent",
"rootController","includeArchived","childClosed"]],template:function(a,b){a&1&&(G(0,"ol",0),O(1,kCa,18,11,"li",1),H());a&2&&(B(1),D("ngForOf",b.components))},dependencies:[wx,sx,$E,qB,LE,mN,TS,BT],encapsulation:2});
var nCa=function(a){return{q:a}},CT=function(a,b,c,d,e,f){xT.call(this,a,d,f);this.paths=b;this.selectedId=null;this.includeArchived=!1;this.init=new Iw;this.subscriptions=new T.Subscription;this.destroyed$=new T.ReplaySubject(1);this.scrollArea=e.nativeElement.parentElement;this.registerKeys(c)};U(CT,xT);g=CT.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;(0,T.timer)(0).pipe(Ye(this.destroyed$)).subscribe(function(){eSb(a)&&!a.selectedId&&yT(a,a.components[0].componentId)});this.init.emit(this)};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};g.ngOnChanges=function(a){a.components&&fSb(this)};g.onSubtreeChildClosed=function(a){var b=this;yT(this,a);this.focusedController=void 0;(0,T.timer)(0).pipe(Ye(this.destroyed$)).subscribe(function(){DT(b)})};
g.fireSelectionEvent=function(a){var b=aSb(a);b&&b.click();DT(this,a)};var fSb=function(a){(0,T.timer)(0).pipe(Ye(a.destroyed$)).subscribe(function(){eSb(a)&&!a.selectedId&&yT(a,a.components[0].componentId)})};g=CT.prototype;g.selectionChanged=function(a,b){b&&DT(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&$Rb(b,b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){cSb(b)||(yT(this,a),this.selectionChanged(null),DT(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(a){var b=this;this.subscriptions.add(gJ(a,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next component",onPress:function(){b.selectNext()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous component",onPress:function(){b.selectPrevious()}},{keys:["RIGHT"],displayAs:"Right",description:"View the components children",onPress:function(){b.showChildrenForSelectedId()}},{keys:["LEFT"],displayAs:"Left",description:"Close the components children",
onPress:function(){b.closeSubtree()}},{keys:["SPACE","ENTER"],displayAs:"Space / Enter",description:"Toggle component children display",onPress:function(){b.toggleChildrenForSelectedId()}}]}))};g.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=zT(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=zT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(zT(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=bSb(this);eSb(this)&&1<=a&&(yT(this,this.components[a-1].componentId),DT(this))}};
g.selectNext=function(){if(eSb(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=bSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?($Rb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(yT(this,this.components[a+1].componentId),DT(this))}else yT(this,this.components[0].componentId),DT(this)};
var DT=function(a,b){var c=gSb(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=aSb(b||a.selectedId)){b=gSb(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},gSb=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},eSb=function(a){return!!(a.components&&0<a.components.length)};CT.\u0275fac=function(a){return new (a||CT)(F(AT),F(dL),F(fJ),F(SK),F(nd),F(uI,2))};
CT.\u0275cmp=v({type:CT,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},features:[Lf([uI]),gf,Ac],decls:2,vars:1,consts:[["role","tree",1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click",4,"ngFor","ngForOf"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click"],[1,"component-row"],[1,"selected-indicator"],[1,"component-tree-toggle"],["matTooltip","Show child components",
3,"click",4,"ngIf"],["matTooltip","Hide child components",3,"click",4,"ngIf"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"accessLevel"],[1,"component-description"],[1,"component-buttons"],["class","gmat-button","mat-raised-button","",3,"href",4,"ngIf"],["class","child-component-list","role","group","aria-expanded","true",4,"ngIf"],["matTooltip","Show child components",3,"click"],["svgIcon","arrow-dropdown",2,"transform","rotate(-90deg)"],["matTooltip","Hide child components",
3,"click"],["svgIcon","arrow-dropdown"],[3,"href"],["mat-raised-button","",1,"gmat-button",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["class","component-no-children",4,"ngIf"],["class","bv2-view-loading",4,"ngIf"],[3,"components","parentComponent","rootController","includeArchived","childClosed",4,"ngIf"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived","childClosed"]],template:function(a,b){a&
1&&(G(0,"ol",0),O(1,vCa,18,11,"li",1),H());a&2&&(B(1),D("ngForOf",b.components))},dependencies:[wx,sx,$E,qB,LE,mN,TS,BT],encapsulation:2});
var ET=function(){};ET.\u0275fac=function(a){return new (a||ET)};ET.\u0275mod=rc({type:ET});ET.\u0275inj=fc({imports:[[Mx,bH,jG,dF,YN,dT]]});
var hSb=new jd("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}});
var iSb=["thumbContainer"],jSb=["toggleBar"],kSb=["input"],lSb=function(a){return{enterDuration:a}},mSb=0,nSb={provide:ux,useExisting:ac(function(){return FT}),multi:!0},oSb=function(a,b){this.source=a;this.checked=b},pSb=oi(li(mi(ni(function(a){this._elementRef=a})))),FT=function(a,b,c,d,e,f){a=pSb.call(this,a)||this;a._focusMonitor=b;a._changeDetectorRef=c;a.defaults=e;a._onChange=function(){};a._onTouched=function(){};a._uniqueId="mat-slide-toggle-"+ ++mSb;a._required=!1;a._checked=!1;a.name=null;
a.id=a._uniqueId;a.labelPosition="after";a.ariaLabel=null;a.ariaLabelledby=null;a.change=new Iw;a.toggleChange=new Iw;a.tabIndex=parseInt(d)||0;a.color=a.defaultColor=e.color||"accent";a._noopAnimations="NoopAnimations"===f;return a};U(FT,pSb);g=FT.prototype;g.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b||Promise.resolve().then(function(){return a._onTouched()})})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};
g._onChangeEvent=function(a){a.stopPropagation();this.toggleChange.emit();this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())};g._onInputClick=function(a){a.stopPropagation()};g.writeValue=function(a){this.checked=!!a};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};
g.focus=function(a,b){b?Jz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};g._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(new oSb(this,this.checked))};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
ki.Object.defineProperties(FT.prototype,{required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Rg(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=Rg(a);this._changeDetectorRef.markForCheck()}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});FT.\u0275fac=function(a){return new (a||FT)(F(nd),F(Iz),F(lx),Xc("tabindex"),F(hSb),F(Wv,8))};
FT.\u0275cmp=v({type:FT,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&(Zf(iSb,5),Zf(jSb,5),Zf(kSb,5));if(a&2){var c;Yf(c=ag())&&(b._thumbEl=c.first);Yf(c=ag())&&(b._thumbBarEl=c.first);Yf(c=ag())&&(b._inputElement=c.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Af("id",b.id),nf("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),sf("mat-checked",b.checked)("mat-disabled",b.disabled)("mat-slide-toggle-label-before","before"==
b.labelPosition)("_mat-animation-noopable",b._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:[Lf([nSb]),gf],ngContentSelectors:["*"],
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(a,b){a&1&&(Cf(),G(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),K("change",function(e){return b._onChangeEvent(e)})("click",function(e){return b._onInputClick(e)}),H(),G(6,"span",6,7),J(8,"span",8),G(9,"span",9),J(10,"span",10),H()()(),G(11,"span",11,12),K("cdkObserveContent",function(){return b._onLabelTextChange()}),
G(13,"span",13),P(14,"\u00a0"),H(),Df(15),H()());if(a&2){var c=Hf(1),d=Hf(12);nf("for",b.inputId);B(2);sf("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim());B(2);D("id",b.inputId)("required",b.required)("tabIndex",b.tabIndex)("checked",b.checked)("disabled",b.disabled);nf("name",b.name)("aria-checked",b.checked)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);B(5);D("matRippleTrigger",c)("matRippleDisabled",b.disableRipple||
b.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Nf(18,lSb,b._noopAnimations?0:150))}},dependencies:[iB,Oz],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;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});
var GT=function(){};GT.\u0275fac=function(a){return new (a||GT)};GT.\u0275mod=rc({type:GT});GT.\u0275inj=fc({});var HT=function(){};HT.\u0275fac=function(a){return new (a||HT)};HT.\u0275mod=rc({type:HT});HT.\u0275inj=fc({imports:[[GT,mB,VA,Pz],GT,VA]});
var qSb=0,IT=function(){this.id="b-slide-toggle-"+ ++qSb;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new Iw};IT.\u0275fac=function(a){return new (a||IT)};
IT.\u0275cmp=v({type:IT,selectors:[["b-slide-toggle"]],hostAttrs:[1,"vertical-centered"],inputs:{id:"id",label:"label",ariaLabel:["aria-label","ariaLabel"],labelPosition:"labelPosition",model:"model",tooltip:"tooltip",disabled:"disabled"},outputs:{modelChange:"modelChange"},decls:2,vars:7,consts:[[3,"id","disabled","checked","aria-label","matTooltip","labelPosition","change"]],template:function(a,b){a&1&&(G(0,"mat-slide-toggle",0),K("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
P(1),H());if(a&2){var c;D("id",b.id)("disabled",b.disabled)("checked",b.model)("aria-label",b.ariaLabel||b.label)("matTooltip",null!==(c=b.tooltip)&&void 0!==c?c:"")("labelPosition",b.label?b.labelPosition:"after");B(1);Jf(b.label)}},dependencies:[FT,$E],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var JT=function(){};JT.\u0275fac=function(a){return new (a||JT)};JT.\u0275mod=rc({type:JT});JT.\u0275inj=fc({imports:[[HT,bH]]});
var KT=function(a){this.$log=a;this.accessPolicyPrincipalToString=In;this.stringToAccessPolicyPrincipal=wCa},LT=function(){return{inheritance:"INHERITANCE_UNSPECIFIED",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},MT=function(a){return{inheritance:a.inheritance||"INHERITANCE_UNSPECIFIED",admins:Ho(a.admins),editors:Ho(a.editors),appenders:Ho(a.appenders),readers:Ho(a.readers),restrictedReaders:Ho(a.restrictedReaders),
restrictedPlusReaders:Ho(a.restrictedPlusReaders),inheritedAdmins:Ho(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},NT=function(a){return{inheritance:a.inheritance,admins:Io(a.admins),editors:Io(a.editors),appenders:Io(a.appenders),readers:Io(a.readers),restrictedReaders:Io(a.restrictedReaders),restrictedPlusReaders:Io(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}};KT.\u0275fac=function(a){return new (a||KT)(t(RK))};KT.\u0275prov=ec({token:KT,factory:KT.\u0275fac,providedIn:"root"});
var rSb=new RegExp("4:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");
var OT=function(a){Z.call(this,a)};U(OT,Z);OT.prototype.getSocialApplication=function(){return p(this,3)};OT.prototype.getAffinityType=function(){return V(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};OT.prototype.setAffinityType=function(a){return l(this,12,a)};OT.prototype.toObject=function(){return sSb(this)};
var sSb=function(a){if(null!=a)return{gapiApiKey:n(p(a,1)),gapiApiKeyTest:n(p(a,2)),socialApplication:n(p(a,3)),papiClientId:n(p(a,4)),papiClientName:n(p(a,5)),papiClientVersion:n(p(a,6)),requestTimeoutMillis:dj(a,8,3E4),includeDomainAddressBook:n(Ro(a,10)),includeDomainGroups:n(Ro(a,11)),affinityType:V(a,12,"CONTACT_STORE_DEFAULT_AFFINITY"),autocompletePageSize:dj(a,13,15),rankedTargetsPageSize:dj(a,14,500),peopleContainerMask:V(a,15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),peopleFieldMask:V(a,
16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),includeOnlyNames:W(a,17,!1)}};
var PT=function(a){Z.call(this,a,-1,tSb)};U(PT,Z);PT.prototype.getExperimentIdsList=function(){return jb(this,4)};PT.prototype.setExperimentIdsList=function(a){return hl(this,4,a)};var tSb=[4];PT.prototype.toObject=function(){return uSb(this)};var uSb=function(a){if(null!=a)return{enablePapiClearcutLogging:W(a,1,!0),enableOzClearcutLogging:W(a,2,!0),enableApiClearcutLogging:W(a,3,!0),experimentIdsList:n(jb(a,4)),enablePapi:W(a,5,!0),enableCacheFiltering:W(a,6,!0)}};
var vSb=function(a){Z.call(this,a)};U(vSb,Z);g=vSb.prototype;g.getClientInfo=function(){return m(this,OT,1)};g.getMutableClientInfo=function(){return wu(this,OT,1)};g.setClientInfo=function(a){Ab(this,1,a)};g.getExperiments=function(){return m(this,PT,2)};g.setExperiments=function(a){Ab(this,2,a)};g.hasExperiments=function(){return cj(this,2)};g.toObject=function(){var a=null!=this?{clientInfo:sSb(this.getClientInfo()),experiments:uSb(this.getExperiments())}:void 0;return a};
var wSb=function(a){Z.call(this,a)};U(wSb,Z);g=wSb.prototype;g.getDelegatorId=function(){return p(this,2)};g.getEnvType=function(){return p(this,5)};g.setEnvType=function(a){l(this,5,a)};g.getCacheSize=function(){return p(this,7)};g.setCacheSize=function(a){l(this,7,a)};g.hasCacheSize=function(){return cj(this,7)};g.toObject=function(){var a=null!=this?{delegatorId:n(p(this,2)),envType:n(p(this,5)),releaseEnvType:n(p(this,6)),cacheSize:n(p(this,7))}:void 0;return a};
var zCa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,xCa=/([#].*?&|[#])authuser=([^&#]*)\b/,yCa=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;
var QT=function(a){this.config_=a;this.userInfo_=new wSb;this.onAuthError_=this.gapiClientThenable_=null};QT.prototype.getClientInfo=function(){return this.config_.getClientInfo()};QT.prototype.getExperiments=function(){return this.config_.getExperiments()};QT.prototype.getUserInfo=function(){return this.userInfo_};
var XCa=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=DCa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_},xSb=function(a,b){b&&(a.gapiClientThenable_=b.then(function(c){return c},function(){return DCa(10,5E3).then(function(c){return c.client})}))};QT.prototype.getAuthErrorHandler=function(){return this.onAuthError_};QT.prototype.setAuthErrorHandler=function(a){this.onAuthError_=a};
var ySb=function(){};
var RT=[];RT.push=function(){throw Error("Od");};var ST={cancel:function(){},isPending:function(){return!1}};
var TT=function(a){this.response_=a||function(){};this.timer_=qD(this.onTimer_,0,this);this.addressBookId_=""};g=TT.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){rD(this.timer_);this.timer_=null};g.isPending=function(){return!!this.timer_};g.onTimer_=function(){this.timer_=null;this.response_()};g.setQuery=function(a){this.query_=a};g.getQuery=function(){return this.query_};
var zSb=new Map([["personal",2],["domain",4],["pcab",3]]);
var No=function(a){Z.call(this,a)};U(No,Z);g=No.prototype;g.getEventType=function(){return X(this,1,0)};g.setEventType=function(a){return l(this,1,a)};g.getApiType=function(){return X(this,2,0)};g.setApiType=function(a){return l(this,2,a)};g.getCacheStatus=function(){return X(this,3,0)};g.setCacheStatus=function(a){return l(this,3,a)};g.getAddressBook=function(){return X(this,4,0)};g.setAddressBook=function(a){return l(this,4,a)};g.getRpcType=function(){return X(this,5,0)};
g.setRpcType=function(a){return l(this,5,a)};g.getLookupType=function(){return X(this,6,0)};g.setLookupType=function(a){return l(this,6,a)};g.getToken=function(){return V(this,7,"")};g.setToken=function(a){return l(this,7,a)};g.toObject=function(){var a=null!=this?{eventType:X(this,1,0),apiType:X(this,2,0),cacheStatus:X(this,3,0),addressBook:X(this,4,0),rpcType:X(this,5,0),lookupType:X(this,6,0),token:V(this,7,""),isCountRecorded:W(this,8,!1),isStatusRecorded:W(this,9,!1)}:void 0;return a};
var UT=function(a){Z.call(this,a)};U(UT,Z);UT.prototype.setDevice=function(a){return l(this,1,a)};UT.prototype.getApplication=function(){return p(this,2)};UT.prototype.setApplication=function(a){return l(this,2,a)};UT.prototype.toObject=function(){return ASb(this)};var ASb=function(a){if(null!=a)return{device:n(p(a,1)),application:n(p(a,2)),platform:n(p(a,3)),trafficType:n(p(a,4))}};
var CSb=function(a){Z.call(this,a,-1,BSb)};U(CSb,Z);g=CSb.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getMetadata=function(){return m(this,VT,4)};g.setMetadata=function(a){Ab(this,4,a)};g.getClientInterface=function(){return m(this,WT,5)};g.setClientInterface=function(a){return Ab(this,5,a)};var XT=function(a){Z.call(this,a)};U(XT,Z);XT.prototype.getLoggingId=function(){return p(this,1)};XT.prototype.setLoggingId=function(a){l(this,1,a)};
XT.prototype.getMetadata=function(){return m(this,YT,3)};XT.prototype.setMetadata=function(a){Ab(this,3,a)};var ZT=function(a){Z.call(this,a)};U(ZT,Z);g=ZT.prototype;g.getType=function(){return p(this,5)};g.setType=function(a){return l(this,5,a)};g.hasType=function(){return cj(this,5)};g.getEmail=function(){return p(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return cj(this,1)};g.getPhone=function(){return p(this,2)};g.setPhone=function(a){return l(this,2,a)};
g.hasPhone=function(){return cj(this,2)};g.getObfuscatedGaiaId=function(){return p(this,3)};g.setObfuscatedGaiaId=function(a){l(this,3,a)};g.getContactId=function(){return p(this,4)};g.setContactId=function(a){l(this,4,a)};g.getGroupId=function(){return p(this,6)};g.setGroupId=function(a){l(this,6,a)};g.hasGroupId=function(){return cj(this,6)};var YT=function(a){Z.call(this,a,-1,DSb)};U(YT,Z);g=YT.prototype;g.getPosition=function(){return m(this,$T,1)};g.setPosition=function(a){return Ab(this,1,a)};
g.getProfile=function(){return m(this,aU,2)};g.getIsPlaceholder=function(){return Ro(this,7)};g.setIsPlaceholder=function(a){l(this,7,a)};var $T=function(a){Z.call(this,a)};U($T,Z);g=$T.prototype;g.getColumn=function(){return p(this,2)};g.setColumn=function(a){return l(this,2,a)};g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return cj(this,3)};var aU=function(a){Z.call(this,a)};U(aU,Z);aU.prototype.getName=function(){return p(this,1)};
aU.prototype.setName=function(a){return l(this,1,a)};aU.prototype.hasName=function(){return cj(this,1)};var ESb=function(a){Z.call(this,a)};U(ESb,Z);var VT=function(a){Z.call(this,a)};U(VT,Z);VT.prototype.getAffinityVersion=function(){return p(this,2)};VT.prototype.setAffinityVersion=function(a){l(this,2,a)};var bU=function(a){Z.call(this,a)};U(bU,Z);g=bU.prototype;g.getQueryLength=function(){return p(this,1)};g.setQueryLength=function(a){l(this,1,a)};g.hasQueryLength=function(){return cj(this,1)};
g.getQuery=function(){return p(this,2)};g.setQuery=function(a){return l(this,2,a)};g.clearQuery=function(){mb(this,2)};g.hasQuery=function(){return cj(this,2)};var cU=function(a){Z.call(this,a)};U(cU,Z);cU.prototype.setLatencyUsec=function(a){l(this,1,a)};var FSb=function(a){Z.call(this,a)};U(FSb,Z);var GSb=function(a){Z.call(this,a)};U(GSb,Z);var dU=function(a){Z.call(this,a)};U(dU,Z);g=dU.prototype;g.getQueryId=function(){return p(this,1)};g.getInstanceId=function(){return p(this,4)};
g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){mb(this,4)};g.hasInstanceId=function(){return cj(this,4)};g.getAffinityVersion=function(){return p(this,5)};g.setAffinityVersion=function(a){l(this,5,a)};var HSb=function(a){Z.call(this,a)};U(HSb,Z);var ISb=function(a){Z.call(this,a)};U(ISb,Z);var eU=function(a){Z.call(this,a)};U(eU,Z);eU.prototype.getExistingSelectionsCount=function(){return p(this,1)};eU.prototype.setExistingSelectionsCount=function(a){l(this,1,a)};
eU.prototype.getPosition=function(){return m(this,$T,2)};eU.prototype.setPosition=function(a){return Ab(this,2,a)};var JSb=function(a){Z.call(this,a)};U(JSb,Z);var WT=function(a){Z.call(this,a,-1,KSb)};U(WT,Z);g=WT.prototype;g.getEventSource=function(){return p(this,2)};g.setEventSource=function(a){l(this,2,a)};g.getSocialClient=function(){return m(this,UT,3)};g.setSocialClient=function(a){return Ab(this,3,a)};g.setVersionName=function(a){return l(this,5,a)};
g.getBaselineCl=function(){return p(this,7)};g.setBaselineCl=function(a){return l(this,7,a)};g.hasBaselineCl=function(){return cj(this,7)};g.getClientAgent=function(){return p(this,9)};g.setClientAgent=function(a){return l(this,9,a)};g.getPeoplekitEntryPoint=function(){return p(this,11)};g.setPeoplekitEntryPoint=function(a){return l(this,11,a)};g.getEnvironment=function(){return p(this,13)};g.setEnvironment=function(a){return l(this,13,a)};var BSb=[2];
CSb.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),entityList:Bb(rb(this,XT,2),LSb),scoringInfo:MSb(m(this,ESb,3)),metadata:NSb(this.getMetadata()),clientInterface:OSb(this.getClientInterface()),eventTimestampUsec:n(p(this,6))}:void 0;return a};XT.prototype.toObject=function(){return LSb(void 0,this)};var LSb=function(a,b){if(null!=b){var c={loggingId:n(p(b,1)),entityId:PSb(a,m(b,ZT,4)),metadata:QSb(a,b.getMetadata())};a&&(c.$jspbMessageInstance=b);return c}};
ZT.prototype.toObject=function(){return PSb(void 0,this)};var PSb=function(a,b){if(null!=b){var c={type:n(p(b,5)),email:n(p(b,1)),phone:n(p(b,2)),obfuscatedGaiaId:n(p(b,3)),contactId:n(p(b,4)),groupId:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}},DSb=[4,3];YT.prototype.toObject=function(){return QSb(void 0,this)};
var QSb=function(a,b){if(null!=b){var c={position:RSb(a,b.getPosition()),additionalPositionList:Bb(rb(b,$T,4),RSb,a),profile:SSb(a,b.getProfile()),provenanceList:n(jb(b,3)),hasAvatar:n(Ro(b,5)),isBoosted:n(Ro(b,6)),isPlaceholder:n(Ro(b,7)),smartAddressEntityMetadata:TSb(a,m(b,eU,8)),uiSurface:n(p(b,9))};a&&(c.$jspbMessageInstance=b);return c}};$T.prototype.toObject=function(){return RSb(void 0,this)};
var RSb=function(a,b){if(null!=b){var c={row:n(p(b,1)),column:n(p(b,2)),type:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};aU.prototype.toObject=function(){return SSb(void 0,this)};var SSb=function(a,b){if(null!=b){var c={name:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};ESb.prototype.toObject=function(){return MSb(this)};var MSb=function(a){if(null!=a)return{scoreVersion:n(p(a,1)),sessionId:n(p(a,2))}};VT.prototype.toObject=function(){return NSb(this)};
var NSb=function(a){if(null!=a)return{autocompleteMetadata:USb(m(a,bU,1)),affinityVersion:n(p(a,2)),showMetadata:VSb(m(a,cU,6)),queryErrorMetadata:WSb(m(a,FSb,7)),autocompleteClientMetadata:XSb(m(a,GSb,3)),reactrMetadata:YSb(m(a,HSb,4)),apdlMetadata:ZSb(m(a,ISb,5)),phoneRegionHints:$Sb(m(a,JSb,8))}};bU.prototype.toObject=function(){return USb(this)};var USb=function(a){if(null!=a)return{queryLength:n(p(a,1)),query:n(p(a,2)),sessions:aTb(m(a,dU,3))}};cU.prototype.toObject=function(){return VSb(this)};
var VSb=function(a){if(null!=a)return{latencyUsec:n(p(a,1)),dataLatencyUsec:n(p(a,2))}};FSb.prototype.toObject=function(){return WSb(this)};var WSb=function(a){if(null!=a)return{canonicalCode:n(p(a,1))}};GSb.prototype.toObject=function(){return XSb(this)};var XSb=function(a){if(null!=a)return{hadValidCache:n(Ro(a,1)),timeSinceCacheRefreshUsec:n(p(a,2)),cacheRefreshUsec:n(p(a,3)),hadDeviceContactPermissions:n(Ro(a,4))}};dU.prototype.toObject=function(){return aTb(this)};
var aTb=function(a){if(null!=a)return{queryId:n(p(a,1)),selectionId:n(p(a,2)),submissionId:n(p(a,3)),instanceId:n(p(a,4)),affinityVersion:n(p(a,5))}};HSb.prototype.toObject=function(){return YSb(this)};var YSb=function(a){if(null!=a)return{attributedSharingEnabled:n(Ro(a,1)),sharePanelVersion:n(p(a,2))}};ISb.prototype.toObject=function(){return ZSb(this)};var ZSb=function(a){if(null!=a)return{applicationPackageName:n(p(a,1)),widgetName:n(p(a,2))}};
eU.prototype.toObject=function(){return TSb(void 0,this)};var TSb=function(a,b){if(null!=b){var c={existingSelectionsCount:n(p(b,1)),position:RSb(a,b.getPosition())};a&&(c.$jspbMessageInstance=b);return c}};JSb.prototype.toObject=function(){return $Sb(this)};var $Sb=function(a){if(null!=a)return{mobileNetworkCountry:n(p(a,1)),simCountry:n(p(a,2)),localeCountry:n(p(a,3))}},KSb=[6];WT.prototype.toObject=function(){return OSb(this)};
var OSb=function(a){if(null!=a)return{eventSource:n(p(a,2)),socialClient:ASb(a.getSocialClient()),versionName:n(p(a,5)),applicationIdentifies:n(p(a,10)),baselineCl:n(p(a,7)),enabledExperimentsFlagsList:n(jb(a,6)),sendkitEntryPoint:n(p(a,8)),clientAgent:n(p(a,9)),peoplekitEntryPoint:n(p(a,11)),environment:n(p(a,13))}};
var bTb=function(a){Z.call(this,a)};U(bTb,Z);g=bTb.prototype;g.getApiType=function(){return p(this,1)};g.setApiType=function(a){return l(this,1,a)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){l(this,2,a)};g.hasItemCount=function(){return cj(this,2)};g.toObject=function(){return cTb(this)};var cTb=function(a){if(null!=a)return{apiType:n(p(a,1)),itemCount:n(p(a,2))}};
var dTb=function(a){Z.call(this,a)};U(dTb,Z);g=dTb.prototype;g.getApiType=function(){return p(this,1)};g.setApiType=function(a){return l(this,1,a)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){l(this,2,a)};g.hasItemCount=function(){return cj(this,2)};g.getStatus=function(){return X(this,4,2)};g.setStatus=function(a){return l(this,4,a)};g.hasStatus=function(){return cj(this,4)};g.setTotalUsec=function(a){return l(this,5,a)};g.setBlockedUsec=function(a){return l(this,6,a)};
g.setNetworkUsec=function(a){l(this,7,a)};g.getCacheStatus=function(){return p(this,8)};g.setCacheStatus=function(a){return l(this,8,a)};g.getAddressBook=function(){return p(this,9)};g.setAddressBook=function(a){return l(this,9,a)};g.toObject=function(){return eTb(this)};var eTb=function(a){if(null!=a)return{apiType:n(p(a,1)),itemCount:n(p(a,2)),notFoundCount:n(p(a,3)),status:X(a,4,2),totalUsec:n(p(a,5)),blockedUsec:n(p(a,6)),networkUsec:n(p(a,7)),cacheStatus:n(p(a,8)),addressBook:n(p(a,9))}};
var fTb=function(a){Z.call(this,a)};U(fTb,Z);g=fTb.prototype;g.getStatus=function(){return X(this,1,2)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return cj(this,1)};g.setTotalUsec=function(a){return l(this,2,a)};g.toObject=function(){return gTb(this)};var gTb=function(a){if(null!=a)return{status:X(a,1,2),totalUsec:n(p(a,2)),scriptLoadUsec:n(p(a,3)),papiLoadUsec:n(p(a,4)),transportType:n(p(a,5))}};
var hTb=function(a){Z.call(this,a)};U(hTb,Z);g=hTb.prototype;g.getRpcType=function(){return p(this,1)};g.setRpcType=function(a){return l(this,1,a)};g.getLookupType=function(){return p(this,2)};g.setLookupType=function(a){return l(this,2,a)};g.toObject=function(){return iTb(this)};var iTb=function(a){if(null!=a)return{rpcType:n(p(a,1)),lookupType:n(p(a,2))}};
var jTb=function(a){Z.call(this,a)};U(jTb,Z);g=jTb.prototype;g.getRpcType=function(){return p(this,1)};g.setRpcType=function(a){return l(this,1,a)};g.getLookupType=function(){return p(this,2)};g.setLookupType=function(a){return l(this,2,a)};g.getStatus=function(){return X(this,3,2)};g.setStatus=function(a){return l(this,3,a)};g.hasStatus=function(){return cj(this,3)};g.setTotalUsec=function(a){return l(this,4,a)};g.setBlockedUsec=function(a){return l(this,5,a)};
g.setNetworkUsec=function(a){l(this,6,a)};g.toObject=function(){return kTb(this)};var kTb=function(a){if(null!=a)return{rpcType:n(p(a,1)),lookupType:n(p(a,2)),status:X(a,3,2),totalUsec:n(p(a,4)),blockedUsec:n(p(a,5)),networkUsec:n(p(a,6))}};
var lTb=function(a){Z.call(this,a)};U(lTb,Z);g=lTb.prototype;g.getEnvType=function(){return p(this,1)};g.setEnvType=function(a){l(this,1,a)};g.getCacheSize=function(){return p(this,2)};g.setCacheSize=function(a){l(this,2,a)};g.hasCacheSize=function(){return cj(this,2)};g.toObject=function(){return mTb(this)};var mTb=function(a){if(null!=a)return{envType:n(p(a,1)),cacheSize:n(p(a,2)),cacheSizeBucket:n(p(a,3)),gmailDelegation:n(Ro(a,4))}};
var fU=function(a){Z.call(this,a)};U(fU,Z);g=fU.prototype;g.getClientInterface=function(){return m(this,WT,1)};g.setClientInterface=function(a){return Ab(this,1,a)};g.getSource=function(){return p(this,2)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return cj(this,2)};g.getEventType=function(){return p(this,3)};g.setEventType=function(a){return l(this,3,a)};g.getRpcRequest=function(){return wl(this,hTb,5,gU)};g.setRpcRequest=function(a){return xu(this,5,gU,a)};
g.getRpcResponse=function(){return wl(this,jTb,6,gU)};g.setRpcResponse=function(a){return xu(this,6,gU,a)};g.getApiCall=function(){return wl(this,bTb,7,gU)};g.setApiCall=function(a){return xu(this,7,gU,a)};g.getApiResult=function(){return wl(this,dTb,8,gU)};g.setApiResult=function(a){return xu(this,8,gU,a)};g.getUserInfo=function(){return m(this,lTb,9)};g.setUserInfo=function(a){return Ab(this,9,a)};g.hasUserInfo=function(){return cj(this,9)};var gU=[4,5,6,7,8];
fU.prototype.toObject=function(){var a=null!=this?{clientInterface:OSb(this.getClientInterface()),source:n(p(this,2)),eventType:n(p(this,3)),gapiInit:gTb(wl(this,fTb,4,gU)),rpcRequest:iTb(this.getRpcRequest()),rpcResponse:kTb(this.getRpcResponse()),apiCall:cTb(this.getApiCall()),apiResult:eTb(this.getApiResult()),userInfo:mTb(this.getUserInfo())}:void 0;return a};
var nTb=new Map([[200,0],[400,3],[401,16],[403,7],[404,5],[409,10],[416,11],[429,8],[499,1],[-1,1],[504,4],[501,12],[503,14]]),oTb=new Map([[0,0],[1,11],[2,1],[3,3],[4,10],[5,8],[6,7],[7,2],[16,2],[8,6],[9,7],[10,11],[11,9],[12,5],[13,9],[14,4],[15,6]]),pTb=new Map([[0,0],[11,1],[1,2],[3,3],[10,4],[8,5],[2,16],[6,8],[7,9],[5,12],[9,13],[4,14]]),qTb=function(a){return oTb.has(a)?oTb.get(a):1},rTb=function(a){return pTb.has(a)?pTb.get(a):2};
var sTb=function(a){this.request_=a;this.errorCode_=0},tTb=function(a,b){b=new sTb(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=sTb.prototype;g.hasChanges=function(){return this.mutateResponse_&&this.mutateResponse_.getOperation()?this.mutateResponse_.getOperation().hasChanges():!1};g.getError=function(){return this.errorCode_};g.getErrorCode=function(){return this.errorCode_};g.getQuery=function(){return this.request_.getQuery()};g.getConfiguration=function(){return this.queryResponse_.getConfiguration()};
g.getUserData=function(){return this.queryResponse_?this.queryResponse_.getUserData():null};
var hU=function(a){this.map_=new iL;this.size=0;a&&this.addAll(a)},uTb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+Ea(a):b.charAt(0)+a};g=hU.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(uTb(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=CG(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.setSizeInternal_(this.map_.size)};g.removeAll=function(a){a=CG(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.setSizeInternal_(this.map_.size)};
g.delete=function(a){a=this.map_.remove(uTb(a));this.setSizeInternal_(this.map_.size);return a};g.remove=function(a){return this.delete(a)};g.clear=function(){this.map_.clear();this.setSizeInternal_(0)};g.isEmpty=function(){return 0===this.map_.size};g.has=function(a){return this.map_.containsKey(uTb(a))};g.contains=function(a){return this.map_.containsKey(uTb(a))};g.intersection=function(a){var b=new hU;a=CG(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};
g.getValues=function(){return this.map_.getValues()};g.values=function(){return this.map_.values()};g.clone=function(){return new hU(this)};g.equals=function(a){return this.getCount()==ozb(a)&&vTb(this,a)};
var vTb=function(a,b){var c=ozb(b);if(a.getCount()>c)return!1;!(b instanceof hU)&&5<c&&(b=new hU(b));return rzb(a,function(d){var e=b;if(e.contains&&"function"==typeof e.contains)d=e.contains(d);else if(e.containsValue&&"function"==typeof e.containsValue)d=e.containsValue(d);else if(Ca(e)||"string"===typeof e)d=sa(e,d);else a:{for(var f in e)if(e[f]==d){d=!0;break a}d=!1}return d})};hU.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};hU.prototype[Symbol.iterator]=function(){return this.values()};
hU.prototype.setSizeInternal_=function(a){this.size=a};
var iU=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new hU(c);this.extraFields_=[]};iU.prototype.toString=function(){var a=this.name_?"g"+this.name_:this.fields_.join(",");this.name_&&this.extraFields_.length&&(a+=","+this.extraFields_.join(","));return a};var wTb=function(a){a.fieldSet_||(a.fieldSet_=new hU(a.fields_));return a.fieldSet_};
iU.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new hU);if(this.doesntContain_.has(a))return!1;var b=wTb(this),c=wTb(a);if(rzb(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var xTb=new iU(["6","12"],"1"),yTb=new iU("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[xTb]);new iU("6 12 16 17 18 1a".split(" "),"3",[xTb]);
new iU("2 4 2a 5 6 9 b 1c d e f 11 12 29 13 14 15 1d 22 16 17 19 28 1e 1b".split(" "),"2",[xTb,yTb]);new iU([]);
var zTb={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};
var ATb=function(a,b,c){DC.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};U(ATb,DC);g=ATb.prototype;g.getGroup=function(){return this.group};g.setGroup=function(a){this.group=a};g.isSuccess=function(){return this.getState().isSuccess()};g.setSuccess=function(a){this.getState().setSuccess(a)};g.getMaxNumRetries=function(){this.getState().getMaxNumRetries()};g.setMaxNumRetries=function(a){this.getState().setMaxNumRetries(a)};g.reset=function(){this.getState().reset()};
g.getNumTriesLeft=function(){return this.getState().getNumTriesLeft()};g.setRunState=function(a){this.getState().setRunState(a)};g.setRunTime=function(a){this.getState().setRunTime(a)};g.setRunTimerId=function(a){this.getState().setRunTimerId(a)};g.incNumSuccesses=function(){this.getState().incNumSuccesses()};g.incNumFailures=function(){this.getState().incNumFailures()};g.incNumExecutions=function(){this.getState().incNumExecutions()};g.decNumTriesLeft=function(){this.getState().decNumTriesLeft()};
g.isPending=function(){return this.getState().isPending()};g.cancel=function(){this.scheduler.cancel(this.getState())};g.getState=function(){return this.scheduler.getState(this.group)};g.run=function(){this.incNumExecutions();this.runFunction_(this)};g.isDone=function(a){return this.scheduler.isDone(this,a)};
var BTb=function(a){DC.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};U(BTb,DC);g=BTb.prototype;g.reset=function(){this.numTriesLeft=this.maxNumRetries_;this.success=!1;this.runState=1;this.runTimerId=this.runTime=-1};g.isSuccess=function(){return this.success};g.setSuccess=function(a){this.success=a};g.getMaxNumRetries=function(){return this.maxNumRetries_};g.setRunState=function(a){this.runState=a};g.setRunTime=function(a){this.runTime=a};
g.setRunTimerId=function(a){this.runTimerId=a};g.setMaxNumRetries=function(a){this.maxNumRetries_=a};g.getNumTriesLeft=function(){return this.numTriesLeft};g.decNumTriesLeft=function(){--this.numTriesLeft};g.incNumSuccesses=function(){};g.incNumFailures=function(){};g.incNumExecutions=function(){};g.isPending=function(){return!(4==this.runState||5==this.runState)};g.disposeInternal=function(){DC.prototype.disposeInternal.call(this);this.scheduler=null};
var CTb=function(){DC.call(this);this.states={};this.currentGroup=1};U(CTb,DC);CTb.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new BTb(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();DTb(a,b,e);break;case 6:DTb(a,b,e);break;case 4:d&&(f.reset(),DTb(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),DTb(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var DTb=function(a,b,c){0==b?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(qD(a.run,b,a)))};g=CTb.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){DC.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);ui(b)}this.states={}};g.cancel=function(a){2==a.runState&&rD(a.runTimerId)};
g.isDone=function(a,b){b?a.incNumSuccesses():a.incNumFailures();a.setSuccess(b);a.decNumTriesLeft();if(!b&&0<a.getNumTriesLeft())return a.setRunState(6),this.schedule(a,Math.max(100,Math.round(45E3*Math.random()))),!1;a.setRunState(b?4:5);return!0};
var ETb={SOMETHING_CHANGED:"a",ERROR:"b"},FTb=function(a,b){FC.call(this,a&&a[0].getError()?"b":"a");this.source_=b||"d"};U(FTb,FC);FTb.prototype.getSource=function(){return this.source_};
var GTb=function(a,b){this.fn_=a;this.handler_=b};GTb.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};GTb.prototype.abort=function(){this.handler_=this.fn_=null};IC(function(a){GTb.prototype.execute=a(GTb.prototype.execute)});
var HTb=[];
var jU=function(a,b){var c=c||[];this.serviceId_=a;this.moduleId_=b||null;this.dependencies_=[];ITb(this,c)};jU.prototype.toString=function(){return this.serviceId_};jU.prototype.getModuleId=function(){return this.moduleId_};var ITb=function(a,b){var c=!1;c=void 0===c?!1:c;a.dependencies_=a.dependencies_.concat(b);if(c){if(!a.moduleId_)throw Error("Pd`"+a.serviceId_);b.map(function(d){return d.getModuleId()}).forEach(function(d){HTb.push(function(e){e.addExtraEdge(a.moduleId_,d)})})}};
new jU("rJmJrc","rJmJrc");
new jU("n73qwf","n73qwf");
new jU("MpJwZc","MpJwZc");
new jU("UUJqVe","UUJqVe");
new jU("Wt6vjf","Wt6vjf");
new jU("byfTOb","byfTOb");
new jU("LEikZe","LEikZe");
new jU("lsjVmc","lsjVmc");
new jU("pVbxBc");
new jU("tdUkaf");new jU("fJuxOc");new jU("ZtVrH");new jU("WSziFf");new jU("ZmXAm");new jU("BWETze");new jU("UBSgGf");new jU("zZa4xc");new jU("o1bZcd");new jU("WwG67d");new jU("z72MOc");new jU("JccZRe");new jU("amY3Td");new jU("ABma3e");new jU("GHAeAc","GHAeAc");new jU("gSshPb");new jU("klpyYe");new jU("OPbIxb");new jU("pg9hFd");new jU("yu4DA");new jU("vk3Wc");new jU("IykvEf");new jU("J5K1Ad");new jU("IW8Usd");new jU("IaqD3e");new jU("jbDgG");new jU("b8xKu");new jU("d0RAGb");new jU("AzG0ke");new jU("J4QWB");
new jU("TuDsZ");new jU("hdXIif");new jU("mITR5c");new jU("DFElXb");new jU("NGntwf");new jU("Bgf0ib");new jU("Xpw1of");new jU("v5BQle");new jU("ofuapc");new jU("FENZqe");new jU("tLnxq");
var kU=function(){DC.call(this);this.eventTarget_=new Oo;this.updateCacheEventTarget_=new Oo;this.mutationIdMap_=new lL};U(kU,DC);kU.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};kU.prototype.getEventTarget=function(){return this.eventTarget_};
kU.prototype.disposeInternal=function(){DC.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};
var $r=function(a){Z.call(this,a,-1,JTb)};U($r,Z);var Zr=function(a,b){return l(a,1,b)};g=$r.prototype;g.getLogSource=function(){return p(this,2)};g.setLogSource=function(a){return l(this,2,a)};g.getApplication=function(){return p(this,3)};g.setApplication=function(a){return l(this,3,a)};g.getVersion=function(){return p(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getBaselineCl=function(){return p(this,5)};g.setBaselineCl=function(a){return l(this,5,a)};
g.hasBaselineCl=function(){return cj(this,5)};g.getEnableClearcut=function(){return Ro(this,6)};g.setEnableClearcut=function(a){return l(this,6,a)};var Yr=function(a,b){return hl(a,7,b)};g=$r.prototype;g.getClientAgent=function(){return p(this,8)};g.setClientAgent=function(a){return l(this,8,a)};g.getEventSource=function(){return p(this,9)};g.setEventSource=function(a){l(this,9,a)};g.getClearcutUrl=function(){return p(this,10)};g.setClearcutUrl=function(a){l(this,10,a)};
g.getEnvironment=function(){return p(this,11)};g.setEnvironment=function(a){return l(this,11,a)};g.getPeoplekitEntryPoint=function(){return p(this,12)};g.setPeoplekitEntryPoint=function(a){return l(this,12,a)};var JTb=[7];
$r.prototype.toObject=function(){var a=null!=this?{logName:n(p(this,1)),logSource:n(p(this,2)),application:n(p(this,3)),version:n(p(this,4)),baselineCl:n(p(this,5)),enableClearcut:n(Ro(this,6)),experimentIdList:n(jb(this,7)),clientAgent:n(p(this,8)),eventSource:n(p(this,9)),clearcutUrl:n(p(this,10)),environment:n(p(this,11)),peoplekitEntryPoint:n(p(this,12))}:void 0;return a};
var KTb=window&&window.performance&&window.performance.now&&window.performance.timing&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return Date.now()};
var LTb=function(a){this.start_=a;this.end_=NaN};LTb.prototype.duration=function(){return this.end_-this.start_};LTb.prototype.stop=function(a){this.end_=a;return this.duration()};var lU=function(a){var b=void 0===b?KTb:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};lU.prototype.source=function(){return this.source_};var MTb=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};g=lU.prototype;
g.duration=function(a){a=MTb(this,void 0===a?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};g.durationUsec=function(a){return HCa(this.duration(void 0===a?"":a))};g.toString=function(a,b){b=void 0===b?1:b;return this.duration(void 0===a?"":a).toFixed(b)};g.start=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=MTb(this,a);this.durations_.set(a,new LTb(b));return this};
g.stop=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=MTb(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};g.clear=function(){this.durations_.clear();return this};
var NTb=new Map([[1,4],[2,2],[3,1],[4,7]]),UCa=function(a,b){b=void 0===b?0:b;this.clientConfig_=a;this.transportType_=b;switch(b){case 1:b="ppl.store.peopleapi";var c=W(a.getExperiments(),1,!0);break;case 2:b="ppl.store.ppl.store.ozcontactstore";c=W(a.getExperiments(),2,!0);break;default:b="ppl.store",c=!1}var d=NTb.get(a.getUserInfo().getEnvType())||0;this.logContext_=ob(Yr(Zr(new $r,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplication()).setEnvironment(d).setVersion("1012").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c),
a.getExperiments().getExperimentIdsList()),7,20090307)};g=UCa.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=OTb(this);switch(b.getEventType()){case 2:case 3:return(new fU).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new hTb).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new fU).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new bTb).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=OTb(this);switch(d.getEventType()){case 1:d=(new fU).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new fTb).setStatus(c);if(0==c||4==c)c=e.setTotalUsec(b.durationUsec("total")),b=b.durationUsec("blocked"),b=l(c,3,b),l(b,5,a);return xu(d,4,gU,e);case 2:case 3:return a=(new fU).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new jTb).setRpcType(d.getRpcType()).setLookupType(d.getLookupType()).setStatus(c),
0!=c&&4!=c||d.setTotalUsec(b.durationUsec("total")).setBlockedUsec(b.durationUsec("blocked")).setNetworkUsec(b.durationUsec("network")),e.call(a,d);case 4:case 5:a=(new fU).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new dTb;f.setApiType(d.getApiType()).setCacheStatus(d.getCacheStatus()).setAddressBook(d.getAddressBook()).setStatus(c);0!==c&&4!==c||f.setTotalUsec(b.durationUsec("total"));return e.call(a,f);default:return null}};g.createErrorMetric=function(){return null};
g.createLatencyMetric=function(){return null};var OTb=function(a){a=a.clientConfig_.getUserInfo();var b=new lTb;var c=!!a.getDelegatorId();b=l(b,4,c);a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(p(a,6)||0);return b};
var hr=function(a){Z.call(this,a,-1,PTb)};U(hr,Z);var PTb=[1,2,3,4];hr.prototype.toObject=function(){var a=null!=this?{byGaiaList:n(jb(this,1)),byPseudonymousList:n(jb(this,2)),alwaysList:n(jb(this,3)),byOtherList:n(jb(this,4))}:void 0;return a};
var QTb=function(){return ea("iPad")||ea("Android")&&!ea("Mobile")||ea("Silk")};
var RTb=function(a,b,c,d,e,f,h){lE.call(this,a,Mo,b,hma,c,d,e,void 0,f,h)};U(RTb,lE);
var STb=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=la()||ea("iPod")?4:ea("iPad")?5:ea("Android")?QTb()?3:2:!QTb()&&(ea("iPod")||ea("iPhone")||ea("Android")||ea("IEMobile"))||QTb()?0:1},TTb=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()&&(c=new RTb(b.getLogSource(),Lo(),b.getClearcutUrl()||void 0),(b=jb(b,7))&&b.length)){var d=new hr;hl(d,3,b);c.setClearExperimentIds(d)}return new STb(c,a)},mU=function(a){var b=a.logContextFactory_.getLogContext(),c=
new UT;c.setApplication(b.getApplication());c.setDevice(a.device_);a=new WT;a.setSocialClient(c);a.setVersionName(b.getVersion());a.setClientAgent(b.getClientAgent());a.setEventSource(b.getEventSource());a.setEnvironment(b.getEnvironment());a.setPeoplekitEntryPoint(b.getPeoplekitEntryPoint());b.hasBaselineCl()&&(b=Math.round(b.getBaselineCl()),isFinite(b)&&a.setBaselineCl(b));return a},nU=function(a,b){var c=new dE;eE(c,b.serialize());a.clearcut_&&a.clearcut_.log(c)};
var UTb=function(a,b){this.clearcut_=a;this.logEventFactory_=b};UTb.prototype.logError=function(a){var b=mU(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&nU(this.clearcut_,a)};
var VTb=new Map([[200,0],[400,3],[401,16],[403,7],[404,5],[409,10],[416,11],[429,8],[499,1],[-1,1],[504,4],[501,12],[503,14]]);
var WTb=function(){this.logContext_=Zr(new $r,"ppl.store")};g=WTb.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){return null};g.createStatusMetric=function(){return null};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};var XTb=function(a){this.clearcut_=a;this.log_=null},Uo=function(a){a=new UTb(TTb(a),a);return new XTb(a)};g=XTb.prototype;g.start=function(a,b){a.start(b);return this};
g.stop=function(a,b){a.stop(b);return this};g.count=function(a,b){var c=this.clearcut_;b=void 0===b?1:b;var d=mU(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&nU(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=mU(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&nU(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=mU(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&nU(b.clearcut_,a);return this};
g.error=function(a){this.clearcut_.logError(a);return this};g.logError=function(){};
var To=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new CTb;this.eventHandler_=new OG(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new kU;(a=b)||(a=Uo(new WTb));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};Zt(To,DC);g=To.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,Aja(ETb),Vt(this.forwardEvent_,this))};g.forwardEvent_=function(a){this.contactNotificationService_.dispatchEvent(a)};g.getEventTarget=function(){return this.contactNotificationService_.getEventTarget()};g.invalidate=function(){this.contactNotificationService_.dispatchEvent(new FTb(null,"c"))};
g.loadContactRows=function(a,b){var c=this,d=(new No).setEventType(4).setApiType(2),e=new lU(d);this.metrics.count(e);this.metrics.start(e,"total");return YTb(this,a,function(f){return f.loadContactRows},function(f,h,k,q,w){ZTb(function(y,E,I,N){var L=E===ST||E instanceof TT?2:1;e.source().setCacheStatus(L);e.source().setAddressBook(I?zSb.get(I)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,rTb(w||0));b&&b(y,E,I,N,w)},f,h,k,q)})};
var YTb=function(a,b,c,d){var e=new $Tb(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];0<b.delayMillis||1<b.maxTries?f=aUb(a,h,c(h),b,d):f=c(h).call(h,b,d);f&&e.add(f)}else for(var k=0;k<a.addressBooks.length;k++)h=a.addressBooks[k],0<b.delayMillis||1<b.maxTries?f=aUb(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
To.prototype.execute=function(a){var b=this,c=(new No).setEventType(4).setApiType(1),d=new lU(c);this.metrics.count(d);this.metrics.start(d,"total");bUb(this,a);a.addSuccessOrFailureCallback(function(e){var f=e?rTb(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?zSb.get(e)||1:1:0);b.metrics.stop(d,"total");b.metrics.status(d,f)});return this.cache_&&(c=a.executeFromCache(this.cache_,function(e){return cUb(b,e,d)}))?
c:cUb(this,a,d)};
var bUb=function(a,b){qa(a.queryFilters_,function(){});b.isMutate()&&(b=b.getOperation())&&(b=b.getQueryAfterMutate())&&bUb(a,b)},cUb=function(a,b,c){if(b.isMutate()){var d=b.getOperation();d&&(d=d.getMutationId())&&a.contactNotificationService_.mutationIdMap_.set(d,Date.now())}if(d=b.getAddressBookId())if(d=a.addressBookMap_[d])return d.execute(b);c=new $Tb(void 0,a.metrics,c);c.setQuery(b);for(var e=0;e<a.addressBooks.length;e++)d=a.addressBooks[e],d.execute&&c.add(d.execute(b));return c},aUb=function(a,
b,c,d,e){b=Vt(a.runScheduledQuery_,a,b,c,d,e);b=new ATb(a.scheduler_,b,d.name);a.scheduler_.schedule(b,d.delayMillis,d.maxTries,d.force);return new dUb(b)};To.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,w){e.isDone(!w)&&d&&d(f,h,k,q,w)})};
var ZTb=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),eUb(b)),a(b||[],c,d,e))},eUb=function(a){if(0<a.length)for(var b=a[0].getPriority(),c=1;c<a.length;c++){var d=a[c],e=d.getPriority();e<b&&(d.flags|=1,b=e)}};
To.prototype.disposeInternal=function(){To.superClass_.disposeInternal.call(this);ui(this.scheduler_);this.scheduler_=null;qa(this.ownedAddressBooks_,ui);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;ui(this.eventHandler_);this.eventHandler_=null;qa(this.queryFilters_,function(a){a!=this.contactNotificationService_&&ui(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(ui(this.contactNotificationService_),this.contactNotificationService_=null)};
var TCa=function(a){var b=new UCa(a,0);Zr(b.getLogContext(),"ppl.store");b.getLogContext().setEnableClearcut(W(a.getExperiments(),3,!0));return Uo(b)},$Tb=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=$Tb.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.add=function(a){this.requests_.push(a)};g.isEmpty=function(){return 0==this.requests_.length};
g.cancel=function(){this.isPending()&&this.metrics_&&this.state_&&this.metrics_.status(this.state_,1);for(var a=0;a<this.requests_.length;a++)this.requests_[a].cancel()};g.isPending=function(){for(var a=0;a<this.requests_.length;a++)if(this.requests_[a].isPending())return!0;return!1};g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};var dUb=function(a){this.op=a;this.request=null};dUb.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};
dUb.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};
var fUb=function(a,b){this.text=a;this.specialRowHandler=b};Zt(fUb,ySb);g=fUb.prototype;g.getName=function(){return null};g.getEmail=function(){return null};g.getType=function(){return"sr"};g.getPriority=function(){return 0};g.getLoggingId=function(){return"sr"};
var So=function(a,b){To.call(this,a,b)};U(So,To);So.prototype.addAddressBook=function(a,b){1==this.addressBooks.length&&(this.combiner_=new gUb(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));To.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};So.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):To.prototype.loadContactRows.call(this,a,b)};
var gUb=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};gUb.prototype.addAddressBook=function(a){this.addrBooks_.push(new hUb(this,this.addrBooks_.length,a))};gUb.prototype.loadContactRows=function(a,b){a=new iUb(a,this.metrics_,b);jUb(this,a);return a};
var jUb=function(a,b,c,d){a.rowSets_=[];for(var e=0;e<a.addrBooks_.length&&!(e==c?a.rowSets_[e]=d:a.addrBooks_[e].loadContactRows(b),0==e&&a.rowSets_[e]&&a.rowSets_[e].length>=b.query.maxMatches);e++);c=b.query;d=a.rowSets_;var f=[];e=!1;for(var h,k=0;k<d.length&&f.length<c.maxMatches;k++)if(d[k]){h=f.length;e=!0;var q=d[k],w=c.maxMatches,y=f.length;if(0==y)f=q.length>w?q.slice(0,w):q;else for(var E=0;E<q.length;E++){for(var I=null,N=0;N<y&&!(I=kUb(f[N],q[E]));N++);if(I)I===q[E]&&(f[N]=I);else if(f.length==
y?f=f.concat(q[E]):f.push(q[E]),f.length==w)break}0<h&&f.length>h&&(f[h].flags|=1)}e?(eUb(f),c=f):c=null;c&&b.handler&&a.addrBooks_[0]&&a.addrBooks_[0].madeCallback_&&b.handler(c,b,null,b.query);a.rowSets_=null},kUb=function(a,b){if(a.specialRowHandler||b.specialRowHandler)return null;if(a.text==b.text)return a;if(a.getEmail()==b.getEmail()&&a.getType()==b.getType()){if(!b.getName())return a;if(!a.getName())return b}return null},lUb=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:jUb(a,b,c,d)};
gUb.prototype.handleSpecialRow=function(){};var hUb=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
hUb.prototype.loadContactRows=function(a){var b=this,c=a.storedResults_[this.id_];if(!c){this.isSynchronous_=!0;this.madeCallback_=!1;var d=Date.now(),e=this.addrBook_.loadContactRows(a.query,function(f,h,k,q,w){b.matchListener_(a,d,f,w)});a.activeRequests_[this.id_]=e;this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&300<this.lastAsyncLatency_&&(c=[mUb(this)])}c&&lUb(this.combiner_,a,this.id_,c)};
var mUb=function(a){var b=a.addrBook_.title_;return new fUb(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
hUb.prototype.matchListener_=function(a,b,c,d){d=void 0===d?0:d;this.madeCallback_=!0;this.isSynchronous_||(this.lastAsyncLatency_=Date.now()-b);a.query.filter&&c&&(c=a.query.filter(c,a.query.token));b=this.id_;var e=this.addrBook_.getId();a.storedResults_[b]=c;a.storedErrorCodes_[b]=d;a.addressBooksToReport_[b]=e;lUb(this.combiner_,a,this.id_,c)};hUb.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var iUb=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new lU((new No).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(w,y){var E=d.activeRequests_[y];E=E===ST||E instanceof TT?2:1;e.source().setCacheStatus(E);e.source().setAddressBook(w?zSb.get(w)||1:1);b.stop(e,"total");b.status(e,rTb(d.storedErrorCodes_[y]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};iUb.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};iUb.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};
var nUb={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"},lr=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);if(192>e||382<e)e=null;else{var f=nUb[e];f?e=f:(f="AAAAAA*CEEEEIIIIDNOOOOOx0UUUUYpBaaaaaa*ceeeeiiiionooooo^ouuuuypyAaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIi**JjKkkLlLlLLLlllNnNnNnnNnOoOoOo**RrRrRrSsSsSsSsTtTtttUuUuUuUuUuUuWwYyYZzZzZz"[e-192],e="^"==f?null:f)}e&&(c!=d&&b.push(a.substr(c,d-c)),c=d+1,b.push(e))}return 0<b.length?(b.push(a.substr(c)),b.join("")):
a};
var oU=function(a,b,c,d,e,f){Oo.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||oUb;this.cache_=new lL(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};Zt(oU,Oo);oU.prototype.disposeInternal=function(){oU.superClass_.disposeInternal.call(this);this.cache_=null};oU.prototype.clear=function(){this.cache_.clear()};
var oUb=function(a){var b=On(lr(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=null!=lr(String(c[1])).match(d))||(d=c[0],d=null!=c[2].match(new RegExp("^"+b,"i"))&&"cl"!=String(d));return d}},pUb=function(a,b){var c="^"+a.token.toLowerCase();b&&(a.includeContacts||(c="nc"+c),a.includeGroups||(c="ng"+c),a.includePhoneContacts||(c="np"+c),a.isContactAutoComplete||(c="na"+c));a.includeProfileAddresses&&(c="pa"+c);return c},qUb=function(a,b,c){a.cache_.set(pUb(b,a.cacheByType_),c);
if(a.cacheSize_&&(b=a.cache_.getCount(),b>a.cacheSize_)){c=Date.now()-a.cacheMinExpiryAge_;do{if(a.cache_.head_.prev.value.created>=c)break;a.cache_.pop()}while(--b>a.cacheSize_)}},rUb=function(a,b,c){c=c?a.cache_.get(b):GIb(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},sUb=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=rUb(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},tUb=function(a,b){if(b.isContactAutoComplete)return null;var c=pUb(b,a.cacheByType_),
d=sUb(a,c,b.token);return d?d:a.cacheByType_&&!Mi(c,"^")?(c=pUb(b,!1),sUb(a,c,b.token)):null};oU.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};oU.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:GIb(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var pU=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};pU.prototype.getMatches=function(a){a&&this.count++;return this.matches_};pU.prototype.isComplete=function(a){return!this.partialResult_||0<=a&&a<=this.matches_.length};
Zt(Qo,Oo);g=Qo.prototype;g.configure=function(a,b){this.title_=b;this.initialized_||(this.initialized_=!0)};g.getId=function(){return this.id_};
g.loadContactRows=function(a,b){if(this.initialized_){var c=this.cache_;if(Vi(a.token)&&!c.allowEmptyQueries_)var d=RT;else{d=a.maxMatches;var e=rUb(c,pUb(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=tUb(c,a))&&0==d.getMatches().length?(qUb(c,a,new pU(a.token,RT)),d=RT):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=jib(d,c.rowMatchingFunction_(a),c),qUb(c,a,new pU(a.token,d))):d=null}d&&0<=a.maxMatches&&d.length>a.maxMatches&&(d=d.slice(0,a.maxMatches));
return(c=d)?(b&&b(c,ST,this.getId(),a),ST):this.transport_.loadContactRows(a,this.getId(),Vt(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(RT,ST,this.getId(),a,4);return ST};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||qUb(this.cache_,e,new pU(e.token,b,-1!=e.maxMatches&&b.length>=e.maxMatches));a&&(b&&0<=e.maxMatches&&b.length>e.maxMatches&&(b=b.slice(0,e.maxMatches)),a(b,c,d,e,f))};g.onContactsChange_=function(){this.cache_.clear()};
g.disposeInternal=function(){Qo.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;uUb(this.transport_,this.id_);this.transport_=null};
var wUb=function(a,b,c){oU.call(this,100,18E5,432E5,!0,0,c||vUb);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};U(wUb,oU);var vUb=function(a){return function(b){var c=b.getType(),d;if(d=xUb(a,c)){d=new RegExp("(^|\\W+)"+On(lr(a.token)),"i");var e=lr(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+On(lr(d)),"i")).test(b):!1)&&"cl"!=c)}return d}},xUb=function(a,b){switch(b){case "ct":return a.includeContacts;case "cl":case "li":return a.includeGroups;case "pt":return a.includePhoneContacts}return!1};
var Wo=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new wUb(!0,!1,yUb);Qo.call(this,a,b,"domain")};Zt(Wo,Qo);Wo.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=gh(a),a.includeGroups=!1);return Wo.superClass_.loadContactRows.call(this,a,b)};
var yUb=function(a){for(var b=eC(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=On(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(xUb(a,k.getType())){for(var q=0;q<c.length;q++)if(!k.getName().match(c[q])&&!k.getEmail().match(d[q]))return!1;return!0}return!1}};Wo.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};
var zUb=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},BUb=function(a){if(!a)return AUb;var b=JCa(Ko("metadata.identityInfo.sourceIds",a)),c=Ko("metadata.contactId",a);c&&c[0]?b.CONTACT=c[0]:b.CONTACT&&(c=parseInt(b.CONTACT,16),isFinite(c)&&(b.CONTACT=String(c)));return new zUb(a.personId||"",b)},AUb=new zUb("",{});
var CUb=function(a,b){this.isLocal_=a;this.edgeIndex_=b};CUb.prototype.toString=function(){return""};
var qU=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};qU.prototype.toString=function(){return""};var EUb=function(a){return DUb(a).some(function(b){return!b.isLocal_})};qU.prototype.getSource=function(a){return DUb(this)[a]};qU.prototype.hasSource=function(){return void 0<DUb(this).length};var DUb=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};qU.prototype.getCause=function(a){return FUb(this)[a]};
var FUb=function(a){return a.edgeCollection_?GUb(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};qU.prototype.getContainerType=function(){return this.metadata_.containerType};var HUb=new qU({},null);
var IUb=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=IUb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new qU(this.email_.metadata,this.edgeCollection_):HUb);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.email_};g.getValue=function(){return this.email_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.email_.metadata;return!(!a||!a.primary)};g.getDisplayName=function(){return""};var JUb=new IUb({},null);
var KUb=function(a,b){this.emails_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new IUb(c.value,b))};g=KUb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||JUb};g.getFieldLength=function(){return this.emails_.length};var LUb=new KUb([],null);
var MUb=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=MUb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new qU(this.name_.metadata,this.edgeCollection_));return this.metadata_};g.hasMetaData=function(){return!!this.getMetaData()};g.getValue=function(){return this.name_.displayName||this.name_.formattedName||this.name_.formattedValue||this.name_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getFamilyName=function(){return this.name_.familyName||""};g.hasFamilyName=function(){return!!this.getFamilyName()};g.getGivenName=function(){return this.name_.givenName||""};g.hasGivenName=function(){return!!this.getGivenName()};var NUb=new MUb({},null);
var OUb=function(a){this.field_=a};g=OUb.prototype;g.toString=function(){return""};g.getField=function(){return this.field_};g.getMetaData=function(){return this.field_.getMetaData()};g.hasMetaData=function(){return this.field_.hasMetaData()};g.getValue=function(){return this.field_.getValue()};g.hasValue=function(){return this.field_.hasValue()};g.getFamilyName=function(){return this.field_.getFamilyName()};g.hasFamilyName=function(){return this.field_.hasFamilyName()};g.getGivenName=function(){return this.field_.getGivenName()};
g.hasGivenName=function(){return this.field_.hasGivenName()};var PUb=new OUb(NUb);
var QUb=["CONTACT","PROFILE","DOMAIN_PROFILE"],RUb=function(a,b){this.names_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new MUb(c.value,b))};g=RUb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||NUb};g.getFieldLength=function(){return this.names_.length};var SUb=new RUb([],null);
var TUb=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=TUb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new qU(this.phone_.metadata,this.edgeCollection_):HUb);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.phone_};g.getValue=function(){return this.phone_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.phone_.metadata;return!(!a||!a.primary)};var UUb=new TUb({},null);
var VUb=function(a,b){this.phones_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new TUb(c.value,b))};g=VUb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||UUb};g.getFieldLength=function(){return this.phones_.length};var WUb=new VUb([],null);
var XUb=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=XUb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new qU(this.photo_.metadata,this.edgeCollection_):HUb);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.photo_};g.getUrl=function(){return this.photo_.url||""};g.hasUrl=function(){return!!this.getUrl()};var YUb=new XUb({},null);
var ZUb=function(a,b){this.photos_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.isMonogram||c.isDefault||this.photos_.push(new XUb(c,b))};g=ZUb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||YUb};g.getFieldLength=function(){return this.photos_.length};var $Ub=new ZUb([],null);
var rU=function(a,b,c,d,e){this.person_=a;this.googleGroup_=b;this.contactLabel_=c;this.edgeCollection_=d;this.email_=this.name_=this.nameRepeated_=this.text_=null;this.emailIndex_=void 0===e?0:e;this.photo_=this.phone_=null};
rU.prototype.toString=function(){if(null==this.text_){if(this.contactLabel_){var a=this.contactLabel_.extendedData&&this.contactLabel_.extendedData.contactPreferences?this.contactLabel_.extendedData.contactPreferences.length:0;a=1==a?"(1 contact)":"("+a+" contacts)";a=this.getName().getValue()+" "+a}else a=this.person_||this.googleGroup_?KCa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};rU.prototype.hasName=function(){return!!this.getName()};
rU.prototype.getName=function(){if(!this.name_){a:{var a=PCa(this);if(a.names_.length){for(var b=r(QUb),c=b.next();!c.done;c=b.next()){c=c.value;for(var d=r(a.names_),e=d.next();!e.done;e=d.next())if(e=e.value,e.getMetaData().getContainerType()===c){a=new OUb(e);break a}}a=new OUb(a.names_[0])}else a=PUb}this.name_=a}return this.name_};
var PCa=function(a){if(!a.nameRepeated_){var b;a.person_?b=a.person_.name:a.googleGroup_?b=a.googleGroup_.names:a.contactLabel_&&(b=[a.contactLabel_.name]);a.nameRepeated_=b?new RUb(b,a.edgeCollection_):SUb}return a.nameRepeated_};g=rU.prototype;g.hasEmail=function(){return!!this.getEmail().getField(0).getValue()};
g.getEmail=function(){if(!this.email_){var a=null;this.person_?a=this.person_.email:this.googleGroup_?a=this.googleGroup_.emails:this.contactLabel_&&(a=[{value:LCa(this.contactLabel_)}]);this.email_=a?new KUb(a,this.edgeCollection_):LUb}return this.email_};g.hasPhone=function(){return!!this.getPhone().getField(0).getValue()};g.getPhone=function(){if(!this.phone_){var a;this.person_?a=this.person_.phone:this.googleGroup_&&(a=this.googleGroup_.phones);this.phone_=a?new VUb(a,this.edgeCollection_):WUb}return this.phone_};
g.hasPhoto=function(){return!!this.getPhoto().getField(0).getUrl()};g.getPhoto=function(){if(!this.photo_){var a;this.person_&&(a=this.person_.photo);this.photo_=a?new ZUb(a,this.edgeCollection_):$Ub}return this.photo_};g.getAddress=function(){return null};g.getStatus=function(){return null};g.hasStatus=function(){return!!this.getStatus()};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};g.getDisplayName=function(){return null};g.getRelation=function(){return null};
g.getEvent=function(){return null};var KCa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},aVb=new rU(null,null,null,null);
var sU=function(){this.keyToIndex_=new Map},bVb=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return null!=d})};sU.prototype.get=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(this.getKey_(a,b)):null};sU.prototype.set=function(a,b,c){"DOMAIN_PROFILE"===b&&(b="PROFILE");this.keyToIndex_.set(this.getKey_(a,b),c)};
sU.prototype.contains=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.keyToIndex_.has(this.getKey_(a,b))};sU.prototype.getKey_=function(a,b){return a+"="+b};
var NCa=function(a){this.evergreenProfile_=a?new rU(a,null,null,null):aVb};NCa.prototype.toString=function(){return""};var cVb=new NCa(null);
var dVb=new CUb(!0,null),tU=function(a){this.edgeIndexResolver_=new sU;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=OCa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};tU.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||cVb};var GUb=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return null!=c}):[]};tU.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};
tU.prototype.getSources=function(a,b){if(!a||!b)return[];if("CONTACT"===b)return[dVb];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,bVb(this.edgeIndexResolver_,a,[b]).map(function(d){return new CUb(!1,d)}));return this.sourcesCache_.get(c)};var eVb=new tU(null);
var uU=function(a,b,c){a=void 0===a?null:a;b=void 0===b?0:b;c=void 0===c?!1:c;this.person_=a&&a.person||null;this.googleGroup_=a&&a.googleGroup||null;this.contactLabel_=a&&a.contactGroup||null;this.edgeCollection_=new tU(this.person_);this.emailIndex_=b;this.profile_=new rU(this.person_,this.googleGroup_,this.contactLabel_,this.edgeCollection_,this.emailIndex_);this.photoUrl_=this.phone_=this.name_=this.allIds_=null;this.text=c?this.getName()||"":this.profile_.toString()};U(uU,ySb);g=uU.prototype;
g.toString=function(){return"cl"===this.getType()?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=BUb(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=JCa(a.sourceIds);a=new zUb(a.personId||"",b)}else a=AUb;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=Ko("id.id",a)||"",a=new zUb("",b)):a=AUb:a=AUb;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){null===this.name_&&(this.name_=QCa(this.profile_,function(a){return!!a&&!EUb(a)}),null===this.name_&&(this.name_=fVb(this,QCa)));return this.name_};g.getEmail=function(){return this.profile_.getEmail().getField(this.emailIndex_).getValue()};g.getType=function(){var a=this.profile_;return a.contactLabel_?"cl":a.googleGroup_?"li":!a.hasEmail()&&a.hasPhone()?"pt":"ct"};g.getPriority=function(){return 0};
g.getPhotoUrl=function(){null===this.photoUrl_&&(this.photoUrl_=RCa(this.profile_,function(a){return!!a&&!EUb(a)}),null===this.photoUrl_&&(this.photoUrl_=fVb(this,RCa)));return this.photoUrl_};g.getLoggingId=function(){return this.getAllIds_().loggingId};
var fVb=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<FUb(c).length;d++){var e=c.getCause(d);e=a.edgeCollection_.get(e).evergreenProfile_;e=b(e);if(null!==e)return e}for(d=0;d<DUb(c).length;d++)if(e=c.getSource(d),null!==e.edgeIndex_&&(e=a.edgeCollection_.get(e.edgeIndex_||0).evergreenProfile_,e=b(e),null!==e))return e;return""},gVb=function(a,b,c){c=void 0===c?!1:c;if(void 0===b?0:b)return a.map(function(q){return new uU(q,void 0,!0)});b=new Set;var d=
[];a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=Ko("person.email",e)||Ko("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(Ko("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new uU(e,h))}else d.push(new uU(e))}return d};
var WCa=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S){L=void 0===L?new PT:L;S=void 0===S?!1:S;this.metrics=a;this.peopleRoot=b;this.gapiApiKey=c;this.clientId=d;this.clientName=e;this.clientVersion=f||"contact_store_336195648";this.affinityType=h;this.delegatorId=k;this.timeoutMs=q;this.onAuthError=w?w:function(){};this.autocompletePageSize=y;this.rankedTargetsPageSize=E;this.peopleContainerMask=I.split(/[\s,]+/).filter(function(Y){return!!Y});this.peopleFieldMask=N;this.experiments=L;this.includeOnlyNames=
S};WCa.prototype.setTimeout=function(a){var b=this.timeoutMs;0<a&&(this.timeoutMs=a);return b};
var vU=function(a,b){b=Error.call(this,void 0===b?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};U(vU,Error);
var wU=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new lU(b);this.handler_=c;this.promise_=this.query_=null;this.state_=0;this.addressBookId_="";this.metrics_.start(this.metric_,"total");this.metrics_.start(this.metric_,"blocked")};g=wU.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.isPending=function(){return 1==this.state_};g.getQuery=function(){return this.query_};
g.setQuery=function(a){this.query_=a};g.cancel=function(){switch(this.state_){case 1:this.promise_.cancel();break;case 0:this.state_=2,this.promise_=rsb(new oD),hVb(this,null,11)}};
g.send=function(a){var b=this;if(0!==this.state_)return this.promise_;this.metrics_.count(this.metric_);this.metrics_.stop(this.metric_,"blocked");this.metrics_.start(this.metric_,"network");this.state_=1;var c=this.buildRequest();if(c&&c.path){var d=this.config.gapiApiKey||"";d&&!ACa()&&(c.params=c.params||{},c.params.key=d);c.headers=BCa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=Bsb(usb([a,Ksb(this.timeoutMs_,"TIMEOUT")]),
function(){b.state_=2;b.metrics_.stop(b.metric_,"network")}).then(function(e){return b.onResponse_(e)},function(e){return b.onError_(e)})};g.onResponse_=function(a){if("TIMEOUT"===a)this.onError_(a);else{var b=a&&a.result;if(!b||"error"in b)this.onError_(a);else{try{var c=this.processResponse(b)}catch(d){this.onError_(d);return}try{hVb(this,c,0)}finally{this.metrics_.stop(this.metric_,"total"),this.metrics_.status(this.metric_,0)}}}};
g.onError_=function(a){var b=!1,c=2,d=1;try{if("TIMEOUT"===a)c=4,d=10;else if(a instanceof oD)c=1,d=11;else if(a instanceof vU)c=a.code,d=qTb(c);else if(a&&"object"===typeof a){var e=Ko("result.error.code",a)||a.status,f=e;f=Number(f);c=nTb.has(f)?nTb.get(f):200<=f&&300>f?0:400<=f&&500>f?9:500<=f&&600>f?13:2;d=qTb(c);b=401==e||403==e;2===c&&this.metrics_.logError("Bad status code (HTTP="+e+")",a)}else c=2,d=1}finally{this.metrics_.status(this.metric_,c),hVb(this,null,d,b)}};
var hVb=function(a,b,c,d){if(void 0===d?0:d)try{a.onAuthError_()}catch(e){throw a.metrics_.logError("AuthError handler: "+e,e),e;}try{a.handler_(b||[],c)}catch(e){throw a.metrics_.logError("Client handler: "+e,e),e;}};
var iVb=function(a,b,c){var d=(new No).setEventType(2).setRpcType(1).setToken(b);wU.call(this,a,d,c);this.clientId_=a.clientId;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.token_=b;this.pageSize_=a.autocompletePageSize};U(iVb,wU);
iVb.prototype.buildRequest=function(){var a={query:this.token_,client:this.clientId_,"clientVersion.clientAgent":"CONTACT_STORE","clientVersion.clientType":this.clientName_,"clientVersion.clientVersion":this.clientVersion_,pageSize:this.pageSize_};this.delegatorId_&&(a["authDelegationContext.delegationType"]="GMAIL",a["authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/autocomplete",params:a}};
iVb.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new vU(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new vU(8,"RequestThrottled");if(b.containsPartialResults)throw new vU(8,"ContainsPartialResults");}return gVb(a.results||[],this.config.includeOnlyNames)};
var jVb=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new rU(this.person_,null,null,this.edgeCollection_):aVb};g=jVb.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=BUb(this.person_));return this.allIds_};g.getId=function(){return this.getAllIds_().contactId||this.getAllIds_().profileId||this.getAllIds_().syntheticId};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};
g.getProfile=function(){return this.profile_};g.getAffinity=function(){return null};g.hasAffinity=function(){return!!this.getAffinity()};g.getDeleted=function(){return!1};var kVb=new jVb(null,eVb);
var lVb=function(a){a=void 0===a?null:a;this.edgeCollection_=new tU(a);this.contact_=a?new jVb(a,this.edgeCollection_):kVb};g=lVb.prototype;g.toString=function(){return""};g.getId=function(){return this.contact_.getId()};g.getAttribute=function(a){return this.contact_.getAttribute(a)};g.hasAttribute=function(a){return this.contact_.hasAttribute(a)};g.getProfile=function(){return this.contact_.getProfile()};g.getAffinity=function(){return this.contact_.getAffinity()};g.hasAffinity=function(){return this.contact_.hasAffinity()};
g.getDeleted=function(){return this.contact_.getDeleted()};
var mVb=function(a,b,c){wU.call(this,a,(new No).setEventType(2).setRpcType(3).setLookupType(4),c);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.personIds_=b.filter(function(d){return!!d});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};U(mVb,wU);
mVb.prototype.buildRequest=function(){if(!this.personIds_.length)return{};var a={personId:this.personIds_,context:{clientVersion:{clientAgent:"CONTACT_STORE",clientType:this.clientName_,clientVersion:this.clientVersion_}},mergedPersonSourceOptions:{includedProfileStates:"CORE_ID",personModelParams:{personModel:"CONTACT_CENTRIC"}},requestMask:{imageUrlType:"FIFE_URL",includeContainer:this.peopleContainerMask_,includeField:this.peopleFieldMask_}};this.delegatorId_&&(a.context.authDelegationContext=
{delegationType:"GMAIL",obfuscatedOwnerId:this.delegatorId_});return{method:"POST",path:"v2/people:batchGet",body:a}};mVb.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return"SUCCESS"==b.status}).map(function(b){return new lVb(b.person)})};
var xU=function(a,b,c,d){wU.call(this,a,GCa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=nVb(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};U(xU,wU);
xU.prototype.buildRequest=function(){if(!this.knownIds_.length||!this.lookupType_)return{};var a={"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,id:this.knownIds_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC","profileLookupOptions.emailLookupOption":"INCLUDE_EMAIL_LOOKUP_KEY","requestMask.includeContainer":this.peopleContainerMask_,
"requestMask.includeField":this.peopleFieldMask_,"requestMask.imageUrlType":"FIFE_URL",type:this.lookupType_};this.delegatorId_&&(a["context.authDelegationContext.delegationType"]="GMAIL",a["context.authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/lookup",params:a}};
xU.prototype.processResponse=function(a){var b=a.matches,c=a.people,d=[];b&&c&&b.forEach(function(e){e=r(e.personId);for(var f=e.next();!f.done;f=e.next())(f=c[f.value])&&d.push(new lVb(f))});return d};var nVb=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};
var oVb=function(a,b){wU.call(this,a,(new No).setEventType(2).setRpcType(9),b);this.affinityType_=a.affinityType;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.pageSize_=a.rankedTargetsPageSize;this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask;this.peopleExtensionNames_=[];W(a.experiments,6,!0)&&this.peopleExtensionNames_.push("FILTER_TO_PRIMARY")};U(oVb,wU);
oVb.prototype.buildRequest=function(){var a={"affinity.type":this.affinityType_,"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,"pagingOptions.pageSize":this.pageSize_,"requestMask.includeContainer":this.peopleContainerMask_,"requestMask.includeField":this.peopleFieldMask_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC"};
this.peopleExtensionNames_.length&&(a["extensionSet.extensionNames"]=this.peopleExtensionNames_);return{method:"GET",path:"v2/people/rankedTargets",params:a}};oVb.prototype.processResponse=function(a){return gVb(a.rankedTarget||[],this.config.includeOnlyNames,!0)};
g=SCa.prototype;g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};g.getError=function(){return this.error_};g.setError=function(a){this.error_=a};g.getConfiguration=function(){return this.config_};g.setConfiguration=function(a){this.config_=a};g.getUserData=function(){return this.userData_};g.setUserData=function(a){this.userData_=a};
var VCa=new Map([[1,4],[2,2],[3,1],[4,7]]),Vo=function(a,b){DC.call(this);var c=this;this.config_=a;this.queuedRequests_=new Map;this.gapiClient_=null;this.gapiFailed_=!1;this.metrics_=a.metrics;this.gapiMetric_=new lU((new No).setEventType(1));this.metrics_.start(this.gapiMetric_,"total");this.metrics_.start(this.gapiMetric_,"blocked");b.then(function(d){c.metrics_.stop(c.gapiMetric_,"blocked");d?pVb(c,d):qVb(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);qVb(c,5)})};
U(Vo,DC);var pVb=function(a,b){b&&b.request?(FCa(),a.metrics_.stop(a.gapiMetric_,"total"),a.metrics_.status(a.gapiMetric_,0),a.gapiClient_=b,a.queuedRequests_.forEach(function(c,d){return c.forEach(function(e){return rVb(a,d,e)})})):qVb(a,9)};Vo.prototype.disposeInternal=function(){for(var a=r(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())uUb(this,b.value)};
var qVb=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},uUb=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(sVb(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},tVb=function(a,b,c){a.gapiFailed_?c.cancel():(ICa(a,b).push(c),rVb(a,b,c))},rVb=function(a,b,c){a.gapiClient_&&Bsb(c.send(a.gapiClient_),function(){var d=b;d=d||"";if(a.queuedRequests_.has(d)){d=a.queuedRequests_.get(d);var e=d.indexOf(c);0<=e&&d.splice(e,1)}})},ICa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},sVb=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};Vo.prototype.loadContactRows=function(a,b,c){var d=a&&a.token||"",e=function(h,k){return c(h,f,b,a,k)},f=d?new iVb(this.config_,d,e):new oVb(this.config_,e);tVb(this,b,f);return f};
Vo.prototype.execute=function(a){if(a.isMutate())return this.metrics_.status(new lU((new No).setEventType(2).setRpcType(4)),12),uVb(a);var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(y,E){E?(y=tTb(E,h),a.response_=y):(E=new SCa(b),E.contacts_=y,y=new sTb(h),y.queryResponse_=E,y.errorCode_=E.getError(),a.response_=y)},e=this.config_.setTimeout(vVb(a));try{var f=b.emailAddresses||[];if(f.length)var h=new xU(this.config_,1,f,d);else{var k=b.contactIds||[];if(k.length)h=
new xU(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new mVb(this.config_,q,d);else{var w=b.syntheticIds||[];if(w.length)h=new xU(this.config_,5,w,d);else return this.metrics_.status(new lU((new No).setEventType(2)),12),uVb(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);tVb(this,c,h);return h};var uVb=function(a){var b=new TT(function(){var c=tTb(5,b);a.response_=c});b.setQuery(a);return b};
var yU=function(a,b,c,d){Qo.call(this,a,b,c,d)};U(yU,Qo);yU.prototype.execute=function(a){a.isMutate()&&a.addSuccessCallback(Vt(this.handleExecuteResponse_,this,a));a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};yU.prototype.handleExecuteResponse_=function(a,b){if(b.hasChanges()){var c=b.mutateResponse_;if(a.getNotifyOnChange()||c&&c.getError())a=new FTb([b.mutateResponse_],"c"),this.dispatchEvent(a)}};
var YCa=function(a,b,c){b=b||new wUb(!0,!0);Qo.call(this,a,b,"personal",c)};U(YCa,yU);YCa.prototype.configure=function(a,b){yU.prototype.configure.call(this,a,b)};
var wVb=function(a,b,c,d){a=new QT(ho(vSb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",755,"MINIMAL_DOMAIN_GROUP","MISSED_LEGACY_INTEGRATION"],[]]'));a.setAuthErrorHandler(c||null);b&&xSb(a,b);a.getUserInfo().setEnvType(d?4:1);return ZCa(a)};
var ap={},xVb={},yVb={},zVb={},$o=function(){throw Error("Qd");};$o.prototype.contentDir=null;$o.prototype.getContent=function(){return this.content};$o.prototype.toString=function(){return this.content};var AVb=function(){$o.call(this)};Zt(AVb,$o);AVb.prototype.contentKind=ap;var BVb=function(){$o.call(this)};Zt(BVb,$o);BVb.prototype.contentKind=xVb;BVb.prototype.contentDir=1;
var zU=function(a,b){return null!=a&&a.contentKind===b};
var CVb=function(a){if(null!=a)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},AU=function(a){return zU(a,ap)?a:a instanceof Ly?Gq(ph(a).toString(),a.getDirection()):a instanceof oh?Gq(uja(a)):Gq(String(String(a)).replace(DVb,EVb),CVb(a))},Gq=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));void 0!==d&&(c.contentDir=d);return c}}(AVb),BU=function(a){if(null==a)throw Error("Sd");return a},FVb=function(a){return a instanceof
$o?!!a.getContent():!!a},CU=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=String(c);if(!c)return"";c=new b(c);void 0!==d&&(c.contentDir=d);return c}}(AVb),GVb=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return(c=String(c))?new b(c):""}}(BVb),JVb=function(a){return zU(a,ap)?a:Gq(HVb(a,IVb),CVb(a))},KVb=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),HVb=function(a,
b){if(!b)return String(a).replace(LVb,"").replace(MVb,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=a.replace(LVb,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",w="";if("/"!=f.charAt(1)){q="<";for(var y;y=NVb.exec(f);)if(y[1]&&"dir"==y[1].toLowerCase()){if(f=y[2]){if("'"==f.charAt(0)||'"'==f.charAt(0))f=f.substr(1,f.length-2);f=f.toLowerCase();if("ltr"==f||"rtl"==f||"auto"==f)w=' dir="'+f+'"'}break}NVb.lastIndex=0}c[k]=q+h+">";d[k]=w;return"["+
k+"]"}return""});a=String(a).replace(OVb,EVb);var e=PVb(c);a=a.replace(/\[(\d+)\]/g,function(f,h){return d[h]&&c[h]?c[h].substr(0,c[h].length-1)+d[h]+">":c[h]});return a+e},QVb=function(a){return a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>")},PVb=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c];"/"==e.charAt(1)?(e=b.lastIndexOf(e),0>e?a[c]="":(a[c]=b.slice(e).reverse().join(""),b.length=e)):"<li>"==e&&0>b.lastIndexOf("</ol>")&&0>b.lastIndexOf("</ul>")?a[c]="":KVb.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},Hq=function(a){return zU(a,ap)?String(HVb(a.getContent())).replace(OVb,EVb):String(a).replace(DVb,EVb)},UVb=function(a){zU(a,xVb)||zU(a,yVb)?a=DU(a):a instanceof hh?a=DU(ih(a)):a instanceof rh?a=DU(nh(a)):a instanceof Hy?a=DU(uh(a)):a instanceof th?a=DU(xja(a)):(a=String(a),a=RVb.test(a)?a.replace(SVb,TVb):"about:invalid#zSoyz");return a},EU=function(a){zU(a,zVb)?a=QVb(a.getContent()):null==a?a="":a instanceof Jy?a=QVb(Qnb(a)):a instanceof Ky?(a instanceof
Ky&&a.constructor===Ky?a=a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(La(a),a="type_error:SafeStyleSheet"),a=QVb(a)):(a=String(a),a=VVb.test(a)?a:"zSoyz");return a},WVb={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\v":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},EVb=function(a){return WVb[a]},XVb={"\x00":"%00",
"\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",
">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},
TVb=function(a){return XVb[a]},DVb=/[\x00\x22\x26\x27\x3c\x3e]/g,OVb=/[\x00\x22\x27\x3c\x3e]/g,SVb=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,VVb=/^(?!-*(?:expression|(?:moz-)?binding))(?:(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|(?:rgb|rgba|hsl|hsla|calc)\([-\u0020\t,+.!#%_0-9a-zA-Z]+\)|[-+]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:e-?[0-9]+)?(?:[a-z]{1,4}|%)?|!important)(?:\s*[,\u0020]\s*|$))*$/i,
RVb=/^(?:(?:https?|mailto|ftp):|[^&:\/?#]*(?:[\/?#]|$))/i,YVb=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,DU=function(a){return String(a).replace(SVb,TVb)},LVb=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,MVb=/</g,IVb={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},NVb=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var $Ca={};
var FU=function(a,b,c){Oo.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;Po(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.token_=null;this.rows_=[];this.hiliteId_=-1;this.firstRowId_=0;this.dismissTimer_=this.target_=null;this.inputToAnchorMap_={}};Zt(FU,Oo);g=FU.prototype;g.maxMatches_=10;g.getMatcher=function(){return this.matcher_};g.setMatcher=function(a){this.matcher_=a};g.getToken=function(){return this.token_};
g.handleEvent=function(a){var b=this.matcher_;if(a.target==this.renderer_)switch(a.type){case "hilite":this.hiliteId(a.row);break;case "select":var c=!1;if("number"===typeof a.row){a=a.row;var d=this.rows_[GU(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":ZVb(this);break;case "dismiss":$Vb(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,Vt(this.matchListener_,this)),ZVb(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var aWb=function(a){for(var b=a.firstRowId_+a.rows_.length-1,c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>=a.firstRowId_&&c<b)c++;else if(-1==c)c=a.firstRowId_;else break;if(a.hiliteId(c))break}};
FU.prototype.hiliteId=function(a){var b=GU(this,a),c=this.rows_[b];return c&&this.matcher_.isRowDisabled&&this.matcher_.isRowDisabled(c)?!1:(this.hiliteId_=a,this.renderer_.hiliteId(a),-1!=b)};
FU.prototype.selectHilited=function(){var a=GU(this,this.hiliteId_);if(-1!=a){var b=this.rows_[a],c=this.selectionHandler_;if(c.activeElement_){var d=b.toString();if(c.multi_){var e=bWb(c,c.getValue(),c.getCursorPosition()),f=cWb(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);0==e||Vi(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;(eu||cu)&&d.blur();d.value=f.join("");for(var h=0,k=0;k<=e;k++)h+=f[k].length;
d.focus();e=h;f=c.activeElement_;dWb(f)&&(f.selectionStart=e);f=c.activeElement_;dWb(f)&&(f.selectionEnd=e)}}else c.setValue(d);c.rowJustSelected_=!0}this.dismiss();this.dispatchEvent({type:"update",row:b,index:a});return!0}this.dismiss();this.dispatchEvent({type:"update",row:null,index:null});return!1};
FU.prototype.dismiss=function(){this.hiliteId_=-1;this.token_=null;this.firstRowId_+=this.rows_.length;this.rows_=[];window.clearTimeout(this.dismissTimer_);this.dismissTimer_=null;this.renderer_.dismiss();this.dispatchEvent("suggestionsupdate");this.dispatchEvent("dismiss")};var $Vb=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout(Vt(a.dismiss,a),100))};
FU.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var ZVb=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout(Vt(a.immediatelyCancelDelayedDismiss_,a),10)};FU.prototype.disposeInternal=function(){FU.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
FU.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
FU.prototype.renderRows=function(a,b){var c="object"==La(b)&&b;b=(c?c.getPreserveHilited():b)?GU(this,this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var d=[],e=0;e<a.length;++e)d.push({id:this.firstRowId_+e,data:a[e]});a=null;this.target_&&(a=this.inputToAnchorMap_[Ea(this.target_)]||this.target_);this.renderer_.anchorElement_=a;this.renderer_.renderRows(d,this.token_,this.target_);a=!0;c&&void 0!==c.getAutoHilite()&&(a=c.getAutoHilite());this.hiliteId_=-1;(a||0<=b)&&0!=d.length&&
this.token_&&(0<=b?this.hiliteId(this.firstRowId_+b):aWb(this));this.dispatchEvent("suggestionsupdate")};var GU=function(a,b){b-=a.firstRowId_;return 0>b||b>=a.rows_.length?-1:b};FU.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};FU.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){fh(this.inputToAnchorMap_,Ea(c))},this)};FU.prototype.update=function(a){this.selectionHandler_.update(a)};
var eWb=function(a,b){var c=0,d=0;dWb(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},dWb=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};
var hWb=function(a,b,c,d,e,f){if(gu&&e)return fWb(a);if(e&&!d)return!1;if(!eu){"number"===typeof b&&(b=gWb(b));var h=17==b||18==b||gu&&91==b;if((!c||gu)&&h||gu&&16==b&&(d||f))return!1}if((fu||du)&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(cu&&d&&b==a)return!1;switch(a){case 13:return eu?f||e?!1:!(c&&d):!0;case 27:return!(fu||du||eu)}return eu&&(d||e||f)?!1:fWb(a)},fWb=function(a){if(48<=a&&57>=a||96<=a&&106>=
a||65<=a&&90>=a||(fu||du)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:return eu;default:return!1}},gWb=function(a){if(eu)a=iWb(a);else if(gu&&fu)switch(a){case 93:a=91}return a},iWb=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};
var jWb=function(a,b,c,d){KC.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};Zt(jWb,KC);
var HU=function(a,b){Oo.call(this);a&&this.attach(a,b)};Zt(HU,Oo);g=HU.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var kWb={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},lWb={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},mWb=gu&&eu;g=HU.prototype;
g.handleKeyDown_=function(a){(fu||du)&&(17==this.lastKey_&&!a.ctrlKey||18==this.lastKey_&&!a.altKey||gu&&91==this.lastKey_&&!a.metaKey)&&this.resetState();-1==this.lastKey_&&(a.ctrlKey&&17!=a.keyCode?this.lastKey_=17:a.altKey&&18!=a.keyCode?this.lastKey_=18:a.metaKey&&91!=a.keyCode&&(this.lastKey_=91));hWb(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=gWb(a.keyCode),mWb&&(this.altKey_=a.altKey)):this.handleEvent(a)};
g.resetState=function(){this.keyCode_=this.lastKey_=-1};g.handleKeyup_=function(a){this.resetState();this.altKey_=a.altKey};
g.handleEvent=function(a){var b=a.event_,c=b.altKey;if(cu&&"keypress"==a.type){var d=this.keyCode_;var e=13!=d&&27!=d?b.keyCode:0}else(fu||du)&&"keypress"==a.type?(d=this.keyCode_,e=0<=b.charCode&&63232>b.charCode&&fWb(d)?b.charCode:0):("keypress"==a.type?(mWb&&(c=this.altKey_),b.keyCode==b.charCode?32>b.keyCode?(d=b.keyCode,e=0):(d=this.keyCode_,e=b.charCode):(d=b.keyCode||this.keyCode_,e=b.charCode||0)):(d=b.keyCode||this.keyCode_,e=b.charCode||0),gu&&63==e&&224==d&&(d=191));var f=d=gWb(d);d?63232<=
d&&d in kWb?f=kWb[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in lWb&&(f=lWb[b.keyIdentifier]);if(!eu||"keypress"!=a.type||hWb(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new jWb(f,e,a,b),b.altKey=c,this.dispatchEvent(b)};g.getElement=function(){return this.element_};
g.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=Po(this.element_,"keypress",this,b);this.keyDownKey_=Po(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=Po(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(SC(this.keyPressKey_),SC(this.keyDownKey_),SC(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){HU.superClass_.disposeInternal.call(this);this.detach()};
var IU=function(a,b,c,d){DC.call(this);d=d||150;this.multi_=null!=c?c:!0;this.separators_=a||",;";this.defaultSeparator_=this.separators_.charAt(0);a=this.multi_?"[\\s"+this.separators_+"]+":"[\\s]+";this.trimmer_=new RegExp("^"+a+"|"+a+"$","g");this.separatorCheck_=new RegExp("\\s*["+this.separators_+"]$");this.literals_=b||"";this.preventDefaultOnTab_=this.multi_;this.timer_=0<d?new pD(d):null;this.eh_=new OG(this);this.activateHandler_=new OG(this);this.keyHandler_=new HU;this.lastKeyCode_=-1};
Zt(IU,DC);g=IU.prototype;g.activeElement_=null;g.lastValue_="";g.waitingForIme_=!1;g.rowJustSelected_=!1;g.getValue=function(){return this.activeElement_.value};g.setValue=function(a){this.activeElement_.value=a};g.getCursorPosition=function(){return eWb(this.activeElement_,!0)[0]};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];fD(c)&&(cJ(c,"combobox"),dJ(c,"autocomplete","list"));this.eh_.listen(c,"focus",this.handleFocus);this.eh_.listen(c,"blur",this.handleBlur);if(!this.activeElement_&&(this.activateHandler_.listen(c,"keydown",this.onKeyDownOnInactiveElement_),fD(c))){var d=WC(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&nWb(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];fD(c)&&(c.removeAttribute("role"),c.removeAttribute("aria-autocomplete"));c==this.activeElement_&&this.handleBlur();this.eh_.unlisten(c,"focus",this.handleFocus);this.eh_.unlisten(c,"blur",this.handleBlur);this.activeElement_||this.activateHandler_.unlisten(c,"keydown",this.onKeyDownOnInactiveElement_)}};
g.disposeInternal=function(){IU.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();ui(this.timer_)};
var pWb=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){aWb(a.ac_);b.preventDefault();return}if(!a.multi_){a.update(!0);b.preventDefault();return}break;case 38:if(a.ac_.isOpen()){a:{a=a.ac_;for(var c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>a.firstRowId_)c--;else break;if(a.hiliteId(c))break a}}b.preventDefault();return}break;case 9:if(!a.ac_.isOpen()||b.shiftKey)a.ac_.dismiss();else if(a.update(),a.ac_.selectHilited()&&a.preventDefaultOnTab_){b.preventDefault();return}break;case 13:if(a.ac_.isOpen()){if(a.update(),
a.ac_.selectHilited()){b.preventDefault();b.stopPropagation();return}}else a.ac_.dismiss();break;case 27:if(a.ac_.isOpen()){a.ac_.dismiss();b.preventDefault();b.stopPropagation();return}break;case 229:if(!a.waitingForIme_){a.waitingForIme_||(a.eh_.listen(a.activeElement_,"keyup",a.onKeyUp_),a.eh_.listen(a.activeElement_,"keypress",a.onKeyPress_),a.waitingForIme_=!0);return}}oWb(a,b)},oWb=function(a,b){var c=a.multi_&&b.charCode&&-1!=a.separators_.indexOf(String.fromCharCode(b.charCode));c&&a.update();
c&&a.ac_.selectHilited()&&b.preventDefault()};IU.prototype.handleKeyUp=function(){return!1};IU.prototype.handleFocus=function(a){nWb(this,a.target||null)};
var nWb=function(a,b){a.activateHandler_.removeAll();a.ac_&&ZVb(a.ac_);b!=a.activeElement_&&(a.activeElement_=b,a.timer_&&(a.timer_.start(),a.eh_.listen(a.timer_,"tick",a.onTick_)),a.lastValue_=a.getValue(),a.keyHandler_.attach(a.activeElement_),a.eh_.listen(a.keyHandler_,"key",a.onKey_),a.eh_.listen(a.activeElement_,"mousedown",a.onMouseDown_),cu&&a.eh_.listen(a.activeElement_,"keypress",a.onIeKeyPress_))};g=IU.prototype;
g.handleBlur=function(){this.activeElement_&&(this.eh_.unlisten(this.keyHandler_,"key",this.onKey_),this.keyHandler_.detach(),this.eh_.unlisten(this.activeElement_,"keyup",this.handleKeyUp),this.eh_.unlisten(this.activeElement_,"mousedown",this.onMouseDown_),cu&&this.eh_.unlisten(this.activeElement_,"keypress",this.onIeKeyPress_),this.waitingForIme_&&qWb(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&$Vb(this.ac_))};
g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&pWb(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&229!=this.lastKeyCode_&&qWb(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&qWb(this)};g.onMouseDown_=function(){};
var qWb=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};IU.prototype.onIeKeyPress_=function(a){oWb(this,a)};
IU.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=cWb(this,b)[bWb(this,b,a)];a=this.trimmer_?String(a).replace(this.trimmer_,""):a;this.ac_&&(this.ac_.setTarget(this.activeElement_),this.ac_.setToken(a,this.getValue()))}this.lastValue_=this.getValue()}this.rowJustSelected_=!1};
var bWb=function(a,b,c){a=cWb(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;d<a.length&&e<=c;d++)e+=a[d].length,b=d;return b},cWb=function(a,b){if(!a.multi_)return[b];b=String(b).split("");for(var c=[],d=[],e=0,f=!1;e<b.length;e++)a.literals_&&-1!=a.literals_.indexOf(b[e])?(f||(c.push(d.join("")),d.length=0),d.push(b[e]),f=!f):f||-1==a.separators_.indexOf(b[e])?d.push(b[e]):(d.push(b[e]),c.push(d.join("")),d.length=0);c.push(d.join(""));return c};
var rWb=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},sWb=function(a){return a.classList?a.classList:rWb(a).match(/\S+/g)||[]},tWb=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},uWb=function(a,b){return a.classList?a.classList.contains(b):sa(sWb(a),b)},vWb=function(a,b){if(a.classList)a.classList.add(b);else if(!uWb(a,b)){var c=rWb(a);tWb(a,c+(0<c.length?" "+b:b))}},JU=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){vWb(a,e)});else{var c={};Array.prototype.forEach.call(sWb(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=0<b.length?" "+d:d;tWb(a,b)}},wWb=function(a,b){a.classList?a.classList.remove(b):uWb(a,b)&&tWb(a,Array.prototype.filter.call(sWb(a),function(c){return c!=b}).join(" "))},xWb=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){wWb(a,c)}):tWb(a,Array.prototype.filter.call(sWb(a),function(c){return!sa(b,c)}).join(" "))};
var yWb=function(a,b,c){DC.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=Vt(this.doAction_,this)};Zt(yWb,DC);g=yWb.prototype;g.id_=0;g.disposeInternal=function(){yWb.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};g.start=function(a){this.stop();this.id_=qD(this.callback_,void 0!==a?a:this.interval_)};g.stop=function(){this.isActive()&&rD(this.id_);this.id_=0};g.isActive=function(){return 0!=this.id_};
g.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};
var zWb=function(a,b){if(b&&a in b)return a;var c=fu?"Webkit":eu?"Moz":cu?"ms":null;return c?(c=c.toLowerCase(),a=c+Kk(a),void 0===b||a in b?a:null):null};
var KU=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};g=KU.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new KU(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof KU?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.expand=function(a,b,c,d){Da(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.translate=function(a,b){a instanceof Rq?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,"number"===typeof b&&(this.top+=b,this.bottom+=b));return this};g.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};
var LU=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};LU.prototype.clone=function(){return new LU(this.left,this.top,this.width,this.height)};var QSa=function(a){return new LU(a.left,a.top,a.right-a.left,a.bottom-a.top)};
LU.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};var AWb=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new LU(c,e,d-c,a-e)}return null};
g=LU.prototype;g.contains=function(a){return a instanceof Rq?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};g.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};g.getSize=function(){return new UC(this.width,this.height)};
g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.translate=function(a,b){a instanceof Rq?(this.left+=a.x,this.top+=a.y):(this.left+=a,"number"===typeof b&&(this.top+=b));return this};g.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};
var MU=function(a,b){var c=WC(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},Bp=function(a,b){return MU(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Uq=function(a,b,c){if(b instanceof Rq){var d=b.x;b=b.y}else d=b,b=c;a.style.left=NU(d,!1);a.style.top=NU(b,!1)},BWb=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},CWb=function(a){if(cu&&!(8<=
Number(ju)))return a.offsetParent;var b=WC(a),c=Bp(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Bp(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},Pq=function(a){for(var b=new KU(0,Infinity,Infinity,0),c=Xo(a),d=c.document_.body,e=c.document_.documentElement,f=aD(c.document_);a=
CWb(a);)if(!(cu&&0==a.clientWidth||fu&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Bp(a,"overflow")){var h=OU(a),k=new Rq(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=
b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},FWb=function(a,b){b=b||aD(document);var c=b||aD(document);var d=OU(a),e=OU(c),f=DWb(c);if(c==aD(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;!cu||10<=Number(ju)||(h+=f.left,d+=f.top)}else h=d.x-e.x-f.left,d=d.y-e.y-f.top;a=EWb(a);f=c.clientHeight-a.height;e=c.scrollLeft;var k=c.scrollTop;e+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-f,0));c=new Rq(e,k);b.scrollLeft=c.x;b.scrollTop=c.y},OU=function(a){var b=
WC(a),c=new Rq(0,0);var d=b?WC(b):document;d=!cu||9<=Number(ju)||ZC(Xo(d).document_)?d.documentElement:d.body;if(a==d)return c;a=BWb(a);b=bD(Xo(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},RSa=function(a,b,c){if(b.document_!=c.document_){var d=b.document_.body;c=c.getWindow();var e=new Rq(0,0),f=cD(WC(d));if(mib(f,"parent")){var h=d;do{if(f==c)var k=OU(h);else k=BWb(h),k=new Rq(k.left,k.top);e.x+=k.x;e.y+=k.y}while(f&&f!=c&&f!=f.parent&&(h=f.frameElement)&&(f=f.parent))}d=Sq(e,OU(d));!cu||
9<=Number(ju)||ZC(b.document_)||(d=Sq(d,bD(b.document_)));a.left+=d.x;a.top+=d.y}},GWb=function(a,b,c){if(b instanceof UC)c=b.height,b=b.width;else if(void 0==c)throw Error("Vd");a.style.width=NU(b,!0);a.style.height=NU(c,!0)},NU=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Tq=function(a){var b=EWb;if("none"!=Bp(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=
d;c.position=f;c.visibility=e;return a},EWb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=fu&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=BWb(a),new UC(a.right-a.left,a.bottom-a.top)):new UC(b,c)},Oq=function(a){var b=OU(a);a=Tq(a);return new LU(b.x,b.y,a.width,a.height)},HWb=function(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},PU=function(a,b){a.style.display=b?"":"none"},IWb=function(a){return"rtl"==
Bp(a,"direction")},JWb=eu?"MozUserSelect":fu||du?"WebkitUserSelect":null,KWb=function(a){var b=a.getElementsByTagName("*");if(JWb){var c="none";a.style&&(a.style[JWb]=c);if(b){a=0;for(var d;d=b[a];a++)d.style&&(d.style[JWb]=c)}}else if(cu&&(c="on",a.setAttribute("unselectable",c),b))for(a=0;d=b[a];a++)d.setAttribute("unselectable",c)},VSa=function(a,b){var c=ZC(Xo(WC(a)).document_);if(!cu||iu("10")||c){var d=a.style;eu?d.MozBoxSizing="border-box":fu?d.WebkitBoxSizing="border-box":d.boxSizing="border-box";
d.width=Math.max(b.width,0)+"px";d.height=Math.max(b.height,0)+"px"}else d=a.style,c?(c=LWb(a,"padding"),a=DWb(a),d.pixelWidth=b.width-a.left-c.left-c.right-a.right,d.pixelHeight=b.height-a.top-c.top-c.bottom-a.bottom):(d.pixelWidth=b.width,d.pixelHeight=b.height)},MWb=function(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+b},NWb=function(a,
b){return(b=a.currentStyle?a.currentStyle[b]:null)?MWb(a,b):0},LWb=function(a,b){if(cu){var c=NWb(a,b+"Left"),d=NWb(a,b+"Right"),e=NWb(a,b+"Top");a=NWb(a,b+"Bottom");return new KU(e,d,a,c)}c=MU(a,b+"Left");d=MU(a,b+"Right");e=MU(a,b+"Top");a=MU(a,b+"Bottom");return new KU(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))},OWb={thin:2,medium:4,thick:6},PWb=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;b=a.currentStyle?a.currentStyle[b+"Width"]:null;return b in
OWb?OWb[b]:MWb(a,b)},DWb=function(a){if(cu&&!(9<=Number(ju))){var b=PWb(a,"borderLeft"),c=PWb(a,"borderRight"),d=PWb(a,"borderTop");a=PWb(a,"borderBottom");return new KU(d,c,a,b)}b=MU(a,"borderLeftWidth");c=MU(a,"borderRightWidth");d=MU(a,"borderTopWidth");a=MU(a,"borderBottomWidth");return new KU(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};
var QWb=function(){if(pib){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(ca()))?a[1]:"0"}return gu?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(ca()))?a[0].replace(/_/g,"."):"10"):sib?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(ca()))?a[1]:""):tib||uib||vib?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(ca()))?a[1].replace(/_/g,"."):""):""}();
var QU=function(a){return(a=a.exec(ca()))?a[1]:""},RWb=function(){if(Fib)return QU(/Firefox\/([0-9.]+)/);if(cu||du||nib)return hu;if(Jib){if(ma()||ea("Macintosh")){var a=QU(/CriOS\/([0-9.]+)/);if(a)return a}return QU(/Chrome\/([0-9.]+)/)}if(Kib&&!ma())return QU(/Version\/([0-9.]+)/);if(Gib||Hib){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(ca()))return a[1]+"."+a[2]}else if(Iib)return(a=QU(/Android\s+([0-9.]+)/))?a:QU(/Version\/([0-9.]+)/);return""}();
var PSa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=Bp(a,"position")){var c=OU(a);if(!b){b=IWb(a);var d;if(d=b){d=Kib&&0<=oa(RWb,10);var e;if(e=wib)e=0<=oa(QWb,10);var f=Jib&&0<=oa(RWb,85);d=eu||d||e||f}b=d?-a.scrollLeft:b&&!Yna&&"visible"!=Bp(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=Sq(c,new Rq(b,a.scrollTop))}}}return c||new Rq},SSa=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var h=0;if(d||0!=c)c&4?a.x-=b.width+(d?
d.right:0):c&2?a.x-=b.width/2:d&&(a.x+=d.left),c&1?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){h=a;c=b;d=0;65==(f&65)&&(h.x<e.left||h.x>=e.right)&&(f&=-2);132==(f&132)&&(h.y<e.top||h.y>=e.bottom)&&(f&=-5);h.x<e.left&&f&1&&(h.x=e.left,d|=1);if(f&16){var k=h.x;h.x<e.left&&(h.x=e.left,d|=4);h.x+c.width>e.right&&(c.width=Math.min(e.right-h.x,k+c.width-e.left),c.width=Math.max(c.width,0),d|=4)}h.x+c.width>e.right&&f&1&&(h.x=Math.max(e.right-c.width,e.left),d|=1);f&2&&(d|=(h.x<e.left?16:0)|
(h.x+c.width>e.right?32:0));h.y<e.top&&f&4&&(h.y=e.top,d|=2);f&32&&(k=h.y,h.y<e.top&&(h.y=e.top,d|=8),h.y+c.height>e.bottom&&(c.height=Math.min(e.bottom-h.y,k+c.height-e.top),c.height=Math.max(c.height,0),d|=8));h.y+c.height>e.bottom&&f&4&&(h.y=Math.max(e.bottom-c.height,e.top),d|=2);f&8&&(d|=(h.y<e.top?64:0)|(h.y+c.height>e.bottom?128:0));e=d}else e=256;h=e}e=new LU(0,0,0,0);e.left=a.x;e.top=a.y;e.width=b.width;e.height=b.height;return{rect:e,status:h}},Qq=function(a,b){return(b&8&&IWb(a)?b^4:b)&
-9};
var RU=function(){};RU.instance_=void 0;RU.getInstance=function(){return RU.instance_?RU.instance_:RU.instance_=new RU};RU.prototype.nextId_=0;RU.prototype.idPrefix_="";RU.prototype.setIdPrefix=function(a){this.idPrefix_=a};var Aq=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};
var SU=function(a,b,c,d){Oo.call(this);this.parent_=a||document.body;this.dom_=Xo(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.highlightedClassName="ac-highlighted";this.customRenderer_=b||null;this.useStandardHighlighting_=null!=d?d:!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c};Zt(SU,Oo);SU.prototype.getElement=function(){return this.element_};
SU.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=Xt();this.target_=c;this.rowDivs_=[];SWb(this)};SU.prototype.dismiss=function(){this.visible_&&(this.visible_=!1,TWb(this,!1),PU(this.element_,!1))};SU.prototype.show=function(){this.visible_||(this.visible_=!0,TWb(this,!0),PU(this.element_,!0))};
var TWb=function(a,b){a.target_&&(dJ(a.target_,"haspopup",b),dJ(a.element_,"expanded",b),dJ(a.target_,"expanded",b),b?dJ(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),eJ(a.target_,null)))};SU.prototype.isVisible=function(){return this.visible_};
var UWb=function(a,b){var c=0<=b&&b<a.rows_.length?a.rows_[b]:void 0,d=0<=b&&b<a.rowDivs_.length?a.rowDivs_[b]:void 0;a.dispatchEvent({type:"rowhilite",rowNode:d,row:c?c.data:null})&&(0<=a.hilitedRow_&&xWb(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(JU(d,["ac-active","active"]),a.target_&&eJ(a.target_,d),FWb(d,a.element_)))};SU.prototype.hiliteId=function(a){if(-1==a)UWb(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){UWb(this,b);break}};
var VWb=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;JU(b,Qi(a.className).split(" "));cJ(b,"listbox");b.id=Aq(RU.getInstance());a.dom_.appendChild(a.parent_,b);Po(b,"click",a.handleClick_,!1,a);Po(b,"mousedown",a.handleMouseDown_,!1,a);Po(b,"mouseover",a.handleMouseOver_,!1,a)}},SWb=function(a){VWb(a);a.widthProvider_&&(a.element_.style.minWidth=a.widthProvider_.clientWidth-0+"px");a.maxWidthProvider_&&(a.element_.style.maxWidth=a.maxWidthProvider_.clientWidth-
0+"px");a.rowDivs_.length=0;a.dom_.removeChildren(a.element_);a.customRenderer_&&a.customRenderer_.render?a.customRenderer_.render(a,a.element_,a.rows_,a.token_):a.rows_.forEach(function(b){var c=this.token_,d=this.dom_.createDom("DIV",{className:"ac-row",id:Aq(RU.getInstance())});cJ(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):hD(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,WWb(this,d,c));vWb(d,
"ac-row");this.rowDivs_.push(d);b=d;this.dom_.appendChild(this.element_,b)},a);0==a.rows_.length?a.dismiss():(a.show(),a.reposition(),KWb(a.element_))};
SU.prototype.reposition=function(){if(this.target_&&this.reposition_){var a=this.anchorElement_||this.target_;var b=this.rightAlign_?5:1;var c=this.element_,d=b^1,e=PSa(c),f=Oq(a),h=Pq(a);h&&f.intersection(QSa(h));RSa(f,Xo(a),Xo(c));a=Qq(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new Rq(b,f.top+(a&1?f.height:0));a=Sq(a,e);if(f=Pq(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=Qq(c,d);d=Tq(c);b=d.clone();e=SSa(e,b,a,null,f,65);e.status&496||(f=e.rect,Uq(c,new Rq(f.left,
f.top)),b=e.rect.getSize(),USa(d,b)||VSa(c,b))}};SU.prototype.getTarget=function(){return this.target_||null};SU.prototype.disposeInternal=function(){this.element_&&(RC(this.element_,"click",this.handleClick_,!1,this),RC(this.element_,"mousedown",this.handleMouseDown_,!1,this),RC(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);ui(this.animation_);this.parent_=null;SU.superClass_.disposeInternal.call(this)};
var WWb=function(a,b,c){if(a.highlightAllTokens_||!a.wasHighlightedAtLeastOnce_)if(3==b.nodeType){var d=null;Array.isArray(c)&&1<c.length&&!a.highlightAllTokens_&&(d=c.slice(1));c=XWb(a,c);if(0!=c.length){var e=b.nodeValue,f=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=f.exec(e),q=0;k;)q++,c.push(e.substring(h,k.index)),c.push(e.substring(k.index,f.lastIndex)),h=f.lastIndex,k=f.exec(e);c.push(e.substring(h));if(1<c.length){d=a.highlightAllTokens_?q:1;for(e=0;e<d;e++)f=2*e,b.nodeValue=c[f],h=
a.dom_.createElement("B"),h.className=a.highlightedClassName,a.dom_.appendChild(h,a.dom_.createTextNode(c[f+1])),h=b.parentNode.insertBefore(h,b.nextSibling),b.parentNode.insertBefore(a.dom_.createTextNode(""),h.nextSibling),b=h.nextSibling;b.nodeValue=c.slice(2*d).join("");a.wasHighlightedAtLeastOnce_=!0}else d&&WWb(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,WWb(a,b,c),b=d},XWb=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!Vi(Ui(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(On).join("|"):(c=eC(b),c=On(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=0<b.length?On(b[0]):"":/^\W/.test(b)||(c=On(b));return c},YWb=function(a,b){for(;b&&b!=a.element_&&!uWb(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};SU.prototype.handleClick_=function(a){var b=YWb(this,a.target);0<=b&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};SU.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
SU.prototype.handleMouseOver_=function(a){a=YWb(this,a.target);0<=a&&!(300>Xt()-this.startRenderingRows_)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};
var TU=function(a,b,c,d,e,f,h,k,q,w){f=f||new IU(",;",'"');h=new SU(h||null,q||this,w);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;FU.call(this,this,h,f);this.inputHandler_=this.selectionHandler_;this.inputHandler_.ac_=this;this.contactStore_=a;this.addressBookId_=c;this.filter_=d||null;this.maxMatches_=e||15;this.ownsContactStore_=!!k};Zt(TU,FU);
var $Wb=function(a,b,c,d,e,f,h,k,q,w){b=new TU(null,b,void 0,f,c,d,e,void 0,void 0,h);LG(a);ZWb.call(null,b,wVb(0,k,q,w));return b},aXb=function(a,b,c,d,e,f,h){b=new TU(null,b,void 0,f,c,d,e,void 0,void 0,h);ZWb(b,ZCa(a));return b},ZWb=function(a,b){b.loadContactRows(zTb,function(){});bXb(a,b)};TU.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&ui(this.contactStore_);TU.superClass_.disposeInternal.call(this)};
var bXb=function(a,b){a.contactStore_=b;a.ownsContactStore_=!0;a.savedQuery_&&a.savedHandler_&&(a.currentRequest_=a.contactStore_.loadContactRows(a.savedQuery_,a.savedHandler_),a.savedQuery_=null,a.savedHandler_=null)};g=TU.prototype;g.savedQuery_=null;g.savedHandler_=null;g.inputHandler_=null;g.includeGroups_=!0;g.isRowDisabled=function(a){return!!a.rowDisabled};
g.requestMatchingRows=function(a,b,c){a={token:a,maxMatches:b,includeContacts:!0,includeGroups:this.includeGroups_,matchType:1,matchFieldList:xTb,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};c=Vt(this.handleAutoCompleteContacts_,this,c);if(a.token&&""!=a.token)this.contactStore_?(this.currentRequest_&&(this.currentRequest_.cancel(),this.currentRequest_=null),this.currentRequest_=this.contactStore_.loadContactRows(a,
c)):(this.savedQuery_=a,this.savedHandler_=c);else{b=new TT;var d=[];this.filter_&&(d=this.filter_(d,a.token));b.response_=Wt(c,d,b,null,a)}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){TU.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){TU.superClass_.dismiss.call(this)};
g.renderRow=function(a,b,c){b=b={displayName:a.data.text,newSection:!!(a.data.flags&1)};a=b.displayName;b=b.newSection;a=Gq('<div class="'+Hq("goog-contacts-ui-autocomplete-name-nochat")+(b?" "+Hq("goog-contacts-ui-autocomplete-new-section"):"")+'">'+AU(a)+"</div>");a=aDa(a);Yo(c,a)};g.selectHilited=function(){var a=GU(this,this.hiliteId_);return-1!=a&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):TU.superClass_.selectHilited.call(this)};g.fireSelectionEvent=function(a){this.dispatchEvent(new cXb(a))};
var cXb=function(a){FC.call(this,"g");this.row=a};Zt(cXb,FC);Yt("createAutoComplete",function(a,b,c,d,e,f,h,k,q,w,y,E,I,N){d&&(b=b+d+"/");b=wVb(LG(b),E,I,N);f&&b.loadContactRows(zTb,function(){});c=new TU(b,c,void 0,q,e,k,w,!0);c.attachInputs(XC(document,a));return c});
var UU=function(){this.eventHandler_=new OG(this);UU.prototype.addInput=UU.prototype.addInput;UU.prototype.removeInput=UU.prototype.removeInput;UU.prototype.setTarget=UU.prototype.setTarget},dXb=function(a,b){var c=new UU;c.create(a,b);return c};g=UU.prototype;
g.create=function(a,b){a=XC(document,a);this.acWidget_=b.contactStoreConfig?aXb(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign):$Wb(b.serverBase,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign,b.acd,b.onAuthError,b.tg);"groups"in b&&(this.acWidget_.includeGroups_=b.groups);var c=b.onComplete;"function"===typeof c&&this.eventHandler_.listen(this.acWidget_,"update",function(d){d.row&&
c.call(ba,d.target.getTarget())});this.addInput(a)};g.dispose=function(){fma(this.acWidget_,this.eventHandler_)};g.setTarget=function(a){this.acWidget_.setTarget(a)};g.addInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.attachInputs(a[b]);else this.acWidget_.inputHandler_.attachInputs(a)};g.removeInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.detachInputs(a[b]);else this.acWidget_.inputHandler_.detachInputs(a)};
g.acWidget_=null;ba._EmailAc_create=dXb;
var eXb=function(a,b){return new cp("/",a,void 0,void 0,void 0,void 0,b)};cp.prototype.setLocale=function(){};var fXb=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};fXb.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
cp.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("Xd");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)gXb(this,this.acWrappers_[b]);this.focusedElement_&&(a=Ea(this.focusedElement_),(a=this.inputToAcWrapper_[a])&&a.setTarget(this.focusedElement_));for(b in this.acWrappers_){a=this.acWrappers_[b];a=[].concat(u(a.pendingInputs.values()));for(var c=1;c<a.length;c++)RC(a[c],"focus",this.onTargetFocus_,!1,this)}};
var gXb=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=Vt(a.onCompleteCallback_,a);c.ua=a.useApiary_;c.acd=a.apiaryClientDeferred_;c.onAuthError=a.onAuthError_;c.tg=a.testGaia_;c.contactStoreConfig=a.contactStoreConfig_;for(var d in a.commonAcParams_)c[d]=a.commonAcParams_[d];a=[].concat(u(b.pendingInputs.values()));b.emailac=dXb(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=cp.prototype;
g.attachAutocomplete=function(a,b,c){a=XC(document,a);var d=b||{};b=Ea(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new fXb(d),this.acWrappers_[c]=e);d=e;c=a;d.emailac?d.emailac.addInput(c):d.pendingInputs.add(c);this.inputToAcWrapper_[b]=e;e.emailac||(this.emailAcInitialized_?gXb(this,e):Po(a,"focus",this.onTargetFocus_,!1,this))};g.onTargetFocus_=function(a){this.focusedElement_=a.target;this.emailAcInitialized_||this.initAutocomplete()};
g.onCompleteCallback_=function(a){var b=this.onAcCompleteListeners_[Ea(a)];b&&b(a)};g.detachAutocomplete=function(a){a=XC(document,a);RC(a,"focus",this.onTargetFocus_,!1,this);var b=Ea(a);delete this.onAcCompleteListeners_[b];var c=this.inputToAcWrapper_[b];c&&(c.emailac?c.emailac.removeInput(a):c.pendingInputs.delete(a),delete this.inputToAcWrapper_[b])};g.attachAutocompleteTo=function(a,b){this.initAutocomplete(b);this.attachAutocomplete(a,b)};Yt("goog.NewContactTools",cp);
Yt("goog.NewContactTools.create",eXb);cp.prototype.setLocale=cp.prototype.setLocale;cp.prototype.attachAutocompleteTo=cp.prototype.attachAutocompleteTo;cp.prototype.initAutocomplete=cp.prototype.initAutocomplete;cp.prototype.attachAutocomplete=cp.prototype.attachAutocomplete;cp.prototype.detachAutocomplete=cp.prototype.detachAutocomplete;
var eDa=function(a){this.rows_=a||[]};eDa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(""!=a)for(var f=new RegExp("(^|\\W+)"+On(a),"i"),h=0;h<d.length&&e.length<b;h++){var k=d[h];String(k).match(f)&&e.push(k)}0==e.length&&(e=hXb(a,b,d));c(a,e)};
var dDa=function(a,b,c){return hXb(b,c,a.rows_)},hXb=function(a,b,c){for(var d=[],e=0;e<c.length;e++){var f=c[e],h=a.toLowerCase(),k=String(f).toLowerCase(),q=0;if(-1!=k.indexOf(h))q=parseInt((k.indexOf(h)/4).toString(),10);else for(var w=h.split(""),y=-1,E=10,I=0,N;N=w[I];I++)N=k.indexOf(N),N>y?(y=N-y-1,y>E-5&&(y=E-5),q+=y,y=N):(q+=E,E+=5);q<6*h.length&&d.push({str:f,score:q,index:e})}d.sort(function(L,S){var Y=L.score-S.score;return 0!=Y?Y:L.index-S.index});a=[];for(I=0;I<b&&I<d.length;I++)a.push(d[I].str);
return a};
var VU=function(a,b,c,d){var e=this;this.activeSession=c;this.contactTools_=null;this.subscription=new T.Subscription;this.acReadyDeferred_=Jj();if(a.gapi){var f=a.gapi;f.load("client",function(){f.config.update("googleapis.config/auth/useFirstPartyAuth",!0);f.config.update("googleapis.config/auth/useFirstPartyAuthV2",!0);var h="QA"===e.activeSession.getEnvironmentType();h&&f.config.update("googleapis.config/root-1p","https://content-googleapis-test.sandbox.google.com");var k="0",q=/\/u\/(\d+)\//.exec(b.absUrl());
q&&(k=q[1]);f.config.update("googleapis.config/sessionIndex",k);e.acReadyDeferred_.resolve(void 0);e.contactTools_=d.create(h);e.contactTools_.initAutocomplete()})}};VU.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
VU.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return fDa(h,k,d.activeSession.getUserEmail(),c)},f=new T.Subscription;this.acReadyDeferred_.promise.then(function(){d.contactTools_&&(d.contactTools_.attachAutocomplete(a,{ac2:!0,groups:!0,extendedInterface:!1,filter:e,cacheBusting:[c]},b),f.add(function(){var h;null==(h=d.contactTools_)||h.detachAutocomplete(a)}))});return f};VU.\u0275fac=function(a){return new (a||VU)(t(wM),t(cL),t(pH),t(WU))};
VU.\u0275prov=ec({token:VU,factory:VU.\u0275fac,providedIn:"root"});var WU=function(){};WU.prototype.create=function(a){var b=new QT(ho(vSb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",740,"MINIMAL_DOMAIN","BUGANIZER",null,null,null,null,true,true],[]]')),c=b.getUserInfo();l(c,6,a?5:1);a=b.getExperiments();a=l(a,5,!0);a=l(a,1,!0);a=l(a,3,!0);l(a,2,!0);return eXb("xapi",b)};WU.\u0275fac=function(a){return new (a||WU)};
WU.\u0275prov=ec({token:WU,factory:WU.\u0275fac,providedIn:"root"});
var XU=function(a,b,c,d){BI.call(this);this.element=a;this.accessPolicyConverter=b;this.focusContacts=c;this.activeSession=d;this.autocompleteActive=new Iw;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement};U(XU,BI);
XU.prototype.ngOnInit=function(){var a=this;this.$element.setAttribute("autocomplete","contact-autocomplete-username");this.$element.setAttribute("spellcheck","off");this.$element.setAttribute("aria-autocomplete","list");this.$element.setAttribute("role","combobox");this.$element.setAttribute("name","ac-workaround-"+hC());if(!this.activeSession.isAnonymous()){if("SINGLE"===this.fieldType)var b=function(){a.$element.value=iXb(jXb(a.$element.value));a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));
a.$element.dispatchEvent(new Event("input"))};else if("MULTI"===this.fieldType)b=function(){for(var d="",e=[],f=a.$element,h=r(f.value.split(",")),k=h.next();!k.done;k=h.next())d+=k.value.trim(),d.match(/^[a-z0-9@\-\._\+]+$/i)?(e.push(iXb(d)),d=""):rSb.test(d)?(e.push(d),d=""):d.match(/(".+" )?<.+>/)&&(d=iXb(jXb(d)),e.push(d),d="");f.value=e.join(", ")+", ";a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));a.$element.dispatchEvent(new Event("input"))};else throw Error("Yd`"+
this.fieldType);var c=this.additionalContactsCallback();c=kXb(c);this.subscriptions.add(this.focusContacts.attach(this.$element,b,c))}};
var lXb=function(a){(0,T.timer)(150).pipe(Ye(a.destroyed$)).subscribe(function(){var b=document.querySelector(".ac-renderer"),c;b=!!b&&"none"!==(null==(c=window.getComputedStyle(b))?void 0:c.display);a.autocompleteActive.emit(b)})},kXb=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})},jXb=function(a){return a.substr(Math.max(0,a.lastIndexOf("<"))).trim().replace(/[<>]/g,"")},iXb=function(a){a=a.trim();
","===pa(a)&&(a=a.slice(0,-1));a=xo(a);var b=a.split("@");return 2===b.length?b[0]+"@"+b[1].toLowerCase():a};XU.\u0275fac=function(a){return new (a||XU)(F(nd),F(KT),F(VU),F(pH))};
XU.\u0275dir=v({type:XU,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&K("keydown",function(){return lXb(b)},!1,qd)("mousedown",function(){return lXb(b)})},inputs:{fieldType:["bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},features:[gf]});var YU=function(){};YU.\u0275fac=function(a){return new (a||YU)};YU.\u0275mod=rc({type:YU});YU.\u0275inj=fc({imports:[[Mx]]});
var mXb=["spanElement"],ZU=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};ZU.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};ZU.prototype.ngDoCheck=function(){this.spanElement&&!this.disabled&&this.spanElement.nativeElement.offsetWidth>this.maxWidth&&(this.displayString=this.displayString.substring(0,this.maxWidth/this.spanElement.nativeElement.offsetWidth*this.displayString.length-3)+"...")};
ZU.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};ZU.\u0275fac=function(a){return new (a||ZU)};
ZU.\u0275cmp=v({type:ZU,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&Zf(mXb,5);if(a&2){var c;Yf(c=ag())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},features:[Ac],decls:2,vars:2,consts:[[3,"matTooltip","innerHtml"],["spanElement",""]],template:function(a,b){a&1&&J(0,"span",0,1);a&2&&D("matTooltip",b.getTooltip())("innerHtml",b.displayString,Jd)},dependencies:[$E],encapsulation:2});
var $U=function(){};$U.\u0275fac=function(a){return new (a||$U)};$U.\u0275mod=rc({type:$U});$U.\u0275inj=fc({imports:[[bH]]});
var nXb=["popupField"],oXb=["fieldContent"],pXb=["popupOverlay"],qXb=["overlayContent"],ADa=function(a,b){return{"bv2-disabled":a,"bv2-readonly":b}},rXb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],aV=function(a,b,c,d,e,f,h,k){BI.call(this);this.cdr=a;this.element=b;this.overlay=c;this.viewContainerRef=d;this.dateFormatter=e;this.activeSession=f;this.constants=h;this.appEvents=k;this.googDateValue=null;this.autocompleteActive=!1;this.readonlyTooltip=this.displayValue=null;
this.textBuffer="";this.isActive=this.multiline=this.enableWaldoAvailability=!1;this.title=this.name="";this.displayValueOverride=this.value=null;this.isUser=!1;this.teamId="";this.clearable=!1;this.choices=[];this.showEnumTitle=!1;this.valueChange=new Iw;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.truncate=!1;this.enableTeamAnnotations=f.isInternalSession()};U(aV,BI);aV.\u0275dir=BI.\u0275dir;g=aV.prototype;
g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=rH(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,sXb(a),a.cdr.detectChanges())}));this.subscriptions.add(RNb(this.dateFormatter,function(){tXb(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){sXb(a)})};
g.ngOnDestroy=function(){BI.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&tXb(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return DA(EA(FA(JA(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),rXb)};
var sXb=function(a){var b;(null==(b=a.overlayRef)?0:b.hasAttached())&&a.overlayRef.detach()},LDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();RDa(a);break;case 27:b.stopPropagation(),dp(a,b,!1,!0)}},JDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),RDa(a);break;case 27:b.stopPropagation(),dp(a,b,!1,!0)}},wDa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();dp(a,
b,!0,!1);break;case 27:b.stopPropagation(),dp(a,b,!1,!0)}},dp=function(a,b,c,d){if((null==b?0:b.target)&&"nodeName"in b.target&&"A"===b.target.nodeName||"ENUM"===a.type&&0===a.choices.length)null==b||b.stopPropagation();else{if(!c||a.disabled||a.readonly){if(a.isActive=!1,sXb(a),d){var e;null==(e=a.popupField)||e.nativeElement.focus()}}else if(a.appEvents.openEditField.next(a),a.isActive=!0,a.textBuffer=null!=a.value?String(a.value):"","DATE"==a.type&&(c=a.value,a.googDateValue=c?Lk(c):null),"ENUM"===
a.type&&yi(a.enumMenuTrigger),"ENUM"!==a.type){uXb(a);var f=a.element.nativeElement;(0,T.fromEvent)(document,"click").pipe(De(function(h){return!f.contains(h.target)}),Me(),Ye(a.overlayRef._detachments),Ye(a.destroyed$)).subscribe(function(){dp(a,null,!1,!1)})}null==b||b.stopPropagation();a.cdr.detectChanges()}};aV.prototype.schedule=function(a){var b=T.asyncScheduler.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};
aV.prototype.getDisplayValue=function(a){return null===this.displayValue?a:this.displayValue};
var tXb=function(a){var b=a.value;switch(a.type){case "ENUM":if("Type"===a.title&&b&&vCb.has(b)){a.displayValue=vH(b);break}var c=a.choices.find(function(d){return d.value==b});c?(a.displayValue=c.displayText,a.readonlyTooltip=c.altText||""):(a.displayValue=null,a.readonlyTooltip=null);break;case "BOOL":a.displayValue=b?"Yes":"No";a.readonlyTooltip=null;break;case "DATE":b?a.displayValue=a.dateFormatter.formatUserCalendar(Lk(b)):a.displayValue=null;a.readonlyTooltip=null;break;default:a.displayValueOverride?
a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};aV.prototype.setFieldValue=function(a){this.disabled||this.readonly||("DATE"===this.type&&a&&(a=Mk(a)),"NUMERIC"===this.type&&""===a&&(a=null),Ei(this.value,a)?"ENUM"===this.type&&dp(this,null,!1,!0):(dp(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var RDa=function(a){if(void 0===a.type)throw Error("Zd");a.isUser&&(a.textBuffer=a.textBuffer.replace(/^[\s,]+|[\s,]+$/g,""));"NUMERIC"===a.type&&(a.textBuffer=a.textBuffer.trim());switch(a.type){case "TEXT":a.setFieldValue(a.textBuffer);break;case "NUMERIC":a.textBuffer=a.textBuffer.trim();""===a.textBuffer?a.setFieldValue(null):a.setFieldValue(Number(a.textBuffer));break;case "ENUM":case "BOOL":case "DATE":throw Error("$d");default:bh(a.type,"FieldType")}};
aV.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);dp(this,null,!1,!0)};var uXb=function(a){sXb(a);var b=a.overlayRef.attach(new MA(a.popupOverlay,a.viewContainerRef)).rootNodes[0];a.schedule(function(){if("TEXT"===a.type||"NUMERIC"===a.type){var c=b.querySelector("textarea, input");c.focus();c.select()}else"DATE"===a.type&&b.querySelector(".goog-date-picker").focus()})};
aV.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};aV.prototype.getPriority=function(a){return"string"===typeof a?a.toLowerCase():""};aV.\u0275fac=function(a){return new (a||aV)(F(uI,2),F(nd),F(RA),F(Wf),F(JP),F(pH),F(ZH),F(WK))};
aV.\u0275cmp=v({type:aV,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(Zf(TE,5),Zf(nXb,5),Zf(oXb,5),Zf(pXb,5),Zf(qXb,5));if(a&2){var c;Yf(c=ag())&&(b.enumMenuTrigger=c.first);Yf(c=ag())&&(b.popupField=c.first);Yf(c=ag())&&(b.fieldContent=c.first);Yf(c=ag())&&(b.popupOverlay=c.first);Yf(c=ag())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",user:"user",displayValueOverride:"displayValueOverride",isUser:"isUser",teamId:"teamId",
clearable:"clearable",choices:"choices",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},features:[Lf([uI]),gf,Ac],decls:11,vars:5,consts:[[1,"bv2-issue-metadata-field"],["class","keep-focus-ring","role","button","tabindex","0","aria-haspopup","true",3,"class","bv2-disabled","bv2-readonly","matTooltip","click","keydown",4,"ngIf"],[3,"class","ngClass","matTooltip",4,"ngIf"],
[3,"user",4,"ngIf"],[1,"bv2-issue-metadata-footer"],["enumMenu","matMenu"],["matMenuContent",""],["popupOverlay",""],["role","button","tabindex","0","aria-haspopup","true",1,"keep-focus-ring",3,"matTooltip","click","keydown"],["popupField",""],[3,"class",4,"ngIf"],["class","bv2-editable-value",3,"matMenuTriggerFor","menuClosed",4,"ngIf"],["class","bv2-editable-value",4,"ngIf"],["field",""],[1,"bv2-editable-value",3,"matMenuTriggerFor","menuClosed"],[4,"ngTemplateOutlet"],[1,"bv2-editable-value"],
[1,"bv2-editable-value",3,"keydown","click"],["fieldContent",""],[4,"ngIf"],["class","issue-metadata-field-edit-icon",4,"ngIf"],["class","issue-metadata-field-dropdown-icon",4,"ngIf"],[1,"flex-kids-x","flex-cross-axis-centered"],[3,"user","email","teamId","enableSmallChip",4,"ngIf"],["class","bv2-editfield-avatar",3,"email",4,"ngIf"],["class","bv2-metadata-field-value",4,"ngIf"],[3,"user","email","teamId","enableSmallChip"],[1,"bv2-editfield-avatar",3,"email"],[1,"bv2-metadata-field-value"],[3,"email"],
["class","bv2-metadata-field-value",3,"maxWidth","modelValue","disabled",4,"ngIf"],["class","bv2-metadata-field-value",3,"ngClass","maxWidth","modelValue","disabled",4,"ngIf"],["class","bv2-edit-button",4,"ngIf"],[1,"bv2-metadata-field-value",3,"maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"ngClass","maxWidth","modelValue","disabled"],[1,"bv2-edit-button"],[1,"issue-metadata-field-edit-icon"],["svgIcon","edit-outline"],[1,"issue-metadata-field-dropdown-icon"],["svgIcon","arrow-dropdown"],
[3,"ngClass","matTooltip"],[3,"class","click",4,"ngIf"],[1,"keep-focus-ring",3,"disabled","aria-label","model","modelChange"],[3,"click"],[3,"user"],["mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked","disabled","click",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","matTooltip","click",4,"ngFor","ngForOf"],["mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"disabled","click"],[1,"b-menu-item-check-mark"],
["svgIcon","done",1,"icon-s"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","matTooltip","click"],[3,"ngSwitch"],["overlayContent",""],[4,"ngSwitchCase"],[3,"click",4,"ngSwitchCase"],["class","bv2-text-field-edit",3,"click",4,"ngSwitchDefault"],[3,"required","date","dateSelectionChange","saveClicked","cancelClicked"],[1,"bv2-text-field-edit",3,"click"],[1,"bv2-text-edit-dialog-buttons"],["mat-flat-button","","color","primary",1,"gmat-button","medium","field-popup-button",3,"disabled",
"matTooltip","click"],["svgIcon","done"],["mat-stroked-button","","color","primary",1,"gmat-button","medium","field-popup-button",3,"matTooltip","click"],["svgIcon","close"],["spellcheck","false",3,"ngModel","ngModelChange","keydown",4,"ngIf"],["step","any","spellcheck","false",3,"ngModel","ngModelChange","keydown",4,"ngIf"],["spellcheck","false",3,"ngModel","ngModelChange","keydown"],["step","any","spellcheck","false",3,"ngModel","ngModelChange","keydown"],["spellcheck","false",3,"ngModel","bContactAutocomplete",
"ngModelChange","keydown","autocompleteActive",4,"ngIf"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive",4,"ngIf"],["spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive"]],template:function(a,b){a&1&&(G(0,"div")(1,"div",0),O(2,yDa,7,14,"div",1),O(3,BDa,3,13,"div",2),
O(4,CDa,1,1,"b-availability-chip",3),J(5,"div",4),H(),G(6,"mat-menu",null,5),O(8,FDa,2,2,"ng-template",6),H(),O(9,TDa,6,7,"ng-template",null,7,gg),H());a&2&&(B(1),sf("active",b.isActive&&!b.readonly&&!b.disabled),B(1),D("ngIf","BOOL"!==b.type),B(1),D("ngIf","BOOL"===b.type),B(1),D("ngIf",b.isUser&&b.value&&b.enableWaldoAvailability))},dependencies:[GR,vx,wx,sx,Cx,yx,zx,Ax,XU,NP,Fg,by,hy,pB,LE,QE,OE,TE,NE,$E,IT,zR,ZU,sS,HS,Gx],styles:[".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var vXb={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},wXb=function(a){switch(null==a?void 0:a.type){case "ENUM":return"ENUM";case "DATE":return"DATE";case "TEXT":return"TEXT";case "NUMERIC":return"NUMERIC";default:return null}},bV=function(){};bV.\u0275fac=function(a){return new (a||bV)};bV.\u0275mod=rc({type:bV});bV.\u0275inj=fc({imports:[[ES,zO,Mx,YU,fQ,wy,jG,dF,UE,bH,JT,DS,MM,$U,IS]]});
var cV=function(a){Z.call(this,a,-1,xXb)};U(cV,Z);g=cV.prototype;g.getAuthor=function(){return V(this,1)};g.getDescription=function(){return V(this,2)};g.setDescription=function(a){return l(this,2,a)};g.getTimestamp=function(){return dj(this,4)};g.setTimestamp=function(a){return l(this,4,a)};g.hasTimestamp=function(){return cj(this,4)};var xXb=[5];
cV.prototype.toObject=function(){var a=null!=this?{author:n(p(this,1)),description:n(p(this,2)),pending:n(Ro(this,3)),timestamp:n(p(this,4)),affectedFilesList:n(jb(this,5))}:void 0;return a};cV.messageId="b.ChangelistDetailsResponse";
var zXb=function(a){Z.call(this,a,-1,yXb)};U(zXb,Z);var yXb=[1];zXb.prototype.toObject=function(){var a=null!=this?{changelistNumbersList:n(jb(this,1))}:void 0;return a};zXb.messageId="b.PendingChangelistsResponse";
var dV=function(a){this.executor=a};dV.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:zXb}).pipe(C(UDa))};dV.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:cV}).pipe(C(VDa))};dV.\u0275fac=function(a){return new (a||dV)(t(pI))};dV.\u0275prov=ec({token:dV,factory:dV.\u0275fac,providedIn:"root"});
var eV=function(a){this.changelistResources=a};eV.prototype.getPendingChangelistsForIssue=function(a){return(0,T.firstValueFrom)(this.changelistResources.getPendingChangelistsForIssue(a))};eV.prototype.getChangelistDetails=function(a){return(0,T.firstValueFrom)(this.changelistResources.getChangelistDetails(a))};eV.\u0275fac=function(a){return new (a||eV)(t(dV))};eV.\u0275prov=ec({token:eV,factory:eV.\u0275fac,providedIn:"root"});
var fV=function(a){BI.call(this);var b=this;this.changelistApi=a;this.providedChangelistId$=new T.ReplaySubject(1);this.changelist$=this.providedChangelistId$.pipe(Xe(function(c){return b.changelistApi.getChangelistDetails(c)}),Ue({refCount:!0,bufferSize:1}));this.init=new T.ReplaySubject(1)};U(fV,BI);fV.\u0275dir=BI.\u0275dir;fV.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(Me(),Ye(this.destroyed$)).subscribe(function(){a.init.next()})};
fV.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};fV.\u0275fac=function(a){return new (a||fV)(F(dV))};
fV.\u0275cmp=v({type:fV,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},features:[gf,Ac],decls:4,vars:3,consts:[["role","dialog","aria-label","Changelist hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],[1,"card"],[3,"href"],["class","author",4,"ngIf"],[1,"description"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[1,"author"],[3,"email","hovercardEnabled"],["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&(G(0,"div",
0)(1,"div",1),O(2,ZDa,16,6,"ng-container",2),Q(3,"async"),H()());a&2&&(B(2),D("ngIf",R(3,1,b.changelist$)))},dependencies:[wx,sx,qS,LP,Fx],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.card[_ngcontent-%COMP%]{max-width:700px}.description[_ngcontent-%COMP%]{margin:12px 0 0;max-height:200px;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis}"]});
var gV=function(){this.config=Object.assign({},new kLb,{delay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};gV.prototype.ngOnInit=function(){};gV.\u0275fac=function(a){return new (a||gV)};
gV.\u0275cmp=v({type:gV,selectors:[["b-changelist-link"]],inputs:{changelistId:"changelistId"},decls:5,vars:5,consts:[["target","_blank",1,"bv2-metadata-link",3,"href","onedevHovercardTrigger","onedevHovercardConfig"],["card","onedevHovercard"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"],["cardBody",""]],template:function(a,b){a&1&&(G(0,"a",0),P(1),H(),G(2,"onedev-hovercard",null,1),O(4,$Da,2,2,"b-changelist-card",2),H());if(a&
2){var c=Hf(3);D("href","http://critique.corp.google.com/"+b.changelistId,Kd)("onedevHovercardTrigger",c)("onedevHovercardConfig",b.config);nf("aria-label","Changelist"+b.changelistId);B(1);If(" ",b.changelistId,"\n")}},dependencies:[pN,qN,tN,rN,fV],encapsulation:2});
var hV=function(){};hV.\u0275fac=function(a){return new (a||hV)};hV.\u0275mod=rc({type:hV});hV.\u0275inj=fc({imports:[[Mx,IS,$N,eQ]]});
var AXb=0,iV=function(a,b){BI.call(this);var c=this;this.teamsService=b;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new Iw;this.linkBlurred=new Iw;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new T.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+AXb;this.fetchedTeam$=this.providedTeamId$.pipe(Le(),De(function(d){return"0"!==d}),Xe(function(d){return c.teamsService.getTeam(d)}),C(function(d){return d.getTeamId()!==
c.teamId?(new hM).setTeamId(c.teamId).setName(c.teamId).setDescription(""):d}),Ie(function(){return(0,T.of)((new hM).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(C(function(){return!0}),We(!1));this.fetchedTeam$.pipe(Ye(this.destroyed$)).subscribe(function(d){c.teamName=d.getName();c.teamDescription=d.getDescription();c.teamLogoUrl="https://moma-teams-photos.corp.google.com/logo/"+d.getTeamId()});AXb++};U(iV,BI);iV.\u0275dir=BI.\u0275dir;
g=iV.prototype;g.ngOnInit=function(){};g.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};g.trackClick=function(a){Sn(go.TEAM_CARD,"click",a,1)};g.manageComponentLink=function(){return jta(this.componentId,"basic")};g.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};iV.\u0275fac=function(a){return new (a||iV)(F(pH),F(lM))};
iV.\u0275cmp=v({type:iV,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},features:[gf,Ac],decls:21,vars:7,consts:[["role","dialog","aria-label","Team hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"flex-kids-x"],["alt","Team logo"],[1,"flex-kids-y","margin-s-left","margin-s-bottom"],
[1,"type-m"],["svgIcon","supervisor_account_24px",1,"icon-xxs"],[1,"type-s","id-text"],[1,"card-description"],[1,"flex-kids-y","padded-s-top","hovercard-action-container"],["aria-label","View team settings",3,"routerLink","click"],["mat-button","",1,"gmat-button","primary","hovercard-action"],["target","_blank","aria-label","View component settings",3,"href","click"],["svgIcon","pop-out",1,"icon-xxs"],["aria-label","View team association on component",3,"href","click",4,"ngIf"],["aria-label","View team association on component",
3,"href","click"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2),J(3,"img",3),G(4,"div",4)(5,"div",5),J(6,"mat-icon",6),P(7),H(),G(8,"div",7),P(9),H()()(),G(10,"p",8),P(11),H(),G(12,"div",9)(13,"a",10),K("click",function(){return b.trackClick("viewTeamSettingsPage")}),G(14,"button",11),P(15,"View team settings"),H()(),G(16,"a",12),K("click",function(){return b.trackClick("viewTeamInMoma")}),G(17,"button",11),P(18,"View team in Moma "),J(19,"mat-icon",13),H()(),O(20,aEa,3,1,"a",14),
H()()());a&2&&(B(3),nf("src",b.teamLogoUrl,Kd),B(4),If(" Team: ",b.teamName," "),B(2),If("Team ID: ",b.teamId,""),B(2),Jf(b.teamDescription),B(2),Ef("routerLink","/teams/",b.teamId,"/edit"),B(3),Ef("href","https://moma.corp.google.com/team/",b.teamId,"",Kd),B(4),D("ngIf",b.componentId))},dependencies:[sx,LE,QI,pB],styles:[".card-description[_ngcontent-%COMP%]{line-height:1.3em;margin-bottom:.5em;margin-top:.25em;max-height:13em;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}mat-icon[_ngcontent-%COMP%]{vertical-align:middle}img[_ngcontent-%COMP%]{flex-shrink:0;object-fit:contain;width:24px;height:24px;box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:5px;border-radius:4px}.id-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.hovercard-action-container[_ngcontent-%COMP%]{align-items:flex-start}.hovercard-action-container[_ngcontent-%COMP%]   .hovercard-action[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"]});
var jV=function(){};jV.\u0275fac=function(a){return new (a||jV)};jV.\u0275mod=rc({type:jV});jV.\u0275inj=fc({imports:[[Mx,dF,WI,jG]]});
var BXb=0,kV=function(a){BI.call(this);var b=this;this.teamsService=a;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new T.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+BXb;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(Le(),De(function(c){return"0"!==c}),Xe(function(c){return b.teamsService.getTeam(c)}),C(function(c){return c.getTeamId()!==b.teamId?(new hM).setTeamId(b.teamId).setName(b.teamId).setDescription(""):c}),
Ie(function(){return(0,T.of)((new hM).setTeamId(b.teamId).setName(b.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(C(function(){return!0}),We(!1));this.fetchedTeam$.pipe(Ye(this.destroyed$)).subscribe(function(c){b.teamName=c.getName()});BXb++};U(kV,BI);kV.\u0275dir=BI.\u0275dir;kV.prototype.ngOnInit=function(){};kV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};kV.prototype.trackClick=function(a){Sn(go.TEAM_CARD,"click",a,1)};
kV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};kV.\u0275fac=function(a){return new (a||kV)(F(lM))};
kV.\u0275cmp=v({type:kV,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},features:[gf,Ac],decls:8,vars:6,consts:[[4,"ngIf","ngIfElse"],["card","onedevHovercard"],[3,"componentId","teamId"],["loading",""],["target","_blank","class","card-anchor",3,"href","onedevHovercardTrigger","click",4,"ngIf"],[3,"onedevHovercardTrigger",4,"ngIf"],["target","_blank",
1,"card-anchor",3,"href","onedevHovercardTrigger","click"],["svgIcon","pop-out",1,"icon-xs"],[3,"onedevHovercardTrigger"],["class","animated-loading-bar",4,"ngIf"],[4,"ngIf"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(O(0,dEa,3,2,"ng-container",0),Q(1,"async"),G(2,"onedev-hovercard",null,1),xf(4),J(5,"b-team-card",2),yf(),H(),O(6,gEa,2,2,"ng-template",null,3,gg));if(a&2){var c=Hf(7),d;D("ngIf","0"!=b.teamId&&R(1,4,b.isTeamFetched$))("ngIfElse",c);B(5);D("componentId",null==b.componentId?
null:b.componentId.toString())("teamId",null!==(d=null==b.teamId?null:b.teamId.toString())&&void 0!==d?d:"0")}},dependencies:[sx,LE,pN,tN,iV,Fx],styles:[""]});
var lV=function(){};lV.\u0275fac=function(a){return new (a||lV)};lV.\u0275mod=rc({type:lV});lV.\u0275inj=fc({imports:[[Mx,dF,$N,jV]]});
var CXb=new jd("CDK_DRAG_CONFIG");
var DXb=new jd("CDK_DRAG_PARENT");
var EXb=new jd("CdkDragHandle"),mV=function(a,b){this.element=a;this._stateChanges=new T.Subject;this._disabled=!1;this._parentDrag=b};mV.prototype.ngOnDestroy=function(){this._stateChanges.complete()};ki.Object.defineProperties(mV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Rg(a);this._stateChanges.next(this)}}});mV.\u0275fac=function(a){return new (a||mV)(F(nd),F(DXb,12))};
mV.\u0275dir=v({type:mV,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[Lf([{provide:EXb,useExisting:mV}])]});
var FXb=new jd("CdkDragPlaceholder");
var GXb=new jd("CdkDragPreview");
var HXb=new jd("CdkDropListGroup");
var IXb=Kg({passive:!1,capture:!0}),nV=function(a,b){var c=this;this._ngZone=a;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=[];this._globalListeners=new Map;this._draggingPredicate=function(d){return d.isDragging()};this.pointerMove=new T.Subject;this.pointerUp=new T.Subject;this.scroll=new T.Subject;this._preventDefaultWhileDragging=function(d){0<c._activeDragInstances.length&&d.preventDefault()};this._persistentTouchmoveListener=function(d){0<c._activeDragInstances.length&&
(c._activeDragInstances.some(c._draggingPredicate)&&d.preventDefault(),c.pointerMove.next(d))};this._document=b},JXb=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},KXb=function(a,b){a._dragInstances.add(b);1===a._dragInstances.size&&a._ngZone.runOutsideAngular(function(){a._document.addEventListener("touchmove",a._persistentTouchmoveListener,IXb)})},MXb=function(a,b){a._dragInstances.delete(b);LXb(a,b);0===a._dragInstances.size&&a._document.removeEventListener("touchmove",a._persistentTouchmoveListener,
IXb)};
nV.prototype.startDragging=function(a,b){var c=this;-1<this._activeDragInstances.indexOf(a)||(this._activeDragInstances.push(a),1===this._activeDragInstances.length&&(a=b.type.startsWith("touch"),this._globalListeners.set(a?"touchend":"mouseup",{handler:function(d){return c.pointerUp.next(d)},options:!0}).set("scroll",{handler:function(d){return c.scroll.next(d)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:IXb}),a||this._globalListeners.set("mousemove",{handler:function(d){return c.pointerMove.next(d)},
options:IXb}),this._ngZone.runOutsideAngular(function(){c._globalListeners.forEach(function(d,e){c._document.addEventListener(e,d.handler,d.options)})})))};var LXb=function(a,b){b=a._activeDragInstances.indexOf(b);-1<b&&(a._activeDragInstances.splice(b,1),0===a._activeDragInstances.length&&a._clearGlobalListeners())};nV.prototype.isDragging=function(a){return-1<this._activeDragInstances.indexOf(a)};
nV.prototype.scrolled=function(a){var b=this,c=[this.scroll];a&&a!==this._document&&c.push(new T.Observable(function(d){return b._ngZone.runOutsideAngular(function(){var e=function(f){b._activeDragInstances.length&&d.next(f)};a.addEventListener("scroll",e,!0);return function(){a.removeEventListener("scroll",e,!0)}})}));return T.merge.apply(null,u(c))};
nV.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return MXb(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};nV.prototype._clearGlobalListeners=function(){var a=this;this._globalListeners.forEach(function(b,c){a._document.removeEventListener(c,b.handler,b.options)});this._globalListeners.clear()};nV.\u0275fac=function(a){return new (a||nV)(t(ef),t(ii))};
nV.\u0275prov=ec({token:nV,factory:nV.\u0275fac,providedIn:"root"});
var oEa=0;
var oV=function(a){this._document=a;this.positions=new Map};oV.prototype.clear=function(){this.positions.clear()};oV.prototype.cache=function(a){var b=this;this.clear();this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()});a.forEach(function(c){b.positions.set(c,{scrollPosition:{top:c.scrollTop,left:c.scrollLeft},clientRect:hEa(c)})})};
var NXb=function(a,b){var c=Pg(b);b=a.positions.get(c);if(!b)return null;b=b.scrollPosition;if(c===a._document){var d=a.getViewportScrollPosition();var e=d.top;d=d.left}else e=c.scrollTop,d=c.scrollLeft;var f=b.top-e,h=b.left-d;a.positions.forEach(function(k,q){k.clientRect&&c!==q&&c.contains(q)&&ep(k.clientRect,f,h)});b.top=e;b.left=d;return{top:f,left:h}};oV.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};
var OXb=Kg({passive:!0}),PXb=Kg({passive:!1}),qEa=new Set(["position"]),pV=function(a,b,c,d,e,f){var h=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=!1;this._moveEvents=new T.Subject;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=T.Subscription.EMPTY;this._boundaryElement=null;this._nativeInteractionsEnabled=
!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.dragStartDelay=0;this._disabled=!1;this.beforeStarted=new T.Subject;this.started=new T.Subject;this.released=new T.Subject;this.ended=new T.Subject;this.entered=new T.Subject;this.exited=new T.Subject;this.dropped=new T.Subject;this.moved=this._moveEvents;this._pointerDown=function(k){h.beforeStarted.next();if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||h._initializeDragSequence(q,
k)}else h.disabled||h._initializeDragSequence(h._rootElement,k)};this._pointerMove=function(k){var q=h._getPointerPositionOnPage(k);if(h._hasStartedDragging){k.preventDefault();var w=h._getConstrainedPointerPosition(q);h._hasMoved=!0;h._lastKnownPointerPosition=q;h._updatePointerDirectionDelta(w);h._dropContainer?h._updateActiveDropContainer(w,q):(q=h._activeTransform,q.x=w.x-h._pickupPositionOnPage.x+h._passiveTransform.x,q.y=w.y-h._pickupPositionOnPage.y+h._passiveTransform.y,h._applyRootElementTransform(q.x,
q.y));h._moveEvents.observers.length&&h._ngZone.run(function(){h._moveEvents.next({source:h,pointerPosition:w,event:k,distance:h._getDragDistance(w),delta:h._pointerDirectionDelta})})}else if(Math.abs(q.x-h._pickupPositionOnPage.x)+Math.abs(q.y-h._pickupPositionOnPage.y)>=h._config.dragStartThreshold){q=Date.now()>=h._dragStartTime+h._getDragStartDelay(k);var y=h._dropContainer;q?y&&(y.isDragging()||0<y._activeSiblings.size)||(k.preventDefault(),h._hasStartedDragging=!0,h._ngZone.run(function(){return h._startDragSequence(k)})):
h._endDragSequence(k)}};this._pointerUp=function(k){h._endDragSequence(k)};this._nativeDragStart=function(k){if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||k.preventDefault()}else h.disabled||k.preventDefault()};QXb(RXb(this,a),b.parentDragRef||null);this._parentPositions=new oV(c);KXb(f,this)};pV.prototype.getPlaceholderElement=function(){return this._placeholder};pV.prototype.getRootElement=function(){return this._rootElement};
var SXb=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},TXb=function(a,b){a._handles=b.map(function(d){return Tg(d)});a._handles.forEach(function(d){return fp(d,a.disabled)});a._toggleNativeDragInteractions();var c=new Set;a._disabledHandles.forEach(function(d){-1<a._handles.indexOf(d)&&c.add(d)});a._disabledHandles=c},RXb=function(a,b){var c=Tg(b);c!==a._rootElement&&(a._rootElement&&a._removeRootElementListeners(a._rootElement),a._ngZone.runOutsideAngular(function(){c.addEventListener("mousedown",
a._pointerDown,PXb);c.addEventListener("touchstart",a._pointerDown,OXb);c.addEventListener("dragstart",a._nativeDragStart,PXb)}),a._initialTransform=void 0,a._rootElement=c);"undefined"!==typeof SVGElement&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},UXb=function(a,b){a._boundaryElement=b?Tg(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},QXb=function(a,b){a._parentDragRef=b};g=pV.prototype;
g.dispose=function(){this._removeRootElementListeners(this._rootElement);if(this.isDragging()){var a;null==(a=this._rootElement)||a.remove()}var b;null==(b=this._anchor)||b.remove();this._destroyPreview();this._destroyPlaceholder();MXb(this._dragDropRegistry,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};g.isDragging=function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)};
g.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};g.withDirection=function(a){this._direction=a;return this};g._withDropContainer=function(a){this._dropContainer=a};var VXb=function(a,b){a._activeTransform={x:0,y:0};a._passiveTransform.x=b.x;a._passiveTransform.y=b.y;a._dropContainer||a._applyRootElementTransform(b.x,b.y)};g=pV.prototype;
g._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};g._removeSubscriptions=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe()};g._destroyPreview=function(){var a;null==(a=this._preview)||a.remove();var b;null==(b=this._previewRef)||b.destroy();this._preview=this._previewRef=null};
g._destroyPlaceholder=function(){var a;null==(a=this._placeholder)||a.remove();var b;null==(b=this._placeholderRef)||b.destroy();this._placeholder=this._placeholderRef=null};
g._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),LXb(this._dragDropRegistry,this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){b._cleanupDragArtifacts(a);b._cleanupCachedDimensions();
LXb(b._dragDropRegistry,b)});else{this._passiveTransform.x=this._activeTransform.x;var c=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y;this._ngZone.run(function(){b.ended.next({source:b,distance:b._getDragDistance(c),dropPoint:c,event:a})});this._cleanupCachedDimensions();LXb(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){ip(a)&&(this._lastTouchEventTime=Date.now());this._toggleNativeDragInteractions();var b=this._dropContainer;if(b){var c=this._rootElement,d=c.parentNode,e=this._placeholder=this._createPlaceholderElement(),f=this._anchor=this._anchor||this._document.createComment(""),h=this._getShadowRoot();d.insertBefore(f,c);this._initialTransform=c.style.transform||"";this._preview=this._createPreviewElement();rEa(c,!1);this._document.body.appendChild(d.replaceChild(e,c));this._getPreviewInsertionPoint(d,
h).appendChild(this._preview);this.started.next({source:this,event:a});b.start();this._initialContainer=b;this._initialIndex=WXb(b,this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(b?b._scrollableElements:[])};
g._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=ip(b),f=!e&&0!==b.button,h=this._rootElement,k=Pg(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?fi(b):ei(b);k&&k.draggable&&"mousedown"===b.type&&b.preventDefault();d||f||q||e||(this._handles.length&&(d=h.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.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(function(w){return c._updateOnScroll(w)}),this._boundaryElement&&(this._boundaryRect=hEa(this._boundaryElement)),this._pickupPositionInElement=(d=this._previewTemplate)&&d.template&&!d.matchSize?{x:0,
y:0}:this._getPointerPositionInElement(a,b),a=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(b),this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:a.x,y:a.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,b))};
g._cleanupDragArtifacts=function(a){var b=this;rEa(this._rootElement,!0);this._anchor.parentNode.replaceChild(this._rootElement,this._anchor);this._destroyPreview();this._destroyPlaceholder();this._boundaryRect=this._previewRect=this._initialTransform=void 0;this._ngZone.run(function(){var c=b._dropContainer,d=WXb(c,b),e=b._getPointerPositionOnPage(a),f=b._getDragDistance(e),h=c._isOverContainer(e.x,e.y);b.ended.next({source:b,distance:f,dropPoint:e,event:a});b.dropped.next({item:b,currentIndex:d,
previousIndex:b._initialIndex,container:c,previousContainer:b._initialContainer,isPointerOverContainer:h,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,h,f,e);b._dropContainer=b._initialContainer})};
g._updateActiveDropContainer=function(a,b){var c=this,d=a.x,e=a.y;a=b.x;b=b.y;var f=this._initialContainer._getSiblingContainerFromPosition(this,d,e);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(d,e)&&(f=this._initialContainer);f&&f!==this._dropContainer&&this._ngZone.run(function(){c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);c._dropContainer=f;c._dropContainer.enter(c,d,e,f===c._initialContainer&&f.sortingDisabled?c._initialIndex:
void 0);c.entered.next({item:c,container:f,currentIndex:WXb(f,c)})});this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,b),this._dropContainer._sortItem(this,d,e,this._pointerDirectionDelta),this._applyPreviewTransform(d-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))};
g._createPreviewElement=function(){var a=this._previewTemplate,b=this.previewClass,c=a?a.template:null;if(c&&a){var d=a.matchSize?this._rootElement.getBoundingClientRect():null;c=a.viewContainer.createEmbeddedView(c,a.context);c.detectChanges();var e=vEa(c,this._document);this._previewRef=c;a.matchSize?wEa(e,d):e.style.transform=hp(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=this._rootElement,e=nEa(a),wEa(e,a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=
this._initialTransform);pEa(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":""+(this._config.zIndex||1E3)},qEa);fp(e,!1);e.classList.add("cdk-drag-preview");e.setAttribute("dir",this._direction);b&&(Array.isArray(b)?b.forEach(function(f){return e.classList.add(f)}):e.classList.add(b));return e};
g._animatePreviewToPlaceholder=function(){var a=this;if(!this._hasMoved)return Promise.resolve();var b=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating");this._applyPreviewTransform(b.left,b.top);var c=uEa(this._preview);return 0===c?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(h){if(!h||Pg(h)===a._preview&&"transform"===h.propertyName){var k;null==(k=a._preview)||k.removeEventListener("transitionend",
e);d();clearTimeout(f)}},f=setTimeout(e,1.5*c);a._preview.addEventListener("transitionend",e)})})};g._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=vEa(this._placeholderRef,this._document)):a=nEa(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
g._getPointerPositionInElement=function(a,b){var c=this._rootElement.getBoundingClientRect();a=(a=a===this._rootElement?null:a)?a.getBoundingClientRect():c;b=ip(b)?b.targetTouches[0]:b;var d=this._getViewportScrollPosition();return{x:a.left-c.left+(b.pageX-a.left-d.left),y:a.top-c.top+(b.pageY-a.top-d.top)}};
g._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=ip(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a;a=c.pageX-b.left;b=c.pageY-b.top;if(this._ownerSVGElement&&(c=this._ownerSVGElement.getScreenCTM())){var d=this._ownerSVGElement.createSVGPoint();d.x=a;d.y=b;return d.matrixTransform(c.inverse())}return{x:a,y:b}};
g._getConstrainedPointerPosition=function(a){var b=this._dropContainer?this._dropContainer.lockAxis:null,c=this.constrainPosition?this.constrainPosition(a,this):a;a=c.x;c=c.y;if("x"===this.lockAxis||"x"===b)c=this._pickupPositionOnPage.y;else if("y"===this.lockAxis||"y"===b)a=this._pickupPositionOnPage.x;if(this._boundaryRect){var d=this._pickupPositionInElement;b=d.x;var e=d.y;d=this._boundaryRect;var f=this._getPreviewRect(),h=d.top+e;e=d.bottom-(f.height-e);a=Math.max(d.left+b,Math.min(d.right-
(f.width-b),a));c=Math.max(h,Math.min(e,c))}return{x:a,y:c}};g._updatePointerDirectionDelta=function(a){var b=a.x;a=a.y;var c=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,e=Math.abs(a-d.y);Math.abs(b-d.x)>this._config.pointerDirectionChangeThreshold&&(c.x=b>d.x?1:-1,d.x=b);e>this._config.pointerDirectionChangeThreshold&&(c.y=a>d.y?1:-1,d.y=a);return c};
g._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=0<this._handles.length||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,fp(this._rootElement,a))}};g._removeRootElementListeners=function(a){a.removeEventListener("mousedown",this._pointerDown,PXb);a.removeEventListener("touchstart",this._pointerDown,OXb);a.removeEventListener("dragstart",this._nativeDragStart,PXb)};
g._applyRootElementTransform=function(a,b){a=hp(a,b);b=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=b.transform&&"none"!=b.transform?b.transform:"");b.transform=gp(a,this._initialTransform)};g._applyPreviewTransform=function(a,b){var c,d=(null==(c=this._previewTemplate)?0:c.template)?void 0:this._initialTransform;this._preview.style.transform=gp(hp(a,b),d)};g._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};
g._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
g._containInsideBoundaryOnResize=function(){var a=this._passiveTransform,b=a.x;a=a.y;if(!(0===b&&0===a||this.isDragging())&&this._boundaryElement){var c=this._boundaryElement.getBoundingClientRect(),d=this._rootElement.getBoundingClientRect();if(!(0===c.width&&0===c.height||0===d.width&&0===d.height)){var e=c.left-d.left,f=d.right-c.right,h=c.top-d.top,k=d.bottom-c.bottom;c.width>d.width?(0<e&&(b+=e),0<f&&(b-=f)):b=0;c.height>d.height?(0<h&&(a+=h),0<k&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||VXb(this,{y:a,x:b})}}};g._getDragStartDelay=function(a){var b=this.dragStartDelay;return"number"===typeof b?b:ip(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=NXb(this._parentPositions,a);b&&(a=Pg(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&ep(this._boundaryRect,b.top,b.left),this._pickupPositionOnPage.x+=b.left,this._pickupPositionOnPage.y+=b.top,this._dropContainer||(this._activeTransform.x-=b.left,this._activeTransform.y-=b.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y)))};
g._getViewportScrollPosition=function(){var a;return(null==(a=this._parentPositions.positions.get(this._document))?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};g._getShadowRoot=function(){void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Ng(this._rootElement));return this._cachedShadowRoot};
g._getPreviewInsertionPoint=function(a,b){var c=this._previewContainer||"global";return"parent"===c?a:"global"===c?(a=this._document,b||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body):Tg(c)};g._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect());return this._previewRect};
g._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};ki.Object.defineProperties(pV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){var b=Rg(a);b!==this._disabled&&(this._disabled=b,this._toggleNativeDragInteractions(),this._handles.forEach(function(c){return fp(c,b)}))}}});
var qV=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.autoScrollDisabled=this.sortingDisabled=this.disabled=!1;this.autoScrollStep=2;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new T.Subject;this.entered=new T.Subject;this.exited=new T.Subject;this.dropped=new T.Subject;this.sorted=new T.Subject;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=T.Subscription.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new T.Subject;this._cachedShadowRoot=null;this._startScrollInterval=function(){f._stopScrolling();(0,T.interval)(0,T.animationFrameScheduler).pipe(Ye(f._stopScrollTimers)).subscribe(function(){var h=f._scrollNode,k=f.autoScrollStep;1===f._verticalScrollDirection?
h.scrollBy(0,-k):2===f._verticalScrollDirection&&h.scrollBy(0,k);1===f._horizontalScrollDirection?h.scrollBy(-k,0):2===f._horizontalScrollDirection&&h.scrollBy(k,0)})};this.element=Tg(a);this._document=c;XXb(this,[this.element]);JXb(b,this);this._parentPositions=new oV(c)};g=qV.prototype;
g.dispose=function(){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._dropInstances.delete(this)};g.isDragging=function(){return this._isDragging};g.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};
g.enter=function(a,b,c,d){this._draggingStarted();null==d&&(d=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===d&&(d=this._getItemIndexFromPointerPosition(a,b,c)));var e=this._activeDraggables,f=e.indexOf(a),h=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(null==d||-1===d||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);-1<f&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(h,b),e.splice(d,0,a)):(Tg(this.element).appendChild(h),
e.push(a));h.style.transform="";this._cacheItemPositions();this._cacheParentPositions();this._notifyReceivingSiblings();this.entered.next({item:a,container:this,currentIndex:WXb(this,a)})};g.exit=function(a){this._reset();this.exited.next({item:a,container:this})};g.drop=function(a,b,c,d,e,f,h){var k=void 0===k?{}:k;this._reset();this.dropped.next({item:a,currentIndex:b,previousIndex:c,container:this,previousContainer:d,isPointerOverContainer:e,distance:f,dropPoint:h,event:k})};
var YXb=function(a,b){var c=a._draggables;a._draggables=b;b.forEach(function(d){return d._withDropContainer(a)});a.isDragging()&&(c.filter(function(d){return d.isDragging()}).every(function(d){return-1===b.indexOf(d)})?a._reset():a._cacheItems())};qV.prototype.withDirection=function(a){this._direction=a;return this};qV.prototype.connectedTo=function(a){this._siblings=a.slice();return this};
var ZXb=function(a,b){a._orientation=b},XXb=function(a,b){var c=Tg(a.element);a._scrollableElements=-1===b.indexOf(c)?[c].concat(u(b)):b.slice()},WXb=function(a,b){return a._isDragging?("horizontal"===a._orientation&&"rtl"===a._direction?a._itemPositions.slice().reverse():a._itemPositions).findIndex(function(c){return c.drag===b}):a._draggables.indexOf(b)};g=qV.prototype;
g._sortItem=function(a,b,c,d){if(!this.sortingDisabled&&this._clientRect&&jEa(this._clientRect,b,c)){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(!(-1===f&&0<e.length)){var h="horizontal"===this._orientation,k=e.findIndex(function(L){return L.drag===a}),q=e[f],w=q.clientRect,y=k>f?1:-1,E=this._getItemOffsetPx(e[k].clientRect,w,y),I=this._getSiblingOffsetPx(k,e,y),N=e.slice();jp(e,k,f);this.sorted.next({previousIndex:k,currentIndex:f,container:this,item:a});e.forEach(function(L,
S){if(N[S]!==L){var Y=L.drag===a;S=Y?E:I;Y=Y?a.getPlaceholderElement():L.drag.getRootElement();L.offset+=S;h?(Y.style.transform=gp("translate3d("+Math.round(L.offset)+"px, 0, 0)",L.initialTransform),ep(L.clientRect,0,S)):(Y.style.transform=gp("translate3d(0, "+Math.round(L.offset)+"px, 0)",L.initialTransform),ep(L.clientRect,S,0))}});this._previousSwap.overlaps=iEa(w,b,c);this._previousSwap.drag=q.drag;this._previousSwap.delta=h?d.x:d.y}}};
g._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(q,w){if(w!==c._document&&q.clientRect&&!k&&jEa(q.clientRect,a,b)){var y=q.clientRect;q=xEa(y,b);y=yEa(y,a);var E=0,I=0;if(q){var N=w.scrollTop;1===q?0<N&&(E=1):w.scrollHeight-N>w.clientHeight&&(E=2)}y&&(q=w.scrollLeft,1===y?0<q&&(I=1):w.scrollWidth-q>w.clientWidth&&(I=2));q=r([E,I]);d=q.next().value;e=q.next().value;if(d||e)k=w}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),
h=f.width;f=f.height;h={width:h,height:f,top:0,right:h,bottom:f,left:0};d=xEa(h,b);e=yEa(h,a);var k=window}!k||d===this._verticalScrollDirection&&e===this._horizontalScrollDirection&&k===this._scrollNode||(this._verticalScrollDirection=d,this._horizontalScrollDirection=e,this._scrollNode=k,(d||e)&&k?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}};g._stopScrolling=function(){this._stopScrollTimers.next()};
g._draggingStarted=function(){var a=Tg(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()};g._cacheParentPositions=function(){var a=Tg(this.element);this._parentPositions.cache(this._scrollableElements);this._clientRect=this._parentPositions.positions.get(a).clientRect};
g._cacheItemPositions=function(){var a="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(b){var c=SXb(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:hEa(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};
g._reset=function(){var a=this;this._isDragging=!1;var b=Tg(this.element).style;b.scrollSnapType=b.msScrollSnapType=this._initialScrollSnap;this._activeDraggables.forEach(function(c){var d=c.getRootElement();if(d){var e,f=null==(e=a._itemPositions.find(function(h){return h.drag===c}))?void 0:e.initialTransform;d.style.transform=f||""}});this._siblings.forEach(function(c){return c._stopReceiving(a)});this._activeDraggables=[];this._itemPositions=[];this._previousSwap.drag=null;this._previousSwap.delta=
0;this._previousSwap.overlaps=!1;this._stopScrolling();this._viewportScrollSubscription.unsubscribe();this._parentPositions.clear()};g._getSiblingOffsetPx=function(a,b,c){var d="horizontal"===this._orientation,e=b[a].clientRect;a=b[a+-1*c];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=-1===c?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
g._getItemOffsetPx=function(a,b,c){var d="horizontal"===this._orientation,e=d?b.left-a.left:b.top-a.top;-1===c&&(e+=d?b.width-a.width:b.height-a.height);return e};g._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d="horizontal"===this._orientation;if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
g._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f="horizontal"===this._orientation,h=this._itemPositions.findIndex(function(k){var q=k.drag;k=k.clientRect;if(q===a)return!1;if(d){var w=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&w===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return-1!==h&&this.sortPredicate(h,a,this)?h:-1};
g._cacheItems=function(){this._activeDraggables=this._draggables.slice();this._cacheItemPositions();this._cacheParentPositions()};g._isOverContainer=function(a,b){return null!=this._clientRect&&iEa(this._clientRect,a,b)};g._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};
g._canReceive=function(a,b,c){if(!this._clientRect||!iEa(this._clientRect,b,c)||!this.enterPredicate(a,this))return!1;a=this._getShadowRoot().elementFromPoint(b,c);if(!a)return!1;b=Tg(this.element);return a===b||b.contains(a)};g._startReceiving=function(a,b){var c=this,d=this._activeSiblings;!d.has(a)&&b.every(function(e){return c.enterPredicate(e,c)||-1<c._draggables.indexOf(e)})&&(d.add(a),this._cacheParentPositions(),this._listenToScrollEvents())};
g._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe()};
g._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){if(a.isDragging()){var c=NXb(a._parentPositions,b);c&&(a._itemPositions.forEach(function(d){ep(d.clientRect,c.top,c.left)}),a._itemPositions.forEach(function(d){d=d.drag;a._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()}))}else 0<a._activeSiblings.size&&a._cacheParentPositions()})};
g._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=Ng(Tg(this.element))||this._document);return this._cachedShadowRoot};g._notifyReceivingSiblings=function(){var a=this,b=this._activeDraggables.filter(function(c){return c.isDragging()});this._siblings.forEach(function(c){return c._startReceiving(a,b)})};
var $Xb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},rV=function(a,b,c,d){this._document=a;this._ngZone=b;this._viewportRuler=c;this._dragDropRegistry=d},aYb=function(a,b,c){c=void 0===c?$Xb:c;return new pV(b,c,a._document,a._ngZone,a._viewportRuler,a._dragDropRegistry)};rV.\u0275fac=function(a){return new (a||rV)(t(ii),t(ef),t(wA),t(nV))};rV.\u0275prov=ec({token:rV,factory:rV.\u0275fac,providedIn:"root"});
var bYb=0,cYb=new jd("CdkDropList"),sV=function(a,b,c,d,e,f,h){var k=this;this.element=a;this._changeDetectorRef=c;this._scrollDispatcher=d;this._dir=e;this._group=f;this._destroyed=new T.Subject;this.connectedTo=[];this.id="cdk-drop-list-"+bYb++;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new Iw;this.entered=new Iw;this.exited=new Iw;this.sorted=new Iw;this._unsortedItems=new Set;this._dropListRef=new qV(a,b._dragDropRegistry,b._document,b._ngZone,
b._viewportRuler);this._dropListRef.data=this;h&&this._assignDefaults(h);this._dropListRef.enterPredicate=function(q,w){return k.enterPredicate(q.data,w.data)};this._dropListRef.sortPredicate=function(q,w,y){return k.sortPredicate(q,w.data,y.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);dYb.push(this);f&&f._items.add(this)};sV.prototype.addItem=function(a){this._unsortedItems.add(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};
sV.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};var eYb=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return SXb(b._dragRef).compareDocumentPosition(SXb(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=sV.prototype;
g.ngOnDestroy=function(){var a=dYb.indexOf(this);-1<a&&dYb.splice(a,1);this._group&&this._group._items.delete(this);this._unsortedItems.clear();this._dropListRef.dispose();this._destroyed.next();this._destroyed.complete()};
g._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(We(this._dir.value),Ye(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=Qg(b.connectedTo).map(function(e){return"string"===typeof e?dYb.find(function(f){return f.id===e}):e});b._group&&b._group._items.forEach(function(e){-1===c.indexOf(e)&&c.push(e)});if(!b._scrollableParentsResolved){var d=vpb(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
XXb(b._dropListRef,d);b._scrollableParentsResolved=!0}a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=Rg(b.sortingDisabled);a.autoScrollDisabled=Rg(b.autoScrollDisabled);a.autoScrollStep=Ug(b.autoScrollStep,2);ZXb(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
g._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef();b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:b,item:c.item.data,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:b,item:c.item.data});b._changeDetectorRef.markForCheck()});a.sorted.subscribe(function(c){b.sorted.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,container:b,item:c.item.data})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,
currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,item:c.item.data,isPointerOverContainer:c.isPointerOverContainer,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.draggingDisabled,d=a.sortingDisabled,e=a.listAutoScrollDisabled;a=a.listOrientation;this.disabled=null==c?!1:c;this.sortingDisabled=null==d?!1:d;this.autoScrollDisabled=null==e?!1:e;this.orientation=a||"vertical";b&&(this.lockAxis=b)};g._syncItemsWithRef=function(){YXb(this._dropListRef,eYb(this).map(function(a){return a._dragRef}))};
ki.Object.defineProperties(sV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=Rg(a)}}});var dYb=[];sV.\u0275fac=function(a){return new (a||sV)(F(nd),F(rV),F(lx),F(sA),F(hA,8),F(HXb,12),F(CXb,8))};
sV.\u0275dir=v({type:sV,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(nf("id",b.id),sf("cdk-drop-list-disabled",b.disabled)("cdk-drop-list-dragging",b._dropListRef.isDragging())("cdk-drop-list-receiving",0<b._dropListRef._activeSiblings.size))},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:[Lf([{provide:HXb,useValue:void 0},{provide:cYb,useExisting:sV}])]});
var tV=function(a,b,c,d,e,f,h,k,q,w,y){var E=this;this.element=a;this.dropContainer=b;this._ngZone=d;this._viewContainerRef=e;this._dir=h;this._changeDetectorRef=q;this._selfHandle=w;this._parentDrag=y;this._destroyed=new T.Subject;this.started=new Iw;this.released=new Iw;this.ended=new Iw;this.entered=new Iw;this.exited=new Iw;this.dropped=new Iw;this.moved=new T.Observable(function(I){var N=E._dragRef.moved.pipe(C(function(L){return{source:E,pointerPosition:L.pointerPosition,event:L.event,delta:L.delta,
distance:L.distance}})).subscribe(I);return function(){N.unsubscribe()}});this._dragRef=aYb(k,a,{dragStartThreshold:f&&null!=f.dragStartThreshold?f.dragStartThreshold:5,pointerDirectionChangeThreshold:f&&null!=f.pointerDirectionChangeThreshold?f.pointerDirectionChangeThreshold:5,zIndex:null==f?void 0:f.zIndex});this._dragRef.data=this;fYb.push(this);f&&this._assignDefaults(f);b&&(this._dragRef._withDropContainer(b._dropListRef),b.addItem(this));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};
g=tV.prototype;g.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};g.getRootElement=function(){return this._dragRef.getRootElement()};g.reset=function(){this._dragRef.reset()};g.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(Me(),Ye(a._destroyed)).subscribe(function(){a._updateRootElement();a._setupHandlesListener();a.freeDragPosition&&VXb(a._dragRef,a.freeDragPosition)})})};
g.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();a&&!a.firstChange&&this.freeDragPosition&&VXb(this._dragRef,this.freeDragPosition)};g.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);var b=fYb.indexOf(this);-1<b&&fYb.splice(b,1);this._ngZone.runOutsideAngular(function(){a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};
g._updateRootElement=function(){var a=this.element.nativeElement,b=a;if(this.rootElementSelector){var c;b=void 0!==a.closest?a.closest(this.rootElementSelector):null==(c=a.parentElement)?void 0:c.closest(this.rootElementSelector)}RXb(this._dragRef,b||a)};g._getBoundaryElement=function(){var a=this.boundaryElement;return a?"string"===typeof a?this.element.nativeElement.closest(a):Tg(a):null};
g._syncInputs=function(a){var b=this;a.beforeStarted.subscribe(function(){if(!a.isDragging()){var c=b._dir,d=b.dragStartDelay,e=b._placeholderTemplate?{template:b._placeholderTemplate.templateRef,context:b._placeholderTemplate.data,viewContainer:b._viewContainerRef}:null,f=b._previewTemplate?{template:b._previewTemplate.templateRef,context:b._previewTemplate.data,matchSize:b._previewTemplate.matchSize,viewContainer:b._viewContainerRef}:null;a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.dragStartDelay=
"object"===typeof d&&d?d:Ug(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=UXb(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(Me()).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){if(c.classList.contains("cdk-drag")){var d=void 0;QXb(a,(null==(d=fYb.find(function(e){return e.element.nativeElement===
c}))?void 0:d._dragRef)||null);break}c=c.parentElement}})};
g._handleEvents=function(a){var b=this;a.started.subscribe(function(c){b.started.emit({source:b,event:c.event});b._changeDetectorRef.markForCheck()});a.released.subscribe(function(c){b.released.emit({source:b,event:c.event})});a.ended.subscribe(function(c){b.ended.emit({source:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:c.container.data,item:b,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:c.container.data,
item:b})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,isPointerOverContainer:c.isPointerOverContainer,item:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event})})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,h=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=null==h?!1:h;this.dragStartDelay=c||0;b&&(this.lockAxis=b);d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
g._setupHandlesListener=function(){var a=this;this._handles.changes.pipe(We(this._handles),Ze(function(b){b=b.filter(function(c){return c._parentDrag===a}).map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);TXb(a._dragRef,b)}),Xe(function(b){return T.merge.apply(null,u(b.map(function(c){return c._stateChanges.pipe(We(c))})))}),Ye(this._destroyed)).subscribe(function(b){var c=a._dragRef,d=b.element.nativeElement;b.disabled?!c._disabledHandles.has(d)&&-1<c._handles.indexOf(d)&&
(c._disabledHandles.add(d),fp(d,!0)):c._disabledHandles.has(d)&&(c._disabledHandles.delete(d),fp(d,c.disabled))})};ki.Object.defineProperties(tV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(a){this._disabled=Rg(a);this._dragRef.disabled=this._disabled}}});var fYb=[];tV.\u0275fac=function(a){return new (a||tV)(F(nd),F(cYb,12),F(ii),F(ef),F(Wf),F(CXb,8),F(hA,8),F(rV),F(lx),F(EXb,10),F(DXb,12))};
tV.\u0275dir=v({type:tV,selectors:[["","cdkDrag",""]],contentQueries:function(a,b,c){a&1&&($f(c,GXb,5),$f(c,FXb,5),$f(c,EXb,5));if(a&2){var d;Yf(d=ag())&&(b._previewTemplate=d.first);Yf(d=ag())&&(b._placeholderTemplate=d.first);Yf(d=ag())&&(b._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&sf("cdk-drag-disabled",b.disabled)("cdk-drag-dragging",b._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:[Lf([{provide:DXb,useExisting:tV}]),Ac]});
var uV=function(){};uV.\u0275fac=function(a){return new (a||uV)};uV.\u0275mod=rc({type:uV});uV.\u0275inj=fc({providers:[rV],imports:[xA]});
var gYb=["addLink"],hYb=["showFewer"],iYb=["showMore"],jYb=["removeButton"],kYb=[[["",8,"title-action"]],[["",8,"value-action"]]],lYb=[Object.assign({},lp("start","bottom"),mp("start","top"),{offsetY:8}),Object.assign({},lp("center","bottom"),mp("center","top"),{offsetY:8}),Object.assign({},lp("end","bottom"),mp("end","top"),{offsetY:8}),Object.assign({},lp("start","top"),mp("start","bottom"),{offsetY:-8}),Object.assign({},lp("end","top"),mp("end","bottom"),{offsetY:-8})],vV=function(a,b,c,d){BI.call(this);
this.cdr=a;this.dateFormatter=b;this.analytics=c;this.OVERLAY_POSITION_LIST=lYb;this.defaultLineCount=Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.userMap=new Map;this.enumChoices=null;this.sortedEnumChoices=[];this.enumPendingValues=new Set;this.isUser=this.isActive=!1;this.valuesChange=new Iw;this.showingAll=this.listFieldDisabled=!1;this.tooltip=this.title="";this.truncate=!1;this.teamId="";this.isString=Hi;this.enableTeamAnnotations=
d.isInternalSession();this.environmentType=d.getEnvironmentType()};U(vV,BI);vV.\u0275dir=BI.\u0275dir;vV.prototype.ngOnChanges=function(a){var b;if(null==(b=a.users)?0:b.currentValue)for(a=r(a.users.currentValue),b=a.next();!b.done;b=a.next()){b=b.value;var c=Pl(b);c&&this.userMap.set(c,Fi(b))}};vV.prototype.ngOnInit=function(){SEa(this)};
var SEa=function(a){a.sortedEnumChoices=[].concat(u(a.enumChoices||[])).sort(function(b){b=b.value;var c,d=(null==(c=a.values)?0:c.includes(b))?1:0,e;return((null==(e=a.values)?0:e.includes(b))?1:0)-d})},TEa=function(a){var b=a.values||[],c=[].concat(u(a.enumPendingValues)),d=c.filter(function(f){return!b.includes(f)}),e=b.filter(function(f){return!c.includes(f)});if(d.length||e.length)a.values=c,a.valuesChange.emit({values:a.values,added:d,removed:e})};
vV.prototype.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
vV.prototype.removeItem=function(a){var b=this;if(!this.listFieldDisabled){var c=this.values.splice(a,1);this.valuesChange.emit({values:this.values,removed:c})}this.schedule(function(){var d;if(null==(d=b.values)?0:d.length){d=Math.min(a,b.values.length-1);var e,f,h;null==(e=b.removeButtons)||null==(f=e.get(d))||null==(h=f.nativeElement)||h.focus()}else{var k,q;null==(k=b.addLinkEl)||null==(q=k.nativeElement)||q.focus()}})};
vV.prototype.addItems=function(a){var b=[];this.values=this.values||[];if(a)if("REPEATED_DATE"===this.type){var c=Mk(a);this.preventDuplicates&&this.values.find(function(f){return Ei(f,c)})||b.push(c)}else if("REPEATED_NUMERIC"===this.type&&cna(this.values)&&cna(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(bna(this.values)&&bna(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=r(a.split(/[,; ]/));
for(var d=a.next();!d.done;d=a.next()){var e=d=d.value;"CHANGELISTS"===this.type&&(e=mYb(d));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&"REPEATED_DATE"!==this.type||cFa(this,!0);0!==b.length&&(this.values=[].concat(u(this.values),u(b)),this.valuesChange.emit({values:this.values,added:b}))};
var mYb=function(a){if(a.match(/^(https:\/\/|http:\/\/)?(cl)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(cr)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(critique\.corp\.google\.com)/)||a.match(/^(https:\/\/|http:\/\/)?(critique-ng\.corp\.google\.com)/))a=a.replace(/^.*\//,"");return isNaN(Number(a))?null:a};vV.prototype.onDrop=function(a){jp(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
var cFa=function(a,b){var c,d=r(null!=(c=a.menuTriggers)?c:[]);for(c=d.next();!c.done;c=d.next())c.value.closeMenu();var e;d=r(null!=(e=a.popupTriggers)?e:[]);for(c=d.next();!c.done;c=d.next())e=c.value,e.disabled||(e.disabled=!0,e.disabled=!1);b&&a.addLinkEl&&a.addLinkEl.nativeElement.focus()},kp=function(a,b,c){null==c||c.stopPropagation();null==c||c.preventDefault();a.showingAll=b;a.cdr.detectChanges();a.schedule(function(){var d,e,f;null==(d=null!=(f=a.showFewer)?f:a.showMore)||null==(e=d.nativeElement)||
e.focus()})},nYb=function(a){return a.values&&"REPEATED_DATE"===a.type?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Lk(b))}):a.values&&"TEAM"===a.type?a.values:a.values&&"WORKSPACES"===a.type?a.values:a.displayValuesOverride||(a.values||[]).map(function(b){return Hi(b)?b:Gi(b)?""+b:a.dateFormatter.formatUserCalendar(Lk(b))})};g=vV.prototype;g.trackClick=function(a){bo(this.analytics,go.LINK_FIELD,"click",a)};g.getUser=function(a){return this.userMap.get(a)};g.schedule=function(a){this.subscriptions.add(T.asyncScheduler.schedule(a))};
g.trackByIndex=function(a){return a};g.asNumber=function(a){return Number(a)};vV.\u0275fac=function(a){return new (a||vV)(F(uI,2),F(JP),F(SM),F(pH))};
vV.\u0275cmp=v({type:vV,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(Zf(gYb,5),Zf(hYb,5),Zf(iYb,5),Zf(jYb,5),Zf(TE,5),Zf(GN,5));if(a&2){var c;Yf(c=ag())&&(b.addLinkEl=c.first);Yf(c=ag())&&(b.showFewer=c.first);Yf(c=ag())&&(b.showMore=c.first);Yf(c=ag())&&(b.removeButtons=c);Yf(c=ag())&&(b.menuTriggers=c);Yf(c=ag())&&(b.popupTriggers=c)}},inputs:{defaultLineCount:"defaultLineCount",readonly:"readonly",preventDuplicates:"preventDuplicates",isDefaultOrAllowedValues:"isDefaultOrAllowedValues",
values:"values",users:"users",displayValuesOverride:"displayValuesOverride",enumChoices:"enumChoices",isUser:"isUser",listFieldDisabled:"listFieldDisabled",showingAll:"showingAll",title:"title",type:"type",tooltip:"tooltip",truncate:"truncate",teamId:"teamId"},outputs:{valuesChange:"valuesChange"},features:[Lf([uI]),gf,Ac],ngContentSelectors:[".title-action",".value-action"],decls:21,vars:21,consts:[[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner",
3,"matTooltip","matTooltipPosition"],[1,"bv2-editable-title"],["tabindex","0",4,"ngIf"],["cdkDropList","",1,"list-field-content",3,"cdkDropListDisabled","cdkDropListDropped"],["cdkDrag","",4,"ngFor","ngForOf","ngForTrackBy"],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[4,"ngIf"],[1,"bv2-field-user-action-footer"],["addLink",""],[3,"ngSwitch",4,"ngIf"],["enumPopup","matMenu"],["matMenuContent",""],["textPopup",
""],["datePopup",""],["tabindex","0"],["cdkDrag",""],["class","flex-kids-x flex-cross-axis-centered flex-wrappable",4,"ngIf"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-issue-metadata-list-item"],[4,"ngIf","ngIfElse"],["checkIfWorkspaces",""],["checkIfTeam",""],["checkIfPostMortems",""],["default",""],["class","bv2-remove-icon bv2-remove-item keep-focus-ring",3,"disabled","matTooltip","click",4,"ngIf"],[1,"float-clear"],[3,"changelistId"],["target","_blank",1,"bv2-metadata-link",
3,"href"],[3,"teamId","componentId"],["target","_blank",1,"bv2-metadata-link",3,"href","click"],["class","list-field-user-container",4,"ngIf"],[3,"maxWidth","modelValue","disabled"],[1,"list-field-user-container"],[3,"user","email","teamId","enableSmallChip",4,"ngIf"],[3,"email",4,"ngIf"],[3,"user","email","teamId","enableSmallChip"],[3,"email"],[1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"disabled","matTooltip","click"],["removeButton",""],["tabindex","0","role","button",1,"bv2-metadata-tool",
"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["showFewer",""],[1,"bv2-metadata-tool"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["showMore",""],[3,"ngSwitch"],["mat-button","","aria-haspopup","true","class","mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Select items in the list","tabindex","0",3,"matMenuTriggerFor","menuOpened","menuClosed",4,"ngSwitchCase"],["mat-button","","class",
"mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Add a new item to the list","tabindex","0",3,"xapInlineDialogClick","overlayPositions",4,"ngSwitchCase"],["mat-button","","panelClass","bv2-add-item-bubble","class","mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Add a new item to the list","tabindex","0",3,"xapInlineDialogClick","overlayPositions",4,"ngSwitchDefault"],["mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex",
"0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"matMenuTriggerFor","menuOpened","menuClosed"],["mat-button","","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["mat-button","","panelClass","bv2-add-item-bubble","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],
["mat-menu-item","","type","button","role","menuitemcheckbox",3,"disabled","b-menu-item-checked","click",4,"ngFor","ngForOf","ngForTrackBy"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"disabled","click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],[3,"ngSubmit"],["textPopupForm","ngForm","formEl",""],["type","text","name","input","ngModel","","required","","autofocus","",3,"bContactAutocomplete",4,"ngIf"],["name","input","ngModel","","required","","step","any",
"autofocus","",3,"type",4,"ngIf"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"gmat-button","medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"gmat-button","medium","field-popup-button",3,"click"],["svgIcon","close"],["type","text","name","input","ngModel","","required","","autofocus","",3,"bContactAutocomplete"],["name","input","ngModel","","required","","step","any","autofocus","",3,"type"],[3,"required",
"renderPanel","dateChange","cancelClicked"]],template:function(a,b){a&1&&(Cf(kYb),G(0,"div",0)(1,"div",1)(2,"div",2),O(3,zEa,2,2,"label",3),Df(4),H(),G(5,"div",4),K("cdkDropListDropped",function(c){return b.onDrop(c)}),O(6,OEa,2,1,"div",5),O(7,PEa,3,3,"div",6),O(8,QEa,6,4,"div",7),O(9,REa,2,0,"div",7),G(10,"div",8,9),O(12,XEa,4,3,"ng-container",10),O(13,YEa,1,0,"ng-content",7),H()()(),G(14,"mat-menu",null,11),O(16,$Ea,1,2,"ng-template",12),H(),O(17,dFa,12,5,"ng-template",null,13,gg),O(19,eFa,1,2,
"ng-template",null,14,gg),H());a&2&&(sf("empty-list-field-indication",!(null==b.values?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),B(1),sf("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),D("matTooltip",b.tooltip)("matTooltipPosition","left"),B(2),D("ngIf",b.title),B(2),sf("draggable",(null==b.values?null:b.values.length)&&b.isDefaultOrAllowedValues),D("cdkDropListDisabled",!b.isDefaultOrAllowedValues),B(1),D("ngForOf",nYb(b))("ngForTrackBy",b.trackByIndex),
B(1),D("ngIf",b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),D("ngIf",!b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),D("ngIf",!(null==b.values?0:b.values.length)),B(3),D("ngIf",!b.readonly),B(1),D("ngIf",!b.readonly))},dependencies:[wx,sx,yx,zx,Ax,gV,NP,iy,Fg,by,cy,sy,hy,fy,pB,$E,zR,ZU,HS,sV,tV,CN,BN,GN,QE,OE,TE,NE,LE,XU,kV],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }",
".list-field-content.draggable[_ngcontent-%COMP%] { cursor: grab; }",".list-field-content.draggable[_ngcontent-%COMP%]:active { cursor: grabbing; }"]});
var oYb={CCS:"CCS",CHANGELISTS:"CHANGELISTS",POSTMORTEMS:"POSTMORTEMS",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",REPEATED_NUMERIC:"REPEATED_NUMERIC",TEAM:"TEAM",WORKSPACES:"WORKSPACES"},pYb=function(a){switch(null==a?void 0:a.type){case "REPEATED_TEXT":return"REPEATED_TEXT";case "REPEATED_DATE":return"REPEATED_DATE";case "REPEATED_ENUM":return"REPEATED_ENUM";case "REPEATED_NUMERIC":return"REPEATED_NUMERIC";default:return null}},wV=function(){};
wV.\u0275fac=function(a){return new (a||wV)};wV.\u0275mod=rc({type:wV});wV.\u0275inj=fc({imports:[[zO,Mx,hV,fQ,wy,jG,bH,DS,jV,$U,IS,uV,aO,cO,UE,dF,YU,cO,lV]]});
var gFa=function(){return[]},xV=function(){this.disabled=this.readonly=!1;this.save=new Iw},qYb=function(a){return a.issue.customFieldMap[a.field.customFieldId]};xV.prototype.getDisplayValue=function(){var a,b;return null!=(b=null==(a=qYb(this).displayValues)?void 0:a[0])?b:null};xV.prototype.getTooltip=function(){var a;return(null!=(a=this.field.description)?a:"")+" [ID: "+this.field.customFieldId+"]"};
var fFa=function(a){return(a=qYb(a).getValue())&&void 0===a.values?a:null},iFa=function(a){return(a=qYb(a).getValue())&&void 0!==a.values?a.values:null};xV.\u0275fac=function(a){return new (a||xV)};
xV.\u0275cmp=v({type:xV,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&Zf(aV,5);if(a&2){var c;Yf(c=ag())&&(b.editField=c.first)}},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","valueChange",4,"ngIf"],[3,"readonly","defaultLineCount","title","type","tooltip","values","displayValuesOverride",
"enumChoices","listFieldDisabled","valuesChange",4,"ngIf"],[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","valueChange"],[3,"readonly","defaultLineCount","title","type","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled","valuesChange"]],template:function(a,b){a&1&&O(0,kFa,3,2,"ng-container",0);a&2&&D("ngIf",qYb(b))},dependencies:[sx,vV,aV],encapsulation:2});var yV=function(){};
yV.\u0275fac=function(a){return new (a||yV)};yV.\u0275mod=rc({type:yV});yV.\u0275inj=fc({imports:[[Mx,wV,bV]]});
var zV=function(){this.mode="default";this.query="";this.selectComponentId=new Iw;this.expandComponent=new Iw;this.goBack=new Iw};zV.prototype.ngOnInit=function(){};zV.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};zV.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};zV.\u0275fac=function(a){return new (a||zV)};
zV.\u0275cmp=v({type:zV,selectors:[["component-row"]],inputs:{componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},decls:11,vars:8,consts:[[1,"container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"content"],[4,"ngIf","ngIfElse"],["leafOnly",""],["class","archived-indicator",4,"ngIf"],[3,"accessLevel","labelOnlyMode"],["svgIcon","history"],["mat-icon-button","","aria-label","Return to search results",
"matTooltip","Return to search results",3,"mousedown"],["svgIcon","back"],["mat-icon-button","",1,"expand-button",3,"matTooltip","mousedown"],["svgIcon","folder"],[4,"ngFor","ngForOf"],["noAccessComponent",""],[4,"ngIf"],[1,"subtle-link",3,"innerHtml","mousedown"],[1,"subtle-link",3,"mousedown"],[1,"archived-indicator"]],template:function(a,b){a&1&&(G(0,"div",0),xf(1,1),O(2,lFa,2,0,"ng-container",2),O(3,mFa,3,0,"ng-container",2),O(4,nFa,3,2,"ng-container",3),yf(),G(5,"div",4),O(6,sFa,2,1,"ng-container",
5),O(7,uFa,1,1,"ng-template",null,6,gg),O(9,vFa,2,0,"span",7),J(10,"b-access-level-indicator",8),H()());if(a&2){var c=Hf(8);B(1);D("ngSwitch",b.mode);B(1);D("ngSwitchCase","recent");B(1);D("ngSwitchCase","tree");B(3);D("ngIf","leaf"!==b.mode)("ngIfElse",c);B(3);D("ngIf",b.componentOption.archived);B(1);D("accessLevel",null==b.componentOption.accessLimit?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",!0)}},dependencies:[wx,sx,yx,zx,Ax,pB,LE,$E,TS,BM,KM],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:4px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.content[_ngcontent-%COMP%]{display:inline-block;margin-left:8px;margin-top:1px;line-height:20px}.mat-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:18px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:18px;width:18px;line-height:18px}.archived-indicator[_ngcontent-%COMP%]{margin-left:4px;color:#ea4335;color:var(--bad)}b-access-level-indicator[_ngcontent-%COMP%]{margin-left:4px}\n/*# sourceMappingURL=component_row.css.map */"]});
var rYb=0,AV=function(a,b){this.changeDetectorRef=a;this.elementRef=b;this.active=!1;this.id="b-component-picker-option-"+rYb;rYb+=1};AV.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};AV.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};AV.\u0275fac=function(a){return new (a||AV)(F(lx),F(nd))};
AV.\u0275dir=v({type:AV,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Af("id",b.id),sf("active",b.active))},inputs:{data:"data",listOrder:"listOrder"}});
var BV=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new Iw};BV.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};BV.prototype.ngOnInit=function(){};BV.\u0275fac=function(a){return new (a||BV)};
BV.\u0275cmp=v({type:BV,selectors:[["team-row"]],inputs:{teamOption:"teamOption",query:"query",allowSegmentSelection:"allowSegmentSelection",compact:"compact",hasNoComponent:"hasNoComponent"},outputs:{selectTeamId:"selectTeamId"},decls:5,vars:7,consts:[[1,"container"],["alt","Team logo",4,"ngIf"],[1,"content"],["class","name-row",4,"ngIf"],["class","path",4,"ngIf"],["alt","Team logo"],[1,"name-row"],[1,"team-name",3,"innerHtml"],["class","no-component-label",4,"ngIf"],[1,"no-component-label"],[1,
"path"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["lastSeg",""],["plainText",""],[1,"subtle-link",3,"mousedown"],["normal",""],[1,"team-name"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,wFa,1,1,"img",1),G(2,"div",2),O(3,yFa,4,5,"div",3),O(4,GFa,2,1,"div",4),H()());a&2&&(sf("no-component",b.hasNoComponent)("compact",b.compact),B(1),D("ngIf",!b.compact),B(2),D("ngIf",!b.compact),B(1),D("ngIf",b.teamOption.pathNames&&b.teamOption.pathNames.length))},dependencies:[wx,sx,BM],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:4px}.no-component[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-webkit-filter:grayscale(1);filter:grayscale(1)}.no-component[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-left:8px;width:100%}.container[_ngcontent-%COMP%]:not(.compact)   .path[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]:not(.compact)   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.container.compact[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{margin-left:2px}.name-row[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.no-component-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.6875rem;line-height:1.2307692308;margin-left:auto}img[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;object-fit:contain;width:20px;height:20px}\n/*# sourceMappingURL=team_row.css.map */"]});
var sYb=["primaryValueBar"],tYb=li(function(a){this._elementRef=a},"primary"),uYb=new jd("mat-progress-bar-location",{providedIn:"root",factory:KFa}),vYb=new jd("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),wYb=0,CV=function(a,b,c,d,e,f){a=tYb.call(this,a)||this;a._ngZone=b;a._animationMode=c;a._changeDetectorRef=f;a._isNoopAnimation=!1;a._value=0;a._bufferValue=0;a.animationEnd=new Iw;a._animationEndSubscription=T.Subscription.EMPTY;a.mode="determinate";a.progressbarId="mat-progress-bar-"+wYb++;a._rectangleFillValue=
"url('"+(d?d.getPathname().split("#")[0]:"")+"#"+a.progressbarId+"')";a._isNoopAnimation="NoopAnimations"===c;e&&(e.color&&(a.color=a.defaultColor=e.color),a.mode=e.mode||a.mode);return a};U(CV,tYb);CV.prototype._primaryTransform=function(){return{transform:"scale3d("+this.value/100+", 1, 1)"}};CV.prototype._bufferTransform=function(){return"buffer"===this.mode?{transform:"scale3d("+this.bufferValue/100+", 1, 1)"}:null};
CV.prototype.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,T.fromEvent)(b,"transitionend").pipe(De(function(c){return c.target===b})).subscribe(function(){0!==a.animationEnd.observers.length&&("determinate"!==a.mode&&"buffer"!==a.mode||a._ngZone.run(function(){return a.animationEnd.next({value:a.value})}))})})};CV.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()};
ki.Object.defineProperties(CV.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,Ug(a)||0));var b;null==(b=this._changeDetectorRef)||b.markForCheck()}},bufferValue:{configurable:!0,enumerable:!0,get:function(){return this._bufferValue},set:function(a){this._bufferValue=Math.max(0,Math.min(100,a||0));var b;null==(b=this._changeDetectorRef)||b.markForCheck()}}});
CV.\u0275fac=function(a){return new (a||CV)(F(nd),F(ef),F(Wv,8),F(uYb,8),F(vYb,8),F(lx))};
CV.\u0275cmp=v({type:CV,selectors:[["mat-progress-bar"]],viewQuery:function(a,b){a&1&&Zf(sYb,5);if(a&2){var c;Yf(c=ag())&&(b._primaryValueBar=c.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(a,b){a&2&&(nf("aria-valuenow","indeterminate"===b.mode||"query"===b.mode?null:b.value)("mode",b.mode),sf("_mat-animation-noopable",b._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",
mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[gf],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],"cx 2 cy 2 r 2".split(" "),["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill",
"mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(a,b){a&1&&(G(0,"div",0),Lc(),G(1,"svg",1)(2,"defs")(3,"pattern",2),J(4,"circle",3),H()(),J(5,"rect",4),H(),Mc(),J(6,"div",5)(7,"div",6,7)(9,"div",8),H());a&2&&(B(3),D("id",b.progressbarId),B(2),nf("fill",b._rectangleFillValue),B(1),D("ngStyle",b._bufferTransform()),B(1),D("ngStyle",b._primaryTransform()))},dependencies:[Bx],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],
encapsulation:2,changeDetection:0});
var xYb=["container"],yYb=["inputBox"],zYb=["dropdownTemplate"],AYb=["dropdown"],XFa=function(a){return{mode:"recent",$implicit:a}},bGa=function(a){return[a]},aGa=function(a,b){return{team:a,level:0,order:b}},hGa=function(a){return{mode:"default",$implicit:a}},kGa=function(a){return[0,a]},rGa=function(){return[0]},uGa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},AGa=function(a){return{mode:"leaf",$implicit:a}},FGa=function(a,b,c){return{team:a,level:b,order:c}},EV=function(a,b,c,
d,e,f,h,k,q,w){BI.call(this);this.overlay=a;this.viewContainerRef=b;this.userApi=c;this.componentActions=d;this.teamsService=e;this.userAccess=f;this.paths=h;this.analytics=k;this.activeSession=q;this.cdr=w;this.placeholder="";this.includeArchived=this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=!1;this.accessCheckComplete=new Iw;this.shouldFocus=!1;this.touched=new Iw;this.selectedComponentChange=new Iw;this.dropdownClosed=new Iw;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();
this.searchState=new DV(this.userApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeArchived:this.includeArchived,includeTeamData:!this.isExternal});this.componentLoading=this.isDropdownOpen=!1};U(EV,BI);EV.\u0275dir=BI.\u0275dir;
EV.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent);this.searchState.componentIdSelected$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;BYb(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});(0,T.merge)(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(Ye(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
EV.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var BYb=function(a){if(a.selectedComponent){var b=np(a.selectedComponent);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},CYb=function(a){if(a.dropdown&&a.keyManager&&a.keyManager.activeItem){var b=a.keyManager.activeItem.elementRef.nativeElement,c=b.offsetTop;b=b.offsetHeight;var d=a.dropdown.nativeElement.scrollTop,e=a.dropdown.nativeElement.offsetHeight;a.dropdown.nativeElement.scrollTop=c<d?
c:c+b>d+e?Math.max(0,c-e+b):d}};g=EV.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(BYb(this),this.checkAdminAccess&&this.selectedComponent&&DYb(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();BI.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=Yz(Zz(new fA(this.listOptions)));this.searchState.listUpdated$.pipe(Ye(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(Ye(this.destroyed$)).subscribe(function(b){var c=b.toArray();b=c.filter(function(e){return null==e.listOrder});c=c.filter(function(e){return null!=e.listOrder}).sort(UGa);b=[].concat(u(c),u(b));a.listOptions.reset(b);var d;if(null==(d=a.keyManager)?0:d.activeItem)d=b.indexOf(a.keyManager.activeItem),
-1<d&&d!==a.keyManager.activeItemIndex&&a.keyManager.setActiveItem(d)});this.shouldFocus&&setTimeout(function(){a.inputBox.nativeElement.focus()})};g.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
g.close=function(a){a=void 0===a?!1:a;this.isDropdownOpen&&this.dropdownOverlayRef&&(this.searchState.searchQuery$.value||(this.selectedComponent=void 0,this.selectedComponentChange.emit(void 0)),"team_scope"===this.searchState.state$.value&&qp(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),bo(this.analytics,go.COMPONENT_PICKER,"close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var EYb=function(a){var b,c,d;return null!=(d=null==(b=a.keyManager)?void 0:null==(c=b.activeItem)?void 0:c.id)?d:void 0};
EV.prototype.handleKeydown=function(a){var b=this;if(this.keyManager)switch(a.key){case "Escape":this.close();break;case "ArrowUp":a.preventDefault();this.isDropdownOpen?(this.keyManager.onKeydown(a),CYb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||eA(d);CYb(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),CYb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||dA(d);CYb(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?qp(this.searchState):this.searchState.selectOption(this.keyManager.activeItem.data),a.preventDefault());break;case "ArrowRight":if(this.keyManager.activeItem){var c=this.keyManager.activeItem.data;"team"===c.type?(a.preventDefault(),oGa(this.searchState,c)):"component"===c.type&&(a.preventDefault(),this.searchState.expandComponent(c))}break;case "ArrowLeft":this.keyManager.activeItem&&"team"===this.keyManager.activeItem.data.type&&
(a.preventDefault(),this.searchState.teamScope$.value!==this.keyManager.activeItem.data||this.searchState.teamScope$.value.expanded?nGa(this.searchState,this.keyManager.activeItem.data):FYb(this.searchState));"component_scope"===this.searchState.state$.value&&(a.preventDefault(),wGa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(qp(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var op=function(a){a.preventDefault();a.stopPropagation()},DYb=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;DK(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=EV.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new AA({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:null==(c=this.container.nativeElement)?void 0:c.offsetWidth}))};g.attach=function(){var a=new MA(this.dropdownTemplateRef,this.viewContainerRef),b;null==(b=this.dropdownOverlayRef)||b.attach(a);var c;null==(c=this.dropdownOverlayRef)||c.updatePosition()};
g.getPositionStrategy=function(){return DA(GA(FA(JA(this.overlay.position(),this.container),!1),!1),GYb)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};g.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};EV.\u0275fac=function(a){return new (a||EV)(F(RA),F(Wf),F(PJ),F(AT),F(lM),F(CK),F(dL),F(SM),F(pH),F(lx))};
EV.\u0275cmp=v({type:EV,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(Zf(xYb,7),Zf(yYb,7),Zf(zYb,7),Zf(AYb,5),Zf(AV,5));if(a&2){var c;Yf(c=ag())&&(b.container=c.first);Yf(c=ag())&&(b.inputBox=c.first);Yf(c=ag())&&(b.dropdownTemplateRef=c.first);Yf(c=ag())&&(b.dropdown=c.first);Yf(c=ag())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",includeArchived:"includeArchived",ariaLabel:"ariaLabel",selectedComponent:"selectedComponent",checkAdminAccess:"checkAdminAccess",
shouldFocus:"shouldFocus"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},features:[gf,Ac],decls:13,vars:10,consts:[[1,"container","pseudo-input"],["container",""],["type","text","role","combobox","autocomplete","off","spellcheck","false","aria-autocomplete","list",1,"override",3,"ngModel","placeholder","required","ngModelChange","keydown","click","focus","blur"],["inputBox",""],["mat-icon-button",
"","tabindex","-1","matTooltip","Clear query",3,"mousedown",4,"ngIf"],[4,"ngIf"],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["mat-icon-button","","tabindex","-1","matTooltip","Clear query",3,"mousedown"],["svgIcon","clear"],["class","bv2-picker-checking",4,"ngIf","ngIfElse"],["maybeShowNotAdmin",""],[1,"bv2-picker-checking"],["class","bv2-picker-error",4,"ngIf"],[1,"bv2-picker-error"],["target","_blank",3,"href"],[1,"dropdown",3,"mousedown"],["dropdown",""],[1,"progress-bar-container"],
["mode","indeterminate",4,"ngIf"],[1,"dropdown-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],["mode","indeterminate"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tree",4,"ngIf"],["role","tree"],[1,"section-header"],[4,"ngFor","ngForOf"],["role","treeitem","listOption","",1,"list-option",3,"data","mousedown"],[3,"teamOption","query","hasNoComponent","selectTeamId"],["tabindex","-1","class","unstyled expand-team-line-button",3,"mousedown",4,"ngIf"],["tabindex","-1",1,"unstyled","expand-team-line-button",
3,"mousedown"],["svgIcon","arrow-down"],["class","team-scope-container",4,"ngIf"],[1,"team-scope-container"],["listOption","",1,"team-scope",3,"data","listOrder"],[3,"teamOption","query","compact","allowSegmentSelection","selectTeamId"],["tabindex","-1","mat-icon-button","","matTooltip","Clear team filter",1,"gmat-button","small","clear-filter",3,"mousedown"],["svgIcon","close"],["class","team-scope-child-teams",4,"ngIf"],[1,"team-scope-child-teams"],["class","component-scope-container",4,"ngIf"],
[1,"component-scope-container"],[1,"title"],["mode","tree",3,"componentOption","goBack","selectComponentId"],["role","treeitem","listOption","",1,"list-option",3,"listOrder","data","mousedown"],[1,"team-row-container"],["class","arrow-button","mat-icon-button","","aria-label","Show child teams",3,"mousedown",4,"ngIf"],["mat-icon-button","","aria-label","Show child teams",1,"arrow-button",3,"mousedown"],["svgIcon","arrow-dropdown"],["role","listbox",4,"ngIf","ngIfElse"],["emptyList",""],["role","listbox"],
["role","option","listOption","","class","list-option",3,"data","mousedown",4,"ngFor","ngForOf"],["role","option","listOption","",1,"list-option",3,"data","mousedown"],[3,"componentOption","query","mode","selectComponentId","expandComponent"],["class","empty-list muted",4,"ngIf"],[1,"empty-list","muted"],[4,"ngSwitchDefault"],["svgIcon","close",1,"icon-xs","valign-middle"],["href","http://go/buganizer:component-mapping#associate","target","_blank"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,
b){a&1&&(G(0,"div",0,1)(2,"input",2,3),K("ngModelChange",function(d){return b.searchState.searchQuery$.next(d)})("keydown",function(d){return b.handleKeydown(d)})("click",function(){b.open();return b.touched.emit()})("focus",function(){return b.open()})("blur",function(){return b.close()}),Q(4,"async"),H(),O(5,LFa,2,0,"button",4),H(),O(6,PFa,4,2,"div",5),O(7,CGa,11,8,"ng-template",null,6,gg),O(9,IGa,5,11,"ng-template",null,7,gg),O(11,TGa,3,2,"ng-template",null,8,gg));if(a&2){var c=Hf(3);B(2);D("ngModel",
R(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired);nf("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",EYb(b));B(3);D("ngIf",c.value);B(1);D("ngIf",b.checkAdminAccess)}},dependencies:[wx,sx,Cx,yx,zx,Ax,Fg,by,sy,hy,pB,LE,$H,$E,CV,BV,zV,AV,Fx],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid #1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%;max-height:500px;overflow:auto}.dropdown-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:5px 0 10px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}mat-divider[_ngcontent-%COMP%]{width:100%;margin-top:16px;margin-bottom:16px}  .b-team-component-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}.section-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:2px 14px}.section-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:auto}.list-option[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px}.list-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.list-option.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-row-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.team-row-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:4px}team-row[_ngcontent-%COMP%]{width:100%}.team-scope[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 10px}.team-scope[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.team-scope.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border-color:#1a73e8;border-color:var(--primary-c600)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]     .mat-button-focus-overlay{background-color:#1a73e8;background-color:var(--primary-c600);opacity:.12}.team-scope-container[_ngcontent-%COMP%]{margin-bottom:10px}.expand-team-line-button[_ngcontent-%COMP%]{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-top:4px;margin-left:12px;color:#1a73e8;color:var(--link)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon.expanded[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:6px}.mat-icon-button[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:16px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px;line-height:16px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]:not(.expanded){-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.indent[_ngcontent-%COMP%]{margin-left:24px}.arrow-button[_ngcontent-%COMP%]{margin-right:4px}.team-scope-child-teams[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]{padding-left:14px}.component-scope-container[_ngcontent-%COMP%] > .title[_ngcontent-%COMP%]{font-weight:700;padding:4px 16px;background-color:#f1f3f4;background-color:var(--c100)}.component-scope-container[_ngcontent-%COMP%] > component-row[_ngcontent-%COMP%]{display:block;margin-left:10px}.empty-list[_ngcontent-%COMP%]{padding:4px 18px}button.clear-filter[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}\n/*# sourceMappingURL=team_component_picker.css.map */"],
changeDetection:0});
var GYb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],DV=function(a,b,c,d,e,f){var h=this;this.userApi=a;this.componentActions=b;this.teamsService=c;this.analytics=d;this.destroyed$=e;this.config=f;this.searchQuery$=new T.BehaviorSubject("");this.debouncedSearchQuery$=this.searchQuery$.pipe(Je(250));this.state$=new T.BehaviorSubject("default");this.listUpdated$=new T.Subject;this.componentsLoading=this.teamsLoading=
!1;this.teamScope$=new T.BehaviorSubject(void 0);this.componentOptions=[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.recentComponents=[];this.myTeams$=new T.BehaviorSubject([]);this.showAllTeams$=new T.BehaviorSubject(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(Le());this.teamOptions$=new T.BehaviorSubject([]);this.filteredTeamOptions$=(0,T.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(C(function(k){k=r(k);var q=k.next().value;return k.next().value?
q:q.slice(0,5)}));this.hasHiddenTeams$=(0,T.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(C(function(k){var q=r(k);k=q.next().value;q=q.next().value;return 5<k.length&&!q}));this.newChildTeams$=new T.BehaviorSubject([]);this.teamsDisplayed$=(0,T.merge)(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(C(function(k){return k?[k]:[]}))).pipe(C(function(k){return k.map(function(q){return q.id})}));this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(C(function(k){return k.filter(function(q){return!h.childTeamsMap.has(q)})}),
De(function(k){return 0<k.length}),Xe(function(k){return h.teamsService.getChildTeams(k)}),C(JFa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(C(function(k){return k.filter(function(q){return!h.componentCountMap.has(q)})}),De(function(k){return 0<k.length}),Xe(function(k){return $Jb(h.teamsService,k)}));this.componentIdSelected$=new T.ReplaySubject(1);this.lastProcessedIndex=-1;this.requestIndex=0};
DV.prototype.init=function(a){var b=this;a=void 0===a?!1:a;HYb(this);(0,T.combineLatest)([this.debouncedSearchQuery$.pipe(Ve(a?1:0)),this.state$]).pipe(Ye(this.destroyed$)).subscribe(function(c){var d=r(c);c=d.next().value;d=d.next().value;b.showAllTeams$.next(!1);"default"===d?c?b.state$.next("global"):(b.componentOptions=[],b.teamOptions$.next([]),b.listUpdated$.next()):"global"===d?c?(b.config.includeTeamData&&IYb(b,c),JYb(b,c)):b.state$.next("default"):"team_scope"===d?b.teamScope$.value&&(b.teamOptions$.next([]),
JYb(b,"teamid:"+b.teamScope$.value.id+" "+c)):"component_scope"===d&&b.componentScope&&KYb(b,b.componentScope.id)});this.debouncedSearchQuery$.pipe($e(this.state$),Ye(this.destroyed$)).subscribe(function(c){c=r(c);var d=c.next().value;"component_scope"===c.next().value&&b.state$.next(d?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(Ye(this.destroyed$)).subscribe(function(c){c=r(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.childTeamsMap.set(d,
e)}});this.unseenTeamComponentCountMap$.pipe(Ye(this.destroyed$)).subscribe(function(c){c=r(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.componentCountMap.set(d,e)}})};
var HYb=function(a){a.componentsLoading=!0;a.userApi.getRecentComponents().then(function(b){b=b.map(np);a.recentComponents=b;a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1});a.config.includeTeamData&&(a.teamsLoading=!0,mM(a.teamsService,"").pipe(Ye(a.destroyed$)).subscribe(function(b){a.myTeams$.next(b.getTeamSuggestionsList().map(HFa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
DV.prototype.selectOption=function(a){"component"===a.type?KGa(this,a.id):"team"===a.type?SFa(this,a):console.warn("invalid option selected")};
var KGa=function(a,b){var c=LYb(a);bo(a.analytics,go.COMPONENT_PICKER,"autocomplete-select",c);a.componentIdSelected$.next(b);a.state$.next("global")},LYb=function(a){if("default"===a.state$.value)return"recent-component";if("global"===a.state$.value)return"global-search";if("component_scope"===a.state$.value)return"component-scope";if("team_scope"===a.state$.value){var b,c=null==(b=a.teamScope$.value)?void 0:b.id;return a.myTeams$.value.some(function(d){return d.id===c})?"my-team":"team-scope"}return""};
DV.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var xGa=function(a,b){a.componentActions.get(b).then(function(c){a.componentScope=np(c);a.state$.next("component_scope")})},wGa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},SFa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||pp(a,b.id)},pp=function(a,b){a.teamsLoading=!0;mM(a.teamsService,b).pipe(Ye(a.destroyed$)).subscribe(function(c){c=c.getTeamSuggestionsList().map(HFa);
if(1===c.length){c=c[0];var d,e=c.id!==(null==(d=a.teamScope$.value)?void 0:d.id);a.teamScope$.next(c);a.teamsLoading=!1;e&&a.state$.next("team_scope")}},function(){a.teamsLoading=!1})},FYb=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(2>a.teamScope$.value.pathIds.length)){var b=a.teamScope$.value.pathIds;pp(a,b[b.length-2])}};DV.prototype.getChildTeams=function(a){var b;return null!=(b=this.childTeamsMap.get(a))?b:[]};
DV.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?0===this.componentCountMap.get(a):!1};
var nGa=function(a,b){b.expanded=!1;a.listUpdated$.next()},oGa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},qp=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},IYb=function(a,b){1<b.length&&(a.teamsLoading=!0,mM(a.teamsService,b).pipe(Ye(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.getTeamSuggestionsList().map(HFa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},JYb=function(a,
b){if(1<b.length){a.componentsLoading=!0;var c=a.requestIndex++;a.componentActions.search(b,a.config.includeArchived).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=d.map(np));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},KYb=function(a,b){var c=a.requestIndex++;a.componentsLoading=!0;a.componentActions.getChildren(b).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=d.map(np),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})};
var FV=function(){};FV.\u0275fac=function(a){return new (a||FV)};FV.\u0275mod=rc({type:FV});FV.\u0275inj=fc({imports:[[Mx,VA],VA]});
var GV=function(){};GV.\u0275fac=function(a){return new (a||GV)};GV.\u0275mod=rc({type:GV});GV.\u0275inj=fc({imports:[[Mx,wy,jG,dF,eI,bH,FV,UA,QA,Rz,MM,dT]]});
var HV=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new Iw;this.filter=function(){return!0}};HV.prototype.onComponentSelect=function(a){var b=this;if(this.selectedComponent=a){var c;this.customFields=((null==(c=a.componentPathInfo)?void 0:c.allCustomField)||[]).filter(function(d){return b.filter(d)}).sort(function(d,e){return d.name.localeCompare(e.name)})}else this.customFields=null};HV.\u0275fac=function(a){return new (a||HV)};
HV.\u0275cmp=v({type:HV,selectors:[["b-custom-field-picker"]],inputs:{filter:"filter"},outputs:{fieldSelected:"fieldSelected"},decls:5,vars:4,consts:[[1,"bv2-custom-field-picker"],[1,"bv2-custom-field-picker-message"],[3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["class","bv2-custom-field-picker-select-box",4,"ngIf"],[1,"bv2-custom-field-picker-select-box"],[4,"ngIf"],["appearance","outline"],[1,"mat-select","bv2-custom-field-picker-select",3,"selectionChange"],[3,
"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1),P(2," First, select a component that contains the custom field. "),H(),G(3,"b-team-component-picker",2),K("selectedComponentChange",function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)}),H(),O(4,ZGa,4,3,"div",3),H());a&2&&(B(3),D("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),B(1),D("ngIf",b.selectedComponent))},dependencies:[wx,sx,XB,UB,YS,lB,
EV],encapsulation:2});var IV=function(){};IV.\u0275fac=function(a){return new (a||IV)};IV.\u0275mod=rc({type:IV});IV.\u0275inj=fc({imports:[[Mx,ZS,GV]]});
var MYb=function(a){return{value:a}},JV=function(){this.isNonemptyJsonDateValue=Qpa};JV.prototype.toDate=function(a){return Lk(a)};JV.\u0275fac=function(a){return new (a||JV)};
JV.\u0275cmp=v({type:JV,selectors:[["b-custom-field-value-display"]],inputs:{customFieldValue:"customFieldValue"},decls:6,vars:4,consts:[[1,"bv2-custom-field-value-display"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["null",""],["nonNull",""],[4,"ngIf"],["mode","date",3,"date"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(G(0,"span",0),O(1,$Ga,1,0,"ng-container",1),H(),O(2,aHa,0,0,"ng-template",null,2,gg),O(4,nHa,8,8,"ng-template",null,3,gg));if(a&2){var c=Hf(5);B(1);D("ngTemplateOutlet",
null==b.customFieldValue?null:c)("ngTemplateOutletContext",Nf(2,MYb,b.customFieldValue))}},dependencies:[wx,sx,Cx,LP],encapsulation:2});var KV=function(){};KV.\u0275fac=function(a){return new (a||KV)};KV.\u0275mod=rc({type:KV});KV.\u0275inj=fc({imports:[[Mx,eQ]]});
var PYb=function(a,b){this.origCommonDuplicateOf=this.origCommonVerifier=this.origCommonAssignee=this.lastCommonAssignee="";this.overwriteVerifier=this.overwriteAssignee=!1;this.commonDuplicateOf=this.commonVerifier=this.commonAssignee="";this.issueState=void 0;this.userEmail=a;this.origIssues=b;this.comment=new aS;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";NYb(this,b);OYb(this,b)},NYb=function(a,b){var c=b[0],d=zn[c.status],e=c.duplicateOfIssueId;
if(d)for(b.every(function(f){return"DUPLICATE"===f.status&&e===f.duplicateOfIssueId})&&e&&(a.commonDuplicateOf=e.toString(),a.origCommonDuplicateOf=e.toString()),c=1;c<b.length;c++)if(b[0].status!==b[c].status){d=void 0;break}a.issueState=d;a.origCommonIssueState=d},QYb=function(a){if(1===a.length)return"IDENTICAL_EMAILS";var b=!a.every(function(c){return c===a[0]});return a.every(function(c){return void 0===c||Ln(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},OYb=function(a,b){var c=b.map(function(d){return d.assigneeEmail});
b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=QYb(c);a.selectedVerifiersStatus=QYb(b);"IDENTICAL_EMAILS"===a.selectedAssigneesStatus&&(a.commonAssignee=c[0],a.origCommonAssignee=c[0]);"IDENTICAL_EMAILS"===a.selectedVerifiersStatus&&(a.commonVerifier=b[0],a.origCommonVerifier=b[0])};PYb.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;HIa(this)};
PYb.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var Mp=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},DIa=function(a,b){(a.origCommonIssueState=b)?("NEW"===b.status?RYb(a.selectedAssigneesStatus)?a.clearAssignee():a.commonAssignee&&(a.lastCommonAssignee=a.commonAssignee,a.commonAssignee=""):"DUPLICATE"===b.status?(a.commonAssignee=a.origCommonAssignee,a.commonVerifier=a.origCommonVerifier):("REQUIRED"!==b.assigneeRequirement||a.commonAssignee||RYb(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),RYb(a.selectedVerifiersStatus)||a.commonVerifier||"VERIFIED"!==b.status||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},RYb=function(a){return"MULTIPLE"===a||"POSSIBLY_MULTIPLE"===a},HIa=function(a){var b=zn.NEW,c=zn.ASSIGNED;a.issueState===b&&a.commonAssignee?a.issueState=a.origCommonIssueState===b?c:a.origCommonIssueState:a.commonAssignee||a.issueState&&!YIb.has(a.issueState)||(a.issueState=b)},SYb=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},RIa=function(a){var b=new Map;b.set("assignee",a.overwriteAssignee||a.commonAssignee!==a.origCommonAssignee?a.commonAssignee:void 0);(a.overwriteVerifier||a.commonVerifier!==a.origCommonVerifier)&&b.set("verifier",a.commonVerifier);a.commonDuplicateOf!==a.origCommonDuplicateOf&&b.set("duplicateOfIssueId",a.commonDuplicateOf);SYb(a)&&b.set("status",a.issueState.status);a.comment.value&&b.set("comment",a.comment.value);return b};
var TYb=function(a){this.uploadUrl_=a};TYb.prototype.getUploadUrl=function(){return this.uploadUrl_};
var UYb=function(){Oo.call(this)};Zt(UYb,Oo);var LV=function(a){FC.call(this,a)};Zt(LV,FC);var MV=function(a){FC.call(this,a)};Zt(MV,FC);
var VYb=function(a,b){this.name_=a;this.inputElement_=b};VYb.prototype.getName=function(){return this.name_};
var WYb=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!1};
var NV=function(){Oo.call(this);this.name_="closure_frame"+XYb++;this.iframesForDisposal_=[];YYb[this.name_]=this},OV;Zt(NV,Oo);var YYb={},XYb=0,ZYb=function(a,b){var c=Xo(a);qzb(b,function(d,e){Array.isArray(d)||(d=[d]);qa(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=NV.prototype;g.form_=null;g.iframe_=null;g.iframeName_=null;g.nextIframeId_=0;g.active_=!1;g.complete_=!1;g.success_=!1;g.lastUri_=null;g.lastContent_=null;g.lastErrorCode_=0;
g.iframeDisposalTimer_=null;g.send=function(a,b,c,d){if(this.active_)throw Error("ae");this.lastUri_=a=new bp(a);b=b?b.toUpperCase():"GET";c&&JG(a,"zx",hC());OV||(OV=Xrb("FORM"),OV.acceptCharset="utf-8",c=OV.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(OV));this.form_=OV;"GET"==b&&ZYb(this.form_,a.queryData_);d&&ZYb(this.form_,d);Lqb(this.form_,Iy(a.toString()));this.form_.method=b;$Yb(this);aZb(this)};
g.abort=function(a){if(this.active_){var b=PV(this);if(b)if(LC(b))b.removeAllListeners();else if(b=QC(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)SC(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");bZb(this)}};
g.disposeInternal=function(){this.active_&&this.abort();NV.superClass_.disposeInternal.call(this);this.iframe_&&cZb(this);aZb(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete YYb[this.name_]};g.isComplete=function(){return this.complete_};g.isSuccess=function(){return this.success_};g.isActive=function(){return this.active_};g.getResponseText=function(){return this.lastContent_};g.getResponseJson=function(){return stb(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return ytb(this.lastErrorCode_)};
var $Yb=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=Xo(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});cu&&7>Number(hu)&&Lqb(a.iframe_,Iy(kh(Ao('javascript:""'))));var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";fu?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");if(cu&&!iu("11")){a.form_.target=a.iframeName_||"";Xo(a.form_).document_.body.appendChild(a.iframe_);
Po(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a);try{a.errorHandled_=!1,a.form_.submit()}catch(I){RC(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a),a.handleError_(1)}}else{Xo(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=gD(a.iframe_);if(document.baseURI){var d=Ij(b);d=Hj('<head><base href="'+Ij(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>',null)}else d=Ij(b),d=Hj('<body><iframe id="'+d+'" name="'+d+'"></iframe>',
null);c.write(ph(d));Po(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=YC("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];csb(d[e],k,!1);k.join("")!=h&&(hD(d[e],h),d[e].value=h)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);e=YC("SELECT",a.form_);f=YC("SELECT",d);h=0;for(k=e.length;h<k;h++)for(var q=YC("OPTION",e[h]),w=YC("OPTION",f[h]),y=0,E=q.length;y<E;y++)w[y].selected=q[y].selected;e=YC("INPUT",a.form_);f=YC("INPUT",d);h=0;
for(k=e.length;h<k;h++)if("file"==e[h].type&&e[h].value!=f[h].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),eu&&qD(a.testForFirefoxSilentError_,250,a)}catch(I){RC(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}}};
NV.prototype.onIeReadyStateChange_=function(){if("complete"==this.iframe_.readyState){RC(this.iframe_,"readystatechange",this.onIeReadyStateChange_,!1,this);try{var a=gD(this.iframe_);if(cu&&"about:blank"==a.location&&!navigator.onLine){this.handleError_(9);return}}catch(b){this.handleError_(1);return}dZb(this,a)}};NV.prototype.onIframeLoaded_=function(){RC(PV(this),"load",this.onIframeLoaded_,!1,this);try{dZb(this,this.iframe_?gD(PV(this)):null)}catch(a){this.handleError_(1)}};
var dZb=function(a,b){a.complete_=!0;a.active_=!1;try{var c=b.body;a.lastContent_=c.textContent||c.innerText}catch(e){var d=1}d||"function"!=typeof a.errorChecker_||(b=a.errorChecker_(b))&&(d=4);d?a.handleError_(d):(a.success_=!0,a.lastErrorCode_=0,a.dispatchEvent("complete"),a.dispatchEvent("success"),bZb(a))};
NV.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),bZb(this),this.errorHandled_=!0)};
var bZb=function(a){cZb(a);aZb(a);a.form_=null;a.dispatchEvent("ready")},cZb=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(rD(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);eu?a.iframeDisposalTimer_=qD(a.disposeIframes_,2E3,a):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
NV.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(rD(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;0!=this.iframesForDisposal_.length;){var a=this.iframesForDisposal_.pop();eD(a)}};var aZb=function(a){a.form_&&a.form_==OV&&dD(a.form_)},PV=function(a){return a.iframe_?cu&&!iu("11")?a.iframe_:gD(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
NV.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?gD(PV(this)):null;a&&!mib(a,"documentUri")?(RC(PV(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):qD(this.testForFirefoxSilentError_,250,this)}};
var eZb=function(a,b,c,d,e){Oo.call(this);c=document.createElement("form");c.setAttribute("method",b);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",e);c.appendChild(b);c.appendChild(d);this.form_=c;a=new bp(a);JG(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new NV;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new OG(this);EC(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};U(eZb,UYb);g=eZb.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("ae");var c=new bp(this.url_||b.action);a.lastUri_=c;a.form_=b;Lqb(a.form_,c.toString());$Yb(a)};g.getBytesTransferred=function(){return null};
g.getResponseCode=function(){return null};g.getResponseHeaders=function(){return null};g.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new LV("m"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new LV("j"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new LV("l"))};
var hZb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=fZb[a.name]):(this.code=a=a.code,this.name=gZb(a));aa.call(this,Pqb("%s %s",this.name,b))};Zt(hZb,aa);
var gZb=function(a){var b=Cja(fZb,function(c){return a==c});if(void 0===b)throw Error("be`"+a);return b},QV={},fZb=(QV.AbortError=3,QV.EncodingError=5,QV.InvalidModificationError=9,QV.InvalidStateError=7,QV.NotFoundError=1,QV.NotReadableError=4,QV.NoModificationAllowedError=6,QV.PathExistsError=12,QV.QuotaExceededError=10,QV.SecurityError=2,QV.SyntaxError=8,QV.TypeMismatchError=11,QV);
var iZb=function(a,b){FC.call(this,a.type,b);this.event_=a};Zt(iZb,FC);
var jZb=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};
var pHa=new WeakMap,oHa=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};
rp(function(){if(!ba.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return 100!=b.size?!1:!0});var kZb=rp(function(){if(!ba.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===jZb(b,0,1)?!1:!0});
var lZb=function(){Oo.call(this);this.reader_=new FileReader;this.reader_.onloadstart=Vt(this.dispatchProgressEvent_,this);this.reader_.onprogress=Vt(this.dispatchProgressEvent_,this);this.reader_.onload=Vt(this.dispatchProgressEvent_,this);this.reader_.onabort=Vt(this.dispatchProgressEvent_,this);this.reader_.onerror=Vt(this.dispatchProgressEvent_,this);this.reader_.onloadend=Vt(this.dispatchProgressEvent_,this)};Zt(lZb,Oo);g=lZb.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new hZb(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new hZb(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new iZb(a,this))};g.disposeInternal=function(){lZb.superClass_.disposeInternal.call(this);delete this.reader_};g.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};g.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
g.readAsText=function(a,b){this.reader_.readAsText(a,b)};var mZb=function(a){var b=new yS;a.listen("loadend",Wt(function(c,d){var e=d.reader_.result,f=d.getError();null==e||f?c.errback(f):c.callback(e);d.dispose()},b,a));return b};
var RV=function(){MD.call(this)};U(RV,MD);RV.prototype.createXhr=function(){var a=MD.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=Vt(this.onProgress_,this));return a};RV.prototype.onProgress_=function(a){this.dispatchEvent(a)};
var nZb=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},pZb=function(a,b){var c=a.attempt_+1;if(0<a.maxAttempts_&&c>a.maxAttempts_)return!1;0==c?b():a.delayCallId_=qD(function(){a.delayCallId_=null;b()},oZb(a),a);a.attempt_=c;return!0};nZb.prototype.reset=function(){this.delayCallId_&&rD(this.delayCallId_);this.attempt_=-1};var oZb=function(a){var b=250*Math.pow(2,a.attempt_);0<=a.maxDelayMs_&&(b=Math.min(b,a.maxDelayMs_));return b};
var sHa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];
var SV=function(a){Oo.call(this);a=a||new WYb;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new nZb;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorDescription_=null;this.eventHandler_=new OG(this);EC(this,this.eventHandler_);this.url_=this.blob_=null;this.method_=void 0;this.metadata_=this.headers_=null;this.maxChunkSize_=a.maxChunkSize_;this.chunkSize_=null;this.retryOnHttpClientErrorEnabled_=
a.retryOnHttpClientErrorEnabled_;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.responseText_=this.responseHeaders_=this.responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};Zt(SV,UYb);g=SV.prototype;g.run=function(){TV(this)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};g.getResponseHeaders=function(){return this.responseHeaders_};
g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};
g.cancel=function(){if("Response received"!=this.state_&&"Error"!=this.state_){this.eventHandler_.removeAll();this.request_&&this.request_.abort();this.retryIterator_.reset();var a="Paused"===this.state_?this.stateAfterUnpausing_:this.state_;if("Upload"===a||"Query"===a)a=this.createXhrRequest(),a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.getUploadUrl(),"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new LV("m"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;"Paused"===this.state_&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,qZb(this))};
var TV=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):pZb(a.retryIterator_,function(){return qZb(a)})||UV(a,"Transfer encountered too many consecutive failures.")},qZb=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.getUploadUrl(),c=a.blob_.size;if(kZb()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=jZb(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=a.createXhrRequest();
a.request_.withCredentials_=a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=Vt(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new MV("o"));e=Object.assign({},a.headers_||{},{"X-Goog-Upload-Command":"upload"+(e?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.request_.send(b,"POST",c,e);break;case "Query":a.query_();break;default:throw Error("ce");
}},UV=function(a,b){a.state_="Error";a.errorDescription_=b;a.dispatchEvent(new LV("l"))};g=SV.prototype;
g.start_=function(){this.request_=this.createXhrRequest();var a=gh(this.headers_);null!=this.blob_.size&&(a["Content-Length"]=this.blob_.size);a=tHa(a);a["X-Goog-Upload-Protocol"]="resumable";a["X-Goog-Upload-Command"]="start";this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onStartComplete_);this.request_.withCredentials_=this.withCredentials_;this.request_.send(this.url_,this.method_,this.metadata_,a);this.lastCommandResponseCode_=null;this.dispatchEvent(new MV("o"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new MV("p"));rZb(b)?sZb(this,b):tZb(b)?(b=sp(a.target.getAllResponseHeaders()),this.dispatchEvent(new LV("k")),a=tp(b,"X-Goog-Upload-URL"),b=(b=tp(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,void 0===a||isNaN(b)||0>=b?UV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new TYb(a),this.dispatchEvent(new LV("n")),this.state_=
"Upload",this.retryIterator_.reset(),TV(this))):TV(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new LV("i"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return me(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new MV("p"));if(d.retryOnHttpClientErrorEnabled_?uZb(e)||404==e.getStatus():rZb(e))return d.bytesTransferred_=a,sZb(d,e),h.return();if(tZb(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return ne(h,vZb(d),4);case 4:f=h.yieldResult;case 3:if(f)return UV(d,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=400==e.getStatus();d.state_="Query";TV(d);return h.return();case 2:if(b)return UV(d,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();TV(d);return h.return()}})};
g.query_=function(){this.request_=this.createXhrRequest();this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onQueryComplete_);var a=Object.assign({},this.headers_||{},{"X-Goog-Upload-Command":"query"});this.request_.send(this.transferHandle_.getUploadUrl(),"POST","",a);this.lastCommandResponseCode_=null;this.dispatchEvent(new MV("o"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new MV("p"));rZb(b)?(200===b.getStatus()&&(this.bytesTransferred_=this.blob_.size),sZb(this,b)):tZb(b)?(a=sp(a.target.getAllResponseHeaders()),a=parseInt(tp(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?UV(this,"Server did not respond with current offset."):a<this.offset_?UV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?UV(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<a&&this.retryIterator_.reset(),this.offset_=this.bytesTransferred_=a,this.state_="Upload",TV(this))):TV(this)};
var sZb=function(a,b){a.responseCode_=b.getStatus();var c=sp(b.getAllResponseHeaders());a.responseHeaders_=uHa(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new LV("j"))},tZb=function(a){var b=a.getStatus();a=sp(a.getAllResponseHeaders());a=tp(a,"X-Goog-Upload-Status");return 200===b&&"active"===a},uZb=function(a){a=sp(a.getAllResponseHeaders());return"final"===tp(a,"X-Goog-Upload-Status")},rZb=function(a){if(uZb(a))return!0;a=a.getStatus();return 400<=a&&500>
a},vZb=function(a){var b;return me(function(c){if(1==c.nextAddress){if(!a.blob_||0>=a.originalBlobSize_)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);Lt(c,2);if(b=jZb(a.blob_,0,1)){var d=new lZb,e=mZb(d);d.readAsBinaryString(b);c=ne(c,e,4)}else c=c.return(!0);return c}if(2!=c.nextAddress)return c.return(a.blob_.size!==a.originalBlobSize_);Nt(c);return c.return(!0)})};SV.prototype.createXhrRequest=function(){return new RV};
var wZb=function(a,b,c,d,e,f){Oo.call(this);this.payload_=d;this.url_=a;this.method_=b;this.headers_=c;this.metadata_=e;this.metadataOverhead_=0;this.encoding_=f||"binary";a=new Ji;this.boundary_="scotty-"+hC()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new OG(this);EC(this,this.eventHandler_)};U(wZb,UYb);g=wZb.prototype;
g.run=function(){var a=gh(this.headers_);null!=this.payload_.length&&(a["Content-Length"]=this.payload_.length);a=tHa(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=this.createXhrRequest();this.eventHandler_.removeAll();this.eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.eventHandler_.listen(this.transferRequest_,"complete",this.onTransferComplete_);var b=
this.transferRequest_,c=b.send,d=this.url_,e=this.method_,f="--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n";this.metadataOverhead_=f.length-this.payload_.length;c.call(b,d,e,f,a)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};
g.getResponseHeaders=function(){return this.responseHeaders_};g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){"Complete"!=this.state_&&"Error"!=this.state_&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new LV("m")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new LV("i"))};g.onTransferComplete_=function(a){var b=a.target.getStatus();void 0===b||-1===b?(this.errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new LV("l"))):(this.responseCode_=b,a=a.target,b=sp(a.getAllResponseHeaders()),this.responseHeaders_=uHa(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new LV("j")))};
g.createXhrRequest=function(){return new RV};
var xZb=function(){},yZb=function(a,b,c,d,e){e=void 0===e?!1:e;if(c instanceof VYb)return new eZb(a,"POST",b,c.inputElement_,d);if("string"===typeof c||c instanceof String)return new wZb(a,"POST",b,c,d);var f=new SV(void 0);f.url_=a;f.method_="POST";f.headers_=b;f.blob_=c;f.originalBlobSize_=c.size;f.metadata_=d;e&&(f.withCredentials_=e);f.state_="Start";return f};
var zZb=new jd("ScottyUploaderConfigFactory"),AZb=new jd("ScottyUploader",{factory:function(){return new xZb}}),VV=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new T.Subject;this.transferStatus=Olb(this.internalTransferStatus)};
VV.prototype.upload=function(a,b){var c=this;b=void 0===b?this.configFactory.create(a):b;a=yZb(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=(0,T.merge)((0,T.fromEvent)(a,"k"),(0,T.fromEvent)(a,"i"),(0,T.fromEvent)(a,"n"),(0,T.fromEvent)(a,"l"),(0,T.fromEvent)(a,"j"),(0,T.fromEvent)(a,"m")).pipe(Ye((0,T.fromEvent)(a,"j").pipe(Ke(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});
a.run()};VV.\u0275fac=function(a){return new (a||VV)(t(AZb),t(zZb))};VV.\u0275prov=ec({token:VV,factory:VV.\u0275fac});
var BZb=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};BZb.prototype.getDirectory=function(a){return this.directoryMap_[a]};BZb.prototype.getName=function(){return this.name_};
var DZb=function(a,b,c){b=void 0===b?"single_file":b;c=void 0===c?[]:c;Oo.call(this);this.overlayTarget_=a;this.parentOverlay_=null!=a?a.parentNode:Fj(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=CZb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};U(DZb,Oo);
var CZb=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Po(e,"change",a.onFilesSelected_,!1,a);"multiple_file"===c&&(e.multiple="true");"single_directory"===c&&(e.webkitdirectory="true");0<d.length&&e.setAttribute("accept",d.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(null!=a.overlayTarget_)return e.style.height=
b.offsetHeight+"px",e.style.width=b.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),b.parentNode&&b.parentNode.insertBefore(e,b.nextSibling),Uq(e,new Rq(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};DZb.prototype.click=function(){this.overlay_.click()};
DZb.prototype.onFilesSelected_=function(a){a:{try{var b=void 0!==(new XMLHttpRequest).upload;break a}catch(w){}b=!1}if(b){a=a.target.files;b=[];if("single_directory"===this.selectorType_&&(fu||du)){b=new BZb("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(var c=0;c<a.length;c++)for(var d=a[c],e=d.webkitRelativePath.split("/"),f=b,h=0;h<e.length;h++){var k=e[h];if(h==e.length-1){"."!=k&&f.files_.push(d);break}var q=f.getDirectory(k);void 0==q&&(k=q=new BZb(k),f.directoryMap_[k.getName()]=
k,f.directories_.push(k));f=q}b=b.directories_}this.dispatchEvent(new EZb(a,b,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new EZb([],[],new VYb(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=CZb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var FZb={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},EZb=function(a,b){FC.call(this,"s");this.files=a;this.directories=b};U(EZb,FC);
var WV=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new T.ReplaySubject(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new Iw;this.maxFileSize=null;this.fileSizeRejected=new Iw;this.fileSelected=new Iw};
WV.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(Xe(function(b){return(0,T.merge)((0,T.fromEvent)(b,"q"),(0,T.fromEvent)(b,"s"))}),Ye(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=r(b.files);for(var d=c.next();!d.done;d=c.next()){d=d.value.name;var e=d.lastIndexOf(".");if(!a.supportedFileExtensions.includes(-1!==e?d.substr(e+1).toLowerCase():"")){c=!1;break a}}}c=!0}if(c){a:{if(a.maxFileSize)for(c=r(b.files),d=c.next();!d.done;d=
c.next())if(d.value.size>a.maxFileSize){c=!1;break a}c=!0}c?a.fileSelected.emit(b):a.fileSizeRejected.emit(b)}else a.fileExtensionRejected.emit(b)})})};WV.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};WV.\u0275fac=function(a){return new (a||WV)(F(nd),F(ef))};WV.\u0275dir=v({type:WV,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected"}});
var XV=function(a,b){WV.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};U(XV,WV);
XV.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return(0,T.merge)((0,T.fromEvent)(a.elementRef.nativeElement,"mouseover"),(0,T.fromEvent)(a.elementRef.nativeElement,"focus")).pipe(Oe(),Ye(a.destroyed),C(function(){a.fileSelectorOverlay=new DZb(a.elementRef.nativeElement,a.selectorType,GZb(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),Ue(1))}));return this.overlay};
XV.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};var GZb=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};XV.\u0275fac=function(a){return new (a||XV)(F(nd),F(ef))};XV.\u0275dir=v({type:XV,hostBindings:function(a,b){a&1&&K("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[gf]});var YV=function(a,b,c){XV.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};U(YV,XV);
YV.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(Ye(this.destroyed),De(function(){return!a.disableAutoUpload})).subscribe(function(b){b=r(b.files);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;null==(d=a.uploader)||d.upload(c)}})};ki.Object.defineProperties(YV.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=Rg(a)}}});
YV.\u0275fac=function(a){return new (a||YV)(F(nd),F(ef),F(VV,8))};YV.\u0275dir=v({type:YV,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[gf]});
var ZV=function(a){this.snackBar=a;this.SelectorType=FZb;this.disabled=!1;this.onSelect=new Iw};ZV.\u0275fac=function(a){return new (a||ZV)(F(LK))};
ZV.\u0275cmp=v({type:ZV,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled"},outputs:{onSelect:"onSelect"},decls:3,vars:3,consts:[[1,"goog-inline-block","vertical-centered"],["mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled","fileSelected"],["svgIcon","attachment"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"button",1),K("fileSelected",function(c){if(c=c.files){c=r(c);for(var d=
c.next();!d.done;d=c.next())d=d.value,null!=d&&d.name&&qya(d.name)?b.onSelect.emit(d):b.snackBar.open("Filename contains invalid characters!")}}),J(2,"mat-icon",2),H()());a&2&&(B(1),D("selectorType",b.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",b.disabled))},dependencies:[pB,LE,$E,YV],encapsulation:2});
var $V=function(a,b){$R.call(this,a.size,a.name);var c=this;this.destroyed$=new T.Subject;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "i":case "k":case "n":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "l":c.handleError(e);break;case "j":c.transferredBytes=e.getBytesTransferred()||0;(d=e.getResponseCode())&&200!=d?c.handleError(e):(d=e.getResponseText())?(c.state=2,c.blobRef=JSON.parse(d).encryptedMedia):c.handleError(e);c.unsubscribe();
break;case "m":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(Ye(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};U($V,$R);$V.prototype.handleError=function(a){this.transferredBytes=a.getBytesTransferred()||0;this.state=3;if(a=a.getErrorDescription())this.errorMessage=a;this.errorMessage||(this.errorMessage="Error while uploading.")};
$V.prototype.cancel=function(){var a,b;null==(a=this.transfer)||null==(b=a.cancel)||b.call(a);this.unsubscribe()};$V.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};
var aW=function(a){this.activeSession=a};
aW.prototype.create=function(a){for(var b=a.name,c=[],d=0,e=0;e<b.length;e++){var f=b.charCodeAt(e);128>f?c[d++]=f:(2048>f?c[d++]=f>>6|192:(55296==(f&64512)&&e+1<b.length&&56320==(b.charCodeAt(e+1)&64512)?(f=65536+((f&1023)<<10)+(b.charCodeAt(++e)&1023),c[d++]=f>>18|240,c[d++]=f>>12&63|128):c[d++]=f>>12|224,c[d++]=f>>6&63|128),c[d++]=f&63|128)}b=ab(c);c=new bp(null);return{url:JG(c.setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,
"X-Goog-Upload-File-Name":a.name},withCredentials:!0}};aW.\u0275fac=function(a){return new (a||aW)(t(pH))};aW.\u0275prov=ec({token:aW,factory:aW.\u0275fac,providedIn:"root"});var bW=function(a,b){this.uploader=a;this.uploaderConfigFactory=b};bW.prototype.create=function(){return new VV(this.uploader,this.uploaderConfigFactory)};bW.\u0275fac=function(a){return new (a||bW)(t(AZb),t(aW))};bW.\u0275prov=ec({token:bW,factory:bW.\u0275fac,providedIn:"root"});
var yHa=function(a){return{"attachment-error":a}},cW=function(a){this.scottyUploaderFactory=a;this.uploads=[];this.onUploadCancel=new Iw;this.uploadStates=ZPb};cW.prototype.ngOnDestroy=function(){for(var a=r(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};cW.prototype.upload=function(a){var b=this.scottyUploaderFactory.create();b.upload(a);return new $V(a,b.transferStatus)};cW.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};
cW.\u0275fac=function(a){return new (a||cW)(F(bW))};
cW.\u0275cmp=v({type:cW,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel"},decls:1,vars:1,consts:[["class","attachments",4,"ngIf"],[1,"attachments"],["class","attachment",3,"ngClass",4,"ngFor","ngForOf"],[1,"attachment",3,"ngClass"],[1,"attachment-title"],["svgIcon","file-present"],[1,"issue-attachment-filename",3,"matTooltip"],[1,"attachment-filesize"],[4,"ngIf"],["role","alert","aria-live","assertive",4,"ngIf"],[1,"bv2-remove-icon","keep-focus-ring",
"attachment-cancel-button",3,"matTooltip","click"],["role","alert","aria-live","assertive"]],template:function(a,b){a&1&&O(0,AHa,2,1,"div",0);a&2&&D("ngIf",0<b.uploads.length)},dependencies:[vx,wx,sx,LE,$E,IM],styles:[".attachments[_ngcontent-%COMP%]{margin:10px 10px 0}.attachments[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border-radius:4px;box-sizing:border-box;display:inline-flex;align-items:center;margin-bottom:10px;overflow-y:hidden;padding:5px;position:relative;width:100%;min-height:36px}.attachments[_ngcontent-%COMP%]   .attachment.attachment-error[_ngcontent-%COMP%]{background-color:#fce8e6;background-color:var(--bad-bg)}.attachments[_ngcontent-%COMP%]   .attachment-title[_ngcontent-%COMP%]{flex-grow:1}.attachments[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.attachments[_ngcontent-%COMP%]   .issue-attachment-filename[_ngcontent-%COMP%]{display:inline-block;font-weight:bold;margin-right:5px;max-width:50%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.attachments[_ngcontent-%COMP%]   .attachment-filesize[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.attachments[_ngcontent-%COMP%]   .issue-attachment-link[_ngcontent-%COMP%]{margin-left:8px}.attachments[_ngcontent-%COMP%]   .attachment-cancel-button[_ngcontent-%COMP%]{padding:12px;margin-left:4px}"]});
var HZb=function(a){this.size=a.sizeBytes;this.name=a.name;this.mimeType=a.mimeType;this.encryptedBlobId=a.blobId;this.url=a.url;this.docId=a.id};
var IZb=function(a){$R.call(this,a.size,a.name);this.attachment=a};U(IZb,$R);
var JZb=function(a,b){a.attachment.encryptedBlobId?(a.state=1,b.createDriveAttachment({filename:a.attachment.name,mimeType:a.attachment.mimeType,encryptedBlobId:a.attachment.encryptedBlobId,docId:a.attachment.docId,size:a.attachment.size}).then(function(c){a.attachment.size&&(a.transferredBytes=a.attachment.size);a.blobRef=c.encryptedMedia;a.state=2}).catch(function(c){a.state=3;a.errorMessage=xm(c)?ym(c):"Error while uploading."})):(a.state=3,a.errorMessage="Error while uploading.")};
var dW=function(a){this.id_=a;this.opts={}};g=dW.prototype;g.setLabel=function(a){this.label_=a||void 0;return this};g.setQuery=function(a){this.opts.query=a;return this};g.setParent=function(a){this.opts.parent=a};g.toArray=function(){var a=dh(this.opts,function(c){return null!==c});a=eh(a)?null:a;a=[this.id_,this.label_,a];var b=jaa(a);return a=a.slice(0,b+1)};g.toString=function(){var a=this.toArray();return"("+bu(a,function(b){return HD(b)}).join(",")+")"};g.getId=function(){return this.id_};
g.getLabel=function(){return this.label_};g.getOptions=function(){return gh(this.opts)};g.getQuery=function(){return this.opts.query};
var eW=function(a){dW.call(this,a||"all")};Zt(eW,dW);var KZb=function(){var a=(new eW("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=eW.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setOwnedByMe=function(a){void 0!==a?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};g.setStarred=function(a){this.opts.starred=a};g.setLabel=function(a){eW.superClass_.setLabel.call(this,a);return this};
g.setQuery=function(a){eW.superClass_.setQuery.call(this,a);return this};g.setParent=function(a){eW.superClass_.setParent.call(this,a)};
var TZb=function(a,b){switch(a[0].getId().getSourceId()){case 13:return LZb(a,b);case 3:return MZb(a,b);case 10:return NZb(a,b,"upload");case 12:return OZb(a,b);case 2:return PZb(a,b);case 5:return QZb(a,b);case 9:return RZb(a,b);case 1:return cj(a[0],26)?SZb(a,b):NZb(a,b,"webcam");default:return{}}},PZb=function(a,b){a=a.map(function(c){var d=void 0;W(m(c,Vu,21),12)&&(d="success");return{id:c.getId().getId(),serviceId:"docs",mimeType:c.getMimeType(),name:c.getName(),type:c.getType(),lastEditedUtc:c.getLastModifiedTimestamp(),
url:c.getUrl(),sizeBytes:dj(c,23),description:c.getDescription(),iconUrl:c.getIconUrl(),thumbnails:fW(Xu(c)),isShared:W(m(c,Vu,21),1),downloadUrl:V(m(c,Vu,21),10),embedUrl:V(c,13),copyable:W(m(c,Vu,21),9),resourceKey:V(m(c,Vu,21),11),uploadState:d}});return{action:b,docs:a,viewToken:gW("all","",{}),view:"all"}},QZb=function(a,b){a=a.map(function(c){var d=m(m(c,Tu,15),Hu,1);yu(c,10,Hu,d);return{id:c.getId().getId(),serviceId:"web",mimeType:c.getMimeType(),name:c.getName(),type:c.getType(),url:c.getUrl(),
description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fW(Xu(c))}});return{action:b,docs:a,viewToken:gW("image-search","Search",{}),view:"image-search"}},RZb=function(a,b){a=a.map(function(c){return{serviceId:"url",name:Xu(c)[0].getUrl().split("/").pop(),type:"photo",mimeType:c.getMimeType(),url:c.getUrl(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fW(Xu(c))}});
return{action:b,docs:a,viewToken:gW("url","By URL",{}),view:"url"}},SZb=function(a,b){a=a.map(function(c){return{id:c.getId().getId(),serviceId:"picasa",name:c.getName(),type:c.getType(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fW(Xu(c))}});return{action:b,docs:a,viewToken:gW("webcam","",{}),view:"webcam"}},NZb=function(a,b,c){var d=a.map(function(e){return{id:e.getId().getId(),serviceId:"photo",mimeType:e.getMimeType(),
name:e.getName(),type:e.getType(),sizeBytes:dj(e,23),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fW(Xu(e))}});a=new Set(a.map(function(e){return e.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:d,viewToken:gW(c,"",a),view:c}},MZb=function(a,b){var c=a.map(function(d){return{id:d.getId().getId(),serviceId:"picasa",mimeType:d.getMimeType(),name:Xu(d)[0].getUrl().split("/").pop(),type:d.getType(),lastEditedUtc:d.getLastModifiedTimestamp(),
url:d.getUrl(),sizeBytes:dj(d,23),description:d.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fW(Xu(d))}});a=new Set(a.map(function(d){return d.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:c,viewToken:gW("photos","",a),view:"photos"}},LZb=function(a,b){var c=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:Xu(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:fW(Xu(e),"etjpg")}}),d={category:m(a[0],Ou,28).getCategory()};a=gW("et",V(m(a[0],Ou,28),2),d);return{action:b,docs:c,viewToken:a,view:"et"}},OZb=function(a,b){a=a.map(function(c){var d=jb(m(c,Nu,27),1)[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:c.getMimeType(),name:c.getName(),description:c.getDescription(),url:"mailto:"+d,thumbnail:[{url:c.getIconUrl()}],email:d}});return{action:b,docs:a,view:"contacts"}},gW=function(a,b,c){return{0:a,1:b,2:c}},fW=function(a,b){b=void 0===
b?"":b;if(!a.length)return null;"etjpg"==b&&(a=a.filter(function(c){return c.getUrl().includes("w1200-h300")}));return a.map(function(c){return{url:c.getUrl(),height:c.getHeight(),width:c.getWidth(),type:b}})};
var UZb=function(){dW.call(this,"image-search")};U(UZb,dW);g=UZb.prototype;g.setType=function(a){this.opts.type=a;return this};g.setSize=function(a){this.opts.imgsz=a;return this};g.setColor=function(a){this.opts.imgcolor=a;return this};g.setLabel=function(a){dW.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){dW.prototype.setQuery.call(this,a);return this};g.setParent=function(a){dW.prototype.setParent.call(this,a)};
var VZb=function(){dW.call(this,"maps")};U(VZb,dW);g=VZb.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setZoom=function(a){this.opts.zoom=a;return this};g.setLabel=function(a){dW.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){dW.prototype.setQuery.call(this,a);return this};g.setParent=function(a){dW.prototype.setParent.call(this,a)};
var WZb=function(){dW.call(this,"photos")};U(WZb,dW);g=WZb.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setType=function(a){this.opts.type=a;return this};g.setLabel=function(a){dW.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){dW.prototype.setQuery.call(this,a);return this};g.setParent=function(a){dW.prototype.setParent.call(this,a)};g.removeDuplicates=function(){this.opts.rdv=!0;return this};
var hW=function(){dW.call(this,"url")};U(hW,dW);hW.prototype.setType=function(a){this.opts.type=a;return this};hW.prototype.setLabel=function(a){dW.prototype.setLabel.call(this,a);return this};hW.prototype.setQuery=function(a){dW.prototype.setQuery.call(this,a);return this};hW.prototype.setParent=function(a){dW.prototype.setParent.call(this,a)};
var iW=function(){dW.call(this,"video-search")};U(iW,dW);iW.prototype.setLabel=function(a){dW.prototype.setLabel.call(this,a);return this};iW.prototype.setQuery=function(a){dW.prototype.setQuery.call(this,a);return this};iW.prototype.setParent=function(a){dW.prototype.setParent.call(this,a)};
var jW=function(){dW.call(this,"web")};U(jW,dW);jW.prototype.setLabel=function(a){dW.prototype.setLabel.call(this,a);return this};jW.prototype.setQuery=function(a){dW.prototype.setQuery.call(this,a);return this};jW.prototype.setParent=function(a){dW.prototype.setParent.call(this,a)};
var kW=function(){this.root_=void 0;this.items_=[];this.opts={}},XZb=function(a){switch(a){case "image-search":return new UZb;case "maps":return new VZb;case "photos":return new WZb;case "url":return new hW;case "video-search":return new iW;case "web":return new jW}return new dW(a)};kW.prototype.addView=function(a){this.items_.push("string"===typeof a?XZb(a):a);return this};
var YZb=function(a){return"("+bu(a.items_,function(b){return b.toString()}).join(",")+")"},ZZb=function(a){a=dh(a.opts,function(b){return null!==b});return(a=eh(a)?null:a)?HD(yja(a,function(b){return b.toString()})):""};kW.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",YZb(this)],b=ZZb(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return YZb(this)};
kW.prototype.toObject=function(){var a=bu(this.items_,function(b){return b instanceof kW?b.toObject():b.toArray()});return this.root_?{root:this.root_.toArray(),items:a,options:this.getOptions()}:a};var $Zb=function(a,b){b=void 0===b?[]:b;a.items_.forEach(function(c){c instanceof kW?$Zb(c,b):b.push(c)});return b};kW.prototype.getOptions=function(){return gh(this.opts)};
var a_b=function(a){this.obj_=a};g=a_b.prototype;g.value=function(){return this.obj_};g.setWidth=function(a){this.obj_.width=a;return this};g.getWidth=function(){return this.obj_.width};g.setHeight=function(a){this.obj_.height=a;return this};g.getHeight=function(){return this.obj_.height};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};
var b_b=function(a){this.obj_=a||{}};g=b_b.prototype;g.value=function(){return this.obj_};g.setUrl=function(a){this.obj_.url=a;return this};g.getUrl=function(){return this.obj_.url};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};g.setId=function(a){this.obj_.id=a;return this};g.getId=function(){return this.obj_.id};g.getContext=function(){return this.obj_.context};
var c_b=function(a){a.obj_.attributes=a.obj_.attributes||{};return new a_b(a.obj_.attributes)},vVb=function(a){return(a=a.obj_.timeout)?a:null};
var d_b=function(){b_b.apply(this,arguments)};U(d_b,b_b);
var e_b=zo(Ao("https://apis.google.com/js/api.js")),i_b=function(a,b){var c=!1,d=f_b(a,b).then(function(f){c=!0;return f}),e=Ksb(5E3).then(function(){return c?f_b(a,b):g_b(b).then(function(f){return h_b(f,a)})});return wsb([d,e])},f_b=function(a,b){return j_b(b).then(function(c){return h_b(c,a)})},h_b=function(a,b){var c=Mi(b,"gapi.")?b.slice(5):b;return a[c]?nD(a[c]):new mD(function(d,e){var f=qD(function(){e(Error("de"))},3E4);a.load(b,{callback:function(){rD(f);d(a[c])},onerror:function(h){rD(f);
e(h)}})})},j_b=function(a){return a.gapi&&a.gapi.load?nD(a.gapi):g_b(a)},g_b=function(a){return bBa(e_b,{document:a.document}).then(function(){return a.gapi})},k_b=function(){};k_b.prototype.load=function(a,b){b=void 0===b?window:b;var c=Date.now();return i_b(a,b).then(function(d){var e=Date.now();return{library:d,loadStartMs:c,loadEndMs:e}},function(d){throw d instanceof Error?d:Error(String(d));})};
var l_b=function(){DC.call(this);this.gapiLoader_=new k_b;this.origin_=null;this.gapiPickerIframeResolver_=ysb();this.gapiIframesResolver_=ysb();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};U(l_b,DC);
var m_b=function(a,b){var c=Ko("gapi.iframes",b);return c?(a=Date.now(),nD({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},n_b=function(a,b,c,d,e,f){var h=!0;h=void 0===h?!1:h;m_b(a,cD(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var w=k.resolve,y=h;y=void 0===y?!1:y;var E={};E["host-message-handler"]=c;a.hostMessageHandlerInternal_=E;var I=LG(d);I=LG(I);I=DG(jv(kv(new bp,I.scheme_),I.getDomain()),
I.port_).toString();a.origin_=I;I=(new d_b).setUrl(d);I.obj_.where=b;I.obj_.allowPost=y;I.obj_.messageHandlers=E;y=Ko("makeWhiteListIframesFilter",q)([a.origin_]);I.obj_.messageHandlersFilter=y;null!=e&&I.setId(e);null!=f&&(I.obj_.rpctoken=f);c_b(I).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");c_b(I).value().allow="camera";q=q.getContext().openChild(I.value());w.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});return a.gapiPickerIframeResolver_.promise},
o_b=function(a,b){return vsb([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=r(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,Ko("makeWhiteListIframesFilter",c)([a.origin_])):rsb(Error("ee"))})};l_b.prototype.disposeInternal=function(){p_b(this);DC.prototype.disposeInternal.call(this)};var p_b=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};
var q_b=function(){this.nextId_=0};
var r_b=new Map([["birthday",14],["children",1],["dinner",2],["featured",3],["holiday",4],["nightlife",5],["other",6],["party",7],["school",8],["seasonal",9],["sport",10],["stationery",11],["travel",12],["wedding",13]]),s_b=new Set("all docs-images docs-images-and-videos docs-videos documents drawings folders forms pdfs presentations scripts sites spreadsheets tables".split(" ")),v_b=function(a,b,c,d){var e=rkb(qkb((new iv).setHost(20),a));a=[];try{for(var f=0;f<d.length;f++){var h=d[f],k=h[0],q=
h[1];switch(k){case "cropphoto":for(var w=(new fv).setId(2),y=new ev,E=r(Object.entries(q||{})),I=E.next();!I.done;I=E.next()){var N=r(I.value),L=N.next().value;N.next();switch(L){case "ctta":break;default:throw Error("fe`"+L+"`"+k);}}xu(w,3,gv,y);e.addPostProcessor(w);break;default:throw Error("ge`"+k);}}c.forEach(function(S,Y){switch(Y){case "hostId".toString():tl(e,24,S);break;case "origin".toString():tl(e,27,S);break;case "title".toString():e.setTitle(S);break;case "hl".toString():e.setLocale(S);
break;case "multiselectEnabled".toString():"true"==S&&(S=new hv,ql(S,1,1),Ab(e,3,S));break;case "authuser".toString():S=parseInt(S,10);if(isNaN(S))throw Error("he");e.setAuthUser((new av).setAuthUser(S));break;case "maxItems".toString():Sk(e,5,parseInt(S,10));break;case "profilePhoto".toString():e.setTitle("Select Profile Photo");S=e.addPostProcessor;Y=(new fv).setId(2);var ka=new ev;ka=ko(ka,2,!0);Y=xu(Y,3,gv,ka);S.call(e,Y);e.addPostProcessor((new fv).setId(1));break;case "gmailDelegatorId".toString():S=
(new Zu).setGmailDelegatorId(S);Ab(e,29,S);break;case "minSize".toString():e.setMinSize(t_b(S));break;case "maxSize".toString():e.setMaxSize(t_b(S));break;case "view".toString():S=/\("([^"]*)",.*\)/.exec(S);"upload"==(null!=S&&1<S.length?S[1]:"")?e.setInitialView(1):e.setInitialView(0);break;case "pp".toString():case "dff".toString():case "relayUrl".toString():case "parent".toString():case "navHidden".toString():case "nav".toString():case "protocol".toString():case "actions".toString():case "thumbs".toString():case "tt".toString():case "odv".toString():case "newDriveView".toString():case "cropMode".toString():case "maxSizeBytes".toString():case "selectButtonLabel".toString():case "grugl".toString():break;
default:throw Error("ie`"+Y);}});a=u_b(b,e)}catch(S){return null}return(new Av).setConfig(e).setSourceList(a)},t_b=function(a){var b=a.split("x");a=b[0];b=b[1];return(new bv).setWidth(parseInt(a,10)).setHeight(parseInt(b,10))},w_b=function(a){var b=a.getConfig().getBaseUrl();$t(b,"/")||(b+="/");b=LG(b);b.setPath(b.getPath()+"home");JG(b,"req",a.serialize());return b.toString()},y_b=function(a,b){switch(a.action){case "select-contacts":a=x_b(a.contacts);break;case "visibility":a=a.visible;a=(new yv).setCommand(7).setVisible(a);
var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?o_b(b,a):nD()},x_b=function(a){if(!a||0==a.length)return null;var b=new yv;b.setCommand(11);var c=new q_b;a.forEach(function(d){if(d.email){var e=(new Wu).setName(d.name?d.name:d.email);var f=new Nu;d=ob(f,1,d.email);e=Ab(e,27,d).setId((new Gu).setId(":"+(c.nextId_++).toString(36)).setSourceId(12))}else e=null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a},u_b=function(a,b){var c=new Map,d=new cv;$Zb(a).forEach(function(e){var f=
new vp,h=e.getOptions(),k=e.getId();if(null!=k&&s_b.has(k)){switch(k){case "all":break;case "docs-images":dv(d,1);dv(d,6);break;case "docs-images-and-videos":dv(d,2);dv(d,1);dv(d,6);break;case "docs-videos":dv(d,2);dv(d,6);break;case "documents":dv(d,3);dv(d,6);break;case "drawings":dv(d,12);dv(d,6);break;case "folders":dv(d,6);break;case "forms":dv(d,7);dv(d,6);break;case "pdfs":dv(d,9);dv(d,6);break;case "presentations":dv(d,5);dv(d,6);break;case "scripts":dv(d,10);dv(d,6);break;case "sites":dv(d,
8);dv(d,6);break;case "spreadsheets":dv(d,4);dv(d,6);break;case "tables":dv(d,11);dv(d,6);break;default:throw Error("oe`"+k);}if(Object.keys(h).length)15==h.sortKey?(f=EHa(),c.set(f.serialize(),f)):h.starred?(f=FHa(),c.set(f.serialize(),f)):h.td||h.dr?(f=GHa(),c.set(f.serialize(),f)):h.ownedByMe?(f=CHa(),c.set(f.serialize(),f)):(f=DHa(),c.set(f.serialize(),f));else{var q=void 0===q?!1:q;var w=void 0===w?null:w;f=new yp;f.addSource(EHa());q&&(h=f.addSource,e=new vp,q=new wp,ko(q,14,!0),ql(q,4,1),Ab(e,
3,q),e.setSourceId(2),e.setName("Suggested"),h.call(f,e));null!=w&&f.addSource(w);f.addSource(CHa());f.addSource(GHa());f.addSource(DHa());f.addSource(FHa());w=f.addSource;h=new vp;e=new wp;ko(e,12,!0);Ab(h,3,e);h.setSourceId(2);h.setName("Computers");w.call(f,h);c.set(f.serialize(),f)}}else switch(k){case "contacts":f.setSourceId(12);if(0!=Object.keys(h||{}).length)throw Error("je");c.set(f.serialize(),f);break;case "photos":z_b(h,c,d);break;case "upload":"docs"==h.query?(e=(f=h.parent)?[f]:[],q=
[],q=void 0===q?[]:q,e=void 0===e?[]:e,f=new vp,w=f.setSourceId(2).setName("Upload"),h=new wp,k=new sv,q=hl(k,3,q),e=hl(q,1,e),h=Ab(h,15,e),Ab(w,3,h)):(f.setSourceId(10),f.setUploadSourceOptions(A_b(h,d)));c.set(f.serialize(),f);break;case "url":f.setSourceId(9);e.getLabel()&&f.setName(e.getLabel());dv(d,1);c.set(f.serialize(),f);break;case "webcam":f.setSourceId(1);switch(h.query){case "forms":case "spreadsheets":case "presentation":w=f,e=new qv,h=ql(e,1,1).setUploadSourceOptions(A_b(h,d)),Ab(w,
16,h)}dv(d,1);c.set(f.serialize(),f);break;case "image-search":f.setSourceId(5);dv(d,1);c.set(f.serialize(),f);break;case "et":f.setSourceId(13);e.getLabel()&&f.setName(e.getLabel());w=new tv;h=r(Object.entries(e.getOptions()||{}));for(e=h.next();!e.done;e=h.next())switch(q=r(e.value),e=q.next().value,q=q.next().value,e){case "category":if(r_b.has(q))w.setCategory(r_b.get(q));else throw Error("ke`"+q);break;default:throw Error("le`"+e);}dv(d,1);Ab(f,13,w);c.set(f.serialize(),f);break;case null:break;
default:throw Error("me`"+e.getId());}});b.setItemType(ckb(d,Array.from(new Set(jb(d,1)))));return Array.from(c.values())},A_b=function(a,b){var c=new pv;a=r(Object.entries(a||{}));for(var d=a.next();!d.done;d=a.next()){var e=r(d.value);d=e.next().value;e=e.next().value;switch(d){case "query":switch(e){case "profile":ql(c,4,2);dv(b,1);break;case "photo":ql(c,4,1);dv(b,1);break;case "forms":ql(c,4,6);dv(b,1);break;case "spreadsheets":ql(c,4,7);dv(b,1);break;case "presentation":ql(c,4,8);dv(b,1);break;
default:throw Error("ne`"+e);}break;case "data":for(d=r(Object.entries(e||{})),e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;Yi(c,2).set(e,f)}}}return c},z_b=function(a,b,c){var d=new yp;if(Object.keys(a).length){if(a.allowedItemTypes.includes("photo")&&(d.addSource(HHa()),dv(c,1)),a.allowedItemTypes.includes("album")&&(d.addSource(IHa()),dv(c,14)),"videos-uploaded"==a.type||"videos-camerasync"==a.type)d.addSource(KHa()),dv(c,2)}else d=JHa(),dv(c,1),dv(c,14);d.getSourceList().forEach(function(e){b.set(e.serialize(),
e)})};
var B_b=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new kW};g=B_b.prototype;g.nav_=null;g.domHelper_=null;g.addView=function(a){this.nav_.addView(a);return this};g.getAppId=function(){return this.appId_};g.getBaseUrl=function(){return this.basePickerUrl_};g.getDomHelper=function(){return this.domHelper_};g.setAppId=function(a){this.appId_=a};g.setCallback=function(a){this.callback_=a;return this};
var C_b=function(a){B_b.call(this,a)};Zt(C_b,B_b);
var lW=function(a){Oo.call(this);this.dom_=a||Xo();this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null};Zt(lW,Oo);g=lW.prototype;g.idGenerator_=RU.getInstance();g.getId=function(){return this.id_||(this.id_=Aq(this.idGenerator_))};g.setId=function(a){this.parent_&&this.parent_.childIndex_&&(fh(this.parent_.childIndex_,this.id_),Fja(this.parent_.childIndex_,a,this));this.id_=a};g.getElement=function(){return this.element_};
g.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new OG(this));return this.googUiComponentHandler_};g.setParent=function(a){if(this==a)throw Error("pe");if(a&&this.parent_&&this.id_&&QMb(this.parent_,this.id_)&&this.parent_!=a)throw Error("pe");this.parent_=a;lW.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};
g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("qe");lW.superClass_.setParentEventTarget.call(this,a)};g.getDomHelper=function(){return this.dom_};g.createDom=function(){this.element_=this.dom_.createElement("DIV")};g.render=function(a){if(this.inDocument_)throw Error("re");this.element_||this.createDom();a?a.insertBefore(this.element_,null):this.dom_.document_.body.appendChild(this.element_);this.parent_&&!this.parent_.inDocument_||this.enterDocument()};
g.enterDocument=function(){this.inDocument_=!0;D_b(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};g.exitDocument=function(){D_b(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);D_b(this,function(a){a.dispose()});this.element_&&eD(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;lW.superClass_.disposeInternal.call(this)};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("re");if(0>a||a>(this.children_?this.children_.length:0))throw Error("se");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);if((void 0).getParent()==this){var b=this.childIndex_,c=(void 0).getId();b[c]=void 0;wa(this.children_)}else Fja(this.childIndex_,(void 0).getId());(void 0).setParent(this);maa(this.children_,a,0,void 0);(void 0).inDocument_&&this.inDocument_&&
(void 0).getParent()==this?(b=this.getContentElement(),(b.childNodes[a]||null)!=(void 0).getElement()&&((void 0).getElement().parentElement==b&&b.removeChild((void 0).getElement()),a=b.childNodes[a]||null,b.insertBefore((void 0).getElement(),a))):this.inDocument_&&!(void 0).inDocument_&&(void 0).element_&&(void 0).element_.parentNode&&1==(void 0).element_.parentNode.nodeType&&(void 0).enterDocument()};g.getContentElement=function(){return this.element_};
g.hasChildren=function(){return!!this.children_&&0!=this.children_.length};var QMb=function(a,b){return a.childIndex_&&b?Gja(a.childIndex_,b)||null:null},D_b=function(a,b){a.children_&&a.children_.forEach(b,void 0)};lW.prototype.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=QMb(this,c);c&&a&&(fh(this.childIndex_,c),wa(this.children_,a),b&&(a.exitDocument(),a.element_&&eD(a.element_)),a.setParent(null))}if(!a)throw Error("te");return a};
lW.prototype.removeChildren=function(a){for(var b=[];this.hasChildren();){var c=b,d=c.push;var e=this.removeChild(this.children_?this.children_[0]||null:null,a);d.call(c,e)}return b};
Zt(LHa,up);
var E_b=function(a){up.call(this,"visibility");this.visible=a};Zt(E_b,up);
var F_b=zo(Ao("//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick")),G_b=zo(Ao("//apis.google.com/js/rpc.js")),Ap=null;
var mW=function(a){Oo.call(this);this.element_=a;a=cu?"focusout":"blur";this.listenKeyIn_=Po(this.element_,cu?"focusin":"focus",this,!cu);this.listenKeyOut_=Po(this.element_,a,this,!cu)};Zt(mW,Oo);mW.prototype.handleEvent=function(a){var b=new KC(a.event_);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};mW.prototype.disposeInternal=function(){mW.superClass_.disposeInternal.call(this);SC(this.listenKeyIn_);SC(this.listenKeyOut_);delete this.element_};
var nW=function(a,b,c){Oo.call(this);this.target=a;this.handle=b||a;this.limits=c||new LU(NaN,NaN,NaN,NaN);this.document_=WC(a);this.eventHandler_=new OG(this);EC(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.dragging_=!1;Po(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=H_b};Zt(nW,Oo);
var H_b=ba.document&&ba.document.documentElement&&!!ba.document.documentElement.setCapture&&!!ba.document.releaseCapture;g=nW.prototype;g.getHandler=function(){return this.eventHandler_};g.disposeInternal=function(){nW.superClass_.disposeInternal.call(this);RC(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
g.startDrag=function(a){var b="mousedown"==a.type;if(this.dragging_||b&&(0!=a.event_.button||gu&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new oW("start",this,a.clientX,a.clientY,a))){this.dragging_=!0;b&&a.preventDefault();b=this.document_;var c=b.documentElement,d=!this.useSetCapture_;this.eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,{capture:d,passive:!1});this.eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,d);this.useSetCapture_?(c.setCapture(!1),
this.eventHandler_.listen(c,"losecapture",this.endDrag)):this.eventHandler_.listen(cD(b),"blur",this.endDrag);this.scrollTarget_&&this.eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,d);this.clientX=this.startX=a.clientX;this.clientY=this.startY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop;this.pageScroll=bD(Xo(this.document_).document_)}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new oW("end",this,a.clientX,a.clientY,a,I_b(this,this.deltaX),J_b(this,this.deltaY),b||"touchcancel"==a.type))):this.dispatchEvent("earlycancel")};
g.handleMove_=function(a){var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;if(0<d*d+e*e)if(this.dispatchEvent(new oW("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=K_b(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new oW("beforedrag",this,a.clientX,a.clientY,
a,b,c))&&(L_b(this,a,b,c),a.preventDefault())};var K_b=function(a,b,c){var d=bD(Xo(a.document_).document_);b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new Rq(I_b(a,a.deltaX),J_b(a,a.deltaY))};nW.prototype.onScroll_=function(a){var b=K_b(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;L_b(this,a,b.x,b.y)};
var L_b=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new oW("drag",a,b.clientX,b.clientY,b,c,d))},I_b=function(a,b){var c=a.limits;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))},J_b=function(a,b){var c=a.limits;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))};nW.prototype.isDragging=function(){return this.dragging_};
var oW=function(a,b,c,d,e,f,h){FC.call(this,a);this.clientX=c;this.clientY=d;this.left=void 0!==f?f:b.deltaX;this.top=void 0!==h?h:b.deltaY};Zt(oW,FC);
var pW=function(a){this.map_=new Map;var b=arguments.length;if(1<b){if(b%2)throw Error("ad");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};g=pW.prototype;g.getCount=function(){return this.map_.size};g.getValues=function(){return Array.from(this.map_.values())};g.getKeys=function(){return Array.from(this.map_.keys())};g.containsKey=function(a){return this.map_.has(a)};g.containsValue=function(a){return this.getValues().some(function(b){return b==a})};
g.equals=function(a,b){var c=this;b=void 0===b?function(d,e){return d===e}:b;return this===a?!0:this.map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.map_.get(d),a.get(d))})};g.isEmpty=function(){return 0==this.map_.size};g.clear=function(){this.map_.clear()};g.remove=function(a){return this.map_.delete(a)};g.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};g.set=function(a,b){this.map_.set(a,b);return this};
g.addAll=function(a){if(a instanceof pW){a=r(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=r(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=r(Object.entries(a)),b=a.next();!b.done;b=a.next())c=r(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};g.forEach=function(a,b){var c=this;b=void 0===b?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};g.clone=function(){return new pW(this)};
g.toObject=function(){for(var a={},b=r(this.map_),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a[c]=d}return a};
(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!ba.requestAnimationFrame;++c)ba.requestAnimationFrame=ba[b+"RequestAnimationFrame"],ba.cancelAnimationFrame=ba[b+"CancelAnimationFrame"]||ba[b+"CancelRequestAnimationFrame"];if(!ba.requestAnimationFrame){var d=0;ba.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return ba.setTimeout(function(){e(f+h)},h)};ba.cancelAnimationFrame||(ba.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var M_b=[[],[]],N_b=0,O_b=!1,P_b=0,R_b=function(a,b){var c=P_b++,d={measureTask:{id:c,fn:a.measure,context:b},mutateTask:{id:c,fn:a.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){0<arguments.length?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&0!=d.args.length?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,M_b[N_b].push(d));O_b||(O_b=!0,window.requestAnimationFrame(Q_b))}},Q_b=
function(){O_b=!1;var a=M_b[N_b],b=a.length;N_b=(N_b+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state={};a.length=0};
var S_b=cu?zo(Ao('javascript:""')):zo(Ao("about:blank"));uh(S_b);var T_b=cu?zo(Ao('javascript:""')):zo(Ao("javascript:undefined"));uh(T_b);
var U_b=function(a,b){this.element_=a;this.dom_=b};
var qW=function(a,b){lW.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=R_b({mutate:this.resizeBackground_},this)};Zt(qW,lW);g=qW.prototype;g.focusHandler_=null;g.visible_=!1;g.bgEl_=null;g.bgIframeEl_=null;g.tabCatcherElement_=null;g.backwardTabWrapInProgress_=!1;g.getCssClass=function(){return"goog-modalpopup"};g.getBackgroundElement=function(){return this.bgEl_};
g.createDom=function(){qW.superClass_.createDom.call(this);var a=this.getElement();JU(a,Qi(this.getCssClass()).split(" "));a.tabIndex=0;PU(a,!1);this.useIframeMask_&&!this.bgIframeEl_&&(a=this.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"}),a.src=uh(S_b),this.bgIframeEl_=a,this.bgIframeEl_.className=this.getCssClass()+"-bg",PU(this.bgIframeEl_,!1),HWb(this.bgIframeEl_,0));this.bgEl_||(this.bgEl_=this.getDomHelper().createDom("DIV",this.getCssClass()+"-bg"),
PU(this.bgEl_,!1));this.tabCatcherElement_||(this.tabCatcherElement_=this.getDomHelper().createElement("SPAN"),PU(this.tabCatcherElement_,!1),this.tabCatcherElement_.tabIndex=0,this.tabCatcherElement_.style.position="absolute")};g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
g.enterDocument=function(){if(this.bgIframeEl_){var a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.bgIframeEl_,a)}a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.bgEl_,a);qW.superClass_.enterDocument.call(this);a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.tabCatcherElement_,a.nextSibling);this.focusHandler_=new mW(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);V_b(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);ui(this.focusHandler_);qW.superClass_.exitDocument.call(this);eD(this.bgIframeEl_);eD(this.bgEl_);eD(this.tabCatcherElement_)};
g.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&V_b(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.getDomHelper().document_.activeElement}catch(e){}this.resizeBackground_();this.reposition();this.getHandler().listen(this.getDomHelper().getWindow(),
"resize",this.resizeBackground_).listen(this.getDomHelper().getWindow(),"orientationchange",this.resizeBackgroundTask_);W_b(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)OC(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){this.getHandler().unlisten(this.getDomHelper().getWindow(),"resize",this.resizeBackground_).unlisten(this.getDomHelper().getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)OC(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.getDomHelper(),c=b.document_.body,d=b.document_.activeElement||c;if(!this.lastFocus_||this.lastFocus_==c){this.lastFocus_=null;break a}(d==c||b.contains(this.getElement(),d))&&this.lastFocus_.focus()}catch(e){}this.lastFocus_=null}}};
var V_b=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new U_b(a.element_,a.dom_));a=a.modalAriaVisibilityHelper_;if(b){a.hiddenElements_||(a.hiddenElements_=[]);b=a.dom_.getChildren(a.dom_.document_.body);for(var c=0;c<b.length;c++){var d=b[c],e;if(e=d!=a.element_)e=d.getAttribute("aria-hidden"),e=!(null==e||void 0==e?0:String(e));e&&(dJ(d,"hidden",!0),a.hiddenElements_.push(d))}}else if(a.hiddenElements_){for(c=0;c<a.hiddenElements_.length;c++)a.hiddenElements_[c].removeAttribute("aria-hidden");
a.hiddenElements_=null}};qW.prototype.setTransition=function(a){this.popupShowTransition_=a;this.bgHideTransition_=this.bgShowTransition_=this.popupHideTransition_=void 0};var W_b=function(a,b){a.bgIframeEl_&&PU(a.bgIframeEl_,b);a.bgEl_&&PU(a.bgEl_,b);PU(a.getElement(),b);PU(a.tabCatcherElement_,b)};g=qW.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){W_b(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&PU(this.bgIframeEl_,!1);this.bgEl_&&PU(this.bgEl_,!1);var a=this.getDomHelper().document_,b=$C(cD(a)||window),c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(PU(this.bgIframeEl_,!0),GWb(this.bgIframeEl_,c,a));this.bgEl_&&(PU(this.bgEl_,!0),GWb(this.bgEl_,c,a))};
g.reposition=function(){var a=this.getDomHelper().document_,b=cD(a)||window;if("fixed"==Bp(this.getElement(),"position"))var c=a=0;else c=bD(this.getDomHelper().document_),a=c.x,c=c.y;var d=Tq(this.getElement());b=$C(b);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);Uq(this.getElement(),a,c);Uq(this.tabCatcherElement_,a,c)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&qD(this.focusElement_,0,this)};
g.focusElement_=function(){try{cu&&this.getDomHelper().document_.body.focus(),this.getElement().focus()}catch(a){}};g.disposeInternal=function(){ui(this.popupShowTransition_);this.popupShowTransition_=null;ui(this.popupHideTransition_);this.popupHideTransition_=null;ui(this.bgShowTransition_);this.bgShowTransition_=null;ui(this.bgHideTransition_);this.bgHideTransition_=null;qW.superClass_.disposeInternal.call(this)};
var tW=function(a,b,c){qW.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=rW(rW(new sW,X_b,!0),Y_b,!1,!0)};Zt(tW,qW);g=tW.prototype;g.escapeToCancel_=!0;g.hasTitleCloseButton_=!0;g.modal_=!0;g.backgroundElementOpacity_=.5;g.title_="";g.dragger_=null;g.disposeOnHide_=!1;g.titleEl_=null;g.titleTextEl_=null;g.titleTextId_=null;g.titleCloseEl_=null;g.contentEl_=null;g.buttonEl_=null;g.getCssClass=function(){return this.class_};
g.setTitle=function(a){this.title_=a;this.titleTextEl_&&hD(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var Z_b=function(a){a.getElement()||a.render();return a.getElement()};tW.prototype.getBackgroundElement=function(){this.getElement()||this.render();return tW.superClass_.getBackgroundElement.call(this)};tW.prototype.handleDrag=function(){};
var $_b=function(a,b){var c=Qi(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?JU(a.titleEl_,c):xWb(a.titleEl_,c));b&&!a.dragger_?(b=new nW(a.getElement(),a.titleEl_),a.dragger_=b,JU(a.titleEl_,c),Po(a.dragger_,"start",a.setDraggerLimits_,!1,a),Po(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=tW.prototype;
g.createDom=function(){tW.superClass_.createDom.call(this);var a=this.getElement(),b=this.getDomHelper();this.titleTextId_=this.getId();var c=this.getId()+".contentEl";this.titleEl_=b.createDom("DIV",this.class_+"-title",this.titleTextEl_=b.createDom("SPAN",{className:this.class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.createDom("SPAN",this.class_+"-title-close"));Zrb(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));cJ(this.titleTextEl_,"heading");cJ(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;dJ(this.titleCloseEl_,"label","Close");cJ(a,"dialog");dJ(a,"labelledby",this.titleTextId_||"");PU(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());PU(this.buttonEl_,!!this.buttons_);this.backgroundElementOpacity_=this.backgroundElementOpacity_;this.getElement()&&(a=this.getBackgroundElement())&&HWb(a,
this.backgroundElementOpacity_)};
g.enterDocument=function(){tW.superClass_.enterDocument.call(this);this.getHandler().listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);this.getHandler().listen(this.buttonEl_,"click",this.onButtonClick_);$_b(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();cJ(a,"dialog");""!==this.titleTextEl_.id&&dJ(a,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){a=
this.getDomHelper();var b=this.getBackgroundElement();a.removeNode(this.bgIframeEl_);a.removeNode(b)}this.isVisible()&&V_b(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);$_b(this,!1);tW.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),tW.superClass_.setVisible.call(this,a))};g.onShow=function(){tW.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){tW.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=$C(cD(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=Tq(this.getElement());"fixed"==Bp(this.getElement(),"position")?this.dragger_.limits=new LU(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new LU(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){a0b(this)};var a0b=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new uW(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},b0b=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&PU(a.titleCloseEl_,a.hasTitleCloseButton_)};tW.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};tW.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;tW.superClass_.disposeInternal.call(this)};
tW.prototype.onButtonClick_=function(a){a:{for(a=a.target;null!=a&&a!=this.buttonEl_;){if("BUTTON"==a.tagName)break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new uW(a,b))&&this.setVisible(!1)}};
tW.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if("keydown"==a.type)if(this.escapeToCancel_&&27==a.keyCode){var f=d&&d.cancelButton_;e="SELECT"==e.tagName&&!e.disabled;f&&!e?(c=!0,b=d.get(f),b=this.dispatchEvent(new uW(f,b))):e||(b=!0)}else{if(9==a.keyCode&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(y){}qD(this.resetBackwardTabWrap_,0,this)}}else if(13==a.keyCode){if("BUTTON"==e.tagName&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)a0b(this);else if(d){var h=d.getDefault(),k;if(k=h)a:{k=YC("BUTTON",d.element_);for(var q=0,w;w=k[q];q++)if(w.name==h||w.id==h){k=w;break a}k=null}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName||"A"==e.tagName)&&!e.disabled;!k||k.disabled||e||(f=h)}f&&d&&(c=!0,b=this.dispatchEvent(new uW(f,String(d.get(f)))))}else e!=this.titleCloseEl_||32!=a.keyCode&&" "!=a.key||a0b(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var uW=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};Zt(uW,FC);var sW=function(a){pW.call(this);this.dom_=a||Xo();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};Zt(sW,pW);sW.prototype.clear=function(){pW.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};sW.prototype.set=function(a,b,c,d){pW.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var rW=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};g=sW.prototype;g.render=function(){if(this.element_){Yo(this.element_,ot);var a=Xo(this.element_);this.forEach(function(b,c){b=a.createDom("BUTTON",{name:c},b);c==this.defaultButton_&&(b.className=this.class_+"-default");this.element_.appendChild(b)},this)}};g.getElement=function(){return this.element_};g.getDomHelper=function(){return this.dom_};g.setDefault=function(a){this.defaultButton_=a};g.getDefault=function(){return this.defaultButton_};
var X_b={key:"ok",caption:"OK"},Y_b={key:"cancel",caption:"Cancel"},c0b={key:"yes",caption:"Yes"},d0b={key:"no",caption:"No"},e0b={key:"save",caption:"Save"},f0b={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(rW(new sW,X_b,!0,!0),rW(rW(new sW,X_b,!0),Y_b,!1,!0),rW(rW(new sW,c0b,!0),d0b,!1,!0),rW(rW(rW(new sW,c0b),d0b,!0),Y_b,!1,!0),rW(rW(rW(new sW,f0b),e0b),Y_b,!0,!0));
var g0b=function(a,b,c){tW.call(this,a,b,c)};Zt(g0b,tW);
var vW=function(a,b){Oo.call(this);this.element_=a;a=fD(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&IWb(a);this.listenKey_=Po(this.element_,eu?"DOMMouseScroll":"mousewheel",this,b)};Zt(vW,Oo);
vW.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;"mousewheel"==d.type?(a=h0b(-d.wheelDelta),void 0!==d.wheelDeltaX?(b=h0b(-d.wheelDeltaX),c=h0b(-d.wheelDeltaY)):c=a):(a=d.detail,100<a?a=3:-100>a&&(a=-3),void 0!==d.axis&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);"number"===typeof this.maxDeltaX_&&(b=Math.min(Math.max(b,-this.maxDeltaX_),this.maxDeltaX_));"number"===typeof this.maxDeltaY_&&(c=Math.min(Math.max(c,-this.maxDeltaY_),this.maxDeltaY_));this.isRtl_&&(b=-b);b=new i0b(a,d,b,c);this.dispatchEvent(b)};
var h0b=function(a){return fu&&(gu||qib)&&0!=a%40?a:a/40};vW.prototype.disposeInternal=function(){vW.superClass_.disposeInternal.call(this);SC(this.listenKey_);this.listenKey_=null};var i0b=function(a,b,c,d){KC.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};Zt(i0b,KC);
var j0b;
var wW=function(a,b,c,d,e,f,h){tW.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);Jtb(a,"protocol");this.iframeManager_=new l_b;this.targetId_=hC();this.rpcToken_=hC();this.useGapi_=!1;this.setUrl(a);this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;void 0!==d||void 0!==e?c=!0:(c=KG(LG(a),"hostId"),j0b||(j0b=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),c=!j0b.has(c));
this.autoSizeDialog_=c;this.gadgetsDomHelper_=h||this.getDomHelper();b&&(KG(LG(a),"hostId"),b="true"==KG(LG(this.url_),"grugl")?G_b:F_b,h=this.gadgetsDomHelper_,MHa(h)||(h=h||Xo(document),c=h.createElement("SCRIPT"),vh(c,b),c.type="text/javascript",h.document_.body.appendChild(c)));b=null;h=a.indexOf("/picker?");-1<h?b=a.substring(0,h+8-1):$t(a,"/picker")&&(b=a);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(a=this.buttons_,
a.element_=this.buttonEl_,a.render()):Yo(this.buttonEl_,ot),PU(this.buttonEl_,!!this.buttons_))};Zt(wW,g0b);g=wW.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};g.enterDocument=function(){wW.superClass_.enterDocument.call(this);var a=this.getBackgroundElement(),b=this.getHandler(),c=new vW(a);EC(b,c);b.listen(c,"mousewheel",Vt(PHa,void 0,a)).listen(a,"scroll",Vt(PHa,void 0,a))};
g.render=function(a){var b=this;wW.superClass_.render.call(this,a);this.useGapi_?m_b(this.iframeManager_,window).then(function(){return k0b(b)}).then(null,function(c){return void b.handleError_(c)}):l0b(this)};
var k0b=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);PU(b,!1);a.getContentElement().appendChild(b);return n_b(a.iframeManager_,b,function(c){var d=ho(zv,c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;var e=m(d,nv,2);d="";switch(e.getStatus()){case 2:d="cancel";break;case 1:d="picked";break;case 3:d="error"}e=e.getItemList();d=0===e.length?{action:d}:TZb(e,d);c.call(a,d);a.setVisible(!1);break;case 4:b0b(a),a.callback_({action:"loaded"})}},
a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();m0b(a);PU(a.iframe_.parentElement,!0);vWb(a.getElement(),"picker-dialog");n0b(a);return c})},l0b=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});Tja(a.iframe_,o0b(a));vWb(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void m0b(a)});a.iframe_.src=a.url_;
n0b(a)},q0b=function(a){p0b(a,Vt(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},n0b=function(a){var b=KG(LG(a.url_),"title");b&&a.setTitle(b)},o0b=function(a){return 7<=ja("Internet Explorer")&&Mi(a.url_,"https")?zo(Ao("https://about:blank")):cu?zo(Ao('javascript:""')):zo(Ao("about:blank"))},m0b=function(a){q0b(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};
wW.prototype.handleKeydown_=function(a){27==a.keyCode&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var p0b=function(a,b){var c=a.gadgetsDomHelper_;NHa(function(){b(c.getWindow().gadgets.rpc)},c)};wW.prototype.setUrl=function(a){a=JG(new bp(a),"rpcService",this.targetId_);this.useGapi_=void 0!==KG(a,"v2");JG(a,"rpctoken",this.rpcToken_);FG(a,"rpctoken="+this.rpcToken_);kv(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};
wW.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&r0b(this)};wW.prototype.setCallback=function(a){this.callback_=a;p0b(this,Vt(function(b){b.register(this.targetId_,Vt(this.handlePickerAction_,this))},this))};
wW.prototype.handlePickerAction_=function(a){var b=a.action;"loaded"==b&&(this.loadedFired_=!0,this.sendCommand(new E_b(this.isVisible())),r0b(this),b0b(this),this.getHandler().unlisten(this.getDomHelper().getWindow(),"keydown",this.handleKeydown_),this.iframe_.tabIndex=0);"picked"!=b&&"cancel"!=b||this.setVisible(!1);this.callback_(a)};var r0b=function(a){a.appId_&&a.sendCommand(new LHa(a.appId_,window.location.protocol+"//"+window.location.host))};g=wW.prototype;
g.setRelayUrl=function(a){p0b(this,Vt(function(b){b.setRelayUrl(this.targetId_,a)},this))};g.sendCommand=function(a){var b=this;this.useGapi_&&y_b(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});p0b(this,Vt(function(c){c.call(this.targetId_,"picker",null,a)},this))};
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=cD(a)||window;if("true"==KG(LG(this.url_),"ignoreLimits"))a=new UC(this.preferredDialogWidth_,this.preferredDialogHeight_);else if("true"==KG(LG(this.url_),"shadeDialog")){var b=LWb(Z_b(this),"margin"),c=$C(a);a=c.width-80;c=c.height-40;b&&(a-=b.left?b.left:0,a-=b.right?b.right:0,c-=b.top?b.top:0,c-=b.bottom?b.bottom:0);a=new UC(0<a?a:0,0<c?c:0)}else{b=this.preferredDialogWidth_;if(b){b=Math.max(320,Math.min(1051,b));c=this.preferredDialogHeight_;
c||(c=$C(a),c=.85*c.height);var d=Math.max(320,Math.min(650,c))}else c=$C(a),b=.618*c.width,d=b<c.height?Math.round(Math.max(320,Math.min(650,.85*b))):Math.round(Math.max(320,Math.min(650,.85*c.height))),b=Math.round(d/.618);c=$C(a);b=Math.min(b,Math.max(c.width,320));d=Math.min(d,Math.max(c.height,320));a=new UC(b,d)}GWb(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if("true"==KG(LG(this.url_),"shadeDialog")){var a=Tq(this.getElement()),b=$C(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=LWb(Z_b(this),"margin")){var c=b.left?b.left:0;c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=0<a?a:0;b=bD(this.getDomHelper().document_).y;Uq(this.getElement(),a,b)}else wW.superClass_.reposition.call(this)};
g.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var b=this.getDomHelper().getWindow();a?(this.resizePicker_(),this.getHandler().listen(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().listen(b,"keydown",this.handleKeydown_)):(this.getHandler().unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().unlisten(b,"keydown",this.handleKeydown_))}wW.superClass_.setVisible.call(this,a);this.sendCommand(new E_b(a))};
g.focus=function(){wW.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};g.handleError_=function(){this.callback_({action:"error"})};
var xW=function(a){B_b.call(this,a);this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.setOrigin(a);this.postProcessors_=[];this.gadgetsDomHelper_=void 0};Zt(xW,C_b);xW.prototype.disposeOnHide_=!1;xW.prototype.addPostProcessor=function(a){this.postProcessors_.push([a,{}])};
xW.prototype.build=function(){this.urlParamMap_.get("parent")||this.setRelayUrl(FG(EG(LG(window.location.href)),"").setPath("/favicon.ico").toString());if(this.urlParamMap_.get("minimal"))throw Error("ue");var a=new wW(s0b(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_);a.setDisposeOnHide(this.disposeOnHide_);a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var t0b=function(a,b){a.urlParamMap_.set(b,"true");return a};g=xW.prototype;
g.getHeight=function(){return this.dialogHeight_};g.getLocale=function(){return this.urlParamMap_.get("hl")};g.getTitle=function(){return this.urlParamMap_.get("title")};g.getWidth=function(){return this.dialogWidth_};g.setAuthUser=function(a){this.urlParamMap_.set("authuser",a);return this};g.setDisposeOnHide=function(a){this.disposeOnHide_=a};g.setEventId=function(a){this.urlParamMap_.set("eventId",a)};g.setExperiments=function(a){this.urlParamMap_.set("e",a.join(","))};
g.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};g.setGmailDelegatorId=function(a){this.urlParamMap_.set("gmailDelegatorId",a);return this};var u0b=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=xW.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};g.setInitialView=function(a){a instanceof dW?this.urlParamMap_.set("view",a.toString()):this.urlParamMap_.set("view",a)};g.setLocale=function(a){this.urlParamMap_.set("hl",a);return this};
g.setMaxSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("ve`"+a+"`undefined");this.urlParamMap_.set("maxSize",a+"xundefined")};g.setMinSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("we`"+a+"`undefined");this.urlParamMap_.set("minSize",a+"xundefined")};g.setSecretToken=function(){return this};g.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};g.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};
g.setTitle=function(a){this.urlParamMap_.set("title",a);return this};g.setUser=function(a){this.urlParamMap_.set("user",a)};
var s0b=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",HD(a.postProcessors_));a.urlParamMap_.set("nav",YZb(a.nav_));var b=new bp(a.getBaseUrl());a.urlParamMap_.forEach(function(e,f){JG(b,f,e)});var c=v_b(a.getBaseUrl(),a.nav_,a.urlParamMap_,a.postProcessors_);if(null!==c){JG(b,"amc","true");var d=!1;switch(a.urlParamMap_.get("hostId")){case "gmail-to":case "og":case "hangouts-profile-picture":case "testing":case "youtube-video-importer":case "ritz":case "punch":case "freebird-themes":case "freebird":case "atariImage":case "homeroom-doc-select":case "homeroom-doc-attach":d=!0}d&&
JG(b,"v2",w_b(c))}return b};
var yW=function(a,b){this.activeSession=a;this.attachmentsApi=b;this.disabled=!1;this.onPickDoc=new Iw;this.onCloneBlob=new Iw;this.onePickUrl=a.getOnePickUrl();this.onePickSecretToken=a.getOnePickSecretToken()};
yW.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=u0b(t0b(t0b(t0b(t0b((new xW(this.onePickUrl)).addView(KZb().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&"picked"===c.action)for(var d=r(c.docs),e=d.next();!e.done;e=d.next())e=new HZb(e.value),c.extraUserInputs.isAttachment&&e.encryptedBlobId?(e=new IZb(e),JZb(e,a.attachmentsApi),
a.onCloneBlob.emit(e)):a.onPickDoc.emit(e)}).setOrigin(b)).setSecretToken(this.onePickSecretToken).build()}this.drivePicker.setVisible(!0)};yW.\u0275fac=function(a){return new (a||yW)(F(pH),F(RR))};
yW.\u0275cmp=v({type:yW,selectors:[["b-drive-attachment"]],inputs:{disabled:"disabled"},outputs:{onPickDoc:"onPickDoc",onCloneBlob:"onCloneBlob"},decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["mat-icon-button","","matTooltip","Add Drive attachments","aria-label","Add Drive attachments",3,"disabled","click"],["svgIcon","google-drive"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"button",1),K("click",function(){return b.showDialog()}),J(2,"mat-icon",2),H()());a&2&&(B(1),D("disabled",
b.disabled))},dependencies:[pB,LE,$E],encapsulation:2});
var zW=function(a,b,c){BI.call(this);this.window=b;this.scrolledOnScreenService=c;this.onAutoResize=new Iw;this.el=a.nativeElement;this.cloneEl=this.el.cloneNode();this.cloneEl.removeAttribute("id");this.cloneEl.removeAttribute("name");this.cloneEl.style.height="auto";this.cloneEl.style.visibility="hidden";this.cloneEl.style.position="absolute";this.cloneEl.style.left="0";this.cloneEl.style.top="0";this.cloneEl.style.zIndex="-9999";this.cloneEl.style.overflowY="hidden";this.window.document.body.appendChild(this.cloneEl)};
U(zW,BI);zW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&v0b(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){v0b(a,2)}))};zW.prototype.onInput=function(){v0b(this,1)};
var v0b=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=r("width max-height min-height font-family text-decoration letter-spacing".split(" ")),e=d.next();!e.done;e=d.next())e=e.value,a.cloneEl.style.setProperty(e,c.getPropertyValue(e));a.cloneEl.value=a.el.value;d=a.window.getComputedStyle(a.cloneEl);c=a.cloneEl;c=Dp(d.getPropertyValue("border-top-width"))+Dp(d.getPropertyValue("padding-top"))+c.scrollHeight+Dp(d.getPropertyValue("padding-bottom"))+Dp(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=Dp(d.getPropertyValue("max-height")),d=Dp(d.getPropertyValue("min-height")),!Number.isNaN(e)&&c>e&&(c=e),!Number.isNaN(d)&&c<d&&(c=d),d=c+"px",a.el.style.height!==d&&(a.el.style.height=d,a.onAutoResize.emit({newHeight:c,source:b})))};zW.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);BI.prototype.ngOnDestroy.call(this)};zW.\u0275fac=function(a){return new (a||zW)(F(nd),F(wM),F(gP))};
zW.\u0275dir=v({type:zW,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&K("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},features:[gf]});
var w0b=["el"],AW=function(a,b){this.clipboard=a;this.snackBar=b;this.opened=!1};AW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};AW.prototype.hide=function(){this.opened=!1};AW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};AW.\u0275fac=function(a){return new (a||AW)(F(kT),F(LK))};
AW.\u0275cmp=v({type:AW,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&Zf(w0b,7);if(a&2){var c;Yf(c=ag())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},ngContentSelectors:["*"],decls:8,vars:3,consts:[["cdkOverlayOrigin","","aria-haspopup","true",3,"click"],["trigger","cdkOverlayOrigin"],["svgIcon","link-off",1,"broken","icon-s"],["el",""],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",3,"cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],
[1,"b-bubble",3,"clickOutside"],["mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"]],template:function(a,b){a&1&&(Cf(),G(0,"a",0,1),K("click",function(d){d.preventDefault();d.stopPropagation();b.opened=!b.opened}),G(2,"b-glue"),J(3,"mat-icon",2),H(),G(4,"span",null,3),Df(6),H()(),O(7,SHa,4,1,"ng-template",4));if(a&2){var c=Hf(1);B(7);D("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},
dependencies:[TA,SA,xQ,cP,LE,pB,$E],styles:["mat-icon.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}a[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}.b-bubble[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-width:1px;border-style:solid;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;box-shadow:0 4px 8px 3px rgba(0,0,0,.1);padding:9px;background-color:#fff;background-color:var(--surface-default)}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}  .tooltip-panel{display:inline-block;margin:.1em}"],
changeDetection:0});
var BW=function(){this.checked=!1};BW.\u0275fac=function(a){return new (a||BW)};BW.\u0275cmp=v({type:BW,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked"},decls:1,vars:2,consts:[["gmat-checkbox","",3,"disabled","checked"]],template:function(a,b){a&1&&J(0,"mat-checkbox",0);a&2&&D("disabled",!0)("checked",b.checked)},dependencies:[LO],encapsulation:2,changeDetection:0});
var x0b=["el"],CW=function(a,b,c){this.domSafe=a;this.clipboard=b;this.snackBar=c;this.destroyed$=new T.ReplaySubject;this.opened=!1};CW.prototype.ngOnInit=function(){};CW.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(Ye(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};CW.prototype.ngOnDestroy=function(){this.destroyed$.next()};CW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var y0b=function(a){var b=a.getNgContentParentEl(),c;a:{for(c=b.firstChild;c;){if(c.nodeType!==Node.TEXT_NODE){c=!1;break a}c=c.nextSibling}c=!0}return!c||b.textContent!==a.originalHref};CW.prototype.hide=function(){this.opened=!1};var UHa=function(a,b){RHa(b)||(b.preventDefault(),b.stopPropagation(),wP(a.domSafe,a.href))};CW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};
var WHa=function(a,b){b.preventDefault();if(a=a.cdkConnectedOverlay.overlayRef.overlayElement){var c=a.querySelector("a");c&&setTimeout(function(){c.focus()})}},VHa=function(a,b){if(b.shiftKey&&"Tab"===b.key&&(b.preventDefault(),a=a.cdkConnectedOverlay.overlayRef.overlayElement)){var c=a.querySelector("button");c&&setTimeout(function(){c.focus()})}};CW.\u0275fac=function(a){return new (a||CW)(F(vP),F(kT),F(LK))};
CW.\u0275cmp=v({type:CW,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(Zf(x0b,7),Zf(TA,7));if(a&2){var c;Yf(c=ag())&&(b.el=c.first);Yf(c=ag())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},ngContentSelectors:["*"],decls:7,vars:7,consts:[["rel","noopener noreferrer nofollow","cdkOverlayOrigin","",1,"keep-focus-ring",3,"href","click"],["trigger","cdkOverlayOrigin"],[4,"ngIf"],["el",""],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass",
"tooltip-panel",3,"cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["svgIcon","link",1,"icon-s"],[1,"b-bubble",3,"clickOutside"],[1,"gmat-caption"],["target","_blank","rel","noopener noreferrer nofollow",1,"keep-focus-ring",3,"href","click","keydown"],["mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"keydown.Tab","click"],["svgIcon","copy"]],template:function(a,b){a&1&&(Cf(),G(0,"a",0,1),K("click",function(d){RHa(d)||
(d.preventDefault(),d.stopPropagation(),y0b(b)?b.opened=!b.opened:UHa(b,d))}),O(2,THa,2,0,"b-glue",2),G(3,"span",null,3),Df(5),H()(),O(6,XHa,6,2,"ng-template",4));if(a&2){var c=Hf(1);sf("needs-user-confirm",y0b(b));D("href",b.originalHref,Kd);B(2);D("ngIf",y0b(b));B(4);D("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[sx,TA,SA,xQ,cP,LE,pB,$E],styles:[".tooltip-panel{display:inline-block;margin:.1em}[_nghost-%COMP%] > a.needs-user-confirm[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.b-bubble[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-width:1px;border-style:solid;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;box-shadow:0 4px 8px 3px rgba(60,64,67,.15);padding:9px;background-color:#fff;background-color:var(--surface-default)}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}"],
changeDetection:0});
var z0b=["child"],DW=function(a){this.codefont=a};DW.prototype.ngOnInit=function(){};DW.prototype.ngOnChanges=function(){Cp(this.child.nativeElement,this.content.getContent())};DW.\u0275fac=function(a){return new (a||DW)(F(zQ))};
DW.\u0275cmp=v({type:DW,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&Zf(z0b,7);if(a&2){var c;Yf(c=ag())&&(b.child=c.first)}},inputs:{content:"content"},features:[Ac],decls:3,vars:4,consts:[[1,"type-m","child"],["child",""]],template:function(a,b){a&1&&(G(0,"div",0,1),Q(2,"async"),H());a&2&&sf("codefont",R(2,2,b.codefont.codefont$))},dependencies:[Fx],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});
var EW=function(a,b){this.session=a;this.userPreferencesManager=b;this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(C(function(c){return c.textDisplayPreferences?c.textDisplayPreferences:{}}),Le());this.lastPublishedMarkdown$=this.textDisplayPreferences$.pipe(C(function(c){return c.lastPublishMode===WAb}),Le());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(C(function(c){return c.commentDisplayOverride}),Le())};
EW.\u0275fac=function(a){return new (a||EW)(t(pH),t(zI))};EW.\u0275prov=ec({token:EW,factory:EW.\u0275fac,providedIn:"root"});
var FW=function(){};FW.prototype.visit=function(){};FW.\u0275fac=function(a){return new (a||FW)};FW.\u0275prov=ec({token:FW,factory:FW.\u0275fac,providedIn:"root"});
var A0b=["el"],GW=function(a){this.issueReferenceResolver=a};GW.prototype.ngOnInit=function(){};GW.prototype.visit=function(a){if(!RHa(a))if(this.commentNumber)this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+this.commentNumber,event:a});else{var b=this.href.indexOf("#");if(-1!==b&&(b=this.href.slice(b+1))){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:b,event:a});return}this.issueReferenceResolver.visit({issueId:this.issueId,event:a})}};
GW.\u0275fac=function(a){return new (a||GW)(F(FW))};GW.\u0275cmp=v({type:GW,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&Zf(A0b,7);if(a&2){var c;Yf(c=ag())&&(b.el=c.first)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},ngContentSelectors:["*"],decls:3,vars:1,consts:[[3,"href","click"],["el",""]],template:function(a,b){a&1&&(Cf(),G(0,"a",0,1),K("click",function(c){return b.visit(c)}),Df(2),H());a&2&&D("href",b.href,Kd)},encapsulation:2,changeDetection:0});
var HW=function(){this.isMentioningMe=!1};HW.prototype.ngOnInit=function(){this.username=this.email.replace(/@google.com$/,"")};HW.\u0275fac=function(a){return new (a||HW)};
HW.\u0275cmp=v({type:HW,selectors:[["b-mention-chip-widget"]],inputs:{email:"email",isMentioningMe:"isMentioningMe"},decls:6,vars:5,consts:[[1,"mention",3,"onedevHovercardTrigger"],["el",""],["card",""],[3,"email"]],template:function(a,b){a&1&&(G(0,"span",0,1),P(2),H(),G(3,"onedev-hovercard",null,2),J(5,"b-issue-person-card",3),H());if(a&2){var c=Hf(4);sf("me",b.isMentioningMe);D("onedevHovercardTrigger",c);B(2);If("@",b.username,"");B(3);D("email",b.email)}},dependencies:[pS,pN,tN],styles:[".mention[_ngcontent-%COMP%]{font-weight:500}.mention.me[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--self-mentioned-bg);color:#1a73e8;color:var(--self-mentioend-text);border-radius:4px;font-weight:500;padding:0 3px}"]});
var B0b=Symbol(),C0b=Symbol(),D0b=Symbol(),E0b=Symbol(),F0b=Symbol(),G0b=Symbol(),IW=function(a,b,c,d){this.componentFactoryResolver=a;this.appRef=b;this.flags=c;this.session=d;this.outlets=[];this.secureImageRefs=[];this.mentionChipRefs=[];this.checkboxRefs=[];this.externalHyperlinkRefs=[];this.brokenLinkRefs=[];this.issueReferenceRefs=[]};IW.prototype.ngOnDestroy=function(){H0b(this)};
var I0b=function(a){a=a.querySelectorAll("*");for(var b=0;b<a.length;b++){var c=a[b],d=c.dataset.bId;d&&(c.id=d)}},K0b=function(a,b,c){b=b.querySelectorAll("*[data-b-widget]");for(var d=0;d<b.length;d++){var e=b[d];switch(e.dataset.bWidget){case "image":var f=a,h=c,k=e.dataset.bImgSrc,q=e.dataset.bImgRedirectedSrc;YHa(e);if(k){var w=e.dataset.bImgAlt;if(rH(f.flags.session,"enableMarkdownInlineImages"))e=new OA(e,f.componentFactoryResolver,f.appRef,h.injector),f.outlets.push(e),e=e.attach(new LA(kP,
h)),f.secureImageRefs.push(e),e=e.instance,e.src=k,w&&(e.alt=w);else{var y=document.createElement("a");w?y.appendChild(document.createTextNode(w)):y.appendChild(document.createTextNode(k));e.appendChild(y);J0b(f,y,k,q||k,h)}}break;case "checkbox":h=a;f=c;w=null!=e.dataset.bCheckboxChecked;YHa(e);e=new OA(e,h.componentFactoryResolver,h.appRef,f.injector);h.outlets.push(e);e=e.attach(new LA(BW,f));h.checkboxRefs.push(e);e.instance.checked=w;break;case "url":h=a;w=c;f=e.dataset.bOriginalHref;k=e.dataset.bRedirectedHref;
f&&k&&(e.removeAttribute("href"),J0b(h,e,f,k,w));break;case "broken-url":if(h=e.dataset.bOriginalHref)for(w=a,f=h,k=c,h=Array.from(e.childNodes),e=new OA(e,w.componentFactoryResolver,w.appRef,k.injector),w.outlets.push(e),e=e.attach(new LA(AW,k)),w.brokenLinkRefs.push(e),e=e.instance,e.originalHref=f,e=e.getNgContentParentEl(),h=r(h),w=h.next();!w.done;w=h.next())e.appendChild(w.value);break;case "mention":a.session.isInternalSession()&&(k=void 0,h=a,f=c,w="","@"===(null==(k=e.textContent)?void 0:
k[0])&&(w=e.textContent.slice(1)),YHa(e),e=new OA(e,h.componentFactoryResolver,h.appRef,f.injector),h.outlets.push(e),e=e.attach(new LA(HW,f)),h.mentionChipRefs.push(e),e=e.instance,e.email=w,e.isMentioningMe=h.session.getUserEmail()===w);break;case "issue-reference":if(w=e.href,f=e.dataset.bIssueId,k=e.dataset.bCommentNumber,w&&f){q=void 0;h=a;f=Number(f);y=Number(k);var E=c;k=Array.from(e.childNodes);var I=document.createElement("span");null==(q=e.parentNode)||q.insertBefore(I,e);q=new OA(I,h.componentFactoryResolver,
h.appRef,E.injector);h.outlets.push(q);q=q.attach(new LA(GW,E));h.issueReferenceRefs.push(q);h=q.instance;h.href=w;h.issueId=f;h.commentNumber=y;h=h.el.nativeElement;w=r(k);for(f=w.next();!f.done;f=w.next())h.appendChild(f.value);e.remove()}}}},J0b=function(a,b,c,d,e){var f=Array.from(b.childNodes);b=new OA(b,a.componentFactoryResolver,a.appRef,e.injector);a.outlets.push(b);e=b.attach(new LA(CW,e));a.externalHyperlinkRefs.push(e);a=e.instance;a.originalHref=c;a.href=d;c=a.getNgContentParentEl();f=
r(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value)},L0b=function(a){a=a.querySelectorAll("a");for(var b=0;b<a.length;b++){var c=a[b];c.getAttribute("target")||c.setAttribute("target","_self")}},M0b=function(a){a=a.querySelectorAll("table");for(var b=0;b<a.length;b++){var c=a[b];if(c.parentNode){var d=document.createElement("div");d.classList.add("table-overflow");c.parentNode.insertBefore(d,c);d.appendChild(c)}}},H0b=function(a){for(var b=r(a.outlets),c=b.next();!c.done;c=b.next())c.value.dispose();
a.outlets=[];a.secureImageRefs=[];a.mentionChipRefs=[];a.checkboxRefs=[];a.externalHyperlinkRefs=[];a.brokenLinkRefs=[];a.issueReferenceRefs=[]};IW.prototype[B0b]=function(){return this.outlets.slice()};IW.prototype[C0b]=function(){return this.secureImageRefs.slice()};IW.prototype[D0b]=function(){return this.checkboxRefs.slice()};IW.prototype[E0b]=function(){return this.externalHyperlinkRefs.slice()};IW.prototype[F0b]=function(){return this.brokenLinkRefs.slice()};IW.prototype[G0b]=function(){return this.issueReferenceRefs.slice()};
IW.\u0275fac=function(a){return new (a||IW)(t(Jv),t(hx),t(EW),t(pH))};IW.\u0275prov=ec({token:IW,factory:IW.\u0275fac});
var N0b=["child"],O0b=Symbol(),JW=function(a,b,c){this.dynamicComponents=a;this.codefont=b;this.viewContainerRef=c};JW.prototype.ngOnInit=function(){};JW.prototype.ngOnChanges=function(){H0b(this.dynamicComponents);var a=this.child.nativeElement;Cp(a,this.content.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;I0b(a);K0b(b,a,c);L0b(a);M0b(a)};JW.prototype.ngOnDestroy=function(){H0b(this.dynamicComponents)};JW.prototype[O0b]=function(){return this.dynamicComponents};
JW.\u0275fac=function(a){return new (a||JW)(F(IW,2),F(zQ),F(Wf))};
JW.\u0275cmp=v({type:JW,selectors:[["b-markdown-format-presenter"]],viewQuery:function(a,b){a&1&&Zf(N0b,7);if(a&2){var c;Yf(c=ag())&&(b.child=c.first)}},inputs:{content:"content"},features:[Lf([{provide:IW,useClass:IW}]),Ac],decls:3,vars:4,consts:[[1,"type-m","markdown-display"],["child",""]],template:function(a,b){a&1&&(G(0,"div",0,1),Q(2,"async"),H());a&2&&sf("codefont",R(2,2,b.codefont.codefont$))},dependencies:[Fx],styles:[":root{--blue-50: #e8f0fe;--blue-100: #d2e3fc;--blue-200: #aecbfa;--blue-300: #8ab4f8;--blue-400: #669df6;--blue-500: #4285f4;--blue-600: #1a73e8;--blue-700: #1967d2;--blue-800: #185abc;--blue-900: #174ea6;--blue: var(--blue-600);--red-50: #fce8e6;--red-100: #fad2cf;--red-200: #f6aea9;--red-300: #f28b82;--red-400: #ee675c;--red-500: #ea4335;--red-600: #d93025;--red-700: #c5221f;--red-800: #b31412;--red-900: #a50e0e;--red: var(--red-600);--yellow-50: #fef7e0;--yellow-100: #feefc3;--yellow-200: #fde293;--yellow-300: #fdd663;--yellow-400: #fcc934;--yellow-500: #fbbc04;--yellow-600: #f9ab00;--yellow-700: #f29900;--yellow-800: #ea8600;--yellow-900: #e37400;--yellow: var(--yellow-600);--green-50: #e6f4ea;--green-100: #ceead6;--green-200: #a8dab5;--green-300: #81c995;--green-400: #5bb974;--green-500: #34a853;--green-600: #1e8e3e;--green-700: #188038;--green-800: #137333;--green-900: #0d652d;--green: var(--green-600);--white: #fff;--grey-50: #f8f9fa;--grey-100: #f1f3f4;--grey-200: #e8eaed;--grey-300: #dadce0;--grey-400: #bdc1c6;--grey-500: #9aa0a6;--grey-600: #80868b;--grey-700: #5f6368;--grey-800: #3c4043;--grey-900: #202124;--black: var(--grey-900);--orange-50: #feefe3;--orange-100: #fedfc8;--orange-200: #fdc69c;--orange-300: #fcad70;--orange-400: #fa903e;--orange-500: #fa7b17;--orange-600: #e8710a;--orange-700: #d56e0c;--orange-800: #c26401;--orange-900: #b06000;--pink-50: #fde7f3;--pink-100: #fdcfe8;--pink-200: #fba9d6;--pink-300: #ff8bcb;--pink-400: #ff63b8;--pink-500: #f439a0;--pink-600: #e52592;--pink-700: #c92786;--pink-800: #b80672;--pink-900: #9c166b;--purple-50: #f3e8fd;--purple-100: #e9d2fd;--purple-200: #d7aefb;--purple-300: #c58af9;--purple-400: #af5cf7;--purple-500: #a142f4;--purple-600: #9334e6;--purple-700: #8430ce;--purple-800: #7627bb;--purple-900: #681da8;--cyan-50: #e4f7fb;--cyan-100: #cbf0f8;--cyan-200: #a1e4f2;--cyan-300: #78d9ec;--cyan-400: #4ecde6;--cyan-500: #24c1e0;--cyan-600: #12b5cb;--cyan-700: #129eaf;--cyan-800: #098591;--cyan-900: #007b83}.markdown-display{word-break:break-word;overflow-wrap:break-word}.markdown-display p{word-break:break-word}.markdown-display hr{height:0;border:0;border-top:1px solid var(--hairline)}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{font-weight:500}.markdown-display h1{font-size:160%;font-weight:700}.markdown-display h2{font-size:160%}.markdown-display h3{font-size:140%}.markdown-display h4{font-size:120%}.markdown-display h5{font-size:100%}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display p,.markdown-display blockquote,.markdown-display hr,.markdown-display ul,.markdown-display ol{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display>*:first-child{margin-block-start:0}.markdown-display ul,.markdown-display ol{padding-inline-start:2rem}.markdown-display blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.markdown-display ul{list-style:initial}.markdown-display ul ul{list-style:circle}.markdown-display ul ul ul{list-style:square}.markdown-display ul ul,.markdown-display ol ol,.markdown-display ul ol,.markdown-display ol ul{margin:0}.markdown-display li{margin-block-end:.2em}.markdown-display code,.markdown-display pre{background-color:var(--surface-secondary);border-radius:2px;font-family:WorkAroundWebKitAndMozilla,monospace}.markdown-display pre{border:1px solid var(--hairline);overflow-x:auto}.markdown-display code{color:var(--markdown-code);padding:0 2px}.markdown-display pre code{color:var(--text-high-contrast);padding:0}.markdown-display pre{padding:8px 16px}.markdown-display pre,.markdown-display pre code{line-height:1.5}.markdown-display img{max-width:100%}.markdown-display a,.markdown-display a code{color:var(--primary-default);text-decoration:none}.markdown-display a:visited,.markdown-display a code:visited{color:var(--markdown-link-visited)}.markdown-display pre code a{color:inherit;text-decoration:underline}.markdown-display a:hover{text-decoration:underline}.markdown-display a:focus{outline:-webkit-focus-ring-color auto 1px}.markdown-display table{border-collapse:collapse;margin:1em 0}.markdown-display td,.markdown-display th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.markdown-display th{text-align:left;vertical-align:bottom;word-break:keep-all}.markdown-display div.table-overflow{overflow-x:auto}.markdown-display input[type=checkbox]{vertical-align:middle}/*# sourceMappingURL=markdown_format_presenter.css.map */\n"],encapsulation:2,
changeDetection:0});
var P0b=["child"],Q0b=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},KW=function(a){this.codefont=a};KW.prototype.ngOnInit=function(){};KW.\u0275fac=function(a){return new (a||KW)(F(zQ))};
KW.\u0275cmp=v({type:KW,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},decls:3,vars:5,consts:[[1,"type-m"],[4,"ngFor","ngForOf"],[3,"section"]],template:function(a,b){a&1&&(G(0,"div",0),Q(1,"async"),O(2,ZHa,2,1,"ng-container",1),H());a&2&&(sf("codefont",R(1,3,b.codefont.codefont$)),B(2),D("ngForOf",b.content.getPlainSectionList()))},dependencies:function(){return[wx,LW,Fx]},styles:[Q0b()],changeDetection:0});var LW=function(){};LW.prototype.ngOnInit=function(){};
LW.\u0275fac=function(a){return new (a||LW)};LW.\u0275cmp=v({type:LW,selectors:[["b-plain-format-section"]],inputs:{section:"section"},decls:3,vars:2,consts:[[3,"section",4,"ngIf"],[3,"section"]],template:function(a,b){a&1&&(xf(0),O(1,$Ha,1,1,"b-plain-format-quoted-section",0),O(2,aIa,1,1,"b-plain-format-unquoted-section",0),yf());a&2&&(B(1),D("ngIf",b.section.getIsQuoted()),B(1),D("ngIf",!b.section.getIsQuoted()))},dependencies:function(){return[sx,MW,NW]},encapsulation:2,changeDetection:0});
var MW=function(){this.showQuote=!1;R0b++;this.childId="plainFormatQuotedSection"+R0b};MW.prototype.ngOnInit=function(){};MW.prototype.ngOnChanges=function(){bIa(this)};var bIa=function(a){var b=a.child.nativeElement;a.showQuote?Cp(b,a.section.getContent()):QHa(b)};MW.\u0275fac=function(a){return new (a||MW)};
MW.\u0275cmp=v({type:MW,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&Zf(P0b,7);if(a&2){var c;Yf(c=ag())&&(b.child=c.first)}},inputs:{section:"section"},features:[Ac],decls:5,vars:3,consts:[["class","showhide muted","tabindex","0","role","button","aria-expanded","false",3,"click",4,"ngIf"],["class","showhide muted","tabindex","0","role","button","aria-expanded","true",3,"click",4,"ngIf"],[1,"child",3,"id"],["child",""],["tabindex","0","role","button","aria-expanded","false",
1,"showhide","muted",3,"click"],["tabindex","0","role","button","aria-expanded","true",1,"showhide","muted",3,"click"]],template:function(a,b){a&1&&(G(0,"div"),O(1,cIa,2,1,"a",0),O(2,dIa,2,1,"a",1),J(3,"div",2,3),H());a&2&&(B(1),D("ngIf",!b.showQuote),B(1),D("ngIf",b.showQuote),B(1),D("id",b.childId))},dependencies:[sx],styles:[Q0b()],changeDetection:0});var R0b=0,NW=function(a,b){this.dynamicComponents=a;this.viewContainerRef=b};NW.prototype.ngOnInit=function(){};
NW.prototype.ngOnChanges=function(){H0b(this.dynamicComponents);var a=this.child.nativeElement;Cp(a,this.section.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;I0b(a);K0b(b,a,c);L0b(a);M0b(a)};NW.\u0275fac=function(a){return new (a||NW)(F(IW,2),F(Wf))};
NW.\u0275cmp=v({type:NW,selectors:[["b-plain-format-unquoted-section"]],viewQuery:function(a,b){a&1&&Zf(P0b,7);if(a&2){var c;Yf(c=ag())&&(b.child=c.first)}},inputs:{section:"section"},features:[Lf([{provide:IW,useClass:IW}]),Ac],decls:2,vars:0,consts:[[1,"child"],["child",""]],template:function(a){a&1&&J(0,"div",0,1)},encapsulation:2,changeDetection:0});
var OW=function(){};OW.prototype.ngOnInit=function(){};OW.\u0275fac=function(a){return new (a||OW)};
OW.\u0275cmp=v({type:OW,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment"},decls:3,vars:3,consts:[[4,"ngIf"],[3,"content"]],template:function(a,b){a&1&&(O(0,eIa,2,1,"ng-container",0),O(1,fIa,2,1,"ng-container",0),O(2,gIa,2,1,"ng-container",0));a&2&&(D("ngIf",b.formattedComment.getLiteralFormat()),B(1),D("ngIf",b.formattedComment.getMarkdownFormat()),B(1),D("ngIf",b.formattedComment.getPlainFormat()))},dependencies:[sx,DW,JW,KW],encapsulation:2,changeDetection:0});
var PW=function(a){Z.call(this,a)};U(PW,Z);g=PW.prototype;g.getFormattingMode=function(){return X(this,1,0)};g.setFormattingMode=function(a){return l(this,1,a)};g.getSource=function(){return V(this,2)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return cj(this,2)};g.getIssueId=function(){return dj(this,3)};g.setIssueId=function(a){return l(this,3,a)};g.getIdPrefix=function(){return V(this,4)};g.setIdPrefix=function(a){l(this,4,a)};
g.toObject=function(){var a=null!=this?{formattingMode:n(p(this,1)),source:n(p(this,2)),issueId:n(p(this,3)),idPrefix:n(p(this,4)),audience:n(p(this,6))}:void 0;return a};PW.messageId="b.FormatCommentRequest";
var QW=function(a){Z.call(this,a,-1,S0b)};U(QW,Z);QW.prototype.getFormattedComment=function(){return m(this,jn,1)};QW.prototype.getMentionsList=function(){return rb(this,qK,2)};var S0b=[2];QW.prototype.toObject=function(){var a=null!=this?{formattedComment:XGb(void 0,this.getFormattedComment()),mentionsList:Bb(this.getMentionsList(),LHb)}:void 0;return a};QW.messageId="b.FormatCommentResponse";
var RW=function(a){this.executor=a};RW.prototype.format=function(a){return 3===a.formattingMode||""===a.comment.trim()?hIa(a):T0b(this,a).pipe(C(function(b){return b.getFormattedComment()||new jn}))};
var U0b=function(a,b){if(3===b.formattingMode||""===b.comment.trim())return(0,T.of)([]);var c=new PW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=Vk(b.issueId))?d:0);l(c,6,b.audience);c.setFormattingMode(b.formattingMode);c.setIdPrefix(b.idPrefix);return T0b(a,b).pipe(C(function(e){return e.getMentionsList().map(function(f){return Pl(f.getMentionedUser())||""})}))},T0b=function(a,b){var c=new PW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=Vk(b.issueId))?d:0);l(c,6,b.audience);c.setFormattingMode(b.formattingMode);
c.setIdPrefix(b.idPrefix);return a.executor.post({url:"action/formatComment",body:c,responseConstructor:QW})};RW.\u0275fac=function(a){return new (a||RW)(t(pI))};RW.\u0275prov=ec({token:RW,factory:RW.\u0275fac,providedIn:"root"});
var SW=function(a){BI.call(this);var b=this;this.formatter=a;this.issueId=0;this.audience=2;this.formattingMode=3;this.params$=new T.ReplaySubject(1);this.formattedResult$=this.params$.pipe(Je(200),Xe(function(c){return b.formatter.format(c).pipe(V0b,Ie(function(){var d=Rsa(c.comment);return(0,T.of)({formattedComment:d,isFallback:!0})}))}))};U(SW,BI);SW.\u0275dir=BI.\u0275dir;
SW.prototype.ngOnInit=function(){var a=this;this.comment$&&this.subscriptions.add(this.comment$.subscribe(function(b){a.params$.next({comment:b,issueId:a.issueId,audience:null!=a.audience?a.audience:2,formattingMode:a.formattingMode,idPrefix:a.getIdPrefix()})}))};SW.prototype.ngOnChanges=function(){null!=this.comment&&this.params$.next({comment:this.comment,issueId:this.issueId,audience:null!=this.audience?this.audience:2,formattingMode:this.formattingMode,idPrefix:this.getIdPrefix()})};
SW.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueId+"-draft"};SW.\u0275fac=function(a){return new (a||SW)(F(RW))};
SW.\u0275cmp=v({type:SW,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},features:[gf,Ac],decls:2,vars:3,consts:[[4,"ngIf"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(O(0,iIa,3,5,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.formattedResult$))},dependencies:[sx,OW,Fx],styles:["[_nghost-%COMP%]{display:block}.md-preview[_ngcontent-%COMP%]{min-height:32px;margin-top:16px}.md-preview[_ngcontent-%COMP%]{box-sizing:border-box;padding:8px;background-color:#f8f9fa;background-color:var(--c50);border-radius:4px}.md-preview.error[_ngcontent-%COMP%]{background-color:#fce8e6;background-color:var(--bad-bg);box-shadow:inset 0 0 0 2px #ea4335}[_nghost-%COMP%]     .markdown-display pre, [_nghost-%COMP%]     .markdown-display code{background-color:#f1f3f4;background-color:var(--c100)}.bv2-note-container-note   [_nghost-%COMP%]   .md-preview[_ngcontent-%COMP%]{min-height:0;margin-top:0;padding:0;background-color:transparent}\n/*# sourceMappingURL=live_preview.css.map */"],
changeDetection:0});var V0b=C(function(a){return{formattedComment:a,isFallback:!1}});
var TW=function(a,b,c){BI.call(this);var d=this;this.prefs=a;this.flags=b;this.links=c;this.change=new Iw;this.checkedSubject=new T.BehaviorSubject(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.flags.textDisplayPreferences$.pipe(Ye(this.destroyed$)).subscribe(function(e){d.currentTextDisplayPreferences=e});this.flags.commentDisplayOverride$.pipe(Ye(this.destroyed$)).subscribe(function(e){d.currentCommentDisplayOverride=
e})};U(TW,BI);TW.\u0275dir=BI.\u0275dir;TW.prototype.ngOnInit=function(){null!=this.initialValue?this.checkedSubject.next(2===this.initialValue):this.flags.lastPublishedMarkdown$.pipe(Ye(this.destroyed$)).subscribe(this.checkedSubject)};TW.prototype.ngOnChanges=function(){null!=this.initialValue&&this.checkedSubject.next(2===this.initialValue)};TW.prototype.save=function(a){a=Object.assign({},this.currentTextDisplayPreferences,a);this.prefs.save({textDisplayPreferences:a}).pipe(Ye(this.destroyed$)).subscribe()};
TW.\u0275fac=function(a){return new (a||TW)(F(zI),F(EW),F(tP))};
TW.\u0275cmp=v({type:TW,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},features:[gf,Ac],decls:4,vars:4,consts:[["gmat-checkbox","","aria-label","Use markdown for this comment","matTooltip","Use Markdown for this comment",3,"checked","change"],["mat-icon-button","","matTooltip","Markdown Help","class","help small","aria-label","Markdown Help","target","_blank",3,"href","disableRipple",4,"ngIf"],["mat-icon-button","","matTooltip","Markdown Help","aria-label",
"Markdown Help","target","_blank",1,"help","small",3,"href","disableRipple"],["svgIcon","help-outline",1,"icon-xs"]],template:function(a,b){a&1&&(G(0,"mat-checkbox",0),K("change",function(d){var e=b.currentCommentDisplayOverride;d=d.checked?WAb:e?e:XAb;b.save({lastPublishMode:d});b.change.emit(qna(d))}),Q(1,"async"),P(2," Markdown "),H(),O(3,jIa,2,2,"a",1));if(a&2){var c;D("checked",null!==(c=R(1,2,b.checkedSubject))&&void 0!==c?c:!1);B(3);D("ngIf",b.mdHelpLink)}},dependencies:[LO,sx,LE,qB,$E,Fx],
encapsulation:2,changeDetection:0});
var UW=function(a,b){BI.call(this);var c=this;this.appEvents=b;this.init=new Iw;a.textDisplayPreferencesSubject$.pipe(Ye(this.destroyed$)).subscribe(function(d){switch(d.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":c.formattingModeOverride=3;break;case "MARKDOWN_FORMATTING_MODE":c.formattingModeOverride=2;break;case "PLAIN_FORMATTING_MODE":c.formattingModeOverride=1;break;case void 0:c.formattingModeOverride=void 0;break;default:bh(d.commentDisplayOverride)}})};U(UW,BI);UW.\u0275dir=BI.\u0275dir;
UW.prototype.ngOnInit=function(){};UW.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.audience=this.issueAccessLevel&&"INTERNAL"===this.issueAccessLevel?1:2;this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};UW.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next([this.issueId,this.note.commentNumber]);this.init.next(this)};UW.\u0275fac=function(a){return new (a||UW)(F(zI),F(WK))};
UW.\u0275cmp=v({type:UW,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId"},outputs:{init:"init"},features:[gf,Ac],decls:5,vars:2,consts:[[1,"bv2-note-container","bv2-event-note"],[1,"bv2-note-container-note"],[3,"formattedComment",4,"ngIf","ngIfElse"],["livePreview",""],[3,"formattedComment"],[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1),O(2,
kIa,1,1,"b-formatted-comment-presenter",2),H()(),O(3,lIa,1,5,"ng-template",null,3,gg));if(a&2){var c=Hf(4);B(2);if(a=b.note.formattedComment)a=b.note.formattedComment,a=!a||b.formattingModeOverride?!1:a.hasLiteralFormat()&&3===b.formattingMode||a.hasPlainFormat()&&1===b.formattingMode||a.hasMarkdownFormat()&&2===b.formattingMode?!0:!1;D("ngIf",a)("ngIfElse",c)}},dependencies:[sx,OW,SW],encapsulation:2,changeDetection:0});
var W0b=new jd("MatInkBarPositioner",{providedIn:"root",factory:mIa}),VW=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._inkBarPositioner=c;this._animationMode=d},X0b=function(a,b){a.show();a._ngZone.onStable.pipe(Me()).subscribe(function(){var c=a._inkBarPositioner(b),d=a._elementRef.nativeElement;d.style.left=c.left;d.style.width=c.width})};VW.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"};
VW.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"};VW.\u0275fac=function(a){return new (a||VW)(F(nd),F(ef),F(W0b),F(Wv,8))};VW.\u0275dir=v({type:VW,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(a,b){a&2&&sf("_mat-animation-noopable","NoopAnimations"===b._animationMode)}});
var Y0b=Dh("translateTab",[Gh("center, void, left-origin-center, right-origin-center",Fh({transform:"none"})),Gh("left",Fh({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Gh("right",Fh({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Hh("* => left, * => right, left => center, right => center",Eh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Hh("void => left-origin-center",[Fh({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),
Eh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Hh("void => right-origin-center",[Fh({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Eh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])]);
var Z0b=function(a){return{animationDuration:a}},$0b=function(a,b){return{value:a,params:b}},WW=function(a,b,c,d){PA.call(this,a,b,d);this._host=c;this._leavingSub=this._centeringSub=T.Subscription.EMPTY};U(WW,PA);
WW.prototype.ngOnInit=function(){var a=this;PA.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(We(this._host._isCenterPosition(this._host._position))).subscribe(function(b){b&&!a.hasAttached()&&a.attach(a._host._content)});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a.detach()})};WW.prototype.ngOnDestroy=function(){PA.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};
WW.\u0275fac=function(a){return new (a||WW)(F(Jv),F(Wf),F(ac(function(){return XW})),F(ii))};WW.\u0275dir=v({type:WW,selectors:[["","matTabBodyHost",""]],features:[gf]});
var YW=function(a,b,c){var d=this;this._elementRef=a;this._dir=b;this._dirChangeSubscription=T.Subscription.EMPTY;this._translateTabComplete=new T.Subject;this._onCentering=new Iw;this._beforeCentering=new Iw;this._afterLeavingCenter=new Iw;this._onCentered=new Iw(!0);this.animationDuration="500ms";this.preserveContent=!1;b&&(this._dirChangeSubscription=b.change.subscribe(function(e){d._computePositionAnimationState(e);c.markForCheck()}));this._translateTabComplete.pipe(Le(function(e,f){return e.fromState===
f.fromState&&e.toState===f.toState})).subscribe(function(e){d._isCenterPosition(e.toState)&&d._isCenterPosition(d._position)&&d._onCentered.emit();d._isCenterPosition(e.fromState)&&!d._isCenterPosition(d._position)&&d._afterLeavingCenter.emit()})};g=YW.prototype;g.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))};g.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();this._translateTabComplete.complete()};
g._onTranslateTabStarted=function(a){a=this._isCenterPosition(a.toState);this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};g._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"};g._isCenterPosition=function(a){return"center"==a||"left-origin-center"==a||"right-origin-center"==a};
g._computePositionAnimationState=function(a){a=void 0===a?this._getLayoutDirection():a;this._position=0>this._positionIndex?"ltr"==a?"left":"right":0<this._positionIndex?"ltr"==a?"right":"left":"center"};g._computePositionFromOrigin=function(a){var b=this._getLayoutDirection();return"ltr"==b&&0>=a||"rtl"==b&&0<a?"left-origin-center":"right-origin-center"};ki.Object.defineProperties(YW.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});
YW.\u0275fac=function(a){return new (a||YW)(F(nd),F(hA,8),F(lx))};YW.\u0275dir=v({type:YW,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var XW=function(a,b,c){YW.call(this,a,b,c)};U(XW,YW);XW.\u0275dir=YW.\u0275dir;
XW.\u0275fac=function(a){return new (a||XW)(F(nd),F(hA,8),F(lx))};
XW.\u0275cmp=v({type:XW,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&Zf(PA,5);if(a&2){var c;Yf(c=ag())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-tab-body"],features:[gf],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(G(0,"div",0,1),K("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",function(c){return b._translateTabComplete.next(c)}),O(2,nIa,0,0,"ng-template",
2),H());a&2&&D("@translateTab",Of(3,$0b,b._position,Nf(1,Z0b,b.animationDuration)))},dependencies:[WW],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[Y0b]}});
var a1b=new jd("MAT_TABS_CONFIG");
var b1b=new jd("MatTabContent");
var c1b=Kg({passive:!0}),ZW=function(a,b,c,d,e,f,h){var k=this;this._elementRef=a;this._changeDetectorRef=b;this._viewportRuler=c;this._dir=d;this._ngZone=e;this._platform=f;this._animationMode=h;this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new T.Subject;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new T.Subject;this._disablePagination=!1;this._selectedIndex=0;this.selectFocusedIndex=new Iw;this.indexFocused=new Iw;
e.runOutsideAngular(function(){(0,T.fromEvent)(a.nativeElement,"mouseleave").pipe(Ye(k._destroyed)).subscribe(function(){k._stopInterval()})})};g=ZW.prototype;g.ngAfterViewInit=function(){var a=this;(0,T.fromEvent)(this._previousPaginator.nativeElement,"touchstart",c1b).pipe(Ye(this._destroyed)).subscribe(function(){a._handlePaginatorPress("before")});(0,T.fromEvent)(this._nextPaginator.nativeElement,"touchstart",c1b).pipe(Ye(this._destroyed)).subscribe(function(){a._handlePaginatorPress("after")})};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:(0,T.of)("ltr"),c=this._viewportRuler.change(150),d=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=Yz(bA($z(new gA(this._items),this._getLayoutDirection())));cA(this._keyManager,this._selectedIndex);this._ngZone.onStable.pipe(Me()).subscribe(d);(0,T.merge)(b,c,this._items.changes).pipe(Ye(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=
Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));d()})});$z(a._keyManager,a._getLayoutDirection())});this._keyManager.change.pipe(Ye(this._destroyed)).subscribe(function(e){a.indexFocused.emit(e);a._setTabFocus(e)})};
g.ngAfterContentChecked=function(){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())};
g.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};g._handleKeydown=function(a){if(!gi(a))switch(a.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(a));break;default:this._keyManager.onKeydown(a)}};
g._onContentChanges=function(){var a=this,b=this._elementRef.nativeElement.textContent;b!==this._currentTextContent&&(this._currentTextContent=b||"",this._ngZone.run(function(){a.updatePagination();a._alignInkBarToSelectedTab();a._changeDetectorRef.markForCheck()}))};g.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};
g._isValidIndex=function(a){if(!this._items)return!0;a=this._items?this._items.toArray()[a]:null;return!!a&&!a.disabled};g._setTabFocus=function(a){this._showPaginationControls&&this._scrollToLabel(a);this._items&&this._items.length&&(this._items.toArray()[a].focus(),a=this._tabListContainer.nativeElement,a.scrollLeft="ltr"==this._getLayoutDirection()?0:a.scrollWidth-a.offsetWidth)};g._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"};
g._updateTabScrollPosition=function(){if(!this.disablePagination){var a=this.scrollDistance;this._tabList.nativeElement.style.transform="translateX("+Math.round("ltr"===this._getLayoutDirection()?-a:a)+"px)";if(this._platform.TRIDENT||this._platform.EDGE)this._tabListContainer.nativeElement.scrollLeft=0}};g._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+("before"==a?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
g._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
g._scrollToLabel=function(a){if(!this.disablePagination){var b=this._items?this._items.toArray()[a]:null;if(b){a=this._tabListContainer.nativeElement.offsetWidth;var c=b.elementRef.nativeElement;b=c.offsetLeft;var d=c.offsetWidth;"ltr"==this._getLayoutDirection()?c=b+d:(c=this._tabListInner.nativeElement.offsetWidth-b,b=c-d);d=this.scrollDistance;a=this.scrollDistance+a;b<d?this.scrollDistance-=d-b+60:c>a&&(this.scrollDistance+=c-a+60)}}};
g._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var a=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;a||(this.scrollDistance=0);a!==this._showPaginationControls&&this._changeDetectorRef.markForCheck();this._showPaginationControls=a}};
g._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};g._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
g._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?X0b(this._inkBar,a):this._inkBar.hide()};g._stopInterval=function(){this._stopScrolling.next()};
g._handlePaginatorPress=function(a,b){var c=this;b&&null!=b.button&&0!==b.button||(this._stopInterval(),(0,T.timer)(650,100).pipe(Ye((0,T.merge)(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(0===d||d>=e)&&c._stopInterval()}))};
g._scrollTo=function(a){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var b=this._getMaxScrollDistance();this._scrollDistance=Math.max(0,Math.min(b,a));this._scrollDistanceChanged=!0;this._checkScrollingControls();return{maxScrollDistance:b,distance:this._scrollDistance}};
ki.Object.defineProperties(ZW.prototype,{disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=Rg(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=Ug(a);this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&cA(this._keyManager,a))}},focusIndex:{configurable:!0,enumerable:!0,get:function(){return this._keyManager?this._keyManager.activeItemIndex:
0},set:function(a){this._isValidIndex(a)&&this.focusIndex!==a&&this._keyManager&&this._keyManager.setActiveItem(a)}},scrollDistance:{configurable:!0,enumerable:!0,get:function(){return this._scrollDistance},set:function(a){this._scrollTo(a)}}});ZW.\u0275fac=function(a){return new (a||ZW)(F(nd),F(lx),F(wA),F(hA,8),F(ef),F(yy),F(Wv,8))};ZW.\u0275dir=v({type:ZW,inputs:{disablePagination:"disablePagination"}});
var d1b=ni(function(){}),$W=function(a){var b=d1b.call(this)||this;b.elementRef=a;return b};U($W,d1b);$W.prototype.focus=function(){this.elementRef.nativeElement.focus()};$W.\u0275fac=function(a){return new (a||$W)(F(nd))};$W.\u0275dir=v({type:$W,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(nf("aria-disabled",!!b.disabled),sf("mat-tab-disabled",b.disabled))},inputs:{disabled:"disabled"},features:[gf]});
var e1b=["tabListContainer"],f1b=["tabList"],g1b=["tabListInner"],h1b=["nextPaginator"],i1b=["previousPaginator"],aX=function(a,b,c,d,e,f,h){ZW.call(this,a,b,c,d,e,f,h);this._disableRipple=!1};U(aX,ZW);aX.prototype._itemSelected=function(a){a.preventDefault()};ki.Object.defineProperties(aX.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Rg(a)}}});
aX.\u0275fac=function(a){return new (a||aX)(F(nd),F(lx),F(wA),F(hA,8),F(ef),F(yy),F(Wv,8))};aX.\u0275dir=v({type:aX,inputs:{disableRipple:"disableRipple"},features:[gf]});var bX=function(a,b,c,d,e,f,h){aX.call(this,a,b,c,d,e,f,h)};U(bX,aX);bX.\u0275dir=aX.\u0275dir;bX.\u0275fac=function(a){return new (a||bX)(F(nd),F(lx),F(wA),F(hA,8),F(ef),F(yy),F(Wv,8))};
bX.\u0275cmp=v({type:bX,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&$f(c,$W,4);if(a&2){var d;Yf(d=ag())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Zf(VW,7),Zf(e1b,7),Zf(f1b,7),Zf(g1b,7),Zf(h1b,5),Zf(i1b,5));if(a&2){var c;Yf(c=ag())&&(b._inkBar=c.first);Yf(c=ag())&&(b._tabListContainer=c.first);Yf(c=ag())&&(b._tabList=c.first);Yf(c=ag())&&(b._tabListInner=c.first);Yf(c=ag())&&(b._nextPaginator=c.first);Yf(c=ag())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-header"],
hostVars:4,hostBindings:function(a,b){a&2&&sf("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[gf],ngContentSelectors:["*"],decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",
3,"matRippleDisabled","disabled","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","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown",
"click","touchend"],["nextPaginator",""]],template:function(a,b){a&1&&(Cf(),G(0,"button",0,1),K("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),J(2,"div",2),H(),G(3,"div",3,4),K("keydown",function(c){return b._handleKeydown(c)}),G(5,"div",5,6),K("cdkObserveContent",function(){return b._onContentChanges()}),G(7,"div",7,8),Df(9),H(),J(10,"mat-ink-bar"),H()(),G(11,"button",
9,10),K("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),J(13,"div",2),H());a&2&&(sf("mat-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),sf("_mat-animation-noopable","NoopAnimations"===b._animationMode),B(6),sf("mat-tab-header-pagination-disabled",b._disableScrollAfter),
D("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[iB,Oz,VW],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color: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});
var j1b=new jd("MatTabLabel"),k1b=new jd("MAT_TAB");
var l1b=ni(function(){}),m1b=new jd("MAT_TAB_GROUP"),cX=function(a,b){var c=l1b.call(this)||this;c._viewContainerRef=a;c._closestTabGroup=b;c.textLabel="";c._contentPortal=null;c._stateChanges=new T.Subject;c.position=null;c.origin=null;c.isActive=!1;return c};U(cX,l1b);cX.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};cX.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
cX.prototype.ngOnInit=function(){this._contentPortal=new MA(this._explicitContent||this._implicitContent,this._viewContainerRef)};cX.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};ki.Object.defineProperties(cX.prototype,{templateLabel:{configurable:!0,enumerable:!0,get:function(){return this._templateLabel},set:function(a){this._setTemplateLabelInput(a)}},content:{configurable:!0,enumerable:!0,get:function(){return this._contentPortal}}});
cX.\u0275fac=function(a){return new (a||cX)(F(Wf),F(m1b,8))};
cX.\u0275cmp=v({type:cX,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&($f(c,j1b,5),$f(c,b1b,7,Vf));if(a&2){var d;Yf(d=ag())&&(b.templateLabel=d.first);Yf(d=ag())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&Zf(Vf,7);if(a&2){var c;Yf(c=ag())&&(b._implicitContent=c.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],
features:[Lf([{provide:k1b,useExisting:cX}]),gf,Ac],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Cf(),O(0,oIa,1,0,"ng-template"))},encapsulation:2});
var n1b=["tabBodyWrapper"],o1b=["tabHeader"],p1b=0,q1b=function(){},r1b=li(mi(function(a){this._elementRef=a}),"primary"),dX=function(a,b,c,d){a=r1b.call(this,a)||this;a._changeDetectorRef=b;a._animationMode=d;a._tabs=new bg;a._indexToSelect=0;a._lastFocusedTabIndex=null;a._tabBodyWrapperHeight=0;a._tabsSubscription=T.Subscription.EMPTY;a._tabLabelSubscription=T.Subscription.EMPTY;a._dynamicHeight=!1;a._selectedIndex=null;a.headerPosition="above";a._disablePagination=!1;a._preserveContent=!1;a.selectedIndexChange=
new Iw;a.focusChange=new Iw;a.animationDone=new Iw;a.selectedTabChange=new Iw(!0);a._groupId=p1b++;a.animationDuration=c&&c.animationDuration?c.animationDuration:"500ms";a.disablePagination=c&&null!=c.disablePagination?c.disablePagination:!1;a.dynamicHeight=c&&null!=c.dynamicHeight?c.dynamicHeight:!1;var e;a.contentTabIndex=null!=(e=null==c?void 0:c.contentTabIndex)?e:null;a.preserveContent=!(null==c||!c.preserveContent);return a};U(dX,r1b);g=dX.prototype;
g.ngAfterContentChecked=function(){var a=this,b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){var c=null==this._selectedIndex;if(!c){this.selectedTabChange.emit(this._createChangeEvent(b));var d=this._tabBodyWrapper.nativeElement;d.style.minHeight=d.clientHeight+"px"}Promise.resolve().then(function(){a._tabs.forEach(function(e,f){return e.isActive=f===b});c||(a.selectedIndexChange.emit(b),a._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(e,
f){e.position=f-b;null==a._selectedIndex||0!=e.position||e.origin||(e.origin=b-a._selectedIndex)});this._selectedIndex!==b&&(this._selectedIndex=b,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())};
g.ngAfterContentInit=function(){var a=this;this._subscribeToAllTabChanges();this._subscribeToTabLabels();this._tabsSubscription=this._tabs.changes.subscribe(function(){var b=a._clampTabIndex(a._indexToSelect);if(b===a._selectedIndex){for(var c=a._tabs.toArray(),d,e=0;e<c.length;e++)if(c[e].isActive){a._indexToSelect=a._selectedIndex=e;a._lastFocusedTabIndex=null;d=c[e];break}!d&&c[b]&&Promise.resolve().then(function(){c[b].isActive=!0;a.selectedTabChange.emit(a._createChangeEvent(b))})}a._changeDetectorRef.markForCheck()})};
g._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(We(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));Xf(a._tabs)})};g.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe()};g.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};g._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};
g._createChangeEvent=function(a){var b=new q1b;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};g._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=T.merge.apply(null,u(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};g._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};
g._getTabLabelId=function(a){return"mat-tab-label-"+this._groupId+"-"+a};g._getTabContentId=function(a){return"mat-tab-content-"+this._groupId+"-"+a};g._setTabBodyWrapperHeight=function(a){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var b=this._tabBodyWrapper.nativeElement;b.style.height=this._tabBodyWrapperHeight+"px";this._tabBodyWrapper.nativeElement.offsetHeight&&(b.style.height=a+"px")}};
g._removeTabBodyWrapperHeight=function(){var a=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=a.clientHeight;a.style.height="";this.animationDone.emit()};g._handleClick=function(a,b,c){a.disabled||(this.selectedIndex=b.focusIndex=c)};g._getTabIndex=function(a,b){if(a.disabled)return null;var c;a=null!=(c=this._lastFocusedTabIndex)?c:this.selectedIndex;return b===a?0:-1};g._tabFocusChanged=function(a,b){a&&"mouse"!==a&&"touch"!==a&&(this._tabHeader.focusIndex=b)};
ki.Object.defineProperties(dX.prototype,{dynamicHeight:{configurable:!0,enumerable:!0,get:function(){return this._dynamicHeight},set:function(a){this._dynamicHeight=Rg(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=Ug(a,null)}},animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a+"")?a+"ms":a}},contentTabIndex:{configurable:!0,
enumerable:!0,get:function(){return this._contentTabIndex},set:function(a){this._contentTabIndex=Ug(a,null)}},disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=Rg(a)}},preserveContent:{configurable:!0,enumerable:!0,get:function(){return this._preserveContent},set:function(a){this._preserveContent=Rg(a)}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=
this._elementRef.nativeElement;b.classList.remove("mat-background-"+this.backgroundColor);a&&b.classList.add("mat-background-"+a);this._backgroundColor=a}}});dX.\u0275fac=function(a){return new (a||dX)(F(nd),F(lx),F(a1b,8),F(Wv,8))};
dX.\u0275dir=v({type:dX,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[gf]});
var eX=function(a,b,c,d){return dX.call(this,a,b,c,d)||this};U(eX,dX);eX.\u0275dir=dX.\u0275dir;eX.\u0275fac=function(a){return new (a||eX)(F(nd),F(lx),F(a1b,8),F(Wv,8))};
eX.\u0275cmp=v({type:eX,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&$f(c,cX,5);if(a&2){var d;Yf(d=ag())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(Zf(n1b,5),Zf(o1b,5));if(a&2){var c;Yf(c=ag())&&(b._tabBodyWrapper=c.first);Yf(c=ag())&&(b._tabHeader=c.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(a,b){a&2&&sf("mat-tab-group-dynamic-height",b.dynamicHeight)("mat-tab-group-inverted-header","below"===b.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},
exportAs:["matTabGroup"],features:[Lf([{provide:m1b,useExisting:eX}]),gf],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","preserveContent","_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","preserveContent","_onCentered","_onCentering"]],template:function(a,b){a&1&&(G(0,"mat-tab-header",0,1),K("indexFocused",function(c){return b._focusChanged(c)})("selectFocusedIndex",function(c){return b.selectedIndex=c}),O(2,sIa,5,15,"div",2),H(),G(3,"div",3,4),O(5,tIa,1,11,"mat-tab-body",5),H());a&2&&(D("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),B(2),D("ngForOf",b._tabs),B(1),sf("_mat-animation-noopable",
"NoopAnimations"===b._animationMode),B(2),D("ngForOf",b._tabs))},dependencies:[vx,wx,sx,PA,iB,Kz,$W,XW,bX],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});
var s1b=["tabListContainer"],t1b=["tabList"],u1b=["tabListInner"],v1b=["nextPaginator"],w1b=["previousPaginator"],x1b=0,fX=function(a,b,c,d,e,f,h){ZW.call(this,a,d,e,b,c,f,h);this._disableRipple=!1;this.color="primary"};U(fX,ZW);fX.prototype._itemSelected=function(){};fX.prototype.ngAfterContentInit=function(){var a=this;this._items.changes.pipe(We(null),Ye(this._destroyed)).subscribe(function(){y1b(a)});ZW.prototype.ngAfterContentInit.call(this)};
var y1b=function(a){if(a._items){for(var b=a._items.toArray(),c=0;c<b.length;c++)if(b[c].active){a.selectedIndex=c;a._changeDetectorRef.markForCheck();a.tabPanel&&(a.tabPanel._activeTabId=b[c].id);return}a.selectedIndex=-1;a._inkBar.hide()}};fX.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};
ki.Object.defineProperties(fX.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-background-"+this.backgroundColor);a&&b.add("mat-background-"+a);this._backgroundColor=a}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Rg(a)}}});
fX.\u0275fac=function(a){return new (a||fX)(F(nd),F(hA,8),F(ef),F(lx),F(wA),F(yy),F(Wv,8))};fX.\u0275dir=v({type:fX,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[gf]});var gX=function(a,b,c,d,e,f,h){fX.call(this,a,b,c,d,e,f,h)};U(gX,fX);gX.\u0275dir=fX.\u0275dir;gX.\u0275fac=function(a){return new (a||gX)(F(nd),F(hA,8),F(ef),F(lx),F(wA),F(yy),F(Wv,8))};
gX.\u0275cmp=v({type:gX,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&$f(c,hX,5);if(a&2){var d;Yf(d=ag())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Zf(VW,7),Zf(s1b,7),Zf(t1b,7),Zf(u1b,7),Zf(v1b,5),Zf(w1b,5));if(a&2){var c;Yf(c=ag())&&(b._inkBar=c.first);Yf(c=ag())&&(b._tabListContainer=c.first);Yf(c=ag())&&(b._tabList=c.first);Yf(c=ag())&&(b._tabListInner=c.first);Yf(c=ag())&&(b._nextPaginator=c.first);Yf(c=ag())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-nav-bar",
"mat-tab-header"],hostVars:11,hostBindings:function(a,b){a&2&&(nf("role",b._getRole()),sf("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())("mat-primary","warn"!==b.color&&"accent"!==b.color)("mat-accent","accent"===b.color)("mat-warn","warn"===b.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[gf],attrs:["mat-tab-nav-bar",""],ngContentSelectors:["*"],decls:14,vars:10,consts:[["aria-hidden","true",
"type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination",
"mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(a,b){a&1&&(Cf(),G(0,"button",0,1),K("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),J(2,"div",2),H(),G(3,"div",3,4),K("keydown",function(c){return b._handleKeydown(c)}),G(5,"div",5,6),K("cdkObserveContent",function(){return b._onContentChanges()}),
G(7,"div",7,8),Df(9),H(),J(10,"mat-ink-bar"),H()(),G(11,"button",9,10),K("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),J(13,"div",2),H());a&2&&(sf("mat-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),sf("_mat-animation-noopable","NoopAnimations"===b._animationMode),
B(6),sf("mat-tab-header-pagination-disabled",b._disableScrollAfter),D("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[iB,Oz,VW],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color: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-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.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-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],
encapsulation:2});var z1b=oi(mi(ni(function(){}))),iX=function(a,b,c,d,e,f){var h=z1b.call(this)||this;h._tabNavBar=a;h.elementRef=b;h._focusMonitor=e;h._isActive=!1;h.id="mat-tab-link-"+x1b++;h.rippleConfig=c||{};h.tabIndex=parseInt(d)||0;"NoopAnimations"===f&&(h.rippleConfig.animation={enterDuration:0,exitDuration:0});return h};U(iX,z1b);g=iX.prototype;g.focus=function(){this.elementRef.nativeElement.focus()};g.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};
g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this.elementRef)};g._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};g._handleKeydown=function(a){this._tabNavBar.tabPanel&&32===a.keyCode&&this.elementRef.nativeElement.click()};g._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?null==(a=this._tabNavBar.tabPanel)?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};
g._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};g._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};g._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};g._getTabIndex=function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex};
ki.Object.defineProperties(iX.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a=Rg(a);a!==this._isActive&&(this._isActive=a,y1b(this._tabNavBar))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});iX.\u0275fac=function(a){return new (a||iX)(F(fX),F(nd),F(Xpb,8),Xc("tabindex"),F(Iz),F(Wv,8))};
iX.\u0275dir=v({type:iX,inputs:{active:"active",id:"id"},features:[gf]});var hX=function(a,b,c,d,e,f,h,k){a=iX.call(this,a,b,e,f,h,k)||this;a._tabLinkRipple=new gB(a,c,b,d);Wpb(a._tabLinkRipple,b.nativeElement);return a};U(hX,iX);hX.prototype.ngOnDestroy=function(){iX.prototype.ngOnDestroy.call(this);this._tabLinkRipple._removeTriggerEvents()};hX.\u0275fac=function(a){return new (a||hX)(F(gX),F(nd),F(ef),F(yy),F(Xpb,8),Xc("tabindex"),F(Iz),F(Wv,8))};
hX.\u0275dir=v({type:hX,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&K("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(nf("aria-controls",b._getAriaControls())("aria-current",b._getAriaCurrent())("aria-disabled",b.disabled)("aria-selected",b._getAriaSelected())("id",b.id)("tabIndex",b._getTabIndex())("role",b._getRole()),sf("mat-tab-disabled",
b.disabled)("mat-tab-label-active",b.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[gf]});
var jX=function(){};jX.\u0275fac=function(a){return new (a||jX)};jX.\u0275mod=rc({type:jX});jX.\u0275inj=fc({imports:[[Mx,VA,QA,mB,Pz,Rz],VA]});
var kX=function(){};[].concat(u([TW,CW,DW,JW,OW,SW,KW,GW,BW,AW,HW,UW]),[LW,MW,NW]);kX.\u0275fac=function(a){return new (a||kX)};kX.\u0275mod=rc({type:kX});kX.\u0275inj=fc({imports:[[PO,JK,Mx,UA,yQ,mP,ZS,jX,dF,jG,bH,DS,FS,$N]]});
var A1b=["textarea"],B1b=["hiddenInput"],C1b=["autocompleteUnderlay"],D1b=Symbol(),lX=function(a,b,c){BI.call(this);this.codefont=a;this.activeSession=b;this.window=c;this.textareaClass=[];this.disabled=!1;this.contentChange=new Iw;this.focus=new Iw;this.blur=new Iw;this.autoResize=new Iw;this.manualResize$=new Iw;this.autocompleteUserName="";this.scrollPosition=this.autocompleteLeft=this.autocompleteTop=0;this.taggingInProgress=!1;this.wordInfo={wordStart:0,wordEnd:0,word:""};this.textAreaLastAtSymbolLocation=
this.textAreaLastCursorLocation=0};U(lX,BI);lX.\u0275dir=BI.\u0275dir;lX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?Jp(a).classList.add("codefont"):Jp(a).classList.remove("codefont")}))};lX.prototype.ngOnDestroy=function(){BI.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};lX.prototype.setValue=function(a){Jp(this).value!==a&&(Jp(this).value=a,this.manualResize$.next())};
lX.prototype.getValue=function(){return Jp(this).value};var Jp=function(a){return a.textareaRef.nativeElement},Lp=function(a){var b;return null==(b=a.hiddenInputRef)?void 0:b.nativeElement},Ip=function(a){return a.activeSession.isInternalSession()&&1===a.audience},E1b=function(a){var b;return null==(b=a.autocompleteUnderlayRef)?void 0:b.nativeElement},F1b=function(a){var b=Jp(a).selectionStart;a.wordInfo=a.findWord(a.getValue(),b)};
lX.prototype.findWord=function(a,b){var c=a.slice(0,b).search(/(?!(.*\s))/);b+=a.slice(b).search(/(\s|$)/);return{wordStart:c,wordEnd:b,word:a.slice(c,b)}};
var G1b=function(a){return"ArrowDown"===a.key||"ArrowUp"===a.key||"Enter"===a.key||"Escape"===a.key||"Tab"===a.key},H1b=function(a){var b=E1b(a);a=Jp(a);b&&a&&(b.scrollTop=a.scrollTop)},Kp=function(a){a.taggingInProgress=!1;a.autocompleteUserName=""},uIa=function(a,b){b=void 0===b?!1:b;var c=Jp(a),d=Jp(a).value,e,f=null==(e=Lp(a))?void 0:e.value;e=null==f?void 0:f.length;F1b(a);var h=d.slice(0,a.textAreaLastAtSymbolLocation+1);d=a.wordInfo.word.slice(1)===f?d.slice(a.textAreaLastAtSymbolLocation+
f.length+1):d.slice(a.textAreaLastCursorLocation);e&&(a.textAreaLastCursorLocation=h.length+e);b?(b=h+f+" "+d,a.textAreaLastCursorLocation+=1):b=h+f+d;c.value=b};lX.prototype[D1b]=function(){return this.findWord};lX.\u0275fac=function(a){return new (a||lX)(F(zQ),F(pH),F(wM))};
lX.\u0275cmp=v({type:lX,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(Zf(A1b,7),Zf(B1b,5),Zf(C1b,5));if(a&2){var c;Yf(c=ag())&&(b.textareaRef=c.first);Yf(c=ag())&&(b.hiddenInputRef=c.first);Yf(c=ag())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&K("click",function(){Kp(b)},!1,xda)("keyup",function(c){var d=c.key;c=c.target.classList.contains("autocomplete-hidden-input");"Escape"===d&&c&&(Kp(b),Jp(b).focus())},!1,xda)},inputs:{textareaClass:"textareaClass",
disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",audience:"audience"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},features:[gf],decls:7,vars:11,consts:[[1,"pos-rel","comment-box-container",3,"keydown"],["commentBoxContainer",""],["aria-label","Comment box","cdkFocusInitial","",3,"autoResize","ngClass","disabled","input","focus","blur","onAutoResize","keydown","keyup","scroll"],["textarea",""],[1,"autocomplete-input-container"],
["type","text","bContactAutocomplete","SINGLE","class","autocomplete-hidden-input","tabIndex","-1","aria-hidden","true",3,"value","change","keyup",4,"ngIf"],["class","autocomplete-underlay","contentEditable","true",4,"ngIf"],["type","text","bContactAutocomplete","SINGLE","tabIndex","-1","aria-hidden","true",1,"autocomplete-hidden-input",3,"value","change","keyup"],["hiddenInput",""],["contentEditable","true",1,"autocomplete-underlay"],["autocompleteUnderlay",""]],template:function(a,b){a&1&&(G(0,
"div",0,1),K("keydown",function(c){"Escape"===c.key&&(Kp(b),Jp(b).focus())}),G(2,"textarea",2,3),K("input",function(){b.contentChange.emit(b.getValue())})("focus",function(c){return b.focus.emit(c)})("blur",function(c){return b.blur.emit(c)})("onAutoResize",function(c){return b.autoResize.emit(c)})("keydown",function(c){if(Ip(b)&&G1b(c)&&b.taggingInProgress){null==c||c.preventDefault();var d;null==(d=Lp(b))||d.focus();d=c.code;var e=c.key,f=c.keyCode,h=c.which;c=new KeyboardEvent("keydown",{charCode:c.charCode,
metaKey:c.metaKey,type:c.type,code:"Enter"===e?"Tab":d,key:"Enter"===e?"Tab":e,keyCode:"Enter"===e?9:f,which:"Enter"===e?9:h});var k;null==(k=Lp(b))||k.dispatchEvent(c)}})("keyup",function(c){if(Ip(b)){var d=Jp(b),e=null==d?void 0:d.value;b.textAreaLastCursorLocation=d.selectionStart;b.textAreaLastAtSymbolLocation=e.slice(0,b.textAreaLastCursorLocation).lastIndexOf("@");if(!G1b(c)){c=c.target;b.scrollPosition=c.scrollTop;F1b(b);var f=b.wordInfo.word;d="@"===f;e=f.startsWith("@");var h=f.slice(f.length-
1).match(/[a-z]/i);f=rua.test(f.slice(1));if(d||e&&h&&!f){c=c.selectionStart;if(!b.taggingInProgress){if(d=E1b(b)){d.textContent=b.getValue();e=E1b(b);h=Jp(b);f="height width font-family margin line-height padding border".split(" ");if(e&&h){h=b.window.getComputedStyle(h);f=r(f);for(var k=f.next();!k.done;k=f.next()){k=k.value;var q=h.getPropertyValue(k);e.style.setProperty(k,q)}}H1b(b)}d=null==d?void 0:d.firstChild;e=null==d?void 0:d.textContent;d&&e&&c&&(e=new Range,e.setStart(d,c),e.setEnd(d,c),
c=document.createElement("span"),e.deleteContents(),e.insertNode(c),d=c.getBoundingClientRect(),b.autocompleteTop=d.top,b.autocompleteLeft=d.left,c.remove())}b.taggingInProgress=!0}else b.taggingInProgress=!1;if(b.taggingInProgress){b.autocompleteUserName=b.wordInfo.word.slice(1);var w;null==(w=Lp(b))||w.dispatchEvent(new KeyboardEvent("keydown"))}}}})("scroll",function(){return H1b(b)}),H(),G(4,"span",4),O(5,vIa,2,1,"input",5),H(),O(6,wIa,2,0,"div",6),H());a&2&&(B(2),D("autoResize",b.manualResize$)("ngClass",
b.textareaClass)("disabled",b.disabled),nf("placeholder",b.placeholder)("id",b.idForAriaLabel),B(2),rf("top",b.autocompleteTop+"px")("left",b.autocompleteLeft+"px"),B(1),D("ngIf",b.taggingInProgress),B(1),D("ngIf",Ip(b)))},dependencies:[vx,sx,XU,zW],encapsulation:2,changeDetection:0});
var I1b=function(a){return{"draft-markdown":a}},mX=function(a,b,c){BI.call(this);var d=this;this.cdr=a;this.ref=b;this.events=c;this.previewDisabled=!1;this.selectedIndex=0;this.onCommentSubmitted=function(){d.matTabGroup.selectedIndex=0};this.render=function(){var e=d.matTabGroup;e._tabHeader&&e._tabHeader._alignInkBarToSelectedTab();d.cdr.markForCheck()}};U(mX,BI);mX.\u0275dir=BI.\u0275dir;mX.prototype.ngOnInit=function(){this.subscriptions.add(this.events.commentSubmitted.subscribe(this.onCommentSubmitted))};
mX.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+56+"px"};mX.\u0275fac=function(a){return new (a||mX)(F(uI,2),F(nd),F(WK))};
mX.\u0275cmp=v({type:mX,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&Zf(eX,7);if(a&2){var c;Yf(c=ag())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},features:[Lf([uI]),gf],decls:5,vars:5,consts:[[1,"small","no-border",3,"dynamicHeight","selectedIndex","animationDone","selectedIndexChange"],["label","Edit"],[4,"ngTemplateOutlet"],["label","Preview",3,"disabled"]],template:function(a,b){a&1&&(G(0,"mat-tab-group",
0),K("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),G(1,"mat-tab",1),O(2,xIa,1,0,"ng-container",2),H(),G(3,"mat-tab",3),O(4,yIa,1,0,"ng-container",2),H()());a&2&&(D("dynamicHeight",!1)("selectedIndex",b.selectedIndex),B(2),D("ngTemplateOutlet",b.editArea),B(1),D("disabled",b.previewDisabled),B(1),D("ngTemplateOutlet",b.previewArea))},dependencies:[Cx,eX,cX],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}\n/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});var nX=function(a,b,c,d){BI.call(this);this.codefont=a;this.ngZone=b;this.prefs=c;this.hotkeys=d;this.isMarkdown$=this.prefs.lastPublishMode$.pipe(C(function(e){return e===WAb}));this.idPrefix="b-draft";this.content="";this.issueId=0;this.textareaClass=[];this.disabled=!1;this.audience=2;this.init=new Iw;this.contentChange=new Iw;this.focus=new Iw;this.blur=new Iw;this.autoResize=new Iw;this.onSubmit=new Iw};U(nX,BI);nX.\u0275dir=BI.\u0275dir;
nX.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
nX.prototype.ngAfterViewInit=function(){this.init.emit(this);this.init.complete();this.commentDraftTextarea&&(this.commentDraftTextarea.setValue(this.content),this.subscriptions.add(this.commentDraftTextarea.contentChange.subscribe(this.contentChange)),this.subscriptions.add(this.commentDraftTextarea.focus.subscribe(this.focus)),this.subscriptions.add(this.commentDraftTextarea.blur.subscribe(this.blur)),this.subscriptions.add(this.commentDraftTextarea.autoResize.subscribe(this.autoResize)))};
var J1b=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&Jp(a.commentDraftTextarea).focus()})};nX.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};nX.\u0275fac=function(a){return new (a||nX)(F(zQ),F(ef),F(zI),F(fJ))};
nX.\u0275cmp=v({type:nX,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(Zf(lX,5),Zf(mX,5));if(a&2){var c;Yf(c=ag())&&(b.commentDraftTextarea=c.first);Yf(c=ag())&&(b.commentDraftTabGroup=c.first)}},inputs:{content:"content",issueId:"issueId",textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",audience:"audience",idForAriaLabel:"idForAriaLabel"},outputs:{init:"init",contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize",onSubmit:"onSubmit"},
features:[gf,Ac],decls:2,vars:10,consts:[[3,"textareaClass","ngClass","disabled","placeholder","idForAriaLabel","audience","autoResize","keydown.control.enter","keydown.meta.enter"]],template:function(a,b){a&1&&(G(0,"b-comment-draft-textarea",0),K("autoResize",function(c){return b.synchronizeHeight(c)})("keydown.control.enter",function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()})("keydown.meta.enter",function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()}),Q(1,"async"),H());a&2&&D("textareaClass",b.textareaClass)("ngClass",
Nf(8,I1b,R(1,6,b.isMarkdown$)))("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)},dependencies:[vx,lX,Fx],styles:["body   [_nghost-%COMP%]     textarea{resize:none}body   [_nghost-%COMP%]     textarea, body   [_nghost-%COMP%]     .autocomplete-underlay{max-height:40vh;min-height:130px;margin:0;width:100%;display:block;margin-bottom:8px}body   [_nghost-%COMP%]     .comment-box-container:focus-within textarea:not(:focus){padding:4px 1px 1px 7px;border:2px solid;border-color:#1a73e8;border-color:var(--primary)}body   [_nghost-%COMP%]     .autocomplete-underlay{width:100%;height:100%;position:absolute;top:0;left:0;z-index:-2;box-sizing:border-box;visibility:hidden;overflow-y:scroll;white-space:pre-line;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-input-container{position:fixed;z-index:-1;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-hidden-input{position:fixed}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input{height:18px !important;line-height:18px !important;border:0 !important;margin:0 !important;padding:0 !important;opacity:0 !important}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input:focus{outline:none !important;border:0 !important;padding:0 !important}.bv2-material   [_nghost-%COMP%]     textarea.codefont, .bv2-material   [_nghost-%COMP%]     .draft-markdown textarea{font-family:WorkAroundWebKitAndMozilla,monospace}body   [_nghost-%COMP%]     textarea.codefont, body   [_nghost-%COMP%]     .draft-markdown textarea{font-family:WorkAroundWebKitAndMozilla,monospace}\n/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});
var oX=function(){};[].concat(u([zW,nX,lX]),[mX]);oX.\u0275fac=function(a){return new (a||oX)};oX.\u0275mod=rc({type:oX});oX.\u0275inj=fc({imports:[[PO,Mx,YU,wy,UA,yQ,mP,ZS,jX,dF,jG,bH,wQ]]});
var K1b=["commentBoxContainer"],L1b=function(a){return{focused:a}},M1b=function(){return[]},pX=function(a,b,c,d,e){this.analytics=a;this.hotkeys=b;this.userPreferencesManager=c;this.appEvents=e;this.MARKDOWN=2;this.commentChange=new Iw;this.supportsPreview=!1;this.loadFormatFromPrefs=!0;this.disabled=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.onChange=new Iw;this.onSubmit=new Iw;this.onRestrict=new Iw;this.focused=!1;this.commentRebound$=new T.ReplaySubject(1);this.destroyed$=new T.ReplaySubject(1);
this.createRestrictedResourcesComponentWhitelist=jb(d.config,13)};g=pX.prototype;g.ngOnDestroy=function(){var a;null==(a=this.comment)||$Pb(a);this.destroyed$.next()};
g.ngOnInit=function(){var a=this;(0,T.merge)(this.userPreferencesManager.lastPublishModeProto$,this.commentRebound$).pipe($e(this.userPreferencesManager.lastPublishModeProto$),Ye(this.destroyed$)).subscribe(function(b){b=r(b);b.next();b=b.next().value;a.comment&&a.loadFormatFromPrefs&&(a.comment.formattingMode=b,a.commentChange.emit(a.comment))});this.appEvents.focusCommentBox.pipe(Ye(this.destroyed$)).subscribe(function(b){ibb(a,b)});this.appEvents.scrollToCommentBox.pipe(Ye(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};
g.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};g.getRestrictedLabel=function(){var a,b,c=null!=(b=null==(a=this.judgementForNewContent)?void 0:a.getSeverity())?b:1;return uqa(zl(c))};g.isRestricted=function(){var a,b;return 1!==(null!=(b=null==(a=this.judgementForNewContent)?void 0:a.getSeverity())?b:1)};var ibb=function(a,b){(b=void 0===b?"":b)&&bo(a.analytics,"commentBox","takeFocus",b);a.scrollIntoView();var c;null==(c=a.commentDraftComponent)||J1b(c)};
pX.prototype.scrollIntoView=function(){var a;null==(a=this.commentBoxContainer)||a.nativeElement.scrollIntoView()};pX.prototype.onFocus=function(){this.focused=!0};pX.prototype.onBlur=function(){this.focused=!1};pX.prototype.onKeydown=function(a){this.hotkeys.isEnabled()&&("Enter"!==a.key||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a.shiftKey))};pX.\u0275fac=function(a){return new (a||pX)(F(SM),F(fJ),F(zI),F(pH),F(WK))};
pX.\u0275cmp=v({type:pX,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(Zf(nX,5),Zf(K1b,5),Zf(cW,5));if(a&2){var c;Yf(c=ag())&&(b.commentDraftComponent=c.first);Yf(c=ag())&&(b.commentBoxContainer=c.first);Yf(c=ag())&&(b.attachmentUploader=c.first)}},inputs:{issueId:"issueId",comment:"comment",supportsPreview:"supportsPreview",componentId:"componentId",loadFormatFromPrefs:"loadFormatFromPrefs",placeholder:"placeholder",judgementForNewContent:"judgementForNewContent",audience:"audience",
disabled:"disabled",showToolbar:"showToolbar",idForAriaLabel:"idForAriaLabel",attachmentsDisabled:"attachmentsDisabled"},outputs:{commentChange:"commentChange",onChange:"onChange",onSubmit:"onSubmit",onRestrict:"onRestrict"},features:[Ac],ngContentSelectors:["*"],decls:7,vars:14,consts:[[1,"bv2-comment-box-container",3,"ngClass"],["commentBoxContainer",""],[1,"bv2-comment-textarea-wrapper"],[3,"issueId","content","placeholder","disabled","textareaClass","audience","idForAriaLabel","contentChange",
"focus","blur","keydown","paste"],[3,"uploads","onUploadCancel"],["class","bv2-comment-toolbar",4,"ngIf"],[4,"ngIf"],[1,"bv2-comment-toolbar"],[3,"disabled","onSelect"],[3,"disabled","onPickDoc","onCloneBlob"],[1,"goog-inline-block","vertical-centered"],[4,"ngIf","ngIfElse"],["restrictedFlatButton",""],["mat-icon-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",3,"disabled","click"],["svgIcon","restricted"],["mat-button","","matTooltip","Restrict this comment/attachment",
"aria-label","Restrict this comment/attachment",1,"button-with-text",3,"click"],[3,"comment","issueId","audience","formattingMode"]],template:function(a,b){a&1&&(Cf(),G(0,"div",0,1)(2,"div",2)(3,"b-comment-draft",3),K("contentChange",function(d){if(b.comment){var e=b.comment.value;b.comment.value=d;d!==e&&b.onChange&&(b.commentChange.emit(b.comment),b.onChange.emit())}})("focus",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("keydown",function(d){return b.onKeydown(d)})("paste",
function(d){if(d&&null!=d.clipboardData){var e=d.clipboardData;for(var f=!1,h=!1,k=0,q=0;q<e.types.length;q++)"text/plain"===e.types[q]?f=!0:"Files"===e.types[q]&&(h=!0,k=q);h&&e.items&&e.files?(h=e.files[0],k=e.items[k].type.replace(/^.*[/]/,""),f?(e=e.getData("text/plain"),e=e.replace(/^.*[\\\/]/,"")):e=(new Date).toString()+"."+k,e={file:h,filename:e}):e=void 0;e&&(d.preventDefault(),d=new File([e.file],e.filename,{type:e.file.type}),d=b.attachmentUploader.upload(d),b.comment&&b.comment.uploads.push(d))}}),
H()(),G(4,"b-attachment-uploader",4),K("onUploadCancel",function(d){b.comment&&wa(b.comment.uploads,d)}),H(),O(5,BIa,8,4,"div",5),H(),O(6,CIa,2,4,"div",6));if(a&2){var c;D("ngClass",Nf(11,L1b,b.focused));B(3);D("issueId",b.issueId||0)("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",b.disabled?"bv2-disabled":"")("audience",b.audience)("idForAriaLabel",b.idForAriaLabel);B(1);D("uploads",null!==(c=null==b.comment?null:b.comment.uploads)&&void 0!==c?c:Mf(13,
M1b));B(1);D("ngIf",b.showToolbar);B(1);D("ngIf",b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN)}},dependencies:[vx,sx,nX,$E,SW,yW,ZV,cW,pB,LE],encapsulation:2});
var N1b=["dialog"],qX=function(a,b,c){BI.call(this);this.matDialog=a;this.activeSession=b;this.hotkeys=c;this.comment=new aS;this.save=new Iw;this.close=new Iw;this.externalWarnings=[];this.issueEditBuilder=null;this.FocusableField=O1b;this.issueStates=WIb};U(qX,BI);qX.\u0275dir=BI.\u0275dir;
qX.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new PYb(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&DIa(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});this.matDialogRef._afterClosed.pipe(Ye(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};qX.\u0275fac=function(a){return new (a||qX)(F(HB),F(pH),F(fJ))};
qX.\u0275cmp=v({type:qX,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&Zf(N1b,5);if(a&2){var c;Yf(c=ag())&&(b.dialog=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},features:[gf],decls:2,vars:0,consts:[["dialog",""],["statusForm","ngForm"],["mat-dialog-title",""],["mat-dialog-content",""],["class","bv2-modal-form",4,"ngIf"],["mat-dialog-actions",""],["type","button","mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["type","submit",
"color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close","disabled"],[1,"bv2-modal-form"],["type","button","mat-button","",1,"gmat-button","medium","primary","status-select",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["statusMenu",""],["mat-menu-item","","type","button",3,"disabled","click"],["mat-menu-item","","type","button",3,"disabled","click",4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","bv2-modal-text-field",4,"ngSwitchDefault"],
["placeholder","Add a comment (optional)",3,"comment","showToolbar","onSubmit"],[1,"float-clear"],["class","bv2-external-component-modal-warning",4,"ngIf"],[1,"bv2-modal-text-field"],["for","bv2-state-modal-assignee",1,"bv2-top-field-label"],["class","bv2-multiple-user-chip",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["for","bv2-state-modal-verifier",1,"bv2-top-field-label"],["class","bv2-multiple-user-chip",3,"bv2-invalid-multiple-user-chip",4,"ngSwitchCase"],[1,"bv2-multiple-user-chip"],["title","Clear assignees",
3,"click"],["type","text","name","assignee",3,"ngModel","bContactAutocomplete","ngModelChange"],["title","Clear verifiers",3,"click"],["type","text","name","verifier",3,"ngModel","required","bContactAutocomplete","ngModelChange"],["for","bv2-state-modal-issue-id",1,"bv2-top-field-label"],["type","text","name","duplicateOf",3,"ngModel","ngModelChange"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a){a&1&&O(0,SIa,13,4,"ng-template",null,0,gg)},
dependencies:[wx,sx,yx,zx,Ax,IB,JB,KB,LB,TS,iy,Fg,by,cy,sy,hy,fy,pB,uH,QE,OE,TE,XU,pX],encapsulation:2});var O1b={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};
var rX=function(a){var b;a=null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel;return"EXTERNAL_PARTNER"===a||"EXTERNAL_PUBLIC"===a},P1b=function(a){var b;return"EXTERNAL_PARTNER"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},sX=function(a){var b;return"EXTERNAL_PUBLIC"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},Q1b=function(a,b){return a?a.join(" > "):String(b)},R1b=function(a){switch(a){case "INTERNAL":return"Google internal (can be made visible to Google FTEs and TVCs)";
case "EXTERNAL_PARTNER":return"Google partners (can be made visible to external Google partners)";case "EXTERNAL_PUBLIC":return"Public (can be made visible to anyone with a Google Account)";case "ACCESS_LEVEL_UNSPECIFIED":return"Not specified";default:return""}};
var tX=function(a,b,c){this.userAccess=a;this.errorHandler=b;this.data=c;this.issuesToFlag=[];this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1;this.issuesToFlag=c.issuesToFlag};tX.prototype.ngOnInit=function(){S1b(this,this.issuesToFlag)};
var S1b=function(a,b){0>=b.length?a.permissionsCheckComplete=!0:DK(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);S1b(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};tX.\u0275fac=function(a){return new (a||tX)(F(CK),F(SK),F(FB))};
tX.\u0275cmp=v({type:tX,selectors:[["b-bulk-flag-as-spam-dialog"]],decls:16,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-bulk-flag-as-spam-prompt"],[1,"bv2-bulk-flag-as-spam-warning"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close","",1,"gmat-button","medium"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","dialog-primary-action",3,"disabled","mat-dialog-close"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Flag Issues as Spam"),
H(),G(2,"div",1)(3,"div",2)(4,"p"),P(5),H(),G(6,"p"),P(7," This operation cannot be undone in bulk. "),H()(),G(8,"div",3),O(9,TIa,3,2,"div",4),O(10,VIa,5,2,"div",4),H()(),G(11,"div",5)(12,"button",6),P(13," Close "),H(),G(14,"button",7),P(15," Flag as Spam "),H()());a&2&&(B(5),If(" Flagging these ",b.issuesToFlag.length," issues as spam will not cause them to be deleted, rather they will simply drop out of regular search results. They need to be kept around to train anti-abuse models. "),B(4),D("ngIf",
!b.permissionsCheckComplete),B(1),D("ngIf",b.permissionsCheckComplete&&0<b.protectedIssues.length),B(4),D("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[wx,sx,pB,IB,JB,KB,LB],encapsulation:2});
var uX=function(a,b){this.cdr=a;this.dialogRef=b;this.component=null};uX.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};uX.prototype.save=function(){this.dialogRef.close(this.component)};uX.prototype.cancel=function(){this.dialogRef.close()};uX.\u0275fac=function(a){return new (a||uX)(F(uI,2),F(AB))};
uX.\u0275cmp=v({type:uX,selectors:[["b-bulk-move-dialog"]],features:[Lf([uI])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"bv2-bulk-move-warning"],[3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Change Component"),H(),G(2,"mat-dialog-content")(3,"p"),P(4,"Choose new component for these issues."),H(),G(5,"p",1),P(6,
" Warning: If these issues have custom fields, their values will be lost if you move the issues outside the component subtree that defines those custom fields. "),H(),G(7,"b-team-component-picker",2),K("selectedComponentChange",function(c){return b.updateComponent(null!==c&&void 0!==c?c:null)}),H()(),G(8,"mat-dialog-actions")(9,"button",3),K("click",function(){return b.cancel()}),P(10," Cancel "),H(),G(11,"button",4),K("click",function(){return b.save()}),P(12," Save "),H()());a&2&&(B(7),D("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),B(4),D("disabled",null==b.component))},dependencies:[pB,JB,KB,LB,EV],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}[_nghost-%COMP%]     .bv2-component-picker{width:100%}"]});
var vX=function(a,b){this.data=a;this.dialogRef=b;this.fieldDisplayName=this.removeItems=this.addItems="";this.fieldDisplayName=a.fieldDisplayName};vX.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};vX.prototype.close=function(){this.dialogRef.close()};vX.\u0275fac=function(a){return new (a||vX)(F(FB),F(AB))};
vX.\u0275cmp=v({type:vX,selectors:[["b-edit-item-modal"]],decls:20,vars:6,consts:[["mat-dialog-title",""],[1,"bv2-modal-form"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"click"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"mat-dialog-content")(3,"p"),P(4),H(),G(5,"div",1)(6,"mat-form-field")(7,"mat-label"),P(8),H(),G(9,"input",2),K("ngModelChange",function(c){return b.addItems=c}),H()(),
J(10,"br"),G(11,"mat-form-field")(12,"mat-label"),P(13),H(),G(14,"input",2),K("ngModelChange",function(c){return b.removeItems=c}),H()()()(),G(15,"mat-dialog-actions")(16,"button",3),K("click",function(){return b.close()}),P(17," Cancel "),H(),G(18,"button",4),K("click",function(){return b.save()}),P(19," Save "),H()());a&2&&(B(1),If("Edit ",b.fieldDisplayName,""),B(3),If("Enter ",b.fieldDisplayName," to add or remove"),B(4),If(" ",b.fieldDisplayName," to Add "),B(1),D("ngModel",b.addItems),B(4),
If(" ",b.fieldDisplayName," to Remove "),B(1),D("ngModel",b.removeItems))},dependencies:[Fg,by,hy,pB,XB,UB,ZB,JB,KB,LB],encapsulation:2});
var T1b=["hotlistFilterInput"],U1b=["hotlistCreate"],V1b=["hotlistApply"],W1b=["hotlistLoad"],X1b=["menuitem"],wX=function(a,b,c,d,e,f){BI.call(this);this.liveAnnouncer=a;this.butterBar=b;this.userAccess=c;this.analytics=d;this.activeSession=e;this.cdr=f;this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new Iw;this.onApply=new Iw;this.onLoad=new Iw;this.hotlistEditAcls={};this.validHotlistIds=new Set;this.pendingChanges=this.canLoad=this.canCreate=!1;this.oldSelectedHotlistMap=
{};this.selectedHotlistMap={};this.shouldShowHotlist={};this.filterText="";this.focusedRowIndex=-1;this.isAnonymous=this.activeSession.isAnonymous()};U(wX,BI);wX.\u0275dir=BI.\u0275dir;wX.prototype.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(Ye(this.destroyed$)).subscribe(function(){(0,T.timer)(0).pipe(Ye(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;null==(c=this.trigger)||c.menuClosed.pipe(Ye(this.destroyed$)).subscribe(function(){Y1b(a)})};
wX.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};wX.prototype.ngOnChanges=function(){Z1b(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;xX(this)};
var Z1b=function(a){var b={};Eja(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=r(a.choices),d=c.next();!d.done;d=c.next())d=d.value,b[d.hotlistId]=0,a.validHotlistIds.add(d.hotlistId);if(a.selectedHotlistIds){c=a.selectedHotlistIds.length;d=r(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=r(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=r(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Ga(a.choices,function(h,k){var q=b[h.hotlistId],w=b[k.hotlistId];return q>w?-1:q<w?1:au(h.name,k.name)})}}};wX.prototype.open=function(){yi(this.trigger);this.cdr.detectChanges()};wX.prototype.close=function(){this.trigger.closeMenu()};
wX.prototype.hasAclToEdit=function(a){var b=this;if(Bja(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];DK(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var Np=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return void 0===a?!0:!a},Op=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=null===c?!0:!c;Pp(a);a.close()},Pp=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},xX=function(a){for(var b=a.filterText,c=!1,d=r(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=na(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=!/[^0-9]/.test(Qi(b))&&!!b&&!!a.onLoad},Y1b=function(a){a.trigger.menuOpen||(Z1b(a),a.filterText="",xX(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},$1b=function(a){var b=a.selectedHotlistIds;return b&&1===b.length?"Hotlists ("+haa(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
wX.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",xX(this),this.onCreate.emit({name:b,successCallback:function(c){Op(a,c)},errorCallback:function(){QK(a.butterBar,"Failed to create hotlist "+b)}}))};
wX.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){bo(this.analytics,"hotlistPicker","loadHotlist");PK(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";xX(this);for(var c=Ki(b),d=r(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){Op(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){Op(a,f)},errorCallback:function(){QK(a.butterBar,"Failed to load hotlist "+b)}})}};
var WIa=function(a,b){Np(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.focusFilterBox(),a.pendingChanges=!Ei(a.oldSelectedHotlistMap,a.selectedHotlistMap))},f2b=function(a,b){b=void 0===b?0:b;var c=yX(a).filter(function(e,f){return f>a.focusedRowIndex&&a.shouldShowHotlist[Number(e.id.substring(13))]}),d=a.choices.length;c.length?(b=b>=c.length?c[c.length-1]:c[b],a.focusedRowIndex=ra(yX(a),b),a2b(a),b2b(a,b)):a.focusedRowIndex<d&&a.canCreate?c2b(a,d):a.focusedRowIndex<
d+1&&a.canLoad?d2b(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&e2b(a,d)},yX=function(a){return a.menuItems.map(function(b){return b.nativeElement})},g2b=function(a,b){b=void 0===b?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)c2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)d2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)c2b(a,a.choices.length);else{var c=yX(a).filter(function(d,e){return e<a.focusedRowIndex&&a.shouldShowHotlist[Number(d.id.substring(13))]});
c.length?(b=b>=c.length?c[0]:c[c.length-b-1],a.focusedRowIndex=ra(yX(a),b),a2b(a),b2b(a,b)):(a.focusedRowIndex=-1,b2b(a,null))}},b2b=function(a,b){a.filterElement&&eJ(a.filterElement.nativeElement,b);a.focusFilterBox()},c2b=function(a,b){a.focusedRowIndex=b;eJ(a.filterElement.nativeElement,null);var c;null==(c=a.createElement)||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},d2b=function(a,b){a.focusedRowIndex=b+1;eJ(a.filterElement.nativeElement,null);var c;
null==(c=a.loadElement)||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},e2b=function(a,b){a.focusedRowIndex=b+2;eJ(a.filterElement.nativeElement,null);var c;null==(c=a.applyElement)||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},a2b=function(a){-1===a.focusedRowIndex||a.focusedRowIndex>=a.choices.length||(a=yX(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},XIa=function(a){return null==
a?"mixed":a.toString()},YIa=function(a){return null==a?"indeterminate":a?"checked":"unchecked"};wX.\u0275fac=function(a){return new (a||wX)(F(Qz),F(OK),F(CK),F(SM),F(pH),F(uI,2))};
wX.\u0275cmp=v({type:wX,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(Zf(TE,5),Zf(T1b,5),Zf(U1b,5),Zf(V1b,5),Zf(W1b,5),Zf(X1b,5));if(a&2){var c;Yf(c=ag())&&(b.trigger=c.first);Yf(c=ag())&&(b.filterElement=c.first);Yf(c=ag())&&(b.createElement=c.first);Yf(c=ag())&&(b.applyElement=c.first);Yf(c=ag())&&(b.loadElement=c.first);Yf(c=ag())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},features:[Lf([uI]),gf,Ac],decls:13,vars:4,consts:[["mat-button","","id","hotlist-picker-button","aria-describedby","hotlist-picker-label-text",1,"gmat-button","medium","primary",3,"matMenuTriggerFor","disabled"],["id","hotlist-picker-label-text"],["name","arrow-dropdown","size","small"],["hotlistMenu","matMenu"],[1,"menu"],[1,"menu-control"],[1,"hotlist-filter"],["mat-input","","type","text","id","hotlist-filter-input","maxlength","255","role","combobox","aria-autocomplete","list",
"aria-expanded","true","placeholder","Type to filter your starred hotlists","autocomplete","off",3,"ngModel","ngModelChange","mousedown","blur","click","keydown"],["hotlistFilterInput",""],["matMenuContent",""],["role","listbox",1,"multi-edit-scrollarea"],["hotlistChoices",""],["class","multi-edit-menuitem","role","option",3,"display","focused","title","click",4,"ngFor","ngForOf"],["mat-menu-item","","matTooltip","Type a new name to create a hotlist","matTooltipPosition","right","title","Type a new hotlist name above and then click here to create a new hotlist.",
1,"hotlist-create",3,"disabled","click","keydown.enter"],["hotlistCreate",""],[4,"ngIf"],["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"focused","click","keydown.enter",4,"ngIf"],["mat-menu-item","","class","hotlist-apply","id","hotlist-apply","aria-label","apply",3,"focused","click","keydown.enter",4,"ngIf"],["role","option",1,"multi-edit-menuitem",3,"title","click"],["menuitem",""],["role","checkbox",3,"state","disabled","click"],
["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"click","keydown.enter"],["hotlistLoad",""],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"click","keydown.enter"],["hotlistApply",""]],template:function(a,b){a&1&&(G(0,"button",0)(1,"span",1),P(2),H(),J(3,"b-icon",2),H(),G(4,"mat-menu",null,3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"input",7,8),K("ngModelChange",function(d){return b.filterText=d})("ngModelChange",
function(){return xX(b)})("mousedown",function(d){return d.stopPropagation()})("blur",function(){return Y1b(b)})("click",function(d){return d.stopPropagation()})("keydown",function(d){d.stopImmediatePropagation();"Escape"===d.key?b.close():"ArrowDown"===d.key?(f2b(b),d.preventDefault()):"ArrowUp"===d.key?(g2b(b),d.preventDefault()):"PageUp"===d.key?g2b(b,11):"PageDown"===d.key?f2b(b,11):" "===d.key?-1===b.focusedRowIndex||b.focusedRowIndex>=b.choices.length||(WIa(b,b.choices[b.focusedRowIndex]),d.preventDefault()):
"Enter"===d.key&&(b.focusedRowIndex===b.choices.length?b.createHotlist():b.focusedRowIndex===b.choices.length+1?b.loadHotlist():b.pendingChanges?(b.close(),Pp(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&Op(b,b.choices[b.focusedRowIndex]))}),H()()(),J(11,"mat-divider"),O(12,cJa,11,8,"ng-template",9),H()());if(a&2){var c=Hf(5);D("matMenuTriggerFor",c)("disabled",b.isAnonymous);B(2);Jf($1b(b));B(7);D("ngModel",b.filterText)}},dependencies:[wx,
sx,QE,OE,TE,NE,pB,Fg,by,ty,hy,jB,$E,$H,uH],styles:[".menu[_ngcontent-%COMP%]{max-height:400px;width:280px;overflow-x:hidden;overflow-y:hidden}.menu-control[_ngcontent-%COMP%]{line-height:19px;padding:0 6px}.menu-control[_ngcontent-%COMP%]   .hotlist-filter[_ngcontent-%COMP%]{padding:8px 0}.menu-control[_ngcontent-%COMP%]   .hotlist-filter[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:29px;line-height:16px;padding-left:9px;vertical-align:top;width:100%;box-sizing:border-box;border-radius:4px;border:1px solid #dadce0}.multi-edit-scrollarea[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:246px;overflow-y:scroll;overflow-x:hidden}.multi-edit-scrollarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{border:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem[_ngcontent-%COMP%]{border-width:0;line-height:19px;margin:0 6px;padding:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem.focused[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.mat-menu-item.focused[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg);border:0}\n/*# sourceMappingURL=hotlist_picker.css.map */"]});
var zX=function(a){this.issuesApi=a};zX.prototype.get=function(a,b,c,d,e,f,h){return this.issuesApi.getRelatedIssues({resourceType:void 0===b?null:b,resourceId:void 0===c?null:c,q:a,s:void 0===e?null:e,count:void 0===f?null:f,p:void 0===h?null:h})};zX.\u0275fac=function(a){return new (a||zX)(t(wK))};zX.\u0275prov=ec({token:zX,factory:zX.\u0275fac,providedIn:"root"});
var AX=function(a,b,c,d){this.activeSession=a;this.issueApi=b;this.analytics=c;this.errorHandler=d;this.onCc=new Iw};AX.prototype.ngOnInit=function(){};
AX.prototype.toggle=function(){var a=this;bo(this.analytics,"issueCard","click","cc "+(this.ccState?"REMOVE":"ADD"));this.onCc.emit(!this.ccState);if(this.ccState)this.ccState=!1,this.issueApi.unCcUser(this.issueId).then(function(){}).catch(function(c){a.ccState=!0;a.errorHandler.errorHandler(null,c)});else{this.ccState=!0;var b={issueId:this.issueId,actions:[{fieldName:"ccs",value:this.activeSession.getUserEmail(),actionType:"ADD"}]};this.issueApi.updateIssue(this.issueId,b).then(function(){}).catch(function(c){a.ccState=
!1;a.errorHandler.errorHandler(null,c)})}};AX.\u0275fac=function(a){return new (a||AX)(F(pH),F(wK),F(SM),F(SK))};
AX.\u0275cmp=v({type:AX,selectors:[["b-cc-button"]],inputs:{issueId:"issueId",ccState:"ccState"},outputs:{onCc:"onCc"},decls:3,vars:1,consts:[["mat-button","",1,"gmat-button","medium",3,"click"],[4,"ngIf"]],template:function(a,b){a&1&&(G(0,"button",0),K("click",function(){return b.toggle()}),O(1,dJa,2,0,"ng-container",1),P(2,"CC me\n"),H());a&2&&(B(1),D("ngIf",b.ccState))},dependencies:[sx,pB],encapsulation:2});
var BX=function(){var a=this;this.displayMode="BOTH";this.colorStyle="NONE";this.issueStatusInternal$=new T.BehaviorSubject(0);this.iconName$=this.issueStatusInternal$.pipe(Le(),C(function(b){return h2b.get(b)||""}));this.statusText$=this.issueStatusInternal$.pipe(Le(),C(function(b){return LL[b]}));this.colorClass$=this.issueStatusInternal$.pipe(Le(),C(function(b){return"bg-status"+b}));this.bgColorClass$=this.colorClass$.pipe(C(function(b){return"BACKGROUND"===a.colorStyle?"bg "+b:""}))};
BX.prototype.ngOnInit=function(){};BX.prototype.ngOnChanges=function(){this.issueStatus?this.issueStatusInternal$.next(this.issueStatus):this.issueStatusInternal$.next(Wl[this.issueStatusJs])};BX.\u0275fac=function(a){return new (a||BX)};
BX.\u0275cmp=v({type:BX,selectors:[["b-issue-status-display"]],inputs:{issueStatusJs:"issueStatusJs",issueStatus:"issueStatus",displayMode:"displayMode",colorStyle:"colorStyle"},features:[Ac],decls:5,vars:6,consts:[[1,"wrapper",3,"ngClass"],["class","swatch",3,"ngClass",4,"ngIf"],["class","icon-s",3,"svgIcon",4,"ngIf"],["class","text",4,"ngIf"],[1,"swatch",3,"ngClass"],[1,"icon-s",3,"svgIcon"],[1,"text"]],template:function(a,b){a&1&&(G(0,"span",0),Q(1,"async"),O(2,eJa,2,3,"span",1),O(3,fJa,2,3,"mat-icon",
2),O(4,gJa,3,3,"span",3),H());if(a&2){var c;D("ngClass",null!==(c=R(1,4,b.bgColorClass$))&&void 0!==c?c:"");B(2);D("ngIf","ASIDE"===b.colorStyle);B(1);D("ngIf","BOTH"===b.displayMode||"ICON"===b.displayMode);B(1);D("ngIf","BOTH"===b.displayMode||"TEXT"===b.displayMode)}},dependencies:[LE,vx,sx,Fx],styles:[".wrapper[_ngcontent-%COMP%]{display:inline-block;align-items:center}.wrapper.bg[_ngcontent-%COMP%]{color:#fff;padding:2px 4px;border-radius:4px}.mat-icon[_ngcontent-%COMP%]{margin-right:4px}.swatch[_ngcontent-%COMP%]{margin-right:8px}\n/*# sourceMappingURL=issue_status_display.css.map */"],
changeDetection:0});var h2b=new Map([[1,"issue-status-new"],[2,"issue-status-assigned"],[3,"issue-status-accepted"],[4,"issue-status-fixed"],[5,"issue-status-verified"],[10,"issue-status-duplicate"],[9,"issue-status-wont-fix"],[6,"issue-status-wont-fix"],[8,"issue-status-wont-fix"],[7,"issue-status-wont-fix"]]);
var CX=function(){this.upvoted=!1;this.voteCount=0;this.tooltip="";this.isNewVoteButton=this.disabled=!1;this.onAction=new Iw};CX.prototype.onClick=function(){this.onAction.emit(this.upvoted)};CX.prototype.getAriaLabel=function(){return"Vote count "+this.voteCount};CX.\u0275fac=function(a){return new (a||CX)};
CX.\u0275cmp=v({type:CX,selectors:[["b-vote-button"]],inputs:{upvoted:"upvoted",voteCount:"voteCount",tooltip:"tooltip",disabled:"disabled",isNewVoteButton:"isNewVoteButton"},outputs:{onAction:"onAction"},decls:2,vars:2,consts:[["mat-stroked-button","","class","gmat-button small new-vote-button",3,"mat-flat-button","mat-stroked-button","matTooltip","disabled","click",4,"ngIf"],["mat-button","","class","gmat-button medium",3,"mat-flat-button","mat-button","matTooltip","disabled","click",4,"ngIf"],
["mat-stroked-button","",1,"gmat-button","small","new-vote-button",3,"matTooltip","disabled","click"],["mat-button","",1,"gmat-button","medium",3,"matTooltip","disabled","click"],[1,"vote-count"]],template:function(a,b){a&1&&(O(0,hJa,2,9,"button",0),O(1,iJa,5,9,"button",1));a&2&&(D("ngIf",b.isNewVoteButton),B(1),D("ngIf",!b.isNewVoteButton))},dependencies:[pB,$E,sx],styles:[".vote-count[_ngcontent-%COMP%]{margin-left:5px}.new-vote-button[_ngcontent-%COMP%]{min-width:48px;font-size:.8125rem}\n/*# sourceMappingURL=vote_button.css.map */"],
changeDetection:0});
var i2b=go.EDIT_ISSUE,DX=function(a,b,c){BI.call(this);this.analytics=a;this.errorHandler=b;this.issueFridge=c;this.upvoted=!1;this.voteCount=0;this.isNewVoteButton=!1;this.onVote=new Iw};U(DX,BI);DX.\u0275dir=BI.\u0275dir;
var j2b=function(a){null!=a.issueId&&(a.upvoted=!a.upvoted,a.onVote.emit(a.upvoted),a.voteCount+=a.upvoted?1:-1,a.issueFridge.setVoted(String(a.issueId),a.upvoted).pipe(Me(),Ye(a.destroyed$)).subscribe(function(){},function(b){a.errorHandler.errorHandler(null,b)}),bo(a.analytics,i2b,"light-ixn","vote",a.upvoted))};DX.\u0275fac=function(a){return new (a||DX)(F(SM),F(SK),F(yL))};
DX.\u0275cmp=v({type:DX,selectors:[["b-app-vote-button"]],inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount",isNewVoteButton:"isNewVoteButton"},outputs:{onVote:"onVote"},features:[gf],decls:1,vars:3,consts:[["tooltip","Indicate that you are affected by this issue",3,"upvoted","voteCount","isNewVoteButton","onAction"]],template:function(a,b){a&1&&(G(0,"b-vote-button",0),K("onAction",function(){return j2b(b)}),H());a&2&&D("upvoted",b.upvoted)("voteCount",b.voteCount)("isNewVoteButton",
b.isNewVoteButton)},dependencies:[CX],encapsulation:2});
var wJa=function(){return[]},EX=function(a,b,c,d,e,f,h){BI.call(this);var k=this;this.issuesApi=a;this.cdr=b;this.activeSession=c;this.analytics=d;this.relationshipService=e;this.issueFridge=f;this.butterBar=h;this.providedIssueId$=new T.ReplaySubject(1);this.issueFetchResponse$=this.providedIssueId$.pipe(Xe(function(q){return k.issuesApi.getIssue(q)}));this.editIssue=pn;this.normalizeFormattingModeToJspb=Lsa;this.init=new T.ReplaySubject(1)};U(EX,BI);EX.\u0275dir=BI.\u0275dir;
EX.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issueFetchResponse$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.issue=b.issue;a.events=b.events;a.cdr.markForCheck();a.init.next()})};EX.prototype.priority=function(a){return null==a?"--":aJb.get(a)};EX.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":case "P2":return"high";default:return"low"}};
EX.prototype.getNote=function(){var a,b;return{commentNumber:1,unlinkifiedComment:(null==(a=this.events[0])?void 0:a.unlinkifiedComment)||"",formattedComment:null==(b=this.events[0])?void 0:b.formattedComment}};
var vJa=function(a,b){return Ml(b).includes(a.activeSession.getUserEmail())},qJa=function(a,b){var c;return me(function(d){if(1==d.nextAddress)return c=String(a.issueId),aK(a.issueFridge,b,function(e){var f=e.parentIssueIds.indexOf(c);0>f||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),Lt(d,2,3),ne(d,(0,T.firstValueFrom)(a.relationshipService.delete(c,1,b)),3);if(2!=d.nextAddress)return Ot(d),et(a.issueFridge,b),Pt(d,0);Nt(d);QK(a.butterBar,"Error removing the parent issue.");return d.jumpTo(3)})};
EX.\u0275fac=function(a){return new (a||EX)(F(zK),F(uI,2),F(pH),F(SM),F(dM),F(yL),F(OK))};
EX.\u0275cmp=v({type:EX,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},features:[Lf([uI]),gf],decls:2,vars:1,consts:[["role","dialog","aria-label","Issue Hovercard",1,"onedev-hovercard-content"],[4,"ngIf"],[1,"bv2-hovercard-wide"],["displayMode","ICON",3,"issueStatusJs"],[3,"href"],[1,"bv2-issue-card-title"],[1,"issue-card-id-snippets"],[3,"labelOnlyMode","accessLevel"],[1,"priority-status"],[1,"bv2-priority",3,"ngClass"],
[3,"ngSwitch",4,"ngIf"],[1,"issue-card-buttons","margin-y"],[3,"issueId","ccState","onCc"],["class","bv2-issue-card-comment",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"model","hovercardEnabled"],["displayMode","TEXT",3,"issueStatusJs"],[3,"issueId","voteCount","upvoted","onVote"],["mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"gmat-button","medium",3,"click"],["mode","date",1,"bv2-event-timestamp",3,"timestamp"],[1,"bv2-issue-card-comment"],
[3,"issueId","issueAccessLevel","formattingMode","note"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,xJa,24,17,"ng-container",1),H());a&2&&(B(1),D("ngIf",b.issue&&b.issue.snapshot[0]))},dependencies:[vx,sx,yx,zx,Ax,TS,pB,$E,rS,BX,LP,UW,DX,AX],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;padding:16px}.issue-card-buttons[_ngcontent-%COMP%]{margin-left:-12px}h3[_ngcontent-%COMP%]{display:inline-flex}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}.priority-status[_ngcontent-%COMP%]{display:inline-flex}"]});
var FX=function(){};FX.\u0275fac=function(a){return new (a||FX)};FX.\u0275mod=rc({type:FX});FX.\u0275inj=fc({imports:[[dF,Mx]]});
var GX=function(){};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275mod=rc({type:GX});GX.\u0275inj=fc({imports:[[jG,bH,dF,Mx]]});
var HX=function(){};HX.\u0275fac=function(a){return new (a||HX)};HX.\u0275mod=rc({type:HX});HX.\u0275inj=fc({imports:[[GX]]});
var IX=function(){};IX.\u0275fac=function(a){return new (a||IX)};IX.\u0275mod=rc({type:IX});IX.\u0275inj=fc({imports:[[Mx,dT,jG,bH,IS,FX,eQ,kX,HX]]});
var JX=function(a,b,c,d,e,f,h){BI.call(this);var k=this;this.cdr=a;this.paths=b;this.issueFridge=c;this.relatedIssues=d;this.errorHandler=e;this.analytics=f;this.domSafe=h;this.currentResourceType=this.currentResourceId=null;this.entrySelect=new Iw;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new Iw;this.hasSentTrackingEventForSearchByQuery=this.hasSentTrackingEventForSearchById=
!1;this.getTextToPutInInputOnSelect=function(){return k.query}};U(JX,BI);JX.\u0275dir=BI.\u0275dir;JX.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(Je(250),Ye(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};JX.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(u(this.defaultChoices),u(this.asyncChoices)))};
var l2b=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(k2b(b))return b.map(Number);b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return/[^0-9]/.test(b)?[]:[Ki(b)]},k2b=function(a){return!a.some(function(b){return!!/[^0-9]/.test(b)})};JX.prototype.search=function(a){"string"===typeof a&&(this.query=a)};
JX.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(""===a)m2b(this);else{var b=l2b(a);1===b.length||1<b.length&&this.allowMultipleIds?n2b(this,b,a):this.searchAsync(a)}};
var m2b=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;o2b(a,[])},o2b=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;null==(c=a.autocomplete)||us(c)},n2b=function(a,b,c){"issue"===a.currentResourceType&&1===b.length&&b[0]===a.currentResourceId?(a.searchingForSelf=!0,m2b(a)):(a.hasSentTrackingEventForSearchById||(bo(a.analytics,go.ISSUE_PICKER,"search","id"),a.hasSentTrackingEventForSearchById=!0),a.choices=p2b(a,b),a.hasLoadedResults=!1,
$J(a.issueFridge,b).pipe(Me(),Ye(a.destroyed$)).subscribe(function(d){if(a.currentQuery===c){var e=d.reduce(function(f,h){var k=pa(h.snapshot);return f.set(h.issueId,{resourceId:h.issueId,displayText:k.title,status:k.status,relations:[]})},new Map);Fa(b);d=b.map(function(f){return e.get(f)});d.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=d;a.choices=[].concat(u(a.choices),u(a.asyncChoices));o2b(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=
!0;a.cdr.detectChanges()}))};
JX.prototype.searchAsync=function(a){var b=this;this.choices=q2b(this,a);this.hasLoadedResults=!1;if(Vi(a))this.hasLoadedResults=!0;else{this.hasSentTrackingEventForSearchByQuery||(bo(this.analytics,go.ISSUE_PICKER,"search","query"),this.hasSentTrackingEventForSearchByQuery=!0);var c=r2b(a,this.defaultChoices);this.relatedIssues.get(c,this.currentResourceType,this.currentResourceId,!0).then(function(d){b.currentQuery===a&&(d=d.issueDigests.map(function(e){return{resourceId:e.issueId,displayText:e.title,
status:e.status,relations:[]}}),b.choices=[].concat(u(b.choices),u(d)),b.cdr.detectChanges())},function(d){b.errorHandler.errorHandler(null,d)}).finally(function(){b.hasLoadedResults=!0})}};var p2b=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0].toString())})},q2b=function(a,b){return Vi(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};
JX.prototype.isLoadingAsyncResults=function(){return!this.hasLoadedResults};JX.prototype.getIssueLink=function(a){return this.paths.editIssue(a.resourceId)};var DJa=function(a){return a.relations.map(function(b){return s2b.get(b)}).filter(function(b){return!!b}).join("/")},r2b=function(a,b){if(0===b.length)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};JX.prototype.onEnter=function(a){var b;(null==(b=this.autocomplete)?0:b.panelOpen)&&a.stopPropagation()};
ki.Object.defineProperties(JX.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});JX.\u0275fac=function(a){return new (a||JX)(F(uI,2),F(dL),F(yL),F(zX),F(SK),F(SM),F(vP))};
JX.\u0275cmp=v({type:JX,selectors:[["b-issue-picker"]],viewQuery:function(a,b){a&1&&Zf(wN,5);if(a&2){var c;Yf(c=ag())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",enableAsyncSearch:"enableAsyncSearch",currentResourceId:"currentResourceId",currentResourceType:"currentResourceType",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},features:[Lf([zX,uI]),gf,Ac],decls:9,vars:8,consts:[[1,"bv2-issue-picker"],[4,"ngIf"],[1,"bv2-resource-picker",
"bv2-picker"],["type","text","placeholder","Type issue ID or search query...","autocomplete","off","spellcheck","false","aria-autocomplete","list","role","combobox","autofocus","autofocus","cdkFocusInitial","",1,"bv2-resource-picker-input",3,"ngModel","matAutocomplete","paste","ngModelChange","keydown.enter","keydown.alt.arrowright"],[1,"issue-picker","base-resource-picker",3,"displayWith","optionActivated","optionSelected"],["auto","matAutocomplete"],["disabled","",4,"ngIf"],["disabled","","class",
"bv2-resource-picker-message",4,"ngIf"],["class","bv2-resource-picker-item bv2-issue-picker-item",3,"value",4,"ngFor","ngForOf"],[1,"bv2-issue-picker-message"],["disabled",""],[1,"spinner-container"],[3,"large"],["disabled","",1,"bv2-resource-picker-message"],[1,"bv2-resource-picker-item","bv2-issue-picker-item",3,"value"],["role","region","tabindex","0"],[1,"issue-picker-status-display-alignment"],["displayMode","ICON",3,"issueStatusJs",4,"ngIf"],[1,"bv2-issue-picker-issue-id",3,"title"],["issueHovercard",
"onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["mat-icon-button","","aria-label","Go to issue page.","data-stable","issue-pop-out","target","_blank",1,"gmat-button","small","bv2-issue-picker-pop-out",3,"onedevHovercardTrigger","href","click"],["svgIcon","pop-out",1,"icon-s"],[1,"bv2-issue-picker-relations"],[1,"bv2-issue-picker-description",3,"title","innerHTML"],["displayMode","ICON",3,"issueStatusJs"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""]],
template:function(a,b){a&1&&(G(0,"div",0),O(1,yJa,3,0,"div",1),G(2,"div",2)(3,"input",3),K("paste",function(d){var e,f;d=null!=(f=null==(e=d.clipboardData)?void 0:e.getData("text"))?f:"";0<l2b(d).length&&""===b.query&&bo(b.analytics,go.ISSUE_PICKER,"search","pasteId")})("ngModelChange",function(d){return b.search(d)})("keydown.enter",function(d){return b.onEnter(d)})("keydown.alt.arrowright",function(){b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice))}),H(),G(4,"mat-autocomplete",
4,5),K("optionActivated",function(d){b.activeChoice=null==d.option?null:d.option.value})("optionSelected",function(d){o2b(b,[null==d.option?null:d.option.value])}),O(6,zJa,3,1,"mat-option",6),O(7,AJa,2,0,"mat-option",7),O(8,EJa,15,13,"mat-option",8),H()()());if(a&2){var c=Hf(5);B(1);D("ngIf",b.searchingForSelf);B(2);D("ngModel",b.query)("matAutocomplete",c);nf("aria-label",0<b.selectedIssues.length?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue");B(1);D("displayWith",b.getTextToPutInInputOnSelect);
B(2);D("ngIf",""!==b.query&&b.isLoadingAsyncResults());B(1);D("ngIf",""!==b.query&&!b.isLoadingAsyncResults()&&0===b.choices.length);B(1);D("ngForOf",b.choices)}},dependencies:[wx,sx,Fg,by,hy,LE,qB,vN,wN,lB,EX,BX,pN,qN,tN,rN,mN,BM],styles:["input[_ngcontent-%COMP%]{width:450px}.bv2-issue-picker-message[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}"]});
var s2b=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"],["CANONICAL","canonical"]]),KX=function(){};KX.\u0275fac=function(a){return new (a||KX)};KX.\u0275mod=rc({type:KX});KX.\u0275inj=fc({imports:[[Mx,wy,MM,dF,jG,yN,IX,FX,$N,YN]]});
var LX=function(a,b){this.dialogRef=a;this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1,currentResourceId:null,currentResourceType:null};this.isQueryRestricted=!1;this.selectedIssues=[];this.data=Object.assign({},this.DEFAULTS,b);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":""},IJa=function(a){if(""!==a.queryRestriction){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(On(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};LX.prototype.onQueryChange=function(a){this.isQueryRestricted=""!==this.queryRestriction&&a.includes(this.queryRestriction)};LX.\u0275fac=function(a){return new (a||LX)(F(AB),F(FB))};
LX.\u0275cmp=v({type:LX,selectors:[["b-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&Zf(JX,5);if(a&2){var c;Yf(c=ag())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&K("keydown.escape",function(){b.dialogRef.close()})},decls:15,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-rel-issue-text"],["class","bv2-rel-issue-preview-link",4,"ngIf"],[1,"bv2-rel-issue-search"],[1,"bv2-rel-issue-bubble-issue-picker"],["class","bv2-rel-issue-narrow-to-component",4,"ngIf"],
[1,"bv2-rel-issue-issue-picker",3,"defaultChoices","enableAsyncSearch","currentResourceId","currentResourceType","allowMultipleIds","keydown.enter","entrySelect","queryChange"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","confirm",3,"disabled","click"],[1,"bv2-rel-issue-preview-link"],["target","_blank","class","bv2-rel-issue-id-link",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"bv2-rel-issue-id-link",
3,"href"],["target","_blank",1,"keep-underline","bv2-rel-issue-title-link",3,"href"],[1,"bv2-rel-issue-narrow-to-component"],["role","checkbox","tabindex","0","aria-label","Include subcomponents",1,"bv2-narrow-search-comp-btn",3,"matTooltip","click","keyup.space"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"div",1)(3,"div",2),O(4,GJa,2,1,"div",3),O(5,HJa,3,2,"div",3),H(),G(6,"div",4)(7,"div",5),O(8,JJa,2,2,"div",6),G(9,"b-issue-picker",7),K("keydown.enter",function(){return b.selectedIssues.length&&
b.dialogRef.close(b.selectedIssues)})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),H()()()(),G(10,"div",8)(11,"button",9),K("click",function(){return b.dialogRef.close()}),P(12," Cancel "),H(),G(13,"button",10),K("click",function(){return b.dialogRef.close(b.selectedIssues)}),P(14," Confirm "),H()());a&2&&(B(1),Jf(b.data.title),B(3),D("ngIf",1<b.selectedIssues.length),B(1),D("ngIf",1===b.selectedIssues.length),B(3),D("ngIf",!!b.queryRestriction),
B(1),sf("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),D("defaultChoices",b.data.defaultChoices)("enableAsyncSearch",!0)("currentResourceId",b.data.currentResourceId)("currentResourceType",b.data.currentResourceType)("allowMultipleIds",b.data.allowMultipleIds),B(4),D("disabled",!b.selectedIssues.length))},dependencies:[wx,sx,JX,pB,JB,KB,LB,$E],encapsulation:2});var MX=function(a){this.dialog=a};
MX.prototype.open=function(a,b){this.dialog.open(LX,{panelClass:"no-jitter",data:a})._afterClosed.subscribe(function(c){c=void 0===c?[]:c;c=c.map(function(d){return d.resourceId});b(c)})};MX.\u0275fac=function(a){return new (a||MX)(t(HB))};MX.\u0275prov=ec({token:MX,factory:MX.\u0275fac});var NX=function(){};NX.\u0275fac=function(a){return new (a||NX)};NX.\u0275mod=rc({type:NX});NX.\u0275inj=fc({providers:[MX],imports:[[Mx,KX,jG,MB,bH]]});
var OX=function(a){this.dialogRef=a;this.reporter="";this.autocompleteActive=!1};OX.prototype.keydown=function(a){"Enter"===a.key&&!this.autocompleteActive&&""!==this.reporter&&this.save()};OX.prototype.cancel=function(){this.dialogRef.close()};OX.prototype.save=function(){this.dialogRef.close(this.reporter)};OX.\u0275fac=function(a){return new (a||OX)(F(AB))};
OX.\u0275cmp=v({type:OX,selectors:[["b-reporter-picker-dialog"]],decls:12,vars:3,consts:[["mat-dialog-title",""],["matInput","",3,"bContactAutocomplete","ngModel","ngModelChange","autocompleteActive","keydown"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Change Reporter"),H(),G(2,"mat-dialog-content")(3,"mat-form-field")(4,"mat-label"),P(5," Reporter "),H(),G(6,"input",1),K("ngModelChange",function(c){return b.reporter=
c})("autocompleteActive",function(c){return b.autocompleteActive=c})("keydown",function(c){return b.keydown(c)}),H()()(),G(7,"mat-dialog-actions")(8,"button",2),K("click",function(){return b.cancel()}),P(9," Cancel "),H(),G(10,"button",3),K("click",function(){return b.save()}),P(11," Save "),H()());a&2&&(B(6),D("bContactAutocomplete","SINGLE")("ngModel",b.reporter),B(4),D("disabled",""===b.reporter))},dependencies:[Fg,by,hy,pB,JB,KB,LB,XB,UB,ZB,XU],encapsulation:2});
var t2b=["addCommentDialog"],PX=function(a,b,c,d,e,f,h,k,q,w){BI.call(this);this.cdr=a;this.activeSession=b;this.analytics=c;this.hotkeys=d;this.constants=e;this.componentActions=f;this.issueTypeDialog=h;this.copyIssueIdService=k;this.matDialog=q;this.$log=w;this.currentUserEmail=this.activeSession.getUserEmail();this.comment=new aS;this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new Iw;this.onCreateHotlist=new Iw;this.onLoadHotlist=new Iw;this.externalWarnings=[];this.controllerName="baseControls"};
U(PX,BI);PX.prototype.hasSelectedIssues=function(){return 0<this.getSelectedIssues().length};var u2b=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},KJa=function(a){return u2b(a)?"Mark as read":"Mark as unread"},Qp=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
PX.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=r(a),c=b.next();!c.done;c=b.next())c=c.value,null!=c.hotlistId||(c.hotlistId=[]);this.hotlistIdMatrix=a.map(function(d){return d.hotlistId});this.cdr.detectChanges()};
var v2b=function(a){if("PUBLIC"!==a.activeSession.frontendAccessMode){a.externalWarnings=[];var b=new Set(a.getSelectedIssues().map(function(e){return e.componentId})),c={};b=r(b);for(var d=b.next();!d.done;c={$jscomp$loop$prop$id$1664:c.$jscomp$loop$prop$id$1664},d=b.next())c.$jscomp$loop$prop$id$1664=d.value,a.componentActions.get(c.$jscomp$loop$prop$id$1664).then(function(e){if(a.activeSession.isInternalSession()&&rX(e)||qH(a.activeSession)&&sX(e)){var f,h=Q1b(null==(f=e.componentPathInfo)?void 0:
f.componentPathName,e.componentId);a.externalWarnings.push({path:h,accessLevel:e.accessLimit.accessLevel});a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.$jscomp$loop$prop$id$1664+".")}}(c))}};
PX.prototype.bulkEdit=function(a){switch(a){case "ASSIGNEE":QX(this,null,0);break;case "COMPONENT":w2b(this);break;case "VERIFIER":QX(this,null,1);break;case "REPORTER":x2b(this);break;case "CHANGELIST":RX(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":y2b(this);break;case "FOUND_IN":RX(this,"foundInVersion","Found In");break;case "VERIFIED_IN":RX(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":RX(this,"targetedToVersion","Targeted To");break;case "COMMENT":z2b(this);
break;case "CC":RX(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
PX.prototype.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=this.constants.protoIssuePrioritiesEnumStrings.get(a.newValue))&&SX(this,"priority",a);break;case "SEVERITY":(a=this.constants.protoIssueSeveritiesEnumStrings.get(a.newValue))&&SX(this,"severity",a);break;case "STATUS":(a=aBb(this.constants.protoIssueStatusesEnumStrings.get(a.newValue)))&&QX(this,zn[a],"DUPLICATE"===a?3:void 0);break;case "TYPE":(a=this.constants.protoIssueTypesEnumStrings.get(a.newValue))&&SX(this,"type",a);
break;case "IS_ARCHIVED":SX(this,"isArchived",""+a.newValue);break;case "IN_PROD":SX(this,"inProd",""+a.newValue);break;case "CC":SX(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+a.field)}};
PX.prototype.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?A2b(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:"}):A2b(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:"});break;case "BLOCKING":a.isMarking?A2b(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:"}):A2b(this,{actionType:"REMOVE",fieldName:"blockingIssueId",
title:"Unmark all selected issues as blocking:"});break;case "DUPLICATE":QX(this,zn.DUPLICATE,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};PX.prototype.bulkMarkIssueRead=function(){var a=u2b(this);SX(this,"readState",a?"true":"")};
var SX=function(a,b,c,d){var e={fieldName:b,value:c};void 0!==d&&(e.actionType=d);var f=Qp(a),h=[e];"deletionReason"===b&&h.push({fieldName:"isDeleted",value:"true"});d=function(){a.onSave.emit({bulkEditOps:[{issueIds:f,actions:h}]})};"type"!==b||"VULNERABILITY"!==c&&"PRIVACY_ISSUE"!==c?d():("VULNERABILITY"===c&&MR(a.issueTypeDialog,"VULNERABILITY",d,function(){}),"PRIVACY_ISSUE"===c&&MR(a.issueTypeDialog,"PRIVACY_ISSUE",d,function(){}))},QX=function(a,b,c){a.hasSelectedIssues()&&(v2b(a),a.stateModal.showDialog(a.getSelectedIssues(),
b,c))},B2b=function(a){var b=a.onSave,c=b.emit,d=Qp(a),e=a.stateModal.issueEditBuilder;a=[];e.issueState||DIa(e);e=r(RIa(e));for(var f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;void 0!==h&&a.push({fieldName:f,value:h})}c.call(b,{bulkEditOps:[{issueIds:d,actions:a}]})},x2b=function(a){a.hasSelectedIssues()&&(v2b(a),a.matDialog.open(OX,{width:"400px"})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&SX(a,"reporter",b)}),a.hotkeys.pause())},
RX=function(a,b,c,d){d=void 0===d?!1:d;a.hasSelectedIssues()&&(a.matDialog.open(vX,{width:"400px",data:{fieldDisplayName:c}})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&C2b(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},C2b=function(a,b,c,d,e){e=void 0===e?!1:e;c=Ui(c);d=Ui(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return Ri(q,h).map(function(w){return w.trim()})};Vi(c)||(c=k(c),e&&(c=c.filter(function(q){return!isNaN(q)})),
f.push.apply(f,u(c.map(function(q){return{fieldName:b,value:q,actionType:"ADD"}}))));Vi(d)||(d=k(d),f.push.apply(f,u(d.map(function(q){return{fieldName:b,value:q,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:Qp(a),actions:f}]})},w2b=function(a){a.hasSelectedIssues()&&(a.matDialog.open(uX,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:Qp(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),bo(a.analytics,a.controllerName,"bulkMove"))}),a.hotkeys.pause())},D2b=function(a){a.hasSelectedIssues()&&(a.matDialog.open(tX,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(bo(a.analytics,a.controllerName,"bulkFlagAsSpam"),SX(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},z2b=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&(a.addCommentDialogRef=
a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),a.addCommentDialogRef._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&cQb(a.comment)&&SX(a,"comment",a.comment.value);a.comment.reset()}),a.hotkeys.pause(),v2b(a))},TJa=function(a){var b;null==(b=a.addCommentDialogRef)||b.close(!0)},y2b=function(a){a.hasSelectedIssues()&&a.matDialog.open(dQ,{data:a.getSelectedIssues(),width:"500px"})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(b){b&&
(a.onSave.emit({bulkEditOps:b}),bo(a.analytics,a.controllerName,"bulkCustomField"))})};
PX.prototype.handleHotlistPickerSave=function(a){var b=a.oldSelectionMap,c=[],d=[],e=0;Object.entries(a.newSelectionMap).forEach(function(f){var h=r(f);f=h.next().value;h=h.next().value;h!==b[f]&&(h?c.push(f):d.push(f),e++)});a=[];c.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:c.join(",")});d.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:d.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:Qp(this),actions:a}]}),bo(this.analytics,this.controllerName,"applyHotlists",
"numHotlists",e))};var A2b=function(a,b){var c=b.actionType,d=b.fieldName;a.matDialog.open(LX,{data:{title:b.title}})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(null==e?0:e.length)e=e[0].resourceId,a.onSave.emit({bulkEditOps:[{issueIds:Qp(a),actions:[{fieldName:d,value:String(e),actionType:c}]}]})});a.hotkeys.pause()};PX.\u0275fac=function(a){return new (a||PX)(F(uI),F(pH),F(SM),F(fJ),F(ZH),F(AT),F(LR),F(nT),F(HB),F(RK))};
PX.\u0275dir=v({type:PX,viewQuery:function(a,b){a&1&&(Zf(t2b,5),Zf(wX,5),Zf(qX,5));if(a&2){var c;Yf(c=ag())&&(b.addCommentDialog=c.first);Yf(c=ag())&&(b.hotlistPicker=c.first);Yf(c=ag())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},features:[gf]});
var TX=function(){};TX.\u0275fac=function(a){return new (a||TX)};TX.\u0275mod=rc({type:TX});TX.\u0275inj=fc({providers:[{provide:AZb,useFactory:function(){return new xZb}}]});
var UX=function(){};UX.\u0275fac=function(a){return new (a||UX)};UX.\u0275mod=rc({type:UX});UX.\u0275inj=fc({imports:[[Mx,TX]]});
var VX=function(){};VX.\u0275fac=function(a){return new (a||VX)};VX.\u0275mod=rc({type:VX});VX.\u0275inj=fc({providers:[{provide:zZb,useFactory:aW}],imports:[[Mx,jG,dF,bH,UX,MM]]});
var WX=function(){};WX.\u0275fac=function(a){return new (a||WX)};WX.\u0275mod=rc({type:WX});WX.\u0275inj=fc({imports:[[Mx,oX,dI,bH,zO,kX,VX,jG,dF]]});
var XX=function(){};XX.\u0275fac=function(a){return new (a||XX)};XX.\u0275mod=rc({type:XX});XX.\u0275inj=fc({imports:[[Mx,MB,dT,wy,jG,dI,UE,YU,WX]]});
var YX=function(){};YX.\u0275fac=function(a){return new (a||YX)};YX.\u0275mod=rc({type:YX});YX.\u0275inj=fc({imports:[[Mx,UE,jG,$B,wy,nB,bH,eI,UP,dI]]});
var ZX=function(a,b,c,d,e,f,h,k,q,w){PX.call(this,a,b,c,d,e,f,h,k,q,w);this.panels=[];this.controllerName="dashboardControls"};U(ZX,PX);ZX.\u0275dir=PX.\u0275dir;ZX.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};ZX.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Fa(a,null,function(b){return b.issueId.toString()});return a};
ZX.\u0275fac=function(a){return new (a||ZX)(F(uI,2),F(pH),F(SM),F(fJ),F(ZH),F(AT),F(LR),F(nT),F(HB),F(RK))};
ZX.\u0275cmp=v({type:ZX,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},features:[Lf([uI]),gf,Ac],decls:7,vars:5,consts:[[3,"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead",4,"ngIf"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch",4,"ngIf"],["class","bv2-grid-hotlist-picker",4,"ngIf"],[1,"bv2-appbar-menu",3,"showFlagIssuesAsSpam","flagAsSpamClicked"],[3,
"externalWarnings","save","close"],["addCommentDialog",""],[3,"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch"],[1,"bv2-grid-hotlist-picker"],[3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],["mat-dialog-title",""],[3,"comment","showToolbar","commentChange","onSubmit"],["class","bv2-external-component-modal-warning",
4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium","primary",3,"mat-dialog-close"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a,b){a&1&&(O(0,LJa,1,1,"b-app-bar-bulk-edit-menus",0),O(1,PJa,1,2,"b-copy-issue-id-button",1),O(2,QJa,2,2,"div",2),G(3,"b-app-bar-more-menu",3),K("flagAsSpamClicked",function(){return D2b(b)}),H(),G(4,"b-state-modal",4),K("save",
function(){return B2b(b)})("close",function(){return b.hotkeys.unpause()}),H(),O(5,UJa,10,5,"ng-template",null,5,gg));a&2&&(D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),D("externalWarnings",b.externalWarnings))},dependencies:[bI,aI,pX,wx,sx,TS,jT,wX,pB,IB,JB,KB,LB,qX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var $X=function(){};
$X.\u0275fac=function(a){return new (a||$X)};$X.\u0275mod=rc({type:$X});$X.\u0275inj=fc({imports:[[fI,zO,WX,Mx,dT,mT,YX,dI,jG,MB,XX]]});
var aY=function(a,b){this.index=a;this.editableTemplate=this.template=null;this.name=b.name||"(unnamed template)";this.issueType="--";b.snapshot?this.template=b:(this.editableTemplate=b,this.issueType=this.editableTemplate.type)},E2b=function(a,b){this.cellType=b;this.enumFields=null;this.id=a.customFieldId;this.name=a.name;this.type=a.type;if("ENUM"===this.type||"REPEATED_ENUM"===this.type)this.enumFields=(a.allowedValue||[]).map(function(c){return{displayText:c,value:c}});["REPEATED_TEXT","REPEATED_DATE",
"REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},F2b=function(a,b){this.dirty=!1;var c=b.snapshot||{};this.customFields=a;this.new_=null==b.templateId;this.name=b.name||"";this.description=b.description||"";this.type=c.type||"--";this.priority=c.priority||"--";this.severity=c.severity||"--";this.assignee=Pl(c.assigneeUser)||"";this.verifier=Pl(c.verifierUser)||"";this.cc=Hqa(c.ccUsers)||[];this.title=c.title||"";this.comment=c.comment||"";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||
!1;this.customFieldValues=Object.create(null);a=r(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=new lJ(b);a=r(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=r(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=null!=c.typedDefaultValue?new lJ(c.typedDefaultValue):new lJ({customFieldId:b}))},H2b=function(a,b){b.name=a.name;b.description=a.description;
var c=b.snapshot||{};G2b(a.type)?delete c.type:c.type=a.type;G2b(a.priority)?delete c.priority:c.priority=a.priority;G2b(a.severity)?delete c.severity:c.severity=a.severity;c.assigneeUser=Tl(a.assignee);c.verifierUser=Tl(a.verifier);c.ccUsers=a.cc.map(function(f){return Tl(f)});c.comment=a.comment;c.title=a.title;c.hotlistId=a.hotlistId;c.inProd=a.inProd;c.customField=[];for(var d=r(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&!e.isEmpty()&&c.customField.push(e);
b.snapshot=c};
F2b.prototype.setCustomField=function(a,b){a=String(a);if(this.customFieldValues[a]){var c=this.customFields[a].type;if(!c)return;switch(c){case "TEXT":this.customFieldValues[a].textValue=b;break;case "DATE":this.customFieldValues[a].dateValue=b;break;case "ENUM":this.customFieldValues[a].enumValue=b;break;case "NUMERIC":this.customFieldValues[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldValues[a].repeatedTextValue={values:b||[]};break;case "REPEATED_DATE":this.customFieldValues[a].repeatedDateValue={values:b||
[]};break;case "REPEATED_ENUM":this.customFieldValues[a].repeatedEnumValue={values:b||[]};break;case "REPEATED_NUMERIC":this.customFieldValues[a].repeatedNumericValue={values:b||[]};break;default:bh(c,"Unexpected custom field type: "+c)}}this.dirty=!0};F2b.prototype.isDirty=function(){return this.dirty};var G2b=function(a){return Vi(a)||"--"===a},vKa=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()});a.dirty=!0},I2b={value:"--",displayText:"--"};
var J2b=new ti("M/d/yyyy"),bY=function(a){this.dateFormatter=a;this.boundValueChange=new Iw;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};bY.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if("string"===typeof this.boundValue)var a=Li(this.boundValue);else{var b;a=null!=(b=Lk(this.boundValue))?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
bY.prototype.change=function(a,b){b=void 0===b?!1:b;var c=this.googDate;if((c&&a?!c.equals(a):c||a)&&!b){this.googDate=a;if(a)if("string"===typeof this.boundValue)a=J2b.format(a);else{var d;a=null!=(d=LEb(J2b.format(a)))?d:void 0}else a="string"===typeof this.boundValue?"":void 0;this.boundValue=a;this.boundValueChange.emit(this.boundValue);this.textValue=this.googDate?this.dateFormatter.formatUserCalendar(this.googDate):""}};bY.\u0275fac=function(a){return new (a||bY)(F(JP))};
bY.\u0275cmp=v({type:bY,selectors:[["bv2-input-date-picker"]],inputs:{boundValue:"boundValue",inputId:["bv2Id","inputId"],ariaLabelledBy:["bv2AriaLabelledby","ariaLabelledBy"],isRequired:"isRequired"},outputs:{boundValueChange:"boundValueChange"},decls:1,vars:4,consts:[[3,"required","value","customFormId","customAriaLabelledBy","valueChange"]],template:function(a,b){a&1&&(G(0,"b-date-time-input",0),K("valueChange",function(c){return b.change(c)}),H());a&2&&D("required",b.isRequired)("value",b.googDate)("customFormId",
b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[PP],encapsulation:2});
var K2b={CREATE_COMPONENT:"components/new",CREATE_ISSUE:"issues/new",DASHBOARD:function(a){return"dashboard/"+a},EDIT_COMPONENT:function(a){return"components/"+a+"/edit"},EDIT_ISSUE:function(a){return"issues/"+a},LIST_COMPONENTS:"components",LIST_ISSUES:"issues",CREATE_BOOKMARK_GROUP:"bookmark-groups/new",VIEW_BOOKMARK_GROUP:function(a){return"bookmark-groups/"+a},VIEW_COMPONENT:function(a){return"components/"+a},VIEW_HOTLIST:function(a){return"hotlists/"+a},EDIT_HOTLIST:function(a){return"hotlists/"+
a+"/edit"},CREATE_HOTLIST:"hotlists/new",LIST_HOTLISTS:"hotlists",CREATE_SLO:"slos/new",VIEW_SLO:function(a){return"slos/"+a},EDIT_SLO:function(a){return"slos/"+a+"/edit"},LIST_SLOS:"slos",VIEW_SAVEDSEARCH:function(a){return"savedsearches/"+a},EDIT_BOOKMARK_GROUP:function(a){return"bookmark-groups/"+a+"/edit"},MANAGE_COMPONENT:function(a){return"components/"+a+"/manage"},MANAGE_COMPONENT_ACL:function(a){return"components/"+a+"/manage#access"},EDIT_SAVED_SEARCH:function(a){return"savedsearches/"+a+
"/edit"},SETTINGS:"settings"},L2b=Object.assign({},K2b,{EDIT_ISSUE:function(a){return"ng2/issues/"+a}}),M2b=new jd("routes",{providedIn:"root",factory:function(){return K2b}}),cY=function(a){this.routes=a};g=cY.prototype;g.createIssue=function(a){return Rp(this.routes.CREATE_ISSUE,{params:a})};g.editIssue=function(a,b){return Sp(this.routes.EDIT_ISSUE(a),{id:a,params:b})};g.listIssues=function(a){return Rp(this.routes.LIST_ISSUES,{params:a})};
g.viewSavedSearch=function(a){return Sp(this.routes.VIEW_SAVEDSEARCH(a),{id:a,params:void 0})};g.viewHotlist=function(a){return Sp(this.routes.VIEW_HOTLIST(a),{id:a})};g.editHotlist=function(a){return Rp(this.routes.EDIT_HOTLIST(a),{id:a,tab:void 0})};g.createHotlist=function(){return this.routes.CREATE_HOTLIST};g.createBookmarkGroup=function(){return this.routes.CREATE_BOOKMARK_GROUP};g.viewBookmarkGroup=function(a){return Sp(this.routes.VIEW_BOOKMARK_GROUP(a),{id:a})};
g.editBookmarkGroup=function(a){return Rp(this.routes.EDIT_BOOKMARK_GROUP(a),{id:a})};g.editSavedSearch=function(a){return Rp(this.routes.EDIT_SAVED_SEARCH(a),{id:a})};g.dashboard=function(a){return Rp(this.routes.DASHBOARD(a),{id:a})};g.issuesCsvAction=function(a,b,c,d){b=this.toApiSortParamValue(b);c=VJa(c);return KD("action/issues/csv","q",a,"s",b,"c",c,"h",d)};
g.hotlistIssuesCsvAction=function(a,b,c,d){a="action/hotlists/"+a+"/issues/csv";b=this.toApiSortParamValue(b);(c=VJa(c))&&(c="position,"+c);return KD(a,"s",b,"c",c,"h",d)};g.toApiSortParamValue=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return Rp(this.routes.LIST_COMPONENTS,{params:void 0})};
g.viewComponent=function(a,b){return Sp(this.routes.VIEW_COMPONENT(a),{id:a,tab:b})};g.manageComponent=function(a,b){return Sp(this.routes.MANAGE_COMPONENT(a),{id:a,tab:b})};g.manageComponentAcl=function(a){return Sp(this.routes.MANAGE_COMPONENT_ACL(a),{id:a,tab:void 0})};g.createComponent=function(a){return Rp(this.routes.CREATE_COMPONENT,{params:a})};g.editComponent=function(a,b){return Rp(this.routes.EDIT_COMPONENT(a),{id:a,tab:b})};g.createSlo=function(){return Rp(this.routes.CREATE_SLO,{params:void 0})};
g.editSlo=function(a){return Rp(this.routes.EDIT_SLO(a),{id:a,tab:void 0})};g.listSlos=function(){return Rp(this.routes.LIST_SLOS,{params:void 0})};g.listHotlists=function(){return this.routes.LIST_HOTLISTS};cY.\u0275fac=function(a){return new (a||cY)(t(M2b))};cY.\u0275prov=ec({token:cY,factory:cY.\u0275fac,providedIn:"root"});
var dY=function(a){this.pathBuilder=a;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new Iw};dY.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};dY.\u0275fac=function(a){return new (a||dY)(F(cY))};
dY.\u0275cmp=v({type:dY,selectors:[["b-hotlist-chip"]],inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"name"],[1,"keep-focus-ring",3,"href"],["mat-icon-button","",3,"invisible","click",4,"ngIf"],["card","onedevHovercard"],[3,"hotlist"],["mat-icon-button","",3,"click"],["svgIcon","close"]],template:function(a,
b){a&1&&O(0,XJa,9,11,"ng-container",0);a&2&&D("ngIf",b.hotlist)},dependencies:[sx,pN,tN,jN,LE,pB],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}.chip.muted[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);color:#5f6368;color:var(--text-muted)}.chip[_ngcontent-%COMP%]{background-color:#e4f7fb;background-color:var(--hotlist-chip-bg);border-radius:10px;display:inline-flex;align-items:center;height:20px;font-size:12px;font-weight:normal;padding:0 10px}.chip[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:50%}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"]});
var N2b=["input"],O2b=function(a){return{enterDuration:a}},P2b=new jd("mat-radio-default-options",{providedIn:"root",factory:YJa}),Q2b=0,R2b={provide:ux,useExisting:ac(function(){return eY}),multi:!0},S2b=function(a,b){this.source=a;this.value=b},T2b=new jd("MatRadioGroup"),fY=function(a){this._changeDetector=a;this._value=null;this._name="mat-radio-group-"+Q2b++;this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=!1;this._controlValueAccessorChangeFn=
function(){};this.onTouched=function(){};this.change=new Iw};g=fY.prototype;g._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};g.ngAfterContentInit=function(){this._isInitialized=!0};g._touch=function(){if(this.onTouched)this.onTouched()};g._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};
g._updateSelectedRadioFromValue=function(){var a=this,b=null!==this._selected&&this._selected.value===this._value;this._radios&&!b&&(this._selected=null,this._radios.forEach(function(c){c.checked=a.value===c.value;c.checked&&(a._selected=c)}))};g._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new S2b(this._selected,this._value))};g._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};g.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};
g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
ki.Object.defineProperties(fY.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._name=a;this._updateRadioButtonNames()}},labelPosition:{configurable:!0,enumerable:!0,get:function(){return this._labelPosition},set:function(a){this._labelPosition="before"===a?"before":"after";this._markRadiosForCheck()}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,this._updateSelectedRadioFromValue(),
this._checkSelectedRadioButton())}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this.value=(this._selected=a)?a.value:null;this._checkSelectedRadioButton()}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Rg(a);this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Rg(a);this._markRadiosForCheck()}}});
fY.\u0275fac=function(a){return new (a||fY)(F(lx))};fY.\u0275dir=v({type:fY,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var eY=function(){fY.apply(this,arguments)};U(eY,fY);eY.\u0275fac=function(){var a;return function(b){return(a||(a=cd(eY)))(b||eY)}}();
eY.\u0275dir=v({type:eY,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&$f(c,gY,5);if(a&2){var d;Yf(d=ag())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Lf([R2b,{provide:T2b,useExisting:eY}]),gf]});
var U2b=mi(oi(function(a){this._elementRef=a})),hY=function(a,b,c,d,e,f,h,k){var q=U2b.call(this,b)||this;q._changeDetector=c;q._focusMonitor=d;q._radioDispatcher=e;q._providerOverride=h;q._uniqueId="mat-radio-"+ ++Q2b;q.id=q._uniqueId;q.change=new Iw;q._checked=!1;q._value=null;q._removeUniqueSelectionListener=function(){};q.radioGroup=a;q._noopAnimations="NoopAnimations"===f;k&&(q.tabIndex=Ug(k,0));q._removeUniqueSelectionListener=e.listen(function(w,y){w!==q.id&&y===q.name&&(q.checked=!1)});return q};
U(hY,U2b);g=hY.prototype;g.focus=function(a,b){b?Jz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._markForCheck=function(){this._changeDetector.markForCheck()};g.ngOnInit=function(){if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}};g.ngDoCheck=function(){this._updateTabIndex()};
g.ngAfterViewInit=function(){var a=this;this._updateTabIndex();this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){!b&&a.radioGroup&&a.radioGroup._touch()})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};g._emitChangeEvent=function(){this.change.emit(new S2b(this,this._value))};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onInputClick=function(a){a.stopPropagation()};
g._onInputInteraction=function(a){a.stopPropagation();this.checked||this.disabled||(a=this.radioGroup&&this.value!==this.radioGroup.value,this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent()))};g._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
g._updateTabIndex=function(){var a=this.radioGroup;a=a&&a.selected&&!this.disabled?a.selected===this?this.tabIndex:-1:this.tabIndex;if(a!==this._previousTabIndex){var b,c=null==(b=this._inputElement)?void 0:b.nativeElement;c&&(c.setAttribute("tabindex",a+""),this._previousTabIndex=a)}};
ki.Object.defineProperties(hY.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=Rg(a);this._checked!==a&&((this._checked=a)&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!a&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),a&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},
set:function(a){this._value!==a&&(this._value=a,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},labelPosition:{configurable:!0,enumerable:!0,get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled(Rg(a))}},
required:{configurable:!0,enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=Rg(a)}},color:{configurable:!0,enumerable:!0,get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});hY.\u0275fac=function(){wf()};
hY.\u0275dir=v({type:hY,viewQuery:function(a,b){a&1&&Zf(N2b,5);if(a&2){var c;Yf(c=ag())&&(b._inputElement=c.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:[gf]});
var gY=function(a,b,c,d,e,f,h,k){return hY.call(this,a,b,c,d,e,f,h,k)||this};U(gY,hY);gY.\u0275dir=hY.\u0275dir;gY.\u0275fac=function(a){return new (a||gY)(F(T2b,8),F(nd),F(lx),F(Iz),F(vA),F(Wv,8),F(P2b,8),Xc("tabindex"))};
gY.\u0275cmp=v({type:gY,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(a,b){a&1&&K("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(nf("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),sf("mat-radio-checked",b.checked)("mat-radio-disabled",b.disabled)("_mat-animation-noopable",b._noopAnimations)("mat-primary","primary"===b.color)("mat-accent","accent"===b.color)("mat-warn","warn"===
b.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[gf],ngContentSelectors:["*"],decls:13,vars:19,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",3,"id","checked","disabled","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(a,b){a&1&&(Cf(),G(0,"label",0,1)(2,"span",2),J(3,"span",3)(4,"span",4),G(5,"input",5,6),K("change",function(d){return b._onInputInteraction(d)})("click",function(d){return b._onInputClick(d)}),H(),G(7,"span",7),J(8,"span",8),H()(),G(9,"span",9)(10,"span",10),P(11,"\u00a0"),H(),Df(12),H()());if(a&2){var c=Hf(1);nf("for",b.inputId);B(5);
D("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("required",b.required);nf("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);B(2);D("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Nf(17,O2b,b._noopAnimations?0:150));B(2);sf("mat-radio-label-before","before"==b.labelPosition)}},dependencies:[iB],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-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;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{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.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});
var V2b=["saveBeforeClosingDialog"],W2b=["deleteDialog"],pKa=function(){return[]},iY=function(a,b,c,d,e,f,h,k,q,w,y,E,I){BI.call(this);this.matDialogService=a;this.cdr=b;this.userApi=c;this.templatesApi=d;this.hotlistApi=e;this.constants=f;this.paths=h;this.butterBar=k;this.analytics=q;this.issueTypeDialog=w;this.componentActions=y;this.documentationLinks=E;this.appEvents=I;this.defaultIndex=-1;this.componentId=0;this.supportCustomFields=!1;this.templates=[];this.customFieldRows=[];this.currentTemplateRow=
this.currentTemplate=null;this.currentIndex=-1;this.templateRows=[];this.afterSaveCheckFunc=null;this.hotlists=[];this.selectedHotlists=[];this.hotlistMap={};this.selectedHotlistIds=[[]];this.templateHotlistIds=[];this.hotlistPickerIndex=0;this.FieldType=vXb;this.customFieldIds=Object.create(null);this.issueTypeChoices=X2b(this);this.priorityChoices=Y2b(this);this.severityChoices=Z2b(this)};U(iY,BI);iY.\u0275dir=BI.\u0275dir;g=iY.prototype;
g.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(b));Promise.all([$2b(this),a3b(this)]).finally(function(){b3b(a);a.cdr.detectChanges()})};
g.updateSelectedHotlists=function(){var a=this,b=this.templateHotlistIds[this.hotlistPickerIndex];this.selectedHotlistIds=b?[b]:[[]];this.selectedHotlists=this.hotlists.filter(function(c){return a.selectedHotlistIds[0].includes(c.hotlistId)});Ga(this.selectedHotlists,function(c,d){return au(c.name,d.name)})};g.removeHotlist=function(a){wa(this.templateHotlistIds[this.hotlistPickerIndex],a);this.currentTemplate.dirty=!0;this.updateSelectedHotlists()};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;bo(this.analytics,"editTemplate","createHotlist");PK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){PK(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.handleHotlistPickerSave=function(a){var b=this,c=a.oldSelectionMap;ch(a.newSelectionMap,function(d,e){e=Ki(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],sa(d,e)||d.push(e)):!d&&f&&wa(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
g.loadHotlist=function(a){var b=this,c=a.successCallback,d=a.errorCallback;this.hotlistApi.get(a.hotlistId).then(function(e){b.addHotlist(e);c(e);b.cdr.detectChanges()}).catch(d)};g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&wa(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var X2b=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:vH(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[I2b].concat(b)};iY.prototype.getDateValue=function(a){return a};iY.prototype.getListFieldType=function(a){return a};
var sKa=function(a){var b,c,d,e;return(null==(b=a.repeatedTextValue)?void 0:b.values)||(null==(c=a.repeatedDateValue)?void 0:c.values)||(null==(d=a.repeatedEnumValue)?void 0:d.values)||(null==(e=a.repeatedNumericValue)?void 0:e.values)||null},hKa=function(a){"VULNERABILITY"===a.currentTemplateRow.issueType||"PRIVACY_ISSUE"===a.currentTemplateRow.issueType?MR(a.issueTypeDialog,"VULNERABILITY"===a.currentTemplateRow.issueType?"VULNERABILITY":"PRIVACY_ISSUE",function(){a.currentTemplate.type=a.currentTemplateRow.issueType;
a.currentTemplate.dirty=!0},function(){a.currentTemplateRow.issueType=a.currentTemplate.type}):(a.currentTemplate.type=a.currentTemplateRow.issueType,a.currentTemplate.dirty=!0)},Y2b=function(a){return[I2b].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},Z2b=function(a){return[I2b].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))};iY.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,null!==c?c:void 0)};
var Up=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;jY(a)},bKa=function(a,b){var c=a.currentIndex;c3b(a,function(){b.index==c?Up(a):a.openEditor(b.index)})},d3b=function(a){a.templateHotlistIds.push([]);c3b(a,function(){a.openEditor()})},Tp=function(a,b){return 0<=b.index&&b.index==a.currentIndex},wKa=function(a){if(!a.currentTemplate)return Promise.resolve();if(0>a.currentIndex){var b="creating";var c={componentId:a.componentId,default:!1};var d=function(q){PK(a.butterBar,
q.name?'Template "'+q.name+'" created.':"Template created.");bo(a.analytics,"template","create");a.templates.push(q);a.openEditor(a.templates.length-1)}}else{b="updating";var e=a.currentIndex;c=a.templates[e];d=function(q){PK(a.butterBar,q.name?'Template "'+q.name+'" updated.':"Template updated.");bo(a.analytics,"template","update");a.templates[e]=q;Up(a)}}a.currentTemplate.hotlistId=a.templateHotlistIds[a.hotlistPickerIndex];H2b(a.currentTemplate,c);PK(a.butterBar,"Saving template...");var f=c,h=
f.componentId,k=f.templateId;c.snapshot&&c.snapshot.ccUsers&&(c.snapshot.ccUsers=c.snapshot.ccUsers.filter(function(q){return null!=q}));return(k&&"0"!==String(k)?a.templatesApi.update(h,k,f):a.templatesApi.create(h,f)).then(function(q){a.appEvents.templateModified.next(String(a.componentId));d(q);a.cdr.detectChanges()}).catch(function(q){q=ym(q);QK(a.butterBar,q?"Error "+b+" template: "+q:"There was an error "+b+" the template.",0)})},cKa=function(a,b){a.matDialogService.open(a.deleteDialog,{data:b})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(c){c&&
e3b(a,b)})},e3b=function(a,b){var c=b.index;va(a.templateHotlistIds,c);b=a.templates[c];0>c||b.default?Promise.resolve():(PK(a.butterBar,"Deleting..."),a.templatesApi.delete(b.componentId,b.templateId).then(function(){a.appEvents.templateModified.next(String(a.componentId));PK(a.butterBar,"Deleted template");bo(a.analytics,"template","delete");a.templates.splice(c,1);a.currentIndex==c?Up(a):jY(a);a.cdr.detectChanges()}).catch(function(){QK(a.butterBar,"Error while deleting template")}))},g3b=function(a,
b){b?wKa(a).then(function(){f3b(a);a.cdr.detectChanges()}):f3b(a)},dKa=function(a,b){var c;b=(null==(c=b.template)?void 0:c.templateId)||0;return a.paths.getBaseUrl()+"/"+a.paths.createIssue()+"?component="+a.componentId+"&template="+b};
iY.prototype.openEditor=function(a){var b=this;this.currentIndex=void 0===a?-1:a;if(0>this.currentIndex){this.currentTemplate=h3b(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();jY(this);this.cdr.detectChanges();var c;null==(c=document.getElementById("template-name"))||c.focus()}else i3b(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=h3b(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
jY(b);b.cdr.detectChanges();var e;null==(e=document.getElementById("template-name"))||e.focus()})};
var i3b=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},c3b=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,j3b(a)):b()},j3b=function(a){a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(b){void 0!==b&&g3b(a,b)})},f3b=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},h3b=function(a,b){return new F2b(a.customFieldIds,b)},$2b=function(a){a.customFieldRows=
[];a.customFieldIds={};return a.supportCustomFields?a.componentActions.get(a.componentId).then(function(b){b=r(b.componentPathInfo.allCustomField||[]);for(var c=b.next();!c.done;c=b.next()){c=c.value;if(!c.enabledOnIssues)return;a.customFieldIds[c.customFieldId.toString()]=c;a.customFieldRows.push(new E2b(c,"TEXT"==c.type?"1":"2"))}a.cdr.detectChanges()}).catch(function(){QK(a.butterBar,"Unable to load custom fields")}):Promise.resolve()},a3b=function(a){a.templates=[];return a.templatesApi.query(a.componentId).then(function(b){a.templates=
b;b=r(a.templates);for(var c=b.next();!c.done;c=b.next())c=c.value,c.snapshot.hotlistId?a.templateHotlistIds.push(c.snapshot.hotlistId):a.templateHotlistIds.push([]);a.cdr.detectChanges()}).catch(function(){QK(a.butterBar,"Unable to load templates")})},b3b=function(a){jY(a);a.defaultIndex=a.templates.findIndex(function(b){return b.default})},jY=function(a){if(0>a.currentIndex)a.templateRows=a.templates.map(function(e,f){return new aY(f,e)}),a.currentTemplate&&(a.currentTemplateRow=new aY(-1,a.currentTemplate),
a.templateRows.push(a.currentTemplateRow)),a.hotlistPickerIndex=a.templates.length;else{var b=a.currentIndex,c=[];var d=a.templates.slice(0,b+1);c=c.concat(d.map(function(e,f){return new aY(f,e)}));a.currentTemplate&&(a.currentTemplateRow=new aY(b,a.currentTemplate),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new aY(b+f+1,e)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},k3b=function(a,b,c){return i3b(a,b).then(function(d){c(d);return a.templatesApi.update(d.componentId,
d.templateId,d)}).then(function(d){a.appEvents.templateModified.next(String(a.componentId));return d})},aKa=function(a,b){if(a.defaultIndex!==b){a.defaultIndex=b;var c="(no template)";0<=b&&(b=a.templates[b],c=b.name,Vi(Ui(c))&&(c="(unnamed template)"),b.default||(b=k3b(a,b,function(d){d.default=!0}),PK(a.butterBar,"Changing default template..."),b.then(function(){PK(a.butterBar,"Changed default template to "+c)},function(d){QK(a.butterBar,"Error while changing default message"+(xm(d)?": "+ym(d):
"."))}),bo(a.analytics,"template","changeDefault")))}};iY.\u0275fac=function(a){return new (a||iY)(F(HB),F(uI,2),F(PJ),F(eK),F(pL),F(ZH),F(dL),F(OK),F(SM),F(LR),F(AT),F(tP),F(WK))};
iY.\u0275cmp=v({type:iY,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(Zf(V2b,5),Zf(W2b,5));if(a&2){var c;Yf(c=ag())&&(b.saveBeforeClosingDialog=c.first);Yf(c=ag())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},features:[Lf([uI]),gf],decls:21,vars:2,consts:[[1,"component-banner","template-help-banner"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"templates-list"],[1,"template-column-tool"],[4,"ngFor",
"ngForOf"],[1,"edit-button-row"],["format","fill","bAriaLabel","Create New template in this component",3,"onAction"],["deleteDialog",""],["saveBeforeClosingDialog",""],[4,"ngIf"],["colspan","4",4,"ngIf"],["tabindex","-1",1,"template-row-name"],[1,"template-row-new-issue-link"],["tabindex","0",1,"keep-focus-ring",3,"href"],[3,"id","checked","aria-label","value","change"],["format","hairline",3,"bAriaLabel","onAction"],["format","hairline",3,"bAriaLabel","disabled","onAction"],["colspan","4"],[1,"template-edit-pane",
"template-editor-within-table"],["class","form-header",4,"ngIf"],[1,"cell-1"],[1,"template-label"],["for","template-name"],["id","template-name","type","text",1,"template-field",3,"ngModel","ngModelChange"],["for","template-description"],["id","template-description","type","text",1,"template-field",3,"ngModel","ngModelChange"],"role;region;tabindex;0;aria-label;Standard issue fields".split(";"),["for","template-title"],["id","template-title","type","text",1,"template-field",3,"ngModel","ngModelChange"],
[1,"cell-3"],["for","template-default-type"],["id","template-default-type","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["typeMenu",""],["mat-menu-item","",3,"disabled","matTooltip","click",4,"ngFor","ngForOf"],["for","template-default-priority"],["id","template-default-priority","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["priorityMenu",""],["mat-menu-item",
"",3,"disabled","click",4,"ngFor","ngForOf"],["for","template-default-severity"],["id","template-default-severity","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["severityMenu",""],[1,"cell-1","bv2-edit-template-hotlists"],["for","template-default-hotlist"],["id","template-default-hotlist",1,"hotlist-picker",3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],["class","bv2-hotlist-chips",4,"ngFor","ngForOf"],[1,"float-clear"],[1,"cell-2"],["for",
"template-assignee"],["id","template-assignee","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-verifier"],["id","template-verifier","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-cc"],["id","template-cc","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-comment"],["id","template-comment",1,"template-field",3,"ngModel","ngModelChange"],["for",
"template-in-prod"],["id","template-in-prod","aria-label","issue in prod",3,"model","modelChange"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class",4,"ngFor","ngForOf"],[1,"buttons-row"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"onAction"],[1,"form-header"],["mat-menu-item","",3,"disabled","matTooltip","click"],["mat-menu-item","",3,"disabled","click"],[1,"bv2-hotlist-chips"],[3,"hotlist","removeHotlist"],[3,"for"],[3,"ngSwitch"],["class","template-field",
"type","text",3,"ngModel","ngModelChange",4,"ngSwitchCase"],["class","template-field","type","number","step","any",3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"type","name","clearable","value","choices","valueChange",4,"ngSwitchCase"],[3,"boundValue","boundValueChange",4,"ngSwitchCase"],[3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange",4,"ngSwitchDefault"],["type","text",1,"template-field",3,"ngModel","ngModelChange"],["type","number","step","any",1,"template-field",
3,"ngModel","ngModelChange"],[3,"type","name","clearable","value","choices","valueChange"],[3,"boundValue","boundValueChange"],[3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"mat-dialog-close"],["color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["cdkFocusInitial",
"","color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close"]],template:function(a,b){a&1&&(G(0,"div")(1,"div",0),P(2," A template is a set of default values for new issues created in this component. "),G(3,"a",1),P(4,"Learn more"),H()(),G(5,"table",2)(6,"tr")(7,"th"),P(8,"TEMPLATE"),H(),G(9,"th",3),P(10,"DEFAULT"),H(),J(11,"th",3)(12,"th",3),H(),O(13,yKa,3,2,"tr",4),H(),G(14,"div",5)(15,"b-button",6),K("onAction",function(){return d3b(b)}),P(16," Create New "),
H()(),O(17,zKa,7,3,"ng-template",null,7,gg),O(19,AKa,9,4,"ng-template",null,8,gg),H());a&2&&(B(3),D("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Kd),B(10),D("ngForOf",b.templateRows))},dependencies:[yO,wx,sx,yx,zx,Ax,aV,Fg,jy,by,hy,dY,wX,bY,vV,pB,IB,KB,LB,gY,IT,XU,$E,uH,QE,OE,TE],encapsulation:2});
var kY=function(){};kY.\u0275fac=function(a){return new (a||kY)};kY.\u0275mod=rc({type:kY});kY.\u0275inj=fc({imports:[[Mx,mQ]]});
var lY=function(a,b){var c=this;this.hotlists=a;this.userAccess=b;this.id$=new T.ReplaySubject(1);this.removeHotlist=new Iw;this.removable=!0;this.hotlist$=this.id$.pipe(Xe(function(d){return c.hotlists.watch(d)}));this.isDisabled$=(0,T.combineLatest)([this.id$,this.id$.pipe(Xe(function(d){return c.hotlists.isSaving$(d)}))]).pipe(C(function(d){var e=r(d);d=e.next().value;e=e.next().value;return null==d?!1:e?!0:!1}))};
lY.prototype.ngOnInit=function(){var a=this;this.removable$="check-acl"===this.removable?this.id$.pipe(Xe(function(b){return DK(a.userAccess,"appender","hotlists/"+b)})):(0,T.of)(this.removable)};ki.Object.defineProperties(lY.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});lY.\u0275fac=function(a){return new (a||lY)(F(sL),F(CK))};
lY.\u0275cmp=v({type:lY,selectors:[["b-hotlist-chip-smart"]],inputs:{id:"id",removable:"removable"},outputs:{removeHotlist:"removeHotlist"},decls:4,vars:9,consts:[[3,"hotlist","disabled","removable","removeHotlist"]],template:function(a,b){a&1&&(G(0,"b-hotlist-chip",0),K("removeHotlist",function(){null==b.idInternal?Qk("Missing id"):b.removeHotlist.emit()}),Q(1,"async"),Q(2,"async"),Q(3,"async"),H());if(a&2){var c;D("hotlist",R(1,3,b.hotlist$))("disabled",!0===R(2,5,b.isDisabled$))("removable",null!==
(c=R(3,7,b.removable$))&&void 0!==c?c:!1)}},dependencies:[dY,Fx],encapsulation:2,changeDetection:0});
var mY=function(){};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275mod=rc({type:mY});mY.\u0275inj=fc({imports:[[Mx,$N,VN,dF,jG]]});
var nY=function(){};nY.\u0275fac=function(a){return new (a||nY)};nY.\u0275mod=rc({type:nY});nY.\u0275inj=fc({imports:[[mB,VA],VA]});
var oY=function(){};oY.\u0275fac=function(a){return new (a||oY)};oY.\u0275mod=rc({type:oY});oY.\u0275inj=fc({imports:[[zO,Mx,bV,wy,mY,YX,kY,wV,jG,MB,nY,JT,MM,YU,ZS,oB,bH,dI,UE]]});
var pY=function(a,b,c,d){this.currentSearch=b;this.analytics=c;this.domSafe=d;this.enableEstado=rH(a,"enableEstado")};pY.prototype.openInEstado=function(){bo(this.analytics,"listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.currentSearch.currentSearch))};pY.\u0275fac=function(a){return new (a||pY)(t(pH),t(QN),t(SM),t(vP))};pY.\u0275prov=ec({token:pY,factory:pY.\u0275fac,providedIn:"root"});
var qY=function(a){Z.call(this,a)};U(qY,Z);qY.prototype.getMetric=function(){return X(this,1,0)};qY.prototype.getMatcher=function(){return V(this,2)};qY.prototype.setMatcher=function(a){l(this,2,a)};qY.prototype.toObject=function(){return l3b(void 0,this)};var l3b=function(a,b){if(null!=b){var c={metric:n(p(b,1)),matcher:n(p(b,2)),dayType:n(p(b,4)),objective:Ju(a,m(b,hm,3)),businessDays:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var m3b=[1,2,3],gRa=new Map([[1,"Assignment"],[2,"Response"],[3,"Closure"]]),n3b=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),kRa=new Map([[0,"Calendar"],[1,"Calendar"],[2,"Business"]]);
var Kl=function(a){Z.call(this,a)};U(Kl,Z);Kl.prototype.getComponentId=function(){return dj(this,1)};Kl.prototype.setComponentId=function(a){return Sk(this,1,a)};Kl.prototype.getEffectiveSloEditPolicy=function(){return X(this,2,0)};Kl.prototype.toObject=function(){return o3b(this)};var o3b=function(a){if(null!=a)return{componentId:dj(a,1),effectiveSloEditPolicy:X(a,2,0)}};
var p3b=function(a){Z.call(this,a)};U(p3b,Z);p3b.prototype.toObject=function(){var a=null!=this?{componentSloEditPolicy:o3b(m(this,Kl,1))}:void 0;return a};p3b.messageId="b.GetComponentSloEditPolicyResponse";
var rY=function(a){Z.call(this,a)};U(rY,Z);rY.prototype.getTeamSloEditPolicy=function(){return m(this,tJ,1)};rY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:hFb(this.getTeamSloEditPolicy())}:void 0;return a};rY.messageId="b.GetTeamSloEditPolicyResponse";
var sY=function(a){Z.call(this,a,-1,q3b)};U(sY,Z);g=sY.prototype;g.getSloId=function(){return kj(this,1)};g.setSloId=function(a){return l(this,1,a)};g.getVersion=function(){return dj(this,2)};g.setVersion=function(a){return l(this,2,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return cj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getParentId=function(){return kj(this,5)};
g.setParentId=function(a){l(this,5,a)};var Ts=function(a){return rb(a,qY,6)};sY.prototype.getIsArchived=function(){return W(this,8)};sY.prototype.setIsArchived=function(a){l(this,8,a)};var q3b=[6,7];sY.prototype.toObject=function(){return r3b(void 0,this)};
var r3b=function(a,b){if(null!=b){var c={sloId:n(p(b,1)),version:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),parentId:n(p(b,5)),elementsList:Bb(Ts(b),l3b,a),effectiveElementsList:Bb(rb(b,qY,7),l3b,a),isArchived:n(Ro(b,8)),alertState:n(p(b,9))};a&&(c.$jspbMessageInstance=b);return c}};sY.messageId="b.SloState";
var t3b=function(a){Z.call(this,a,-1,s3b)};U(t3b,Z);var s3b=[1];t3b.prototype.toObject=function(){var a=null!=this?{slosList:Bb(rb(this,sY,1),r3b)}:void 0;return a};t3b.messageId="b.SloSearchResponse";
var tY=function(a){Z.call(this,a)};U(tY,Z);tY.prototype.getTeamSloEditPolicy=function(){return m(this,tJ,1)};tY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:hFb(this.getTeamSloEditPolicy())}:void 0;return a};tY.messageId="b.UpdateTeamSloEditPolicyResponse";
var uY=function(a,b){this.activeSession=a;this.executor=b};g=uY.prototype;g.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:sY})};g.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};g.search=function(a){return this.executor.get({url:"action/slos",options:{params:{query:a}},responseConstructor:t3b}).pipe(C(function(b){return rb(b,sY,1)}))};
g.create=function(a){return this.executor.post({url:"action/slos",body:a,responseConstructor:sY})};g.update=function(a){var b=a.getSloId();return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:sY})};var u3b=function(a,b,c){var d=new tJ;c=ql(d,2,c?1:2).setTeamId(Number(b));return a.executor.post({url:"action/teams/"+b+"/slo_edit_policy",responseConstructor:tY,body:c}).pipe(C(Eqa))};uY.\u0275fac=function(a){return new (a||uY)(t(pH),t(pI))};
uY.\u0275prov=ec({token:uY,factory:uY.\u0275fac,providedIn:"root"});var vY=function(a,b){this.observableSlosService=b;var c;this.slosCache=null!=(c=a.get("slos-second-level-cache"))?c:a.create("slos-second-level-cache",{capacity:25})};g=vY.prototype;g.get=function(a){var b=this.slosCache.get(a);return void 0!==b?b:this.slosCache.put(String(a),(0,T.firstValueFrom)(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return(0,T.firstValueFrom)(this.observableSlosService.getOwnedSlos())};
g.search=function(a){return(0,T.firstValueFrom)(this.observableSlosService.search(a))};g.create=function(a){return(0,T.firstValueFrom)(this.observableSlosService.create(a))};g.update=function(a){return(0,T.firstValueFrom)(this.observableSlosService.update(a))};vY.\u0275fac=function(a){return new (a||vY)(t(mL),t(uY))};vY.\u0275prov=ec({token:vY,factory:vY.\u0275fac,providedIn:"root"});
var wY=function(a,b){this.sloStatusHelpersService=a;this.dateFormatter=b;this.timeDisplayText="--";this.objectiveDisplayText=null;this.iconName="slo-status-no-data"};wY.prototype.getIconName=function(a){return v3b.has(a)?v3b.get(a):"slo-status-no-data"};
var w3b=function(a,b,c){a.iconName=a.getIconName(b);c=null!==c?QNb(1E3*c).match(/^(\d+\s\D+)(?:\s|$)/)[1]:"";switch(b){case "COMPLETED":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?"Issue assigned":"RESPONSE"===a.sloMetricDescription?"Response recorded":"CLOSURE"===a.sloMetricDescription?"Issue closed":"fulfilled";break;case "SNOOZED_NEAR":case "SNOOZED_HEALTHY":case "HEALTHY":case "NEAR":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?c+" to assign":"RESPONSE"===a.sloMetricDescription?
c+" to respond":"CLOSURE"===a.sloMetricDescription?c+" to close":c+" left";break;case "OUT_OF_SLO":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?c+" overdue for assignment":"RESPONSE"===a.sloMetricDescription?c+" overdue for response":"CLOSURE"===a.sloMetricDescription?c+" overdue for closure":c+" overdue";break;case "NO_DATA":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?"No assignment SLO":"RESPONSE"===a.sloMetricDescription?"No response SLO":"CLOSURE"===a.sloMetricDescription?
"No closure SLO":"--";break;default:Qk("unknown status type: "+b)}};
wY.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&fS(this.sloBounds)){var b=this.sloBounds.getStartTime().getSeconds(),c=this.sloBounds.getTargetTime().getSeconds();(b=c-b)?this.objectiveDisplayText=QNb(1E3*b):this.objectiveDisplayText=null;b=this.sloBounds;fS(b)&&b.hasEndTime()&&0!==b.getEndTime().getSeconds()&&b.getEndTime().getSeconds()<=Date.now()/1E3?(c=this.sloBounds.getEndTime().getSeconds(),w3b(this,"COMPLETED",a-c)):c<a?w3b(this,"OUT_OF_SLO",a-c):(b=this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil),
a=c-a,w3b(this,259200<a?b?"SNOOZED_HEALTHY":"HEALTHY":b?"SNOOZED_NEAR":"NEAR",a))}else w3b(this,"NO_DATA",null),this.objectiveDisplayText=null};wY.\u0275fac=function(a){return new (a||wY)(F(eS),F(KP))};
wY.\u0275cmp=v({type:wY,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloSnoozeUntil:"sloSnoozeUntil",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},features:[Ac],decls:5,vars:5,consts:[[3,"ngClass","svgIcon"],[1,"slo-time-indicator-text"],[1,"slo-status-text"],[4,"ngIf"]],template:function(a,b){a&1&&(J(0,"mat-icon",0),G(1,"span",1)(2,"span",2),P(3),O(4,BKa,2,1,"span",3),H()());a&2&&(D("ngClass",b.iconName)("svgIcon",
b.iconName),nf("aria-label","--"===b.timeDisplayText?"No SLO data":""),B(3),If("",b.timeDisplayText," "),B(1),D("ngIf",b.includeObjective&&b.objectiveDisplayText))},dependencies:[vx,sx,LE],styles:[".slo-time-indicator-text[_ngcontent-%COMP%]   span.slo-status-text[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}mat-icon[_ngcontent-%COMP%]{margin-right:5px;width:18px;height:18px;flex-shrink:0}mat-icon.slo-status-snoozed-near-slo[_ngcontent-%COMP%], mat-icon.slo-status-near[_ngcontent-%COMP%]{color:#fa7b17;color:var(--slo-near)}mat-icon.slo-status-snoozed-healthy[_ngcontent-%COMP%], mat-icon.slo-status-healthy[_ngcontent-%COMP%], mat-icon.slo-status-no-data[_ngcontent-%COMP%], mat-icon.slo-status-completed[_ngcontent-%COMP%]{color:#80868b;color:var(--slo-healthy)}mat-icon.slo-status-out-of-slo[_ngcontent-%COMP%]{color:#ea4335;color:var(--slo-overdue)}[_nghost-%COMP%]{display:inline-flex}"],
changeDetection:0});var v3b=new Map([["SNOOZED_HEALTHY","slo-status-snoozed-healthy"],["SNOOZED_NEAR","slo-status-snoozed-near-slo"],["OUT_OF_SLO","slo-status-out-of-slo"],["HEALTHY","slo-status-healthy"],["NEAR","slo-status-near"],["COMPLETED","slo-status-completed"],["NO_DATA","slo-status-no-data"]]);
var xY=function(a){this.sloStatusHelpersService=a;this.includeNoSlo=!1};xY.prototype.ngOnInit=function(){x3b(this);this.hasSlo=!!this.sloStatus&&iQb(this.sloStatus)};xY.prototype.ngOnChanges=function(){x3b(this)};var x3b=function(a){a.sloStatus&&(a.assignmentSlo=y3b(Xk(a.sloStatus.getAssignmentBounds())),a.responseSlo=y3b(Xk(a.sloStatus.getResponseBounds())),a.closureSlo=y3b(Xk(a.sloStatus.getClosureBounds())))};xY.prototype.isSloSnoozed=function(){return this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil)};
var y3b=function(a){if(fS(a))return a};xY.\u0275fac=function(a){return new (a||xY)(F(eS))};
xY.\u0275cmp=v({type:xY,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},features:[Ac],decls:3,vars:3,consts:[[4,"ngIf"],["sloMetricDescription","ASSIGNMENT",3,"sloSnoozeUntil","sloBounds","includeObjective"],["sloMetricDescription","RESPONSE",3,"sloSnoozeUntil","sloBounds","includeObjective"],["sloMetricDescription","CLOSURE",3,"sloSnoozeUntil","sloBounds","includeObjective"]],template:function(a,
b){a&1&&(O(0,CKa,2,3,"div",0),O(1,DKa,2,3,"div",0),O(2,EKa,2,3,"div",0));a&2&&(D("ngIf",(b.includeNoSlo||b.assignmentSlo)&&(!b.onlyShowMetric||"ASSIGNMENT"==b.onlyShowMetric)),B(1),D("ngIf",(b.includeNoSlo||b.responseSlo)&&(!b.onlyShowMetric||"RESPONSE"==b.onlyShowMetric)),B(1),D("ngIf",(b.includeNoSlo||b.closureSlo)&&(!b.onlyShowMetric||"CLOSURE"==b.onlyShowMetric)))},dependencies:[sx,wY],encapsulation:2,changeDetection:0});
var yY=function(a,b,c,d){this.sloStatusHelpersService=a;this.paths=b;this.analytics=c;this.sloApi=d};yY.prototype.ngOnInit=function(){var a;if(a=!!this.sloStatus)a:switch(a=this.sloStatus,this.onlyShowMetric){case "ASSIGNMENT":a=fS(a.getAssignmentBounds());break a;case "RESPONSE":a=fS(a.getResponseBounds());break a;case "CLOSURE":a=fS(a.getClosureBounds());break a;default:a=iQb(a)}this.hasSlo=a;"0"!==this.sloId?(this.editSloLink=this.paths.editSlo(this.sloId),z3b(this)):this.editSloLink=null};
yY.prototype.trackOpenSlo=function(){bo(this.analytics,go.EDIT_SLO,"open","fromSloStatusCard")};var z3b=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.getName()}).catch(function(){a.sloName=null})};yY.\u0275fac=function(a){return new (a||yY)(F(eS),F(dL),F(SM),F(vY))};
yY.\u0275cmp=v({type:yY,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",onlyShowMetric:"onlyShowMetric"},ngContentSelectors:["*"],decls:10,vars:4,consts:[[3,"onedevHovercardTrigger"],["card",""],["role","dialog","aria-label","SLO Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow"],["class","slo-indicators",4,"ngIf"],["class","no-slo-message",4,"ngIf"],[4,"ngIf"],[1,"slo-indicators"],[3,"sloStatus",
"sloSnoozeUntil","onlyShowMetric"],[1,"no-slo-message"],["class","slo-link",3,"href","click",4,"ngIf"],[1,"slo-link",3,"href","click"]],template:function(a,b){a&1&&(Cf(),G(0,"span",0),Df(1),H(),G(2,"onedev-hovercard",null,1)(4,"div",2)(5,"div",3)(6,"div",4),O(7,FKa,2,3,"div",5),O(8,IKa,3,2,"div",6),O(9,LKa,4,2,"span",7),H()()()());if(a&2){var c=Hf(3);D("onedevHovercardTrigger",c);B(7);D("ngIf",b.hasSlo);B(1);D("ngIf",!b.hasSlo);B(1);D("ngIf",b.editSloLink)}},dependencies:[sx,pN,tN,xY],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}hovercard-content[_ngcontent-%COMP%]   slo-time-indicator[_ngcontent-%COMP%]{display:inline-block;margin:2px 0}hovercard-content[_ngcontent-%COMP%]   .slo-indicators[_ngcontent-%COMP%]{margin-bottom:5px}hovercard-content[_ngcontent-%COMP%]   .no-slo-message[_ngcontent-%COMP%]{margin:2px 0 5px 2px}hovercard-content[_ngcontent-%COMP%]   .slo-link[_ngcontent-%COMP%]{margin-left:2px}\n/*# sourceMappingURL=slo_status_card.css.map */"]});
var zY=function(a){var b=this;this.selectedCustomField=null;this.isLegalColumn=function(c){return void 0===b.columns.find(function(d){return d.name===String(c.customFieldId)})};this.column=a.column;this.columns=a.columns};zY.\u0275fac=function(a){return new (a||zY)(F(FB))};
zY.\u0275cmp=v({type:zY,selectors:[["b-column-picker-custom-dialog"]],decls:9,vars:4,consts:[["mat-dialog-title",""],[3,"filter","fieldSelected"],["mat-button","",1,"gmat-button","medium","cancel",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button","medium","dialog-primary-action","confirm",3,"disabled","mat-dialog-close"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"mat-dialog-content")(3,"b-custom-field-picker",1),K("fieldSelected",function(c){return b.selectedCustomField=c}),
H()(),G(4,"mat-dialog-actions")(5,"button",2),P(6," Cancel "),H(),G(7,"button",3),P(8," Add "),H()());a&2&&(B(1),If("Insert custom field column next to ",b.column.fullLabel,""),B(2),D("filter",b.isLegalColumn),B(4),D("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[pB,IB,JB,KB,LB,HV],encapsulation:2});
var A3b="issueId componentPath type status priority severity reporter assignee verifier cc changelist postmortem blockingIssueId blockedByIssueId createdTime modifiedTime resolvedTime verifiedTime title foundInVersion targetedToVersion verifiedInVersion inProd duplicateOfIssueId voteCount duplicateCount ccCount lastModifier archived minSlo assignmentSlo responseSlo closureSlo deletionTime team estimate estimateTotalOpen estimateTotalComplete".split(" ");
var AY=function(a){this.fullLabel="";this.isCustomField=!1;this.tooltip="";this.moreOptions=[];this.parentLabel="";this.draggable=this.sortable=!0;this.isMetadata=!1;this.label=this.name="";a&&Object.assign(this,a)};AY.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var B3b={issueId:{defaultSortDirection:"DESC",label:"ID"},priority:{label:"P",fullLabel:"Priority"},severity:{label:"S",fullLabel:"Severity"},modifiedTime:{defaultSortDirection:"DESC",label:"LAST MODIFIED"},magic:{label:"MAGIC NUMBER"},createdTime:{defaultSortDirection:"DESC",label:"CREATED"},verifiedTime:{defaultSortDirection:"DESC",label:"VERIFIED"},resolvedTime:{defaultSortDirection:"DESC",label:"RESOLVED"},blockedByIssueId:{sortable:!1,label:"BLOCKED BY"},foundInVersion:{label:"FOUND IN"},targetedToVersion:{label:"TARGETED TO"},
verifiedInVersion:{label:"VERIFIED IN"},inProd:{label:"IN PROD"},duplicateOfIssueId:{sortable:!1,label:"DUPLICATE OF"},componentPath:{label:"COMPONENT",moreOptions:[{name:"wrapComponents",menuItem:"Wrap components"},{name:"rtlComponentPath",menuItem:"Prefer right alignment"}]},cc:{sortable:!1},changelist:{sortable:!1},postmortem:{sortable:!1},blockingIssueId:{sortable:!1,label:"BLOCKING"},title:{moreOptions:[{name:"showHotlists",menuItem:"Show hotlists"},{name:"wrapTitles",menuItem:"Wrap titles"}]},
status:{moreOptions:[{name:"showStatusIcons",menuItem:"Show status icons"}]},voteCount:{defaultSortDirection:"DESC",label:"VOTES",fullLabel:"Vote Count"},duplicateCount:{defaultSortDirection:"DESC",label:"DUPE COUNT",tooltip:"Duplicate Count"},ccCount:{defaultSortDirection:"DESC",label:"CC COUNT"},lastModifier:{label:"LAST MODIFIED BY"},minSlo:{defaultSortDirection:"ASC",label:"NEAREST SLO",fullLabel:"Nearest SLO",parentLabel:"SLO"},assignmentSlo:{label:"ASSIGNMENT SLO",fullLabel:"Assignment SLO",
parentLabel:"SLO",sortable:!0},responseSlo:{label:"RESPONSE SLO",fullLabel:"Response SLO",parentLabel:"SLO",sortable:!0},closureSlo:{label:"CLOSURE SLO",fullLabel:"Closure SLO",parentLabel:"SLO",sortable:!0},deletionTime:{label:"DELETION DATE",fullLabel:"Deletion Date",sortable:!0},team:{label:"TEAM",sortable:!0},estimate:{label:"ESTIMATE",fullLabel:"Estimate",parentLabel:"Estimates",sortable:!0},estimateTotalOpen:{label:"TOTAL DAYS OPEN",fullLabel:"Total days open",parentLabel:"Estimates",sortable:!0,
tooltip:"Total estimate of all child issues that are open in number of days"},estimateTotalComplete:{label:"TOTAL DAYS COMPLETE",fullLabel:"Total days complete",parentLabel:"Estimates",sortable:!0,tooltip:"Total estimate of all child issues that are complete (fixed or won\u2019t fix) in number of days"}},D3b=function(a){if("CUSTOM_FIELD"===a.type)return new AY({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,
sortable:void 0!==a.customFieldId,tooltip:""});a=Ii(a.type);"canonicalIssueId"===a&&(a="duplicateOfIssueId");return A3b.includes(a)?C3b(a):null},F3b=function(a){return E3b(a.map(D3b).filter(function(b){return!!b}))},G3b=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:Ki(b.name),customFieldName:void 0}:(b=(b.name||"").replace(/([A-Z])/g,"_$1").toUpperCase(),"DUPLICATE_OF_ISSUE_ID"===b&&(b="CANONICAL_ISSUE_ID"),b={type:b,customFieldId:void 0,customFieldName:void 0});
return b})},E3b=function(a){return Cj(a,function(b){return b.name})},C3b=function(a){var b={name:a,label:a.toUpperCase()},c=B3b[a];c?Object.assign(b,c):A3b.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new AY(b)};
var BY=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};BY.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var H3b=function(){this.bindings=[]};H3b.prototype.off=function(){for(var a=r(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var I3b=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.element=this.params.nativeElement;this.eventBindings=new H3b;this.resetDragTarget=function(){b.dragTargetElement&&(b.dragTargetElement.classList.remove("drag-over"),b.dragTargetElement.classList.remove("left"),b.dragTargetElement.classList.remove("right"));b.dragTargetElement=null};this.onDragTargetDragstart=function(c,d){b.draggedElement=d;b.dragIndex=b.params.getColumnIndexForElement(b.draggedElement);b.draggedElement.classList.add("dragging");
b.draggedElement.setAttribute("aria-grabbed","true");if(c=c.dataTransfer)c.setData("text","drag"),c.effectAllowed="move",c.dropEffect="move"};this.onDragTargetDragenter=function(c,d){b.draggedElement&&d&&d.draggable&&d!==b.draggedElement&&(b.resetDragTarget(),b.dragTargetElement=d,b.dragTargetElement&&(d=b.params.getColumnIndexForElement(b.dragTargetElement),b.dragTargetElement.classList.add("drag-over"),null!=b.dragIndex&&(d>b.dragIndex?(b.dragTargetElement.classList.remove("left"),b.dragTargetElement.classList.add("right")):
(b.dragTargetElement.classList.add("left"),b.dragTargetElement.classList.remove("right"))),b.mask.style.width=b.dragTargetElement.offsetWidth+"px",b.mask.style.height=b.dragTargetElement.offsetHeight+"px",b.mask.style.left="0",b.mask.style.top="0",b.dragTargetElement.appendChild(b.mask),b.mask.style.display="block"),c.stopPropagation(),c.preventDefault())};this.onDragTargetDragend=function(c,d){d.classList.remove("dragging");b.draggedElement&&b.draggedElement.setAttribute("aria-grabbed","false");
b.resetDragTarget();b.draggedElement=null;b.mask.style.display="none";c.stopPropagation();c.preventDefault()};this.onDragTargetSelectstart=function(c){c.currentTarget.dragDrop();c.stopPropagation();c.preventDefault()};this.onMaskDragLeave=function(c){b.resetDragTarget();b.mask.style.display="none";c.stopPropagation();c.preventDefault()};this.onMaskDragover=function(c){b.draggedElement&&(c.stopPropagation(),c.preventDefault())};this.onMaskDrop=function(c){if(b.dragTargetElement){var d=b.params.getColumnIndexForElement(b.dragTargetElement);
b.resetDragTarget();b.mask.style.display="none";b.dragIndex!==d&&b.params.ngZone.run(function(){if(null!=b.dragIndex)b.params.onDragDropColumn(b.dragIndex,d)})}c.stopPropagation();c.preventDefault()}};
I3b.prototype.setup=function(){var a=this;this.mask.style.position="absolute";this.mask.style.zIndex="100";this.mask.style.margin="-2px";this.mask.classList.add("pop-grid-dnd-mask");this.mask.style.display="none";this.params.ngZone.runOutsideAngular(function(){J3b(a,"dragstart",a.onDragTargetDragstart);J3b(a,"dragenter",a.onDragTargetDragenter);J3b(a,"dragend",a.onDragTargetDragend);J3b(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new BY(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new BY(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new BY(a.mask,"drop",a.onMaskDrop))})};var J3b=function(a,b,c){a.eventBindings.bindings.push(new BY(a.element,b,Wp("th.drag-target",c)))};I3b.prototype.tearDown=function(){this.eventBindings.off()};
var K3b=["table"],L3b=["defaultHeaderCellTemplate"],M3b=["defaultViewCellTemplate"],N3b=["dataRows"],PKa=function(a){return{column:a}},SKa=function(a,b,c){return{row:a,column:b,index:c}},CY=function(a,b){var c=this;this.activeSession=a;this.ngZone=b;this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new Iw;this.rowClick=new Iw;this.rowLabelRenderer=function(d,e){return"Row "+e};this.sortChange=new Iw;this.focusedRowIndexChange=new Iw;this.afterViewInit=
new Iw;this.readUnreadOptOut=rH(this.activeSession,"readUnreadOptOut");this.onDragDropColumn=function(d,e){var f=[].concat(u(c.columns));d=f.splice(d,1)[0];f.splice(e,0,d);c.columns=f;c.columnsChange.emit([].concat(u(c.columns)))};this.onTdClickableClick=Wp("td.clickable",function(d,e){"mouseup"===d.type&&1!==d.button||ZMb(e)||(e=e.closest("tr"))&&c.rowClick.emit({id:Number(e.dataset.rowId),isRead:!!e.dataset.isRead,event:d})})};
CY.prototype.ngOnInit=function(){var a=this;this.dragDropHeaderLogic=new I3b({nativeElement:this.tableElement.nativeElement,ngZone:this.ngZone,getColumnIndexForElement:function(b){return a.getColumnIndexForElement(b)},onDragDropColumn:function(b,c){a.onDragDropColumn(b,c)}});this.dragDropHeaderLogic.setup();this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
CY.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;null!=b&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(kya(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};CY.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
CY.prototype.ngOnDestroy=function(){var a;null==(a=this.dragDropHeaderLogic)||a.tearDown();this.tableElement.nativeElement.removeEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.removeEventListener("mouseup",this.onTdClickableClick)};var O3b=function(a){return a.columns.map(function(b){b=b.name;return null!=b?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};CY.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
CY.prototype.focus=function(){if(null!=this.focusedRowIndex&&null!=this.dataRows){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};CY.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};CY.\u0275fac=function(a){return new (a||CY)(F(pH),F(ef))};
CY.\u0275cmp=v({type:CY,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(Zf(K3b,7),Zf(L3b,7),Zf(M3b,7),Zf(N3b,5,nd));if(a&2){var c;Yf(c=ag())&&(b.tableElement=c.first);Yf(c=ag())&&(b.defaultHeaderCellTemplate=c.first);Yf(c=ag())&&(b.defaultViewCellTemplate=c.first);Yf(c=ag())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer"},outputs:{columnsChange:"columnsChange",rowClick:"rowClick",
sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit"},features:[Ac],decls:13,vars:3,consts:[[1,"pop-grid",3,"mousedown"],["table",""],[3,"class",4,"ngFor","ngForOf"],[1,"header-row"],[4,"ngFor","ngForOf"],[4,"ngIf"],["defaultHeaderCellTemplate",""],["defaultViewCellTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",3,"selected","unread","closed","grid-focus","click","focus",4,"ngFor","ngForOf"],["tabindex","0",3,"click","focus"],
["dataRows",""],[3,"column"],[3,"row","column"]],template:function(a,b){a&1&&(G(0,"table",0,1),K("mousedown",function(c){c.shiftKey&&window.getSelection().removeAllRanges()}),G(2,"colgroup"),O(3,NKa,1,3,"col",2),H(),G(4,"thead")(5,"tr",3),O(6,QKa,2,4,"ng-container",4),H()(),G(7,"tbody"),O(8,VKa,2,1,"ng-container",5),H()(),O(9,WKa,2,1,"ng-template",null,6,gg),O(11,XKa,2,2,"ng-template",null,7,gg));a&2&&(B(3),D("ngForOf",b.columns),B(3),D("ngForOf",b.columns),B(2),D("ngIf",O3b(b)))},encapsulation:2});
var DY=function(a,b){this.templateRef=a;this.popGrid=b};DY.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};DY.\u0275fac=function(a){return new (a||DY)(F(Vf),F(CY))};DY.\u0275dir=v({type:DY,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"}});var EY=function(a,b){this.templateRef=a;this.popGrid=b};EY.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};
EY.\u0275fac=function(a){return new (a||EY)(F(Vf),F(CY))};EY.\u0275dir=v({type:EY,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"}});var FY=function(a,b){this.templateRef=a;this.popGrid=b};FY.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};FY.\u0275fac=function(a){return new (a||FY)(F(Vf),F(CY))};FY.\u0275dir=v({type:FY,selectors:[["","forHeaderCellDefault",""]]});
var GY=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new Iw};GY.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?"ASC"===this.sort.direction?a+", sorted ascending":a+", sorted descending":a};GY.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
GY.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a="ASC"===this.sort.direction?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};GY.\u0275fac=function(a){return new (a||GY)};
GY.\u0275cmp=v({type:GY,selectors:[["b-sortable-header"]],inputs:{columnName:"columnName",columnLabel:"columnLabel",sort:"sort",defaultSortDirection:"defaultSortDirection"},outputs:{sortChanged:"sortChanged"},decls:3,vars:8,consts:[["role","button","tabindex","0",1,"keep-focus-ring","pop-grid-sort-header",3,"click","keydown.enter","keydown.space"],[1,"arrow"]],template:function(a,b){a&1&&(G(0,"div",0),K("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();return c.stopPropagation()})("keydown.space",
function(c){b.activate();return c.stopPropagation()}),J(1,"span",1),P(2),H());a&2&&(sf("current-sort",b.isActive())("direction-asc",b.isActive()&&"ASC"===b.sort.direction)("direction-desc",b.isActive()&&"DESC"===b.sort.direction),nf("aria-label",b.ariaLabel()),B(2),If(" ",b.columnLabel," "))},encapsulation:2});
var HY=function(a,b){this.elementRef=a;this.grid=b};HY.prototype.ngAfterViewInit=function(){if(this.column){var a=this.column;if(a.draggable){var b;a:{for(b=this.elementRef.nativeElement;b.parentElement;){if("TH"===b.parentElement.tagName){b=b.parentElement;break a}b=b.parentElement}b=void 0}if(this.cellParent=b)this.cellParent.draggable=!0,this.cellParent.classList.add("drag-target"),this.cellParent.dataset.dragTargetColumnName=a.name}}};HY.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};
HY.\u0275fac=function(a){return new (a||HY)(F(nd),F(CY,8))};
HY.\u0275cmp=v({type:HY,selectors:[["pop-grid-default-th"]],inputs:{column:"column"},decls:3,vars:2,consts:[[1,"pop-grid-default-th"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip","sortChanged",4,"ngIf"],["class","pop-grid-non-sort-header keep-focus-ring","tabindex","0",4,"ngIf"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip","sortChanged"],["tabindex","0",1,"pop-grid-non-sort-header","keep-focus-ring"]],template:function(a,b){a&1&&(G(0,"div",0),
O(1,YKa,1,5,"b-sortable-header",1),O(2,ZKa,2,2,"div",2),H());a&2&&(B(1),D("ngIf",b.column.sortable),B(1),D("ngIf",!b.column.sortable))},dependencies:[sx,$E,GY],encapsulation:2});
var eLa=function(a,b){return{columns:a,before:b}},P3b=function(){return{before:!1}},Q3b=function(){return{before:!0}},IY=function(a,b,c,d,e,f){BI.call(this);var h=this;this.matDialog=a;this.userPreferencesManager=b;this.butterBar=c;this.analytics=d;this.hotkeys=e;this.activeSession=f;this.selectedColumnsChange=new Iw;this.onAddTeamColumn=new Iw;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=oH.listViewPreferences;b.preferences$.pipe(Ye(this.destroyed$)).subscribe(function(k){h.listViewPrefs=
k.listViewPreferences||oH.listViewPreferences})};U(IY,BI);IY.\u0275dir=BI.\u0275dir;IY.prototype.ngOnChanges=function(a){a.selectedColumns&&R3b(this)};
var S3b=function(a){a.selectedColumnsChange.emit([].concat(u(a.selectedColumns)));R3b(a)},aLa=function(a,b){var c=Object.assign({},a.listViewPrefs),d=rna(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||PK(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(Me(),Ye(a.destroyed$)).subscribe(function(){bo(a.analytics,"preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||PK(a.butterBar,"Display preference saved.",
4E3)},function(){a.activeSession.isAnonymous()||QK(a.butterBar,"Display preference could not be saved.")})},hLa=function(a,b){a.hotkeys.pause();a.matDialog.open(zY,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})._afterClosed.pipe(Ye(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},R3b=function(a){for(var b={},c=r(a.selectedColumns),d=c.next();!d.done;d=
c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!Bja(b,f.name)});c=[].concat(u(new Set(e.filter(function(f){return f.parentLabel}).map(function(f){return f.parentLabel})))).map(function(f){return{label:f,columns:e.filter(function(h){return h.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(u(d),u(c));a.currentAvailableItems.sort(function(f,h){return au(f instanceof AY?f.fullLabel:f.label,h instanceof AY?h.fullLabel:
h.label)});a.isRemovable=T3b(a)};IY.prototype.isIssueGridColumn=function(a){return a instanceof AY};IY.prototype.remove=function(){var a=this;if(this.isRemovable){var b=this.selectedColumns.filter(function(c){return c.name!==a.column.name});if(b.length!==this.selectedColumns.length)return this.selectedColumns=b,S3b(this),!0}return!1};
IY.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new AY({name:a.customFieldId.toString(),label:a.name,fullLabel:a.name,sortable:!0,draggable:!0,isCustomField:!0}):a;"TEAM"===a.label&&this.onAddTeamColumn.emit();var d=this.selectedColumns.findIndex(function(e){return e.name===c.column.name});if(-1===d)return!1;b=b?d:d+1;this.selectedColumns=[].concat(u(this.selectedColumns));this.selectedColumns.splice(b,0,a);S3b(this);return!0};
var T3b=function(a){return 1<a.selectedColumns.filter(function(b){return!b.isMetadata}).length};IY.\u0275fac=function(a){return new (a||IY)(F(HB),F(zI),F(OK),F(SM),F(fJ),F(pH))};
IY.\u0275cmp=v({type:IY,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&Zf(TE,5);if(a&2){var c;Yf(c=ag())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},features:[gf,Ac],decls:20,vars:11,consts:[[1,"bv2-column-picker-container"],[1,"bv2-columnheader-content"],[3,"column"],["mat-button","","tabindex","0","role","button","class",
"columnpicker-button",3,"matMenuTriggerFor","columnpicker-button-active","menuOpened","menuClosed","keydown.enter","keydown.space",4,"ngIf"],[1,"columnpicker-menu"],["pickerMenu","matMenu"],["mat-menu-item","","class","checkbox-item",3,"b-menu-item-checked","click",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"disabled","click"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["addColumnMenu","matMenu"],["matMenuContent",""],["columnGroupMenu","matMenu"],["mat-button","",
"tabindex","0","role","button",1,"columnpicker-button",3,"matMenuTriggerFor","menuOpened","menuClosed","keydown.enter","keydown.space"],["menuTrigger","matMenuTrigger"],["mat-menu-item","",1,"checkbox-item",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-description"],["mat-menu-item","",3,"click"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"matTooltip","click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",4,"ngIf"],["mat-menu-item",
"",3,"matTooltip","click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1),J(2,"pop-grid-default-th",2),H(),O(3,$Ka,2,4,"div",3),G(4,"mat-menu",4,5),O(6,bLa,4,3,"button",6),O(7,cLa,1,0,"mat-divider",7),G(8,"button",8),K("click",function(){return b.remove()}),P(9," Remove column "),H(),G(10,"button",9),P(11," Add column right "),H(),G(12,"button",9),P(13," Add column left "),H()(),G(14,"mat-menu",null,10),O(16,iLa,4,1,"ng-template",11),H(),G(17,
"mat-menu",null,12),O(19,kLa,1,1,"ng-template",11),H()());if(a&2){var c=Hf(15);B(2);D("column",b.column);B(1);D("ngIf",!0);B(3);D("ngForOf",b.column.moreOptions);B(1);D("ngIf",b.column.moreOptions.length);B(1);D("disabled",!b.isRemovable);B(2);D("matMenuTriggerFor",c)("matMenuTriggerData",Mf(9,P3b));B(2);D("matMenuTriggerFor",c)("matMenuTriggerData",Mf(10,Q3b))}},dependencies:[wx,sx,QE,OE,TE,NE,$H,$E,uH,HY],styles:['.bv2-columheader-content[_ngcontent-%COMP%]{display:inline-block;height:100%}.columnpicker-button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;height:24px;width:24px;opacity:.8}.columnpicker-button[_ngcontent-%COMP%]::before{background:none;border-radius:50%;position:absolute;top:-2px;bottom:-2px;left:-2px;right:-2px;box-sizing:border-box;content:"";display:block}.columnpicker-button[_ngcontent-%COMP%]:hover::before, .columnpicker-button[_ngcontent-%COMP%]:focus::before, .columnpicker-button.columnpicker-button-active[_ngcontent-%COMP%]::before{background-color:#dadce0;background-color:var(--c300);opacity:1}.columnpicker-button[_ngcontent-%COMP%]::after{background:url(https://www.gstatic.com/buganizer/img/v0/arrow_drop_down_black.svg);content:"";cursor:pointer;height:24px;width:24px;opacity:.8;position:absolute}  .columnpicker-menu .mat-menu-content button.mat-menu-item{line-height:0px;padding:5px 32px 5px 16px;white-space:normal;font-family:Arial,Helvetica,sans-serif}  .columnpicker-menu .mat-menu-content button.mat-menu-item.checkbox-item{padding-left:24px}  .columnpicker-menu .mat-menu-content button.mat-menu-item .b-menu-item-check-mark{top:50%;transform:translate(0, -50%)}\n/*# sourceMappingURL=column_picker.css.map */']});
var W3b=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=Wp("td.drag-handle",function(c,d){b.draggedRow=d.closest("tr");b.draggedRow.classList.add("dragging");b.draggedRow.setAttribute("aria-grabbed","true");c=c.dataTransfer;c.setData("text","drag");c.setDragImage(b.draggedRow,0,0);c.effectAllowed="move";c.dropEffect="move"});this.onTrDragEnter=Wp("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){U3b(b.dragTargetRow);b.dragTargetRow=d;b.draggedIssueIndex=b.params.rowFinder(Number(b.draggedRow.dataset.rowId));b.dragTargetIndex=b.params.rowFinder(Number(b.dragTargetRow.dataset.rowId));b.dragTargetRow.classList.add("drag-over");b.dragTargetIndex>b.draggedIssueIndex?b.dragTargetRow.classList.add("below"):b.dragTargetRow.classList.add("above");a:{for(c=b.dragTargetRow.parentElement;c;){if("static"!==window.getComputedStyle(c).position)break a;c=c.parentElement}c=void 0}c&&(d=
c.scrollTop||0,c=b.dragTargetRow.getBoundingClientRect().top-c.getBoundingClientRect().top+d,b.dropzone.style.width=b.dragTargetRow.offsetWidth+"px",b.dropzone.style.height=b.dragTargetRow.offsetHeight+"px",b.dropzone.style.left="0",b.dropzone.style.top=c+"px");b.dragTargetRow.appendChild(b.dropzone);b.dropzone.style.display="block"}});this.onTrDragEnd=Wp("tr",function(){b.draggedRow&&(U3b(b.draggedRow),U3b(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed","false"),b.draggedRow=b.dragTargetRow=
void 0)});this.onTrDragLeave=Wp("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=Wp(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=Wp(".row-dropzone",function(c){U3b(b.dragTargetRow);V3b(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=Wp(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=Wp(".row-dropzone",function(c){V3b(b);b.draggedIssueIndex!==b.dragTargetIndex&&
b.params.ngZone.run(function(){if(null!=b.draggedIssueIndex&&null!=b.dragTargetIndex)b.params.onRowDragDrop({srcIndex:b.draggedIssueIndex,destIndex:b.dragTargetIndex})});c.stopPropagation();c.preventDefault()})};
W3b.prototype.setup=function(){var a=this;this.dropzone.style.position="absolute";this.dropzone.style.zIndex="100";this.dropzone.style.margin="-2px";this.dropzone.classList.add("row-dropzone");V3b(this);this.params.ngZone.runOutsideAngular(function(){a.element.addEventListener("dragstart",a.onTdDragStart);a.element.addEventListener("dragenter",a.onTrDragEnter);a.element.addEventListener("dragend",a.onTrDragEnd);a.element.addEventListener("dragleave",a.onTrDragLeave);a.element.addEventListener("dragenter",
a.onDropzoneDragEnter);a.element.addEventListener("dragleave",a.onDropzoneDragLeave);a.element.addEventListener("dragover",a.onDropzoneDragOver);a.element.addEventListener("drop",a.onDropzoneDrop)})};
W3b.prototype.tearDown=function(){this.dropzone.remove();this.element.removeEventListener("dragstart",this.onTdDragStart);this.element.removeEventListener("dragenter",this.onTrDragEnter);this.element.removeEventListener("dragend",this.onTrDragEnd);this.element.removeEventListener("dragleave",this.onTrDragLeave);this.element.removeEventListener("dragenter",this.onDropzoneDragEnter);this.element.removeEventListener("dragleave",this.onDropzoneDragLeave);this.element.removeEventListener("dragover",this.onDropzoneDragOver);
this.element.removeEventListener("drop",this.onDropzoneDrop)};var U3b=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},V3b=function(a){a.dropzone.style.display="none"};
var JY=function(a){this.sloStatusHelpersService=a;this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};JY.prototype.ngOnInit=function(){X3b(this)};JY.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&X3b(this)};var X3b=function(a){var b=jQb(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
JY.\u0275fac=function(a){return new (a||JY)(F(eS))};
JY.\u0275cmp=v({type:JY,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},features:[Ac],decls:1,vars:4,consts:[[3,"sloBounds","sloMetricDescription","sloSnoozeUntil","includeObjective"]],template:function(a,b){a&1&&J(0,"b-slo-time-indicator",0);a&2&&D("sloBounds",b.firstOpenSlo)("sloMetricDescription",b.firstOpenSloMetric)("sloSnoozeUntil",b.sloSnoozeUntil)("includeObjective",
b.includeObjective)},dependencies:[wY],encapsulation:2,changeDetection:0});
var KY=function(){};KY.\u0275fac=function(a){return new (a||KY)};KY.\u0275cmp=v({type:KY,selectors:[["archived-issue-indicator"]],decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(G(0,"span"),J(1,"mat-icon",0),P(2,"Archived "),H())},dependencies:[LE],styles:["span[_ngcontent-%COMP%]{border-radius:8px;display:inline-block;line-height:18px;padding:0 10px;margin-right:6px;color:#202124;color:var(--text-high-contrast);background-color:#feefc3;background-color:var(--status-archived-bg)}mat-icon[_ngcontent-%COMP%]{height:15px;width:15px;margin:2px;vertical-align:middle;color:#5f6368;color:var(--icon)}"]});
var LY=function(){};LY.\u0275fac=function(a){return new (a||LY)};LY.\u0275mod=rc({type:LY});LY.\u0275inj=fc({imports:[[Mx,dF]]});
var Y3b=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],MY=function(){this.compactMode=this.labelOnlyMode=!1};MY.prototype.ngOnInit=function(){};MY.\u0275fac=function(a){return new (a||MY)};
MY.\u0275cmp=v({type:MY,selectors:[["b-base-chip"]],inputs:{labelOnlyMode:"labelOnlyMode",compactMode:"compactMode",labelClass:"labelClass",hovercardAriaLabel:"hovercardAriaLabel"},ngContentSelectors:[".tooltip-content",".chip-content"],decls:9,vars:6,consts:[[1,"bv2-chip"],["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"field-label-with-help",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"help-label",3,"ngClass"]],template:function(a,
b){a&1&&(Cf(Y3b),G(0,"span",0)(1,"onedev-hovercard",null,1)(3,"div",2)(4,"div",3),Df(5),H()()(),G(6,"div",4)(7,"span",5),Df(8,1),H()()());if(a&2){var c=Hf(2),d;B(3);nf("aria-label",b.hovercardAriaLabel);B(3);D("onedevHovercardTrigger",c)("onedevHovercardActive",!b.labelOnlyMode);B(1);sf("compact-chip",b.compactMode);D("ngClass",null!==(d=b.labelClass)&&void 0!==d?d:"")}},dependencies:[vx,pN,tN],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-chip[_ngcontent-%COMP%]   .field-label-with-help[_ngcontent-%COMP%]{line-height:1em}.bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{font-weight:normal;border-radius:8px;display:inline-block;line-height:18px;padding:0 10px}.bv2-chip[_ngcontent-%COMP%]   .help-label.compact-chip[_ngcontent-%COMP%]{font-size:.7em;margin-top:0;padding:0 6px;vertical-align:inherit}.bv2-issue-title-box[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%], .bv2-edit-issue-details-scroll[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{vertical-align:baseline}.bv2-grid-cell-container[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%] > .field-label-with-help[_ngcontent-%COMP%]{line-height:1}.onedev-hovercard-body[_ngcontent-%COMP%]{line-height:1.6em;width:350px}"]});
var NY=function(a){this.documentationLinks=a;this.documentationLink=tt()};NY.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=oo(zm(this.retentionState.scheduledDeletionTime)):this.retentionExpireTime=void 0};NY.\u0275fac=function(a){return new (a||NY)(F(tP))};
NY.\u0275cmp=v({type:NY,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Ac],decls:1,vars:1,consts:[[4,"ngIf"],[3,"mode","timestamp"],["target","_blank",3,"href"]],template:function(a,b){a&1&&O(0,lLa,9,5,"ng-container",0);a&2&&D("ngIf",b.retentionState&&b.modifiedTime)},dependencies:[sx,LP],encapsulation:2});
var OY=function(){this.compactMode=!1;this.text=""};OY.prototype.ngOnChanges=function(){var a;null!=(null==(a=this.retentionState)?void 0:a.scheduledDeletionTime)?(a=oo(zm(this.retentionState.scheduledDeletionTime)),this.text=Iya(a,!this.compactMode)):this.text=""};OY.\u0275fac=function(a){return new (a||OY)};
OY.\u0275cmp=v({type:OY,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},features:[Ac],decls:1,vars:1,template:function(a,b){a&1&&P(0);a&2&&Jf(b.text)},encapsulation:2});
var PY=function(){this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};PY.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=nLa(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};PY.\u0275fac=function(a){return new (a||PY)(F(tP))};
PY.\u0275cmp=v({type:PY,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Ac],decls:1,vars:1,consts:[["hovercardAriaLabel","Retention Chip Hovercard",3,"compactMode","labelClass","labelOnlyMode",4,"ngIf"],["hovercardAriaLabel","Retention Chip Hovercard",3,"compactMode","labelClass","labelOnlyMode"],[1,"chip-content"],[3,"retentionState",
"compactMode"],[1,"tooltip-content"],[3,"retentionState","modifiedTime"]],template:function(a,b){a&1&&O(0,mLa,5,7,"b-base-chip",0);a&2&&D("ngIf",b.showRetentionInfo)},dependencies:[sx,MY,OY,NY],styles:["[_nghost-%COMP%]     .help-label{white-space:nowrap;color:#202124;color:var(--text-high-contrast)}[_nghost-%COMP%]     .help-label.expiring{background-color:#e8eaed;background-color:var(--chip-bg)}[_nghost-%COMP%]     .help-label.danger{background-color:#fcad70;background-color:var(--expiring-bg);color:rgba(0,0,0,.7);color:var(--expiring-text)}"]});
var ZLa=function(a,b,c){return{low:a,high:b,p0:c}},DMa=function(a){return{id:a}},iNa=function(a,b){return{"bv2-grid-cell-variable-height":a,"rtl-component-path":b}},Z3b=function(){return[]},QY=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N){var L=this;this.activeSession=a;this.cdr=b;this.elementRef=c;this.teamsService=d;this.ngZone=e;this.userPreferencesManager=f;this.hotlistFridge=h;this.issueFridge=k;this.bLocation=q;this.issuePagination=w;this.paths=y;this.errorHandler=E;this.$log=I;this.domSafe=N;this.lastCheckedIndex=
null;this.focusedRowIndexChange=new Iw;this.columns=[];this.columnsChange=new Iw;this.enableColumnSaving=!1;this.sort=null;this.sortChange=new Iw;this.rowClick=new Iw;this.init=new Iw;this.onRowDragDrop=new Iw;this.onNextPage=new Iw;this.onPrevPage=new Iw;this.selectionCallbacks=[];this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=rH(this.activeSession,"enableAggregationRules");this.destroyed$=new T.ReplaySubject(1);this.starInProgress={};this.readUnreadOptOut=rH(this.activeSession,"readUnreadOptOut");
b=Ba(A3b);a.isInternalSession()||(wa(b,"minSlo"),wa(b,"responseSlo"),wa(b,"assignmentSlo"),wa(b,"closureSlo"),wa(b,"deletionTime"),wa(b,"team"),wa(b,"estimate"),wa(b,"estimateTotalOpen"),wa(b,"estimateTotalComplete"));this.availableColumns=b.map(C3b);this.dragDropLogic=new W3b({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(S){return $3b(L,S)},onRowDragDrop:function(S){L.onRowDragDrop.emit(S)}})};g=QY.prototype;
g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.init.emit(this)};
g.ngOnChanges=function(a){if(a.searchResults){var b,c=pLa((null==(b=this.searchResults)?void 0:b.issues.map(function(e){return new Set([].concat(u(e.hotlistId||[])))}))||[]);$J(this.hotlistFridge,[].concat(u(c)))}if(a.searchResults||a.columns)for(b=r(this.columns),c=b.next();!c.done;c=b.next())"TEAM"===c.value.label&&a4b(this);if(a.searchResults){b=a.searchResults.currentValue;var d;a=new Set((null==(d=a.searchResults.previousValue)?void 0:d.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||
[]);d=new Set((null==b?void 0:b.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||[]);hna(a,d)||Xp(this)}};g.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};g.focus=function(){this.grid.focus()};g.selectAll=function(){if(this.searchResults){for(var a=r(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}Xp(this)};
var b4b=function(a){if(a.searchResults){for(var b=r(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}Xp(a)};QY.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var xLa=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},c4b=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},wLa=function(a){if(!a.searchResults)return"unchecked";var b=!0,c=!1;a=r(a.searchResults.issues);for(var d=a.next();!d.done;d=a.next())d.value.selected?c=!0:b=!1;return b?"checked":c?"indeterminate":"unchecked"};
QY.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};
var e4b=function(a){if(d4b(a)&&null!=a.focusedRowIndex&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),Xp(a))}},vLa=function(a){if(a.searchResults){for(var b=!c4b(a),c=r(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();Xp(a)}},f4b=function(a){null!=a.focusedRowIndex&&a.searchResults&&a.focusedRowIndex<a.searchResults.issues.length-1?(a.focusedRowIndex++,a.focusedRowIndexChange.emit(a.focusedRowIndex),
a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasNextPage()&&GKb(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},g4b=function(a){null!=a.focusedRowIndex&&0<a.focusedRowIndex?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&GKb(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
RY=function(a,b){b=void 0===b?{}:b;if(d4b(a)&&null!=a.focusedRowIndex&&a.searchResults){var c=a.searchResults.issues[a.focusedRowIndex];c&&(b.openInNewTab?a.domSafe.openInNewTab(a.paths.editIssue(c.issueId)):a.bLocation.url(a.paths.editIssue(c.issueId)))}},h4b=function(a,b){a.selectionCallbacks.push(b);b()},Xp=function(a){a=r(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},i4b=function(a){d4b(a)&&null!=a.focusedRowIndex&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},
j4b=function(a,b){b=void 0===b?!0:b;var c=a.getSelectedIssues();if(0!==c.length){for(var d=r(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();AL(a.issueFridge,c.map(function(f){return f.issueId}),b).then(function(f){for(var h=r(c),k=h.next();!k.done;k=h.next()){var q=void 0;k.value.lastViewedTime=null!=(q=f)?q:null}}).catch(function(){for(var f=r(c),h=f.next();!h.done;h=f.next())h=h.value,h.isRead=!!h.lastViewedTime&&h.lastViewedTime>=h.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
QY.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,QIb(this.issueFridge,String(a.issueId),a.starred).pipe(Me(),Ye(this.destroyed$)).subscribe(function(){b.starInProgress[a.issueId]=!1;b.cdr.detectChanges()},function(c){a.starred=!a.starred;b.starInProgress[a.issueId]=!1;b.errorHandler.errorHandler(null,c);b.cdr.detectChanges()}))};
QY.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var d4b=function(a){return null!=a.searchResults&&null!=a.focusedRowIndex&&0<=a.focusedRowIndex&&a.focusedRowIndex<a.searchResults.issues.length},$3b=function(a,b){return a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1},a4b=function(a){if(a.searchResults){for(var b=new Set,c=r(a.searchResults.issues),d=c.next();!d.done;d=c.next())d=String(d.value.teamId),"0"!==d&&b.add(d);0<b.size?(a.isLoadingTeams=!0,YJb(a.teamsService,[].concat(u(b))).pipe(Ye(a.destroyed$)).subscribe(function(e){e=
Yi(e,1,hM);if(a.searchResults)for(var f=r(a.searchResults.issues),h=f.next();!h.done;h=f.next()){h=h.value;var k=String(h.teamId);"0"!==k&&e.has(k)&&(h.team=e.get(k).getName())}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};QY.prototype.isIssueGridColumn=function(){return!0};QY.\u0275fac=function(a){return new (a||QY)(F(pH),F(uI,2),F(nd),F(lM),F(ef),F(zI),F(sL),F(yL),F(cL),F(VM),F(dL),F(SK),F(RK),F(vP))};
QY.\u0275cmp=v({type:QY,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&Zf(CY,7);if(a&2){var c;Yf(c=ag())&&(b.grid=c.first)}},inputs:{searchResults:"searchResults",focusedRowIndex:"focusedRowIndex",columns:"columns",enableColumnSaving:"enableColumnSaving",sort:"sort"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",columnsChange:"columnsChange",sortChange:"sortChange",rowClick:"rowClick",init:"init",onRowDragDrop:"onRowDragDrop",onNextPage:"onNextPage",onPrevPage:"onPrevPage"},features:[Lf([uI]),
Ac],decls:49,vars:51,consts:[[1,"keep-focus-ring",3,"list","columns","focusedRowIndex","scrollContainer","sort","rowLabelRenderer","columnsChange","focusedRowIndexChange","sortChange","rowClick"],["class","focus-indicator",4,"forHeaderCell"],["class","drag-handle",4,"forHeaderCell"],["class","selected-box",4,"forHeaderCell"],[4,"forHeaderCell"],[4,"forHeaderCellDefault"],["class","focus-indicator",4,"forViewCell"],["class","drag-handle","draggable","true",4,"forViewCell"],["class","selected-box",
4,"forViewCell"],["class","star-cell",4,"forViewCell"],[4,"forViewCell"],["data-template","issueId","class","clickable",4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height",4,"forViewCell"],["class","priority-cell clickable",4,"forViewCell"],["class","severity-cell clickable",4,"forViewCell"],["data-stable-cell","status","class","clickable",4,"forViewCell"],["data-stable-cell","type","class","clickable",4,"forViewCell"],["class","clickable",4,"forViewCell"],["class",
"clickable datetime-cell",4,"forViewCell"],["class","componentPath-cell clickable",3,"ngClass",4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],["issueWithHovercard",""],[1,"focus-indicator"],[4,"ngIf"],[1,"drag-handle"],[1,"selected-box"],["tabindex","0","aria-label","Select all issues","role","checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"state","click","keydown.enter","keydown.space"],[3,"column"],[3,"column","availableColumns","selectedColumns","selectedColumnsChange",
4,"ngIf"],[3,"column",4,"ngIf"],[3,"column","availableColumns","selectedColumns","selectedColumnsChange"],["draggable","true",1,"drag-handle"],["tabindex","-1","role","checkbox",3,"state","click"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage","starClicked"],["data-template","issueId",1,"clickable"],["tabindex","-1",1,"row-issue-id",3,"href"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container"],[3,"accessLevel","compactMode"],[3,"retentionState","showOnlyInDangerZone",
"compactMode","modifiedTime"],[1,"bv2-grid-cell-text"],["tabindex","-1",1,"row-issue-title",3,"href"],["class","bv2-hotlist-chips",4,"ngIf"],[1,"bv2-hotlist-chips"],[3,"id","removable",4,"ngFor","ngForOf"],[3,"id","removable"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"ngClass"],[1,"severity-cell","clickable"],["data-stable-cell","status",1,"clickable"],[3,"issueStatusJs","displayMode",4,"ngIf"],[3,"issueStatusJs","displayMode"],["data-stable-cell","type",1,"clickable"],[1,"clickable"],
[3,"email",4,"ngIf"],[3,"email"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"clickable","datetime-cell"],["mode","datetime",3,"timestamp"],[1,"componentPath-cell","clickable",3,"ngClass"],[1,"clickable","first-letter-capitalized"],[3,"sloId","sloStatus","sloSnoozeUntil",4,"ngIf"],[3,"sloId","sloStatus","sloSnoozeUntil"],[3,"sloStatus","sloSnoozeUntil"],[3,"sloId","sloStatus","sloSnoozeUntil","onlyShowMetric",4,"ngIf"],[3,"sloId","sloStatus","sloSnoozeUntil","onlyShowMetric"],
[3,"sloBounds"],["mode","date",3,"timestamp",4,"ngIf"],["mode","date",3,"timestamp"],["class","animated-loading-bar",4,"ngIf"],[1,"animated-loading-bar"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""]],template:function(a,b){a&1&&(G(0,"div")(1,"pop-grid",0),K("columnsChange",function(c){b.columns=
c;b.columnsChange.emit(c);b.cdr.detectChanges()})("focusedRowIndexChange",function(c){b.focusedRowIndex=c;return b.focusedRowIndexChange.emit(b.focusedRowIndex)})("sortChange",function(c){return b.sortChange.emit(c)})("rowClick",function(c){return b.rowClick.emit(c)}),O(2,sLa,2,2,"th",1),O(3,uLa,2,2,"th",2),O(4,zLa,2,2,"th",3),O(5,BLa,2,2,"th",4),O(6,DLa,2,2,"th",4),O(7,HLa,2,2,"th",5),O(8,JLa,2,1,"td",6),O(9,LLa,2,1,"td",7),O(10,NLa,2,1,"td",8),O(11,PLa,2,1,"td",9),O(12,RLa,2,1,"td",10),O(13,TLa,
2,1,"td",11),O(14,YLa,2,3,"td",12),O(15,aMa,2,1,"td",13),O(16,cMa,2,1,"td",14),O(17,gMa,2,1,"td",15),O(18,iMa,2,1,"td",16),O(19,mMa,2,1,"td",17),O(20,qMa,2,1,"td",17),O(21,uMa,2,1,"td",17),O(22,wMa,2,1,"td",17),O(23,yMa,2,1,"td",17),O(24,AMa,2,1,"td",17),O(25,GMa,2,1,"td",17),O(26,LMa,2,1,"td",17),O(27,PMa,2,1,"td",17),O(28,RMa,2,1,"td",18),O(29,TMa,2,1,"td",18),O(30,VMa,2,1,"td",18),O(31,XMa,2,1,"td",18),O(32,ZMa,2,1,"td",17),O(33,aNa,2,1,"td",17),O(34,cNa,2,1,"td",17),O(35,eNa,2,1,"td",17),O(36,
gNa,2,1,"td",17),O(37,jNa,2,5,"td",19),O(38,mNa,2,1,"td",20),O(39,pNa,2,1,"td",20),O(40,sNa,2,1,"td",20),O(41,vNa,2,1,"td",20),O(42,yNa,2,1,"td",17),O(43,CNa,2,1,"td",17),O(44,ENa,2,1,"td",17),O(45,GNa,2,1,"td",17),O(46,INa,2,1,"td",17),H()(),O(47,KNa,5,2,"ng-template",null,21,gg));a&2&&(B(1),D("list",(null==b.searchResults?null:b.searchResults.issues)||Mf(50,Z3b))("columns",b.columns)("focusedRowIndex",b.focusedRowIndex)("scrollContainer",".bv2-view")("sort",b.sort)("rowLabelRenderer",b.issueDescription),
B(1),D("forHeaderCell","focused"),B(1),D("forHeaderCell","draghandle"),B(1),D("forHeaderCell","selected"),B(1),D("forHeaderCell","starred"),B(1),D("forHeaderCell","position"),B(2),D("forViewCell","focused"),B(1),D("forViewCell","draghandle"),B(1),D("forViewCell","selected"),B(1),D("forViewCell","starred"),B(1),D("forViewCell","position"),B(1),D("forViewCell","issueId"),B(1),D("forViewCell","title"),B(1),D("forViewCell","priority"),B(1),D("forViewCell","severity"),B(1),D("forViewCell","status"),B(1),
D("forViewCell","type"),B(1),D("forViewCell","reporter"),B(1),D("forViewCell","assignee"),B(1),D("forViewCell","verifier"),B(1),D("forViewCell","cc"),B(1),D("forViewCell","changelist"),B(1),D("forViewCell","postmortem"),B(1),D("forViewCell","blockingIssueId"),B(1),D("forViewCell","blockedByIssueId"),B(1),D("forViewCell","duplicateOfIssueId"),B(1),D("forViewCell","createdTime"),B(1),D("forViewCell","modifiedTime"),B(1),D("forViewCell","resolvedTime"),B(1),D("forViewCell","verifiedTime"),B(1),D("forViewCell",
"foundInVersion"),B(1),D("forViewCell","targetedToVersion"),B(1),D("forViewCell","verifiedInVersion"),B(1),D("forViewCell","inProd"),B(1),D("forViewCell","archived"),B(1),D("forViewCell","componentPath"),B(1),D("forViewCell","minSlo"),B(1),D("forViewCell","responseSlo"),B(1),D("forViewCell","assignmentSlo"),B(1),D("forViewCell","closureSlo"),B(1),D("forViewCell","deletionTime"),B(1),D("forViewCell","team"),B(1),D("forViewCell","estimate"),B(1),D("forViewCell","estimateTotalOpen"),B(1),D("forViewCell",
"estimateTotalComplete"))},dependencies:[KY,vx,wx,sx,Cx,jB,CY,HY,DY,EY,FY,wY,yY,LP,JY,zR,BX,lY,PY,TS,kN,pN,qN,tN,rN,EX,kV,IY,zM,AM,CM,DM,FM,JM],encapsulation:2,changeDetection:0});
var SY=new AY({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),k4b=new AY({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),TY=new AY({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),UY=new AY({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),l4b=new AY({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});
var VY=function(a,b,c){BI.call(this);var d=this;this.snackBar=a;this.issuePicker=b;this.issueApi=c;this.issueAddedToHotlist=new Iw;this.onCloseIssuePicker=function(e){e=void 0===e?[]:e;if(0!==e.length&&null!=d.id){var f=e.join(", ");d.snackBar.open(1===e.length?"Adding issue "+f+" to this hotlist":"Adding multiple issues to this hotlist: "+f,void 0,{duration:2500});d.issueApi.issueBulkEdit({bulkEditOps:[{actions:[{fieldName:"hotlists",value:d.id,actionType:"ADD"}],issueIds:e}]}).then(d.didSave,d.gotErr)}};
this.didSave=function(){d.issueAddedToHotlist.emit();d.snackBar.open("Successfully added to hotlist",void 0,{duration:2500})};this.gotErr=function(e){var f,h,k,q,w=null!=(q=null!=(k=null==e?void 0:null==(f=e.error)?void 0:f.message)?k:null==e?void 0:null==(h=e.data)?void 0:h.message)?q:"Error adding issues to the hotlist";d.snackBar.open(w,"close",{panelClass:"error"})}};U(VY,BI);VY.\u0275dir=BI.\u0275dir;VY.\u0275fac=function(a){return new (a||VY)(F(LK),F(MX),F(wK))};
VY.\u0275cmp=v({type:VY,selectors:[["hotlist-add-issue-btn"]],inputs:{id:["hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},features:[gf],decls:2,vars:0,consts:[["mat-button","","matTooltip","Add issues to this hotlist",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(G(0,"button",0),K("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),P(1," Add Issue(s) "),H())},dependencies:[pB,$E],encapsulation:2});
var WY=function(a,b,c,d){BI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.dialog=c;this.events=d;this.id$=new T.ReplaySubject(1);this.hotlist$=this.id$.pipe(Xe(function(f){return e.fridge.watchOne(f)}),Ue({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(C(function(f){return!(null==f||!f.archived)}),Le());this.archiveActionLabel$=this.archived$.pipe(C(function(f){return f?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(C(function(f){return f?"Unarchive this hotlist":
"Archive this hotlist, hiding it from most searches"}));this.didSave=function(f){return function(){e.snackBar.open(f?"Hotlist was archived":"Hotlist was unarchived",void 0,{duration:2500});e.events.hotlistChanged.next()}};this.gotErr=function(f){return function(h){var k=f?"archiving":"unarchiving";e.snackBar.open(ym(h)||"Error "+k+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(Ye(this.destroyed$)).subscribe(function(f){e.latestHotlist=f})};U(WY,BI);WY.\u0275dir=BI.\u0275dir;
WY.prototype.isThinking=function(a){return this.fridge.isThinking(a)};WY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};var n4b=function(a){if(null!=a.latestHotlist){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Nn("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){m4b(a,b)}}):m4b(a,b)}},m4b=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};
WY.\u0275fac=function(a){return new (a||WY)(F(sL),F(LK),F(aN),F(WK))};
WY.\u0275cmp=v({type:WY,selectors:[["hotlist-archive-btn"]],inputs:{id:["hotlistId","id"]},features:[gf,Ac],decls:4,vars:7,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(G(0,"button",0),K("click",function(){return n4b(b)}),Q(1,"async"),P(2),Q(3,"async"),H());if(a&2){var c;D("disabled",b.isThinking(b.id))("matTooltip",null!==(c=R(1,3,b.archiveActionTooltip$))&&void 0!==c?c:"");B(2);If(" ",R(3,5,b.archiveActionLabel$)," ")}},dependencies:[pB,
$E,Fx],encapsulation:2});
var XY=function(a,b,c,d,e,f,h,k,q,w,y,E){PX.call(this,a,b,c,d,e,f,h,k,q,w);this.estadoService=y;this.refreshMonitor=E;this.init=new Iw;this.onRefresh=new Iw;this.isHotlistAdmin=!1;this.onExportCsv=new Iw;this.showHotlistButtons=!1;this.csvExportEnabled="PUBLIC"!==this.activeSession.frontendAccessMode;this.enableEstadoInAppBar=this.estadoService.enableEstado;this.controllerName="gridControls"};U(XY,PX);XY.\u0275dir=PX.\u0275dir;g=XY.prototype;g.ngOnInit=function(){this.init.emit(this)};
g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&h4b(this.grid,function(){b.onSelectionChange()})};g.getSelectedIssues=function(){var a,b;return null!=(b=null==(a=this.grid)?void 0:a.getSelectedIssues())?b:[]};g.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};g.openInEstado=function(){this.estadoService.openInEstado()};XY.\u0275fac=function(a){return new (a||XY)(F(uI,2),F(pH),F(SM),F(fJ),F(ZH),F(AT),F(LR),F(nT),F(HB),F(RK),F(pY),F(uL))};
XY.\u0275cmp=v({type:XY,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},features:[Lf([uI]),gf,Ac],decls:11,vars:8,consts:[["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation",
"onBulkMarkIssueRead",4,"ngIf"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch",4,"ngIf"],["class","bv2-grid-hotlist-picker",4,"ngIf"],[4,"ngIf"],["class","compact","tooltip","Reporting","aria-label","Reporting",3,"size","format","onAction",4,"ngIf"],[1,"bv2-appbar-menu",3,"showExportCsv","showFlagIssuesAsSpam","exportCsvClicked","flagAsSpamClicked"],[3,"externalWarnings","save","close"],["addCommentDialog",""],[3,
"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch"],[1,"bv2-grid-hotlist-picker"],[3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],[3,"hotlistId","issueAddedToHotlist"],[3,"hotlistId",4,"ngIf"],[3,"hotlistId"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"size","format","onAction"],["name",
"bar-chart","size","large"],["class","bv2-estado-text",4,"ngIf"],[1,"bv2-estado-text"],["mat-dialog-title",""],[3,"comment","showToolbar","commentChange","onSubmit"],["class","bv2-external-component-modal-warning",4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium","primary",3,"mat-dialog-close"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a,b){a&1&&(G(0,
"b-button",0),K("onAction",function(){return b.refresh()}),J(1,"b-icon",1),H(),O(2,LNa,1,1,"b-app-bar-bulk-edit-menus",2),O(3,MNa,1,2,"b-copy-issue-id-button",3),O(4,NNa,2,2,"div",4),O(5,PNa,3,2,"ng-container",5),O(6,RNa,3,3,"b-button",6),G(7,"b-app-bar-more-menu",7),K("exportCsvClicked",function(){return b.onExportCsv.emit()})("flagAsSpamClicked",function(){return D2b(b)}),H(),G(8,"b-state-modal",8),K("save",function(){return B2b(b)})("close",function(){return b.hotkeys.unpause()}),H(),O(9,UNa,10,
5,"ng-template",null,9,gg));a&2&&(B(2),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.showHotlistButtons&&!b.hasSelectedIssues()),B(1),D("ngIf",b.enableEstadoInAppBar),B(1),D("showExportCsv",b.csvExportEnabled)("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),D("externalWarnings",b.externalWarnings))},dependencies:[bI,aI,yO,pX,wx,sx,TS,jT,WY,VY,wX,uH,pB,IB,JB,KB,LB,qX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});
var o4b=["multiUserInput"],YY=function(a,b,c,d,e,f){BI.call(this);var h=this;this.element=a;this.accessPolicyConverter=b;this.principalTypes=c;this.activeSession=d;this.documentationLinks=e;this.appEvents=f;this.usersChange=new Iw(!0);this.includeViewAliases=this.includeAliases=!1;this.customValidators={};this.ariaLabel="";this.isValid=new Iw;this.typedText="";this.items=[];this.chipifyFn=function(){p4b(h)};this.additionalContactsFn=function(){return q4b(h)};this.isFocused=!1;this.selectedChipIndex=
-1;this.$element=this.element.nativeElement;this.validators=Object.assign({},{validateGaia:function(k,q){return r4b(q)},validateInternalAccessLevel:function(k,q){return s4b(h,q)},validateExternalAccessLevel:function(k,q){return t4b(h,q)}},this.customValidators);this.violations=new Set;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){h.typedText=""}))};U(YY,BI);YY.\u0275dir=BI.\u0275dir;
YY.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=u4b(this,this.users),ZY(this)};var ZY=function(a){var b=[].concat(u(a.items)),c=v4b(b);b=a.validate(c,b);a.isValid.emit(b);a.users&&Ei(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};YY.prototype.validate=function(a,b){for(var c=new Set,d=r(Object.entries(this.validators)),e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;f(a,b)||c.add(e)}this.violations=c;return 0===this.violations.size};
var w4b=function(a){a.isWidgetDisabled()||(a.isFocused=!0,a.textInputElement.nativeElement.focus())},VNa=function(a){Yp(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};YY.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};YY.prototype.removeItem=function(a){this.isWidgetDisabled()||!Yp(this,a)||this.items[a].isReadonly||(VNa(this),this.items.splice(a,1),ZY(this))};
YY.prototype.setAccessLevel=function(a){this.accessLevel=a};
var q4b=function(a){return x4b(a).map(function(b){return{text:Ppa(b),id:a.accessPolicyConverter.accessPolicyPrincipalToString({alias:b})}})},x4b=function(a){if(!a.includeAliases||"PUBLIC"===a.activeSession.frontendAccessMode)return[];var b=["googlers_unrestricted"];if(void 0===a.accessLevel||"EXTERNAL_PUBLIC"===a.accessLevel)b.push("public_non_google"),a.includeViewAliases&&b.push("public");return b},p4b=function(a){setTimeout(function(){a.typedText&&da(a.typedText,",")&&y4b(a,a.typedText.split(",")[0].trim())})},
y4b=function(a,b){b&&(b=rSb.test(b)?z4b(a,b):A4b(a,b),a.items.push(b));a.typedText="";ZY(a)},Yp=function(a,b){return 0<=b&&b<a.items.length},z4b=function(a,b){var c=void 0===c?!1:c;var d=a.accessPolicyConverter.stringToAccessPolicyPrincipal(b);if(void 0===d.alias)throw Error("Nd`"+b);b=d.alias;d=Ppa(b);return new $Y(4,b,d,null,c,a)},B4b=function(a,b){b=xo(b);var c=new $Y(3,b,b,null,!1,a);sI(a.principalTypes,b,!0).then(function(d){c.detailedUserType=X(d,2,0);ZY(a)});return c},C4b=function(a,b){var c=
void 0===c?!1:c;b=xo(b);var d=new $Y(2,b,b,null,c,a);sI(a.principalTypes,b,!0).then(function(e){d.detailedUserType=X(e,2,0);ZY(a)});return d},A4b=function(a,b){var c=void 0===c?!1:c;b=xo(b);var d=new $Y(0,b,b,null,c,a);sI(a.principalTypes,b,!0).then(function(e){d.principalType=X(e,1,0);d.detailedUserType=X(e,2,0);ZY(a)});return d},D4b=function(a,b,c){return new $Y(0,"",b,c,!0,a)};YY.prototype.getAccessLevel=function(){return this.accessLevel};YY.prototype.getAppName=function(){return this.activeSession.getAppName()};
YY.prototype.onKeyDown=function(a){8===a.keyCode?Yp(this,this.selectedChipIndex)?(Yp(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex),a.stopPropagation(),a.preventDefault()):""===this.typedText&&0<this.items.length&&this.removeItem(this.items.length-1):46===a.keyCode?Yp(this,this.selectedChipIndex)&&Yp(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):w4b(this)};
var u4b=function(a,b){b=(b||[]).map(function(d){return E4b(a,d)});if(a.containerChips){var c=a.containerChips.filter(function(d){return void 0!==d.values&&Array.isArray(d.values)&&0<d.values.length}).map(function(d){return D4b(a,d.displayText,d.values.map(function(e){return E4b(a,e)}))});return[].concat(u(c),u(b))}return b},E4b=function(a,b){var c=b.split(":");if(2!==c.length)throw Error("xe`"+b);var d=Number(c[0]);if(2!==d&&3!==d&&4!==d)throw Error("xe`"+b);return 4===d?z4b(a,b):2===d?C4b(a,c[1]):
B4b(a,c[1])},v4b=function(a){return(a||[]).filter(function(b){return 0!==b.principalType}).map(function(b){return b.principalType+":"+b.value})},r4b=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},s4b=function(a,b){return"INTERNAL"!==a.accessLevel?!0:!b.some(function(c){return c.isInternalAccessViolated()})},t4b=function(a,b){return"EXTERNAL_PARTNER"!==a.accessLevel?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};
YY.\u0275fac=function(a){return new (a||YY)(F(nd),F(KT),F(rI),F(pH),F(tP),F(WK))};
YY.\u0275cmp=v({type:YY,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&Zf(o4b,5);if(a&2){var c;Yf(c=ag())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&K("keydown",function(c){return b.onKeyDown(c)})},inputs:{users:"users",containerChips:"containerChips",accessLevel:"accessLevel",includeAliases:"includeAliases",idForInputBox:"idForInputBox",includeViewAliases:"includeViewAliases",customValidators:"customValidators",ariaLabel:"ariaLabel"},outputs:{usersChange:"usersChange",
isValid:"isValid"},features:[gf,Ac],decls:10,vars:12,consts:[[1,"bv2-multi-user-input",3,"click"],["class","bv2-user-chip",4,"ngFor","ngForOf"],["b-adaptive-width-input","","tabindex","0",1,"bv2-multi-user-embedded-input",3,"bContactAutocomplete","additionalContactsCallback","ngModel","disabled","autocompleteActive","ngModelChange","focus","blur"],["multiUserInput",""],["role","alert",1,"bv2-multi-user-errors"],[4,"ngIf"],[1,"bv2-user-chip"],[3,"isReadonly","isSelected","isWidgetDisabled","principalType",
"detailedUserType","nestedChips","value","displayText","accessLevel","chipSelection","chipClear","chipRemove"],["target","_blank"]],template:function(a,b){a&1&&(G(0,"div",0),K("click",function(){return w4b(b)}),G(1,"div"),O(2,WNa,2,9,"div",1),G(3,"input",2,3),K("autocompleteActive",function(){return b.chipifyFn()})("ngModelChange",function(c){return b.typedText=c})("focus",function(){return w4b(b)})("blur",function(){y4b(b,b.typedText.split(",")[0].trim());b.isFocused=!1}),H()()(),G(5,"div",4),O(6,
XNa,4,1,"span",5),O(7,YNa,2,0,"span",5),O(8,ZNa,2,0,"span",5),O(9,$Na,2,0,"span",5),H());a&2&&(sf("focused",b.isFocused),B(2),D("ngForOf",b.items),B(1),D("bContactAutocomplete","MULTI")("additionalContactsCallback",b.additionalContactsFn)("ngModel",b.typedText)("disabled",b.isWidgetDisabled()),nf("id",b.idForInputBox),B(3),D("ngIf",b.violations.has("noRestrictedPlusGroups")),B(1),D("ngIf",b.violations.has("validateGaia")),B(1),D("ngIf",b.violations.has("validateInternalAccessLevel")),B(1),D("ngIf",
b.violations.has("validateExternalAccessLevel")))},styles:[".bv2-multi-user-embedded-input[_ngcontent-%COMP%]{background-color:transparent;color:#202124;color:var(--text-high-contrast)}.bv2-multi-user-input[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:1px;cursor:text;min-height:27px;padding:6px;width:600px}.bv2-multi-user-input[_ngcontent-%COMP%]:hover{box-shadow:inset 0px 1px 2px rgba(0,0,0,.1)}.bv2-multi-user-input.focused[_ngcontent-%COMP%]{box-shadow:inset 0px 1px 2px rgba(0,0,0,.3);border-color:#1a73e8;border-color:var(--primary)}.bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[_ngcontent-%COMP%]{border:0;display:inline-block;height:24px;min-width:100px;max-width:500px;width:auto;outline:none;padding-left:5px}.bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:13px;padding:3px;padding-top:2px;vertical-align:top}.ng-invalid[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast)}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);cursor:initial}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);display:none}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}.disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover, [disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover{border-color:#dadce0;border-color:var(--divider);box-shadow:none}.bv2-multi-user-errors[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad);font-size:13px;line-height:18px;margin:0 0 1em;padding:9px 0}\n/*# sourceMappingURL=multi_user_input.css.map */"]});
var $Y=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType=0;this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};g=$Y.prototype;
g.getTooltip=function(){if(4!==this.principalType)return"";switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.parentController.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All logged in users, excluding the google.com domain.";case "public":return"All logged in users.";default:throw Error("ye`"+this.value);}};
g.isGroupChip=function(){return 3===this.principalType};g.isPublicChip=function(){return 4===this.principalType&&["public_non_google","public"].includes(this.value)};g.isDomainChip=function(){return 4===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};g.isExternalChip=function(){return 3===this.detailedUserType||4===this.detailedUserType||this.isPublicChip()};g.isNonGaiaChip=function(){return 1===this.principalType};g.isContainerChip=function(){return null!==this.nestedChips};
g.isInternalAccessViolated=function(){return"INTERNAL"===this.parentController.getAccessLevel()&&(this.isExternalChip()||this.isPublicChip())};g.isExternalPartnerAccessViolated=function(){return"EXTERNAL_PARTNER"===this.parentController.getAccessLevel()&&this.isPublicChip()};g.isUserChip=function(){return 2===this.principalType};
var aZ=function(){};aZ.\u0275fac=function(a){return new (a||aZ)};aZ.\u0275prov=ec({token:aZ,factory:aZ.\u0275fac,providedIn:"root"});
var bZ=function(){var a=this;this.checks=[];this.beforeUnloadEventHandler=function(b){if(a.checks.some(function(c){return c.dataChanged()}))return b.preventDefault(),b.returnValue="","You have unsaved changes in your form."};window.addEventListener("beforeunload",this.beforeUnloadEventHandler)};U(bZ,aZ);bZ.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler)};
var cZ=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new T.Subscription(function(){a.checks=a.checks.filter(function(e){return e!==d})})};bZ.prototype.canDeactivate=function(a,b,c,d){a:{a=LG(c.url).getPath()===LG(d.url).getPath();b=r(this.checks);for(c=b.next();!c.done;c=b.next())if(c=c.value,a){if(c.triggerOnSearch&&c.dataChanged()){a=!0;break a}}else if(c.dataChanged()){a=!0;break a}a=!1}return a?F4b()?(this.checks=[],!0):!1:!0};var F4b=function(){return window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?")};
bZ.\u0275fac=function(a){return new (a||bZ)};bZ.\u0275prov=ec({token:bZ,factory:bZ.\u0275fac,providedIn:"root"});
var dZ=new jd("CheckBeforeExit",{factory:function(){return t(bZ)}});
var G4b=function(a){return{displayText:"Admins",values:a}},H4b=function(a){return[a]},I4b=function(a){return{displayText:"Appenders",values:a}},J4b=Nn("You are about to change the administrator privileges for this hotlist.\nMake sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits.\nDo you want to proceed?"),eZ=function(a,b,c,d,e,f,h,k){BI.call(this);var q=this;this.hotlistAccessPolicyFridge=a;this.links=b;this.snackBar=
c;this.events=d;this.dialog=f;this.permissions=h;this.userApi=k;this.id$=new T.ReplaySubject(1);this.idSubject$=Oj(this.id$.pipe(Ye(this.destroyed$)));this.acl$=this.id$.pipe(Xe(function(w){return q.hotlistAccessPolicyFridge.watchOne(w)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=Do(this.links);this.validity={};this.isValid=function(){return Object.values(q.validity).every(Boolean)};this.isInvalid=function(){return!q.isValid()};this.allAppenders=
[];this.onPressSave=function(){K4b(q)?q.dialog.open({title:"Change Hotlist Admins",content:J4b,isDestructive:!0,onConfirm:q.doSave}):q.doSave()};this.doSave=function(){var w=q.idSubject$.value;if(null!=w){var y=K4b(q);w={id:w,admins:dua(q.admins),appenders:dua(q.appenders),editors:null,readers:dua(q.readers),inheritance:null,implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};q.hotlistAccessPolicyFridge.save(w).subscribe({next:q.didSave(y,
w.id),error:q.gotErr})}};this.didSave=function(w,y){return function(){q.snackBar.open("Access control saved",void 0,{duration:2500});q.events.hotlistChanged.next();et(q.permissions,y);w&&q.doStar()}};this.gotErr=function(w){q.snackBar.open(ym(w)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){var w=q.idSubject$.value;if(w){var y,E=null==(y=pna())?void 0:y.getEmail();q.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:w,userLogin:E}).then(function(){q.events.hotlistChanged.next()})}};
this.onPressRevert=function(){q.resetEdits()};this.gotAcl=function(w){q.latestPolicy=w;var y,E,I;q.latestCompactPolicy={admins:bua(null==(y=q.latestPolicy)?void 0:y.admins),appenders:bua(null==(E=q.latestPolicy)?void 0:E.appenders),readers:bua(null==(I=q.latestPolicy)?void 0:I.readers)};q.resetEdits()};this.isChanged=function(){var w=q.latestCompactPolicy,y;if(!Ei(null!=(y=w.admins)?y:[],q.admins))return!0;var E;if(!Ei(null!=(E=w.appenders)?E:[],q.appenders))return!0;var I;return Ei(null!=(I=w.readers)?
I:[],q.readers)?!1:!0};this.hasNoChanges=function(){return!q.isChanged()};this.acl$.pipe(Ye(this.destroyed$)).subscribe(this.gotAcl);this.subscriptions.add(cZ(e,this.isChanged,!1))};U(eZ,BI);eZ.\u0275dir=BI.\u0275dir;var L4b=function(a){return[].concat(u(new Set([].concat(u(a.admins),u(a.appenders)))))};eZ.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};
eZ.prototype.resetEdits=function(){var a;this.admins=[].concat(u(null!=(a=this.latestCompactPolicy.admins)?a:[]));var b;this.appenders=[].concat(u(null!=(b=this.latestCompactPolicy.appenders)?b:[]));var c;this.readers=[].concat(u(null!=(c=this.latestCompactPolicy.readers)?c:[]));this.allAppenders=L4b(this)};
var K4b=function(a){var b=a.admins,c;a=null!=(c=a.latestCompactPolicy.admins)?c:[];var d;c=null==(d=pna())?void 0:d.getEmail();c=void 0===c?"":c;Mna(b,a)?b=!1:(d="2:"+c,a=a.includes(d),b=!b.includes(d),b=a&&b);return b};eZ.\u0275fac=function(a){return new (a||eZ)(F(UL),F(tP),F(LK),F(WK),F(dZ),F(aN),F(fM),F(PJ))};
eZ.\u0275cmp=v({type:eZ,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[gf,Ac],decls:22,vars:24,consts:[[1,"flex-kids-y"],[1,"muted","type-s","margin-s-bottom"],[3,"users","usersChange","isValid"],[3,"users","includeAliases","containerChips","usersChange","isValid"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange","isValid"],["target","_blank",3,"href"],["class","margin-top flex-kids-x gap-s",4,"ngIf"],[1,"margin-top",
"flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"gmat-button","medium",3,"disabled","matTooltip","click"],["mat-button","","type","button",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(G(0,"form",0)(1,"label"),P(2,"Admins"),H(),G(3,"p",1),P(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),H(),G(5,"b-multi-user-input",2),K("usersChange",function(c){b.admins=c;b.allAppenders=L4b(b)})("isValid",
function(c){return b.validity.admins=c}),H(),G(6,"label"),P(7,"View and append"),H(),G(8,"p",1),P(9,"Reorder hotlist, add/remove issues"),H(),G(10,"b-multi-user-input",3),K("usersChange",function(c){b.appenders=c;b.allAppenders=L4b(b)})("isValid",function(c){return b.validity.appenders=c}),H(),G(11,"label"),P(12,"View only"),H(),G(13,"p",1),P(14,"View the hotlist"),H(),G(15,"b-multi-user-input",4),K("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),H()(),
G(16,"p"),P(17," See "),G(18,"a",5),P(19,"access control documentation"),H(),P(20," for an explanation of the settings.\n"),H(),O(21,aOa,5,4,"div",6));a&2&&(B(5),sf("disabled",b.isReadOnly),D("users",b.admins),B(5),sf("disabled",b.isReadOnly),D("users",b.appenders)("includeAliases",!0)("containerChips",Nf(18,H4b,Nf(16,G4b,b.admins))),B(5),sf("disabled",b.isReadOnly),D("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Nf(22,H4b,Nf(20,I4b,b.allAppenders))),B(3),D("href",
b.accessControlLink,Kd),B(3),D("ngIf",!b.isReadOnly))},dependencies:[sx,iy,cy,fy,pB,$E,YY],styles:["[_nghost-%COMP%] {\n      display: block;\n      max-width: 600px;\n      padding: 16px; \n    }\n    label[_ngcontent-%COMP%] {\n      font-weight: bold;\n      line-height: 2em;\n    }"]});
var M4b=["hotlistName"],fZ=function(a,b,c,d){BI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.events=c;this.isReadOnly=!1;this.id$=new T.ReplaySubject(1);this.hotlist$=this.id$.pipe(Xe(function(f){return e.fridge.watchOne(f)}));this.isArchived=!1;this.localEdits={};this.gotHotlist=function(f){e.latestHotlist=f;var h;e.isArchived=null!=(h=null==f?void 0:f.archived)?h:!1;e.resetEdits(f)};this.gotErr=function(f){e.snackBar.open(ym(f)||"Error saving the hotlist","close",{panelClass:"error"})};
this.didSave=function(){e.snackBar.open("Hotlist saved",void 0,{duration:2500});e.events.hotlistChanged.next()};this.isChanged=function(){var f,h=null!=(f=e.latestHotlist)?f:{};return!Ei(h,e.localEdits)};this.hasNoChanges=function(){return!e.isChanged()};this.save=function(){e.fridge.save(e.localEdits).subscribe({next:e.didSave,error:e.gotErr})};this.revert=function(){e.resetEdits(e.latestHotlist)};this.hotlist$.pipe(Ye(this.destroyed$)).subscribe(function(f){e.gotHotlist(f)});this.subscriptions.add(cZ(d,
this.isChanged,!1))};U(fZ,BI);fZ.\u0275dir=BI.\u0275dir;fZ.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;null==(b=a.hotlistName)||b.nativeElement.focus()})};fZ.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};fZ.prototype.resetEdits=function(a){var b;this.localEdits=null!=(b=Fi(a))?b:{}};fZ.\u0275fac=function(a){return new (a||fZ)(F(sL),F(LK),F(WK),F(dZ))};
fZ.\u0275cmp=v({type:fZ,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&Zf(M4b,5);if(a&2){var c;Yf(c=ag())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[gf,Ac],decls:10,vars:5,consts:[["name","hotlist",1,"flex-kids-y"],["for","hotlist-name",1,"required"],["type","text","id","hotlist-name","name","name","required","","aria-required","true","autocomplete","off",3,"disabled","ngModel","ngModelChange"],["hotlistName",""],["for","hotlist-description",
1,"margin-top"],["id","hotlist-description","name","description",3,"disabled","ngModel","ngModelChange"],["class","margin-top flex-kids-x gap-s",4,"ngIf"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"gmat-button","medium",3,"disabled","matTooltip","click"],["mat-button","","type","button",1,"gmat-button","medium",3,"disabled","matTooltip","click"],[3,"hotlistId"]],template:function(a,b){a&1&&(G(0,"form",0)(1,"label",1),P(2,"Name"),H(),G(3,"input",
2,3),K("ngModelChange",function(c){return b.localEdits.name=c}),H(),G(5,"label",4),P(6,"Description"),H(),G(7,"textarea",5),K("ngModelChange",function(c){return b.localEdits.description=c}),P(8,"  "),H(),O(9,bOa,7,7,"div",6),H());a&2&&(B(3),D("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.name),B(4),D("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.description),B(2),D("ngIf",!b.isReadOnly))},dependencies:[sx,iy,Fg,by,cy,sy,hy,fy,pB,$E,WY,Fx],styles:["[_nghost-%COMP%]{display:block;max-width:600px;padding:16px}label[_ngcontent-%COMP%]{font-weight:bold;line-height:2em}textarea[_ngcontent-%COMP%]{min-height:150px;resize:vertical}input.ng-invalid[_ngcontent-%COMP%], input.ng-invalid.ng-touched[_ngcontent-%COMP%]:not(.mat-input-element){border:1px solid;border-color:#ea4335;border-color:var(--bad)}\n/*# sourceMappingURL=edit_hotlist_basic.css.map */"]});
var gZ=function(a,b){BI.call(this);var c=this;this.hotlists=a;this.acls=b;this.id$=new T.ReplaySubject(1);this.hotlist$=this.id$.pipe(Xe(function(d){return c.hotlists.watchOne(d)}))};U(gZ,BI);gZ.\u0275dir=BI.\u0275dir;gZ.prototype.isThinking=function(a){var b=a?co(a):void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};gZ.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};gZ.\u0275fac=function(a){return new (a||gZ)(F(sL),F(UL))};
gZ.\u0275cmp=v({type:gZ,selectors:[["b-edit-hotlist-header"]],inputs:{id:["hotlistId","id"]},features:[gf,Ac],decls:9,vars:8,consts:[[1,"flex-kids-x","align-items-center","gap-s","padded-x"],[1,"muted"],[4,"ngIf"],["class","color-bad-text",4,"ngIf"],[1,"color-bad-text"]],template:function(a,b){a&1&&(G(0,"header",0)(1,"h2")(2,"span",1),P(3),H(),O(4,cOa,2,1,"ng-container",2),Q(5,"async"),H(),O(6,dOa,2,0,"strong",3),Q(7,"async"),O(8,eOa,1,0,"b-spinner",2),H());if(a&2){var c;B(3);If(" Hotlist ",b.id,
": ");B(1);D("ngIf",R(5,4,b.hotlist$));B(2);D("ngIf",null==(c=R(7,6,b.hotlist$))?null:c.archived);B(2);D("ngIf",b.isThinking(b.id))}},dependencies:[sx,mN,Fx],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});
var hZ=function(){BI.call(this);this.URLS=ct;this.id$=new T.ReplaySubject(1)};U(hZ,BI);hZ.\u0275dir=BI.\u0275dir;hZ.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};hZ.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};hZ.\u0275fac=function(a){return new (a||hZ)};
hZ.\u0275cmp=v({type:hZ,selectors:[["b-edit-hotlist-toolbar"]],inputs:{id:["hotlistId","id"]},features:[gf,Ac],decls:7,vars:4,consts:[[1,"button-bar","border-bottom","padded-s"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],["mat-button","","matTooltip","View the issues tagged with this hotlist",1,"gmat-button","medium","no-visited-no-active",3,"href"],[3,"hotlistId"]],template:function(a,b){a&1&&(G(0,"section",0)(1,
"b-button",1),K("onAction",function(){return b.onPressBack()}),J(2,"b-icon",2),H(),G(3,"a",3),P(4," View Issues "),H(),J(5,"hotlist-add-issue-btn",4),Q(6,"async"),H());if(a&2){var c;B(3);D("href",b.URLS.HOTLIST_VIEW(b.id),Kd);B(2);D("hotlistId",null!==(c=R(6,2,b.id$))&&void 0!==c?c:void 0)}},dependencies:[qB,$E,yO,uH,VY,Fx],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var N4b=new jd("GMAT_TABS_OPTION");
var iZ=function(a){this.inkBarPositioner=a};iZ.prototype.isEnabled=function(){return this.inkBarPositioner===fOa};new Fv;new Ev;iZ.\u0275fac=function(a){return new (a||iZ)(F(W0b))};
iZ.\u0275dir=v({type:iZ,selectors:[["","gmat-tabs",""],["mat-tab-group"],["","mat-tab-nav-bar",""]],hostVars:2,hostBindings:function(a,b){a&2&&sf("gmat-tabs",b.isEnabled())},features:[Lf([{provide:W0b,useFactory:function(a,b,c){return a.nativeElement.hasAttribute("gmat-tabs")||c&&c.enabled?fOa:b},deps:[nd,[new Fv,W0b],[new Ev,N4b]]}])]});
var O4b={403:"You do not have permission to view this Hotlist.",404:"This Hotlist does not exist."},jZ=function(a,b,c,d){this.routeParams=a;this.pageTitle=b;this.permissions=c;this.hotlists=d;this.id=this.routeParams.hotlistId;this.resourceId=co(this.id);this.isAdmin$=this.permissions.watchOne(this.resourceId).pipe(C(function(e){return null==e?void 0:e.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(C(function(e){var f;return null!=(f=e.status)?f:-1}),C(function(e){var f;return null!=(f=
O4b[e])?f:"unknown error"}),We(void 0));this.tabIndex=0};jZ.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);window.location.hash.includes("access")&&(this.tabIndex=1)};jZ.\u0275fac=function(a){return new (a||jZ)(F(bS),F(hO),F(fM),F(sL))};
jZ.\u0275cmp=v({type:jZ,selectors:[["edit-hotlist"]],decls:4,vars:6,consts:[[4,"ngIf"],[3,"hotlistId"],[1,"bv2-view"],["gmat-tabs","",3,"selectedIndex"],["label","Basic Information"],[3,"hotlistId","isReadOnly"],["label","Access Control"],["class","muted padded-x",4,"ngIf"],[1,"muted","padded-x"],[1,"padded-x"]],template:function(a,b){a&1&&(O(0,hOa,13,14,"ng-container",0),Q(1,"async"),O(2,iOa,7,1,"ng-container",0),Q(3,"async"));a&2&&(D("ngIf",void 0===R(1,2,b.hotlistErrorMsg$)),B(2),D("ngIf",R(3,
4,b.hotlistErrorMsg$)))},dependencies:[sx,eX,cX,iZ,bP,eZ,fZ,gZ,hZ,Fx],encapsulation:2});
var kZ=function(){};kZ.\u0275fac=function(a){return new (a||kZ)};kZ.\u0275cmp=v({type:kZ,selectors:[["b-error-banner"]],inputs:{error:"error"},decls:1,vars:1,consts:[["messageType","error",4,"ngIf"],["messageType","error"]],template:function(a,b){a&1&&O(0,jOa,3,1,"b-callout",0);a&2&&D("ngIf",b.error)},dependencies:[sx,jI,kI],encapsulation:2});
var lZ=function(){};lZ.\u0275fac=function(a){return new (a||lZ)};lZ.\u0275mod=rc({type:lZ});lZ.\u0275inj=fc({imports:[[Mx,AO]]});
var mZ=function(a){this.activeSession=a;this.sessionIsExternal=a.isExternalSession()};mZ.prototype.getName=function(){return void 0===this.email?"":this.email.split("@")[0]};mZ.\u0275fac=function(a){return new (a||mZ)(F(pH))};
mZ.\u0275cmp=v({type:mZ,selectors:[["b-group-email-card"]],inputs:{email:"email"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],["role","dialog","aria-label","Group email hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow","bv2-group-email-card"],[1,"bv2-group-email-card-content"],[1,"bv2-group-email-card-name"],[1,"bv2-group-email-card-email"],["svgIcon",
"group"],["class","bv2-group-email-card-links-container",4,"ngIf"],[1,"bv2-group-email-card-links-container"],["target","_blank",1,"bv2-group-email-card-link",3,"href"],[4,"ngIf"]],template:function(a,b){a&1&&(Cf(),O(0,pOa,17,5,"ng-container",0),O(1,qOa,1,0,"ng-template",null,1,gg));if(a&2){var c=Hf(2);D("ngIf",!!Ln(b.email))("ngIfElse",c)}},dependencies:[sx,Cx,LE,pN,tN],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{--onedev-card-background: var(--surface-default, rgb(255, 255, 255));--onedev-card-title-text: var(--text-default, #202124);--onedev-card-icon: var(--icon, #5f6368);--onedev-card-secondary-text: var(--text-secondary, #5f6368);--onedev-card-link-color: var(--primary-default, #1a73e8)}.onedev-hovercard-content[_ngcontent-%COMP%]{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]{padding:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--onedev-card-link-color)}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px auto;column-gap:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{grid-row:1/span 2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{grid-row:2;grid-column:2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .chips[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:0;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{margin-top:2px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]:empty{margin-top:0px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .subcontent[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline}.onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-group-email-card[_ngcontent-%COMP%]{margin:-15px -20px -20px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]{padding:15px 60px 20px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;vertical-align:middle}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   .bv2-group-email-card-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);border-top:1px solid;border-color:#dadce0;border-color:var(--divider);padding:10px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:hover, .bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:active{text-decoration:underline}\n/*# sourceMappingURL=group_email_card.css.map */"]});
var nZ=function(){};nZ.\u0275fac=function(a){return new (a||nZ)};nZ.\u0275mod=rc({type:nZ});nZ.\u0275inj=fc({imports:[[Mx,dF,$N]]});
var Kha=function(a,b,c,d,e,f){return{"bv2-user-chip-external":a,"bv2-user-chip-non-gaia":b,"bv2-user-chip-not-accessible":c,"bv2-user-chip-container":d,selected:e,readonly:f}},oZ=function(a){BI.call(this);this.activeSession=a;this.isReadonly=!0;this.isSelected=!1;this.isWidgetDisabled=!0;this.nestedChips=this.detailedUserType=this.principalType=null;this.displayText=this.value="";this.accessLevel=void 0;this.chipSelection=new Iw;this.chipClear=new Iw;this.chipRemove=new Iw};U(oZ,BI);
oZ.\u0275dir=BI.\u0275dir;g=oZ.prototype;g.isPublicChip=function(){return 4===this.principalType&&["public_non_google","public"].includes(this.value)};g.isNonGaiaChip=function(){return 1===this.principalType};g.isContainerChip=function(){return null!==this.nestedChips};g.isUserChip=function(){return 2===this.principalType};g.isGroupChip=function(){return 3===this.principalType};g.isDomainChip=function(){return 4===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};
g.isExternalChip=function(){return 3===this.detailedUserType||4===this.detailedUserType||this.isPublicChip()};g.isExternalPartnerAccessViolated=function(){return"EXTERNAL_PARTNER"===this.accessLevel&&this.isPublicChip()};g.isInternalAccessViolated=function(){return"INTERNAL"===this.accessLevel&&(this.isExternalChip()||this.isPublicChip())};
g.getTooltip=function(){if(4!==this.principalType)return"";switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.activeSession.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All logged in users, excluding the google.com domain.";case "public":return"All logged in users.";default:throw Error("ye`"+this.value);}};
var P4b=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};oZ.\u0275fac=function(a){return new (a||oZ)(F(pH))};
oZ.\u0275cmp=v({type:oZ,selectors:[["b-contact-chip"]],inputs:{isReadonly:"isReadonly",isSelected:"isSelected",isWidgetDisabled:"isWidgetDisabled",principalType:"principalType",detailedUserType:"detailedUserType",nestedChips:"nestedChips",value:"value",displayText:"displayText",accessLevel:"accessLevel"},outputs:{chipSelection:"chipSelection",chipClear:"chipClear",chipRemove:"chipRemove"},features:[gf],decls:9,vars:15,consts:[[1,"bv2-user-chip-item",3,"ngClass","matTooltip","focus","blur"],[1,"alias-icon"],
[3,"svgIcon",4,"ngIf"],[1,"user-chip-name"],[3,"email",4,"ngIf"],[4,"ngIf"],["role","button","tabindex","-1","class","user-chip-x",3,"matTooltip","click",4,"ngIf"],["class","bv2-user-chip-nested-content-container",4,"ngIf"],[3,"svgIcon"],[3,"email"],["role","button","tabindex","-1",1,"user-chip-x",3,"matTooltip","click"],["svgIcon","close"],[1,"bv2-user-chip-nested-content-container"],[1,"bv2-user-chip-nested-content"],[1,"jfk-bubble"],["class","bv2-user-chip",4,"ngFor","ngForOf"],[1,"jfk-bubble-arrow",
"jfk-bubble-arrowup"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],[1,"bv2-user-chip"],[3,"value","detailedUserType","principalType","accessLevel","displayText"]],template:function(a,b){a&1&&(G(0,"span",0),K("focus",function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),G(1,"span",1),O(2,rOa,1,1,"mat-icon",2),H(),G(3,"div",3),O(4,sOa,2,2,"b-person-hovercard",4),O(5,tOa,2,2,"b-group-email-card",4),O(6,uOa,2,1,"div",5),H(),O(7,vOa,2,2,"div",6),O(8,
xOa,7,1,"div",7),H());a&2&&(D("ngClass",Lha(b.isExternalChip(),b.isNonGaiaChip(),b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated(),b.isContainerChip(),b.isSelected,b.isReadonly))("matTooltip",b.getTooltip()),B(2),D("ngIf",P4b(b)),B(2),D("ngIf",b.isUserChip()),B(1),D("ngIf",b.isGroupChip()),B(1),D("ngIf",!b.isUserChip()&&!b.isGroupChip()),B(1),D("ngIf",!b.isReadonly&&!b.isWidgetDisabled),B(1),D("ngIf",b.isContainerChip()))},dependencies:[vx,wx,sx,$E,LE,zR,mZ,oZ],styles:["span.bv2-user-chip-item[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:3px;display:block;height:20px;white-space:nowrap}span.bv2-user-chip-item[_ngcontent-%COMP%]   .alias-icon[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{width:18px;height:20px;margin-left:3px;margin-right:-3px;opacity:.6}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{display:inline-block;line-height:16px;margin:2px 5px;max-width:550px;overflow:hidden;text-overflow:ellipsis}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{cursor:pointer;display:inline-block}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:16px;height:20px;opacity:.6;margin-left:-3px;margin-right:2px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%]{margin-top:10px;position:relative;white-space:normal}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%]{position:absolute;width:600px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%]{z-index:900 !important;padding:10px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .bv2-user-chip[_ngcontent-%COMP%] > span.bv2-user-chip-item[_ngcontent-%COMP%]:active{border-color:#3c4043;border-color:var(--gfx)}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .jfk-bubble-arrow[_ngcontent-%COMP%] > .jfk-bubble-arrowimplbefore[_ngcontent-%COMP%]{left:-1px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .jfk-bubble-arrow[_ngcontent-%COMP%] > .jfk-bubble-arrowimplafter[_ngcontent-%COMP%]{left:0}span.bv2-user-chip-item.selected[_ngcontent-%COMP%]   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:hover:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:block}span.bv2-user-chip-item[_ngcontent-%COMP%]:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:active{border-color:#1a73e8;border-color:var(--primary)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item.bv2-user-chip-external[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg)}span.bv2-user-chip-item.bv2-user-chip-non-gaia[_ngcontent-%COMP%]{border:1px dashed;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-not-accessible[_ngcontent-%COMP%]{border:1px solid;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%]{cursor:pointer}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%] > .user-chip-name[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);border-style:dashed;height:14px}\n/*# sourceMappingURL=contact_chip.css.map */"]});
var pZ=function(){};pZ.\u0275fac=function(a){return new (a||pZ)};pZ.\u0275mod=rc({type:pZ});pZ.\u0275inj=fc({imports:[[Mx,wy,bH,dF,DS,nZ,MM,YU,pT]]});uca(YY,[wx,sx,Fg,by,hy,XU,oT,oZ],[]);
var qZ=function(){};qZ.\u0275fac=function(a){return new (a||qZ)};qZ.\u0275mod=rc({type:qZ});qZ.\u0275inj=fc({imports:[[Mx,jX]]});
var rZ=function(){};rZ.\u0275fac=function(a){return new (a||rZ)};rZ.\u0275mod=rc({type:rZ});rZ.\u0275inj=fc({providers:[{provide:N4b,useValue:{enabled:!0}}],imports:[[Mx,wy,jG,dF,bH,jX,zO,JK,qZ,dI,YN,lZ,pZ,NX,mP]]});
var sZ=function(){};sZ.\u0275fac=function(a){return new (a||sZ)};sZ.\u0275mod=rc({type:sZ});sZ.\u0275inj=fc({imports:[[fI,zO,WX,Mx,dT,mT,rZ,YX,dI,jG,MB,bH,XX]]});
var tZ=function(a,b,c,d,e){BI.call(this);this.element=a;this.location=b;this.paths=c;this.hotkeys=d;this.cdr=e;this.focusedIndex=0;this.convertUserToString=Pl;this.hotlists=[];this.registerKeys()};U(tZ,BI);tZ.\u0275dir=BI.\u0275dir;g=tZ.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
g.selectPrevious=function(){0>this.focusedIndex-1||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.registerKeys=function(){var a=this,b=gJ(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next hotlist",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous hotlist",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View hotlist detail",onPress:function(){var c=a.hotlists[a.focusedIndex];c&&a.editHotlist(c)}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=null==(b=this.element.nativeElement.querySelector("table"))?void 0:null==(c=b.rows)?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.hotlists[a].name};g.editHotlist=function(a){this.location.path(this.paths.editHotlist(a.hotlistId))};
tZ.\u0275fac=function(a){return new (a||tZ)(F(nd),F(cL),F(dL),F(fJ),F(uI,2))};
tZ.\u0275cmp=v({type:tZ,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},features:[Lf([uI]),gf],decls:26,vars:1,consts:[[1,"pop-grid","bv2-resource-list"],[1,"header-row"],[1,"focus-indicator"],[1,"bv2-columnheader-content"],[1,"pop-grid-default-th"],[1,"pop-grid-non-sort-header"],["class","bv2-resource-list-row","tabindex","0",3,"grid-focus","click","focus",4,"ngFor","ngForOf"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","hotlist-name","clickable"],
["tabindex","-1",1,"grid-link",3,"href","click"],[1,"bv2-resource-list-cell","hotlist-description","clickable"],[1,"bv2-resource-list-cell","clickable"],[1,"bv2-resource-list-cell","hotlist-id","clickable"]],template:function(a,b){a&1&&(G(0,"table",0)(1,"thead")(2,"tr",1),J(3,"th",2),G(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),P(8," Hotlist name "),H()()()(),G(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),P(13," Description "),H()()()(),G(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),P(18," Owner "),
H()()()(),G(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),P(23," ID "),H()()()()()(),G(24,"tbody"),O(25,yOa,11,9,"tr",6),H()());a&2&&(B(25),D("ngForOf",b.hotlists))},dependencies:[wx],encapsulation:2});
var uZ=function(){};uZ.\u0275fac=function(a){return new (a||uZ)};uZ.\u0275mod=rc({type:uZ});uZ.\u0275inj=fc({imports:[[Mx]]});
var vZ=function(a,b){this.bLocation=a;this.butterBar=b},Q4b=function(a,b){var c=a.bLocation.search()[b];return null!=c?Array.isArray(c)?(QK(a.butterBar,"Given multiple values for parameter "+b+"; using the first."),c[0]):"boolean"===typeof c?"":c:null};vZ.prototype.getCount=function(){var a=Q4b(this,"c");return a?Ki(a):null};var R4b=function(a){return(a=Q4b(a,"p"))?Ki(a):null};vZ.prototype.getQuery=function(){return Q4b(this,"q")};
vZ.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Ti).filter($k):null};vZ.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(ina).filter($k):null};
var wZ=function(a,b,c){c=void 0===c?!1:c;var d=function(e,f){c?a.bLocation.search(e,f,!0):a.bLocation.search(e,f)};void 0!==b.displayColumns&&d("d",null==b.displayColumns?null:(b.displayColumns||[]).map(function(e){return S4b(e)}));void 0!==b.sortColumns&&d("s",null==b.sortColumns?null:(b.sortColumns||[]).map(function(e){var f="ASCENDING"==e.direction?"asc":"desc";return S4b(e.fieldId)+":"+f}));void 0!==b.page&&d("p",b.page);void 0!==b.resultsPerPage&&d("c",b.resultsPerPage);void 0!==b.query&&d("q",
b.query)},S4b=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};vZ.\u0275fac=function(a){return new (a||vZ)(t(cL),t(OK))};vZ.\u0275prov=ec({token:vZ,factory:vZ.\u0275fac,providedIn:"root"});
var xZ=function(a){Z.call(this,a)};U(xZ,Z);xZ.prototype.getCustomField=function(){return m(this,ll,1)};xZ.prototype.setCustomField=function(a){return Ab(this,1,a)};xZ.prototype.toObject=function(){var a=null!=this?{customField:qJ(void 0,this.getCustomField())}:void 0;return a};xZ.messageId="b.CustomFieldResponse";
var yZ=function(){},zZ=function(a){this.apiResourceFactory=a;this.customfieldsResource=VFb(UFb(WFb(IJ(KJ(this.apiResourceFactory,"action/custom_fields/:customFieldId"),{transformResponse:function(b,c,d){return 200<=d&&299>=d?fl(b):b}}),{transformRequest:NFb}),{transformRequest:NFb})).build()};U(zZ,yZ);zZ.prototype.get=function(a){return this.customfieldsResource.get({customFieldId:a})};zZ.prototype.create=function(a,b){return this.customfieldsResource.create({componentId:a},b)};
zZ.prototype.update=function(a,b,c){return this.customfieldsResource.update({componentId:a,customFieldId:b},c)};zZ.prototype.delete=function(a,b){return this.customfieldsResource.delete({componentId:a,customFieldId:b}).then(function(){})};zZ.\u0275fac=function(a){return new (a||zZ)(t(JJ))};zZ.\u0275prov=ec({token:zZ,factory:zZ.\u0275fac,providedIn:"root"});var AZ=function(a){this.executor=a};U(AZ,yZ);AZ.prototype.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:xZ}).then(lqa)};
AZ.prototype.create=function(a,b){b=oqa(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:String(a)}},body:b,responseConstructor:xZ}).then(lqa)};AZ.prototype.update=function(a,b,c){b=Number(b);c=oqa(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:String(a)}},body:c,responseConstructor:xZ}).then(lqa)};
AZ.prototype.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:String(a)}},responseConstructor:null})};AZ.\u0275fac=function(a){return new (a||AZ)(t(qI))};AZ.\u0275prov=ec({token:AZ,factory:AZ.\u0275fac,providedIn:"root"});
var BZ=function(a,b,c){this.urlPreferences=a;this.userPreferencesManager=b;this.customFieldApi=c};BZ.prototype.fetch=function(a,b){a=T4b(this,a,void 0===b?null:b);return{searchPreferences:Fo({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
var T4b=function(a,b,c){var d=c?function(){return U4b(c)}:function(){return V4b(a)},e=c?function(){return W4b(c)}:function(){return X4b(a)};d=Promise.resolve(a.urlPreferences.getDisplayColumns()).then(function(k){return CZ(k)}).then(null,d).then(function(k){return CZ(k)}).then(null,bC(b.displayColumns)).then(function(k){return Y4b(a,k)});e=Promise.resolve(a.urlPreferences.getSortColumns()).then(function(k){return CZ(k)}).then(null,e).then(function(k){return CZ(k)}).then(null,bC(b.sortColumns));var f=
Promise.resolve(a.urlPreferences.getCount()).then(function(k){return CZ(k)}).then(null,function(){return Z4b(a)}).then(function(k){return CZ(k)}).then(null,bC(b.resultsPerPage)),h=Promise.resolve(a.urlPreferences.getQuery()).then(function(k){return CZ(k)}).then(null,function(){return $4b(c,function(k){return k.query})}).then(null,bC(b.query));b=R4b(a.urlPreferences)||b.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:b}},CZ=function(a){return null==a?Promise.reject(null):a},
U4b=function(a){return $4b(a,function(b){return b.displayColumn}).then(function(b){return a5b(b)})},W4b=function(a){return $4b(a,function(b){return b.sortOrder}).then(function(b){return b5b(b)})},X4b=function(a){return(0,T.firstValueFrom)(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return CZ(b)}).then(function(b){return b5b(b)})},V4b=function(a){return(0,T.firstValueFrom)(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return CZ(b)}).then(function(b){return a5b(b)})},
Z4b=function(a){return(0,T.firstValueFrom)(a.userPreferencesManager.preferences$.pipe(C(function(b){var c;return null!=(c=b.resultsPerPage)?c:null}))).then(function(b){return CZ(b)})},$4b=function(a,b){return a?a.then(function(c){c=b(c);return null==c?Promise.reject(null):c}):Promise.reject(null)},a5b=function(a){if(!a||!a.length)return null;a=Cj(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Si({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:"CANONICAL_ISSUE_ID"===b.type?"DUPLICATE_OF_ISSUE_ID":b.type})})},b5b=function(a){return a&&a.length?a.map(function(b){return void 0!==b.column?new Wi(new Si(b.column),b.order):new Wi(new Si(b.field),b.direction)}).filter(function(b){return"CUSTOM_FIELD"!=b.fieldId.type||null!=b.fieldId.customFieldId}):null},Y4b=function(a,b){if(!b)return Promise.resolve([]);for(var c={},d=[],e=r(b),f=e.next();!f.done;f=e.next())f=f.value,f.customFieldId&&f.isCustomField()&&(f.customFieldName?c[f.customFieldId]=
f.customFieldName:d.push(a.customFieldApi.get(f.customFieldId).then(function(h){c[h.customFieldId]=h.name})));a=function(){for(var h=r(b),k=h.next();!k.done;k=h.next())if(k=k.value,k.isCustomField()&&!k.customFieldName){var q=c[k.customFieldId];k.customFieldName=q?q:"Custom field "+k.customFieldId}return b};return Promise.all(d).then(a,a)};BZ.\u0275fac=function(a){return new (a||BZ)(t(vZ),t(zI),t(yZ))};BZ.\u0275prov=ec({token:BZ,factory:BZ.\u0275fac,providedIn:"root"});
var DZ=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N){BI.call(this);var L=this;this.cdr=a;this.location=b;this.$log=c;this.butterBar=e;this.analytics=f;this.issuePagination=h;this.gridPreferencesFetcher=k;this.paths=q;this.errorHandler=w;this.domSafe=y;this.timeout=E;this.hotkeys=I;this.ANALYTICS_CATEGORY="panel";this.resource=this.searchResults=this.initialSortPreferences=this.initialIssueColumns=this.displayColumns=null;this.isLoading=!1;this.page=1;this.issueColumnsInternal=[];this.sortPreferences=[];this.last=
this.first=this.isDashboardEditable=!1;this.focusedRowIndexInternal=null;this.focusedRowIndexChange=new Iw;this.resultsLoaded=new Iw;this.selectionChange=new Iw;this.isColumnSaveEnabled=!1;this.cachedSort=null;this.currentUserEmail=d.getUserEmail();this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue in the current panel",onPress:function(){var S;null==(S=L.issuesGrid)||f4b(S)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var S;
null==(S=L.issuesGrid)||g4b(S)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var S;null==(S=L.issuesGrid)||e4b(S)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var S;null==(S=L.issuesGrid)||i4b(S)}},{keys:[Mj("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var S;null==(S=L.issuesGrid)||j4b(S,!0)}},{keys:[Mj("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var S;
null==(S=L.issuesGrid)||j4b(S,!1)}},{keys:[Nj("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var S;null==(S=L.issuesGrid)||S.selectAll()}},{keys:[Nj("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var S;null==(S=L.issuesGrid)||b4b(S)}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(S){var Y=N.document.activeElement;if(1===S&&"A"===(null==
Y?void 0:Y.tagName))if(Y.href)S=L.paths.getBaseUrl(),Mi(Y.href,S)?b.url(Y.href.slice(S.length)):L.domSafe.openInNewTab(Y.href);else{var ka;null==(ka=L.issuesGrid)||RY(ka)}else{var ha;null==(ha=L.issuesGrid)||RY(ha)}}}];this.destroyed$.subscribe(function(){var S;null==(S=L.unregisterHotkeys)||S.call(L)})};U(DZ,BI);DZ.prototype.columnsChange=function(a){this.issueColumns=a};DZ.prototype.ngOnInit=function(){this.getIssues();c5b(this)};
var c5b=function(a){var b;null==(b=a.unregisterHotkeys)||b.call(a);a.isFocused?a.unregisterHotkeys=gJ(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},gPa=function(a,b){a.issuesGrid=b;h4b(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:null==(c=a.issuesGrid)?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};g=DZ.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Ti(a);if(null==d)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Wi(d,"ASC"==b?"ASCENDING":"DESCENDING");za(this.sortPreferences,function(f){return Ei(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
g.getSort=function(){if(0==this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"==a.fieldId.type?String(a.fieldId.customFieldId):Ii(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};Ei(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(u(b),u(F3b(a)));this.initialIssueColumns=Fi(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&"A"===c.target.tagName||(bo(this.analytics,this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):this.location.url(a))};g.goToPage=function(a){this.page=a;this.getIssues()};g.refreshResults=function(){WM(this.issuePagination);this.getIssues()};g.exportCsv=function(){xP(this.domSafe,this.getCsvUrl())};
g.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};g.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;var b=this.resource?Promise.resolve(this.resource):this.loadResource();return this.doSearch(b).catch(function(c){a.$log.warn("WARNING: unable to doSearch()",c)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this,c=this.getGridPreferencesDefaults(),d=this.gridPreferencesFetcher.fetch(c,a.then(function(){return{query:null!=b.resource.query?b.resource.query:null,displayColumn:b.resource.displayColumn,sortOrder:b.resource.sortOrder}}));a=d.searchPreferences.then(function(e){if(!e.query)return Promise.reject(null);e=b.getSearchParams(e);b.searchParams=e;return DKb(b.issuePagination,e)});a.catch(function(e){"number"===typeof e?b.goToPage(e):e&&b.errorHandler.errorHandler(null,
e)});return Fo({searchResultsPage:a,displayColumns:d.displayColumns}).then(function(e){var f=e.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.sortPreferences=f.params.sortColumns||[];b.initialSortPreferences||(b.initialSortPreferences=Fi(b.sortPreferences));d.displayColumns.then(function(h){b.initColumns(h,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);b.timeout.schedule(function(){var h=b.issuePagination.focusedIssueIndex_;-1!=h&&(b.focusedRowIndex=h-f.startIndex)})})};
g.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:d5b,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=G3b(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):e5b).length)).map(function(c){return new Si(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;PK(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=Fi(a.issueColumns);a.initialSortPreferences=Fi(a.sortPreferences);a.cdr.detectChanges()})};
g.discardChanges=function(){bo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(u(this.initialIssueColumns||[]));this.initialSortPreferences&&!Ei(this.initialSortPreferences,this.sortPreferences)&&(ua(this.sortPreferences),Wt(maa,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
g.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!Ei(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!Ei(this.initialSortPreferences,this.sortPreferences):!1};g.isEditable=function(){return!!this.resource&&Ll(this.resource.ownerUser)===this.currentUserEmail};g.getMetaColumns=function(){return e5b};
g.getSearchParams=function(a){a=Fi(a);a.resultsPerPage=10;a.page=this.page;0!=this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.location.url();return a};
ki.Object.defineProperties(DZ.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ei(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,bo(this.analytics,this.ANALYTICS_CATEGORY,"columnModification"))}},focusedRowIndex:{configurable:!0,enumerable:!0,set:function(a){var b=this.isFocused;this.focusedRowIndexInternal!==a&&(this.focusedRowIndexInternal=a,this.focusedRowIndexChange.emit(a));this.isFocused!==b&&c5b(this)},get:function(){return this.focusedRowIndexInternal}},
isFocused:{configurable:!0,enumerable:!0,get:function(){return null!==this.focusedRowIndex}}});var e5b=[SY,TY,UY],d5b="priority type title assignee status issueId modifiedTime".split(" ").map(Ti);DZ.\u0275fac=function(a){return new (a||DZ)(F(uI),F(cL),F(RK),F(pH),F(OK),F(SM),F(VM),F(BZ),F(dL),F(SK),F(vP),F(nI),F(fJ),F(Window))};
DZ.\u0275dir=v({type:DZ,viewQuery:function(a,b){a&1&&Zf(QY,5);if(a&2){var c;Yf(c=ag())&&(b.issuesGrid=c.first)}},inputs:{panel:"panel",isDashboardEditable:"isDashboardEditable",first:"first",last:"last",focusedRowIndex:"focusedRowIndex"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",resultsLoaded:"resultsLoaded",selectionChange:"selectionChange"},features:[gf]});
var EZ=function(a,b){this.dialog=a;this.appEvents=b;this.last=this.first=!1};EZ.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Nn("Are you sure you want to remove this item? It will be removed from the bookmark group permanently."),onConfirm:function(){a.appEvents.dashboardPanels.remove.next(a.panelId)}})};EZ.\u0275fac=function(a){return new (a||EZ)(F(aN),F(WK))};
EZ.\u0275cmp=v({type:EZ,selectors:[["b-panel-controls"]],inputs:{panelId:"panelId",first:"first",last:"last"},decls:6,vars:1,consts:[["mat-icon-button","","aria-label","Customize list view",1,"gmat-button","small","bv2-grid-settings-button",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],["menu",""],["matMenuContent",""],["mat-menu-item","","class","bv2-panel-move-to-top-menuitem",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-panel-move-up-menuitem",3,"click",4,"ngIf"],["mat-menu-item",
"","class","bv2-panel-move-down-menuitem",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-panel-move-to-bottom-menuitem",3,"click",4,"ngIf"],["mat-menu-item","",1,"bv2-panel-remove-edit-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-to-top-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-up-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-down-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem",3,"click"]],template:function(a){a&1&&(G(0,
"div")(1,"button",0),J(2,"mat-icon",1),H(),G(3,"mat-menu",null,2),O(5,DOa,6,4,"ng-template",3),H()());if(a&2){var b=Hf(4);B(1);D("matMenuTriggerFor",b)}},dependencies:[sx,QE,OE,TE,NE,LE,pB],encapsulation:2});var FZ=function(){};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275mod=rc({type:FZ});FZ.\u0275inj=fc({imports:[[Mx,UE,dF,jG]]});
var GZ=function(){};GZ.\u0275fac=function(a){return new (a||GZ)};GZ.\u0275mod=rc({type:GZ});GZ.\u0275inj=fc({imports:[[Mx,dF]]});
var HZ=function(){};HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275mod=rc({type:HZ});HZ.\u0275inj=fc({imports:[[Mx,GZ]]});
var IZ=function(){};IZ.\u0275fac=function(a){return new (a||IZ)};IZ.\u0275mod=rc({type:IZ});IZ.\u0275inj=fc({imports:[[Mx,$N,HZ]]});
var JZ=function(){};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275mod=rc({type:JZ});JZ.\u0275inj=fc({imports:[[Mx,GZ]]});
var KZ=function(){};KZ.prototype.getValue=function(){return this.row[this.column.name]||""};KZ.prototype.isCustomField=function(){return this.column.isCustomField};
KZ.prototype.getCustomFieldValue=function(){var a;if(!(a=this.row.customFieldValueMap[this.column.name])){a=this.row;var b=this.column.name;a.customFieldMap&&b?(b=b.toLowerCase(),a=(b=a.customFieldNameToIdMap[b])?a.customFieldValueMap[String(b)]||null:null):a=null}if(!a)return null;a=new lJ(a);Ei(this.customFieldValue,a)||(this.customFieldValue=a);return this.customFieldValue};KZ.\u0275fac=function(a){return new (a||KZ)};
KZ.\u0275cmp=v({type:KZ,selectors:[["pop-grid-default-cell"]],inputs:{row:"row",column:"column"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"customFieldValue",4,"ngIf"],[3,"customFieldValue"]],template:function(a,b){a&1&&(O(0,EOa,2,2,"span",0),O(1,FOa,1,1,"b-custom-field-value-display",1));a&2&&(D("ngIf",!b.isCustomField()),B(1),D("ngIf",b.isCustomField()))},dependencies:[sx,JV],encapsulation:2,changeDetection:0});
var LZ=function(){};LZ.\u0275fac=function(a){return new (a||LZ)};LZ.\u0275mod=rc({type:LZ});LZ.\u0275inj=fc({imports:[[Mx,bH,KV]]});uca(CY,[wx,sx,Cx,HY,KZ],[]);
var MZ=function(){};MZ.\u0275fac=function(a){return new (a||MZ)};MZ.\u0275mod=rc({type:MZ});MZ.\u0275inj=fc({imports:[[Mx,$N]]});
var NZ=function(){};NZ.\u0275fac=function(a){return new (a||NZ)};NZ.\u0275mod=rc({type:NZ});NZ.\u0275inj=fc({imports:[[Mx,MZ,eQ]]});
var OZ=function(){};OZ.\u0275fac=function(a){return new (a||OZ)};OZ.\u0275mod=rc({type:OZ});OZ.\u0275inj=fc({imports:[[LY,Mx,UE,eI,bH,jG,MB,nB,dI,LZ,GZ,IZ,eQ,JZ,MM,DS,FX,mY,NZ,dT,WN,IV,$N,IX,lV]]});
var PZ=function(a,b,c){this.hotlistsApi=a;this.butterBar=b;this.appEvents=c};
PZ.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,w=b[c],y=b[d].position;qaa(b,c,d);null==f||f();PK(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,w.issueId,y).then(function(){for(var E=k,I=r(b),N=I.next();!N.done;N=I.next())N.value.position=E,E+=q?-1:1;null==f||f();PK(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
PZ.\u0275fac=function(a){return new (a||PZ)(t(pL),t(OK),t(WK))};PZ.\u0275prov=ec({token:PZ,factory:PZ.\u0275fac,providedIn:"root"});
var f5b=["actionsMenuIconButton"],QZ=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical"};QZ.prototype.trackByIndex=function(a){return a};QZ.prototype.onKeydown=function(a,b){if(13===a.keyCode&&!a.shiftKey)this.onAction(a,b)};QZ.prototype.onAction=function(a,b){return me(function(c){if("mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button)return c.return();"action"!==b.type&&"select"!==b.type||b.action(a);oe(c)})};QZ.prototype.ngOnInit=function(){};
QZ.\u0275fac=function(a){return new (a||QZ)};
QZ.\u0275cmp=v({type:QZ,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&Zf(f5b,5);if(a&2){var c;Yf(c=ag())&&(b.actionsMenuIconButton=c.first)}},inputs:{menuItems:"menuItems",buttonLabel:"buttonLabel",buttonIcon:"buttonIcon",header:"header"},decls:6,vars:4,consts:[["mat-icon-button","","class","gmat-button medium","aria-haspopup","true",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],[1,"b-actions-menu-panel"],["class","bv2-menu-header",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],
["mat-icon-button","","aria-haspopup","true",1,"gmat-button","medium",3,"matMenuTriggerFor"],["actionsMenuIconButton",""],[1,"icon-s",3,"svgIcon"],[1,"bv2-menu-header"],[4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["class","icon-s",3,"svgIcon",4,"ngIf"],["class","hint",4,"ngIf"],["submenu","matMenu"],[1,"hint"],["mat-menu-item","",3,"disabled","click","mouseup","keydown",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","click","mouseup","keydown",
4,"ngIf"],["mat-menu-item","",3,"disabled","click","mouseup","keydown"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","click","mouseup","keydown"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"]],template:function(a,b){a&1&&(O(0,GOa,3,3,"button",0),G(1,"mat-menu",null,1)(3,"div",2),O(4,HOa,2,1,"div",3),O(5,VOa,3,2,"ng-container",4),H()());a&2&&(D("ngIf",0<b.menuItems.length),B(4),D("ngIf",b.header),B(1),D("ngForOf",b.menuItems)("ngForTrackBy",b.trackByIndex))},dependencies:[QE,
OE,TE,wx,sx,LE,pB],styles:["[_nghost-%COMP%]{display:inline-block}.mat-menu-item[_ngcontent-%COMP%]{align-items:center;display:flex}.mat-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:8px}.mat-menu-item[_ngcontent-%COMP%]   .hint[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-left:auto;padding-left:16px}  .b-actions-menu-panel .mat-menu-item[disabled]{pointer-events:auto}\n/*# sourceMappingURL=actions_menu.css.map */"],changeDetection:0});
var RZ=function(a){this.buttonRef=a;this.toRefocus=!1};RZ.prototype.ngOnChanges=function(){var a=this;this.disabled?(document.activeElement!==this.buttonRef.nativeElement||this.toRefocus||(this.toRefocus=!0),this.buttonRef.nativeElement.disabled=!0):(this.buttonRef.nativeElement.disabled=!1,document.activeElement!==this.buttonRef.nativeElement&&this.toRefocus&&setTimeout(function(){a.buttonRef.nativeElement.focus();a.toRefocus=!1}))};RZ.\u0275fac=function(a){return new (a||RZ)(F(nd))};
RZ.\u0275dir=v({type:RZ,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},features:[Ac]});
var SZ=function(){this.pageChange=new Iw;this.resultsPerPageChange=new Iw;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};SZ.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};var g5b=function(a){a.searchResults&&a.pageChange.emit({page:a.searchResults.params.page-1})};
ki.Object.defineProperties(SZ.prototype,{menuItems:{configurable:!0,enumerable:!0,get:function(){var a=this;return this.resultsPerPageOptions.map(function(b){return{type:"select",label:String(b),action:function(){a.resultsPerPageChange.emit({option:b})},selected:!!a.searchResults&&a.searchResults.params.resultsPerPage===b,disabled:!!a.searchResults&&a.searchResults.params.resultsPerPage===b}})}}});SZ.\u0275fac=function(a){return new (a||SZ)};
SZ.\u0275cmp=v({type:SZ,selectors:[["b-pagination"]],inputs:{searchResults:"searchResults",resultsPerPageFixed:"resultsPerPageFixed"},outputs:{pageChange:"pageChange",resultsPerPageChange:"resultsPerPageChange"},decls:7,vars:4,consts:[[1,"bv2-appbar-page"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems",4,"ngIf"],["aria-live","polite","role","alert","class","bv2-appbar-pagenums",4,"ngIf"],["mat-icon-button","","focusBack","","color","primary",
"mat-tooltip","Go to previous page","aria-label","Go to previous page",1,"large","left","compact",3,"disabled","click","keydown.enter"],["svgIcon","arrow-left",1,"large"],["mat-icon-button","","focusBack","","color","primary","mat-tooltip","Go to next page","aria-label","Go to next page",1,"large","right","compact",3,"disabled","click","keydown.enter"],["svgIcon","arrow-right",1,"large"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems"],["aria-live",
"polite","role","alert",1,"bv2-appbar-pagenums"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,WOa,1,1,"b-actions-menu",1),O(2,XOa,6,3,"span",2),G(3,"button",3),K("click",function(){return g5b(b)})("keydown.enter",function(c){g5b(b);return c.stopPropagation()}),J(4,"mat-icon",4),H(),G(5,"button",5),K("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),J(6,"mat-icon",6),H()());a&2&&(B(1),D("ngIf",b.searchResults&&0<b.searchResults.issues.length&&
!b.resultsPerPageFixed),B(1),D("ngIf",b.searchResults&&0<b.searchResults.issues.length),B(1),D("disabled",!(null==b.searchResults?0:b.searchResults.hasPreviousPage())),B(2),D("disabled",!(null==b.searchResults?0:b.searchResults.hasNextPage())))},dependencies:[sx,pB,LE,QZ,RZ],encapsulation:2});
var TZ=function(){};TZ.\u0275fac=function(a){return new (a||TZ)};TZ.\u0275mod=rc({type:TZ});TZ.\u0275inj=fc({imports:[[UE,Mx,dF,jG,bH]]});
var UZ=function(){};UZ.\u0275fac=function(a){return new (a||UZ)};UZ.\u0275mod=rc({type:UZ});UZ.\u0275inj=fc({imports:[[]]});
var VZ=function(){};VZ.\u0275fac=function(a){return new (a||VZ)};VZ.\u0275mod=rc({type:VZ});VZ.\u0275inj=fc({imports:[[Mx,jG,dF,TZ,UZ]]});
var WZ=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y){DZ.call(this,c,e,f,h,k,q,w,y,E,d,I,L,S,Y);this.hotlists=a;this.hotlistApi=b;this.appEvents=N;this.resource=null};U(WZ,DZ);WZ.\u0275dir=DZ.\u0275dir;g=WZ.prototype;g.ngOnInit=function(){DZ.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?DZ.prototype.setSort.call(this,a,b,!1):DZ.prototype.setSort.call(this,a,b)};
g.loadResource=function(){var a=this,b=this.hotlistApi.get(this.hotlistId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};
g.saveResource=function(){var a=this;if(this.resource)return this.hotlistApi.updateMetadata(this.hotlistId,this.resource).then(function(b){a.resource=b;a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId,origin:"hotlist-panel"});PK(a.butterBar,'Saved changes to hotlist "'+b.name+'".');bo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});QK(this.butterBar,"Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},DZ.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};g.getMetaColumns=function(a){a=a.params.sortColumns||[];return 0==a.length||1==a.length&&"POSITION"==a[0].fieldId.type?h5b:i5b};g.getSearchParams=function(a){a=DZ.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;return a};
g.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;bo(c.analytics,c.ANALYTICS_CATEGORY,"issueDragDrop")})};WZ.\u0275fac=function(a){return new (a||WZ)(F(PZ),F(pL),F(uI,2),F(SK),F(cL),F(RK),F(pH),F(OK),F(SM),F(VM),F(BZ),F(dL),F(vP),F(WK),F(nI),F(fJ),F(wM))};
WZ.\u0275cmp=v({type:WZ,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},features:[Lf([uI]),gf],decls:9,vars:8,consts:[[1,"bv2-panel","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-hotlist-title-text"],[4,"ngIf"],["class","bv2-view-hotlist-save-form",4,"ngIf"],[3,"searchResults","resultsPerPageFixed","pageChange"],["class","bv2-panel-controls",3,"panelId",4,"ngIf"],["tabindex","0"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences have changed",4,"ngIf"],
[1,"bv2-panel-controls",3,"panelId"],["matTooltip","Display preferences have changed"],[1,"bv2-view-hotlist-save-form"],["mat-flat-button","","type","button","color","primary","matTooltip","Save changes to display preferences",1,"gmat-button","medium",3,"click"],["mat-stroked-button","","type","button","color","primary","matTooltip","Discard changes to display preferences",1,"gmat-button","medium",3,"click"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","0",4,"ngIf"],
["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],[3,"large"],["tabindex","0",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange","onRowDragDrop","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2),O(3,YOa,2,0,"div",3),O(4,ZOa,2,0,"div",3),O(5,bPa,8,5,"div",3),H(),O(6,cPa,5,0,"div",4),G(7,"b-pagination",5),
K("pageChange",function(c){return b.goToPage(c.page)}),H()(),O(8,iPa,4,3,"div",3),H());a&2&&(nf("aria-busy",b.isLoading),B(3),D("ngIf",!b.resource&&!b.isLoading),B(1),D("ngIf",!b.resource&&b.isLoading),B(1),D("ngIf",b.resource),B(1),D("ngIf",b.hasParamChanges()),B(1),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),D("ngIf",b.resource))},dependencies:[sx,QY,pB,$E,SZ,EZ,mN],encapsulation:2});var i5b=[SY,TY,UY,l4b],h5b=[SY,k4b,TY,UY,l4b],XZ=function(){};
XZ.\u0275fac=function(a){return new (a||XZ)};XZ.\u0275mod=rc({type:XZ});XZ.\u0275inj=fc({imports:[[Mx,OZ,jG,bH,VZ,FZ,YN]]});
var YZ=function(a,b){this.checker=a;this.document=b},j5b=function(a,b,c){if((void 0===c||c)&&a.checker.isFocusable(b))return b;b=b.children||b.childNodes;for(c=0;c<b.length;c++){var d=b[c].nodeType===a.document.ELEMENT_NODE?j5b(a,b[c]):null;if(d)return d}return null};YZ.\u0275fac=function(a){return new (a||YZ)(t(zy),t(ii))};YZ.\u0275prov=ec({token:YZ,factory:YZ.\u0275fac,providedIn:"root"});
var ZZ=function(a,b){this.elementRef=a;this.interactivityHelper=b;this.firstFocusableElement=null};ZZ.prototype.focus=function(){this.firstFocusableElement||(this.firstFocusableElement=j5b(this.interactivityHelper,this.elementRef.nativeElement));var a;null==(a=this.firstFocusableElement)||a.focus()};ki.Object.defineProperties(ZZ.prototype,{nativeElement:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});ZZ.\u0275fac=function(a){return new (a||ZZ)(F(nd),F(YZ))};
ZZ.\u0275dir=v({type:ZZ,selectors:[["","onedevFocusableListOption",""]]});var $Z=function(){};$Z.\u0275fac=function(a){return new (a||$Z)};$Z.\u0275mod=rc({type:$Z});$Z.\u0275inj=fc({imports:[[]]});
var k5b=["listEl"],kPa=function(a,b){return{$implicit:a,index:b}},l5b=[[["","empty",""]]],a_=function(){this.items=[];this.disabled=this.reorderable=this.removable=!1;this.itemsChange=new Iw;this.itemChange=new Iw;this.itemMove=new Iw;this.destroyed$=new T.ReplaySubject(1);this.isListFocused=!1};g=a_.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){var a=this;this.keyManager=Zz(Yz(new gA(this.viewOptions)));this.keyManager.tabOut.pipe(Ye(this.destroyed$)).subscribe(function(){var b;null==(b=a.keyManager)||b.setActiveItem(-1)})};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
g.removeAtIndex=function(a){var b=this.items.length-1;if(!(0>a||a>=this.items.length)){var c=[].concat(u(this.items.slice(0,a)),u(this.items.slice(a+1)));this.itemChange.emit({item:this.items[a],added:!1,items:c});this.itemsChange.emit(c);if(b===a)if(0===b)this.listEl.nativeElement.focus();else{var d;null==(d=this.keyManager)||d.setActiveItem(b-1)}else{var e;null==(e=this.keyManager)||e.setNextItemActive()}}};
g.handleKeydown=function(a){if(this.keyManager){var b=a.code;if("ArrowUp"===b||"ArrowDown"===b)a.preventDefault(),this.keyManager.onKeydown(a);else if("Tab"===b)this.keyManager.onKeydown(a);else if("Home"===b||"End"===b)a.preventDefault(),"Home"===b?dA(this.keyManager):eA(this.keyManager);else if("Delete"===b||"Backspace"===b){var c=this.keyManager.activeItemIndex;null!=c&&-1!==c&&this.removeAtIndex(c)}else"ArrowRight"===b?(c=this.keyManager.activeItemIndex,this.removable&&null!=c&&-1!==c&&(c=this.viewOptions.toArray()[c].nativeElement.querySelector(".delete-button"))&&
c.focus()):"ArrowLeft"===b&&(a=this.keyManager.activeItemIndex,this.removable&&null!=a&&-1!==a&&(null==(c=this.keyManager)||c.setActiveItem(a)))}};g.onDrop=function(a){var b=a.previousIndex;a=a.currentIndex;var c=[].concat(u(this.items));b===a||0>b||b>=c.length||0>a||a>=c.length||(jp(c,b,a),this.itemMove.emit({item:c[a],isNowAfter:0!==a?c[a-1]:void 0,items:c}),this.itemsChange.emit(c))};g.isActive=function(){return this.isListFocused||null!=this.keyManager&&-1!==this.keyManager.activeItemIndex};
a_.\u0275fac=function(a){return new (a||a_)};
a_.\u0275cmp=v({type:a_,selectors:[["onedev-editable-list"]],viewQuery:function(a,b){a&1&&(Zf(k5b,7),Zf(ZZ,5));if(a&2){var c;Yf(c=ag())&&(b.listEl=c.first);Yf(c=ag())&&(b.viewOptions=c)}},hostVars:2,hostBindings:function(a,b){a&2&&sf("active",b.isActive())},inputs:{items:"items",listItemTemplate:"listItemTemplate",removable:"removable",reorderable:"reorderable",disabled:"disabled",labelledById:"labelledById",valueToTextFunc:"valueToTextFunc"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",
itemMove:"itemMove"},exportAs:["onedevEditableList"],ngContentSelectors:["[empty]"],decls:13,vars:5,consts:[[3,"keydown","focus","blur"],["listEl",""],[4,"ngIf","ngIfElse"],["nonReorderableList",""],["listItem",""],["defaultListItemDisplay",""],["customListItemDisplay",""],["emptyList",""],["cdkScrollable","",1,"list-container"],["cdkDropList","","cdkDropList","",1,"drop-list",3,"cdkDropListDropped"],[4,"ngFor","ngForOf"],"role listitem onedevFocusableListOption  cdkDrag  cdkDragLockAxis y cdkDragBoundary .drop-list".split(" "),
["cdkDragHandle","",1,"drag-handler"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list-container"],["role","listitem","onedevFocusableListOption",
""],["tabindex","-1","mat-icon-button","","class","delete-button",3,"matTooltip","click",4,"ngIf"],["tabindex","-1","mat-icon-button","",1,"delete-button",3,"matTooltip","click"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],["tabindex","-1"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"empty-list"]],template:function(a,b){a&1&&(Cf(l5b),G(0,"section",0,1),K("keydown",function(d){return b.handleKeydown(d)})("focus",function(){return b.isListFocused=
!0})("blur",function(){return b.isListFocused=!1}),O(2,nPa,4,2,"ng-container",2),O(3,rPa,2,2,"ng-template",null,3,gg),H(),O(5,uPa,2,6,"ng-template",null,4,gg),O(7,vPa,2,1,"ng-template",null,5,gg),O(9,wPa,1,7,"ng-template",null,6,gg),O(11,xPa,2,0,"ng-template",null,7,gg));if(a&2){var c=Hf(4);nf("role",b.items.length?"list":null)("tabindex",b.items.length?0:-1)("aria-labelledby",b.labelledById);B(2);D("ngIf",b.reorderable)("ngIfElse",c)}},dependencies:[wx,sx,Cx,pB,$E,tA,sV,tV,mV,ZZ],styles:["[role=list][_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;font-size:13px;min-height:20px;overflow:hidden}[role=list][_ngcontent-%COMP%]   [role=listitem][_ngcontent-%COMP%]{padding-left:4px}[role=listitem][_ngcontent-%COMP%]{padding:2px 0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:16px}[role=listitem][_ngcontent-%COMP%]:focus, [role=listitem][_ngcontent-%COMP%]:focus-within{background-color:var(--option-active-bg,#e8f0fe)}[role=listitem][_ngcontent-%COMP%]:hover   .drag-handler[_ngcontent-%COMP%]{visibility:visible;cursor:move}.drag-handler[_ngcontent-%COMP%]{visibility:hidden}.delete-button[_ngcontent-%COMP%]{margin-left:auto;height:16px;width:16px;line-height:12px}.delete-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .drag-handler[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:middle;line-height:12px;color:var(--icon,#5f6368);fill:currentColor}.cdk-drag-preview[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;border-radius:2px;background-color:var(--surface-secondary,#f8f9fa);font-family:Roboto,Arial,sans-serif;font-size:13px;box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 2px 6px 2px rgba(60,64,67,.15)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drop-list-dragging[_ngcontent-%COMP%]{cursor:move}.cdk-drop-list-dragging[_ngcontent-%COMP%]   [role=listitem][_ngcontent-%COMP%]   .drag-handler[_ngcontent-%COMP%]{visibility:hidden}.list-container[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%], section[_ngcontent-%COMP%]{height:inherit}"],
changeDetection:0});
var b_=function(a){this.pathBuilder=a;this.disabled=this.reorderable=!1;this.itemsChange=new Iw;this.itemChange=new Iw;this.itemMove=new Iw;this.itemsInternal=[]};b_.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};b_.prototype.issueToText=function(a){return"Issue "+a.issueId};b_.prototype.getLink=function(a){return this.pathBuilder.editIssue(a.issueId)};
b_.prototype.getStatusTextStyle=function(a){return(a=a.status&&zn[a.status])?a.open?"":"closed":""};ki.Object.defineProperties(b_.prototype,{items:{configurable:!0,enumerable:!0,set:function(a){this.itemsInternal=a.filter(function(b){return!(b.resolved&&b.archived)})},get:function(){return this.itemsInternal}}});b_.\u0275fac=function(a){return new (a||b_)(F(cY))};
b_.\u0275cmp=v({type:b_,selectors:[["b-rel-issues-list"]],inputs:{items:"items",orderByFn:"orderByFn",reorderable:"reorderable",disabled:"disabled"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",itemMove:"itemMove"},features:[Ac],decls:3,vars:6,consts:[[3,"removable","disabled","reorderable","items","listItemTemplate","valueToTextFunc","itemsChange","itemChange","itemMove"],["relIssueTemplate",""],[1,"row",3,"ngClass"],[3,"issueStatusJs","displayMode",4,"ngIf"],["issueHovercard","onedevHovercard"],
[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["tabindex","-1",1,"keep-focus-ring","rel-issues-list-id",3,"href","onedevHovercardTrigger"],["tabindex","-1","class","keep-focus-ring rel-issues-list-title",3,"href",4,"ngIf"],[4,"ngIf"],[3,"issueStatusJs","displayMode"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""],["tabindex","-1",1,"keep-focus-ring","rel-issues-list-title",3,"href"]],template:function(a,b){a&1&&(G(0,"onedev-editable-list",0),K("itemsChange",function(d){return b.itemsChange.emit(d)})("itemChange",
function(d){return b.itemChange.emit(d)})("itemMove",function(d){return b.itemMove.emit(d)}),H(),O(1,DPa,11,9,"ng-template",null,1,gg));if(a&2){var c=Hf(2);D("removable",!0)("disabled",b.disabled)("reorderable",b.reorderable)("items",b.items)("listItemTemplate",c)("valueToTextFunc",b.issueToText)}},dependencies:[vx,sx,a_,BX,pN,qN,tN,rN,EX],styles:["[_nghost-%COMP%]     [role=listitem]:hover{background-color:#e8f0fe;background-color:var(--primary-c50)}[_nghost-%COMP%]     button.delete-button{margin-left:2px}.rel-issues-list-id[_ngcontent-%COMP%]{display:inline-block;min-width:60px;padding-left:5px;padding-right:5px}.row[_ngcontent-%COMP%]{display:flex;align-items:center}.row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){color:#202124;color:var(--text-default)}.row.closed[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){color:#5f6368;color:var(--text-muted)}.row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}\n/*# sourceMappingURL=rel_issues_list.css.map */"]});
var c_=function(){};c_.\u0275fac=function(a){return new (a||c_)};c_.\u0275mod=rc({type:c_});c_.\u0275inj=fc({imports:[[Mx,jG,bH,uV,Rz,$Z]]});
var d_=function(){};d_.\u0275fac=function(a){return new (a||d_)};d_.\u0275mod=rc({type:d_});d_.\u0275inj=fc({imports:[[Mx,c_,FX,$N,IX]]});
var m5b=[[["","footer-items",""]]],e_=function(a,b,c,d,e){BI.call(this);this.matDialog=a;this.paths=c;this.analytics=d;this.butterBar=e;this.items=[];this.itemsChange=new Iw;this.itemChange=new Iw;this.itemMove=new Iw;this.disabled=!1;this.addButtonTitle=this.removeButtonTitle="";this.hideStatus=!1;this.relDisplayMessage=this.currentResourceId=null;this.reorderable=!1;this.relation="blocked/blocking";this.startTimestamp=null;this.orderByFn=function(f,h){var k,q,w=f.status?null!=(q=null==(k=zn[f.status])?
void 0:k.sortOrder)?q:0:0,y,E;k=h.status?null!=(E=null==(y=zn[h.status])?void 0:y.sortOrder)?E:0:0;return w===k?f.issueId-h.issueId:w-k};this.enableWtdmMvpUi=rH(b,"enableWtdmMvpUi")};U(e_,BI);e_.\u0275dir=BI.\u0275dir;e_.prototype.ngOnInit=function(){};e_.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};
var QPa=function(a){a.matDialog.open(LX,{data:{title:a.relDisplayMessage,componentId:a.componentId,defaultChoices:[],allowMultipleIds:!0,currentResourceId:a.currentResourceId,currentResourceType:"issue"}})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(b){(null==b?0:b.length)&&n5b(a,b.map(function(c){return c.resourceId}))});bo(a.analytics,go.ISSUE_PICKER,"click",a.addButtonTitle);a.startTimestamp||(a.startTimestamp=new Date)};
e_.prototype.removeItem=function(a){if(!this.disabled){var b=[].concat(u(this.items)),c=b.find(function(d){return d.issueId===a});c&&(wa(b,c),this.itemChange.emit({item:c,added:!1,items:b}),this.itemsChange.emit(b))}};
var n5b=function(a,b){var c=new Set(a.items.map(function(f){return f.issueId})),d=b.filter(function(f){return!c.has(f)});if(0===d.length)PK(a.butterBar,"Issue was already in the list.",0);else{b=[].concat(u(a.items));d=r(d);for(var e=d.next();!e.done;e=d.next())e={issueId:e.value},b.push(e),a.itemChange.emit({item:e,added:!0,items:b});a.itemsChange.emit(b);a.startTimestamp?(b=(new Date).getTime()-a.startTimestamp.getTime(),bo(a.analytics,go.ISSUE_PICKER,"apply",a.relation,b),rKb(a.analytics,b,a.relation),
a.startTimestamp=null):bo(a.analytics,go.ISSUE_PICKER,"apply",a.relation)}};e_.prototype.getStatusTextStyle=function(a){return(a=a.status&&zn[a.status])&&(a.open?"":"closed")||""};e_.prototype.getLink=function(a){return this.paths.editIssue(a.issueId)};e_.\u0275fac=function(a){return new (a||e_)(F(HB),F(pH),F(dL),F(SM),F(OK))};
e_.\u0275cmp=v({type:e_,selectors:[["b-rel-issues-picker"]],inputs:{items:"items",disabled:"disabled",removeButtonTitle:"removeButtonTitle",addButtonTitle:"addButtonTitle",hideStatus:"hideStatus",searchLink:"searchLink",currentResourceId:"currentResourceId",relDisplayMessage:"relDisplayMessage",componentId:"componentId",reorderable:"reorderable",relation:"relation"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",itemMove:"itemMove"},features:[gf,Ac],ngContentSelectors:["[footer-items]"],
decls:7,vars:6,consts:[[1,"bv2-rel-issues-picker"],[1,"bv2-rel-issues-picker-header"],[1,"bv2-rel-issues-picker-content"],[4,"ngIf"],["class","bv2-rel-issues-picker-footer",4,"ngIf"],[3,"items","orderByFn","disabled","reorderable","itemsChange","itemChange","itemMove",4,"ngIf"],[3,"items","orderByFn","disabled","reorderable","itemsChange","itemChange","itemMove"],["class","bv2-rel-issues-picker-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"bv2-rel-issues-picker-item",3,"ngClass"],["displayMode","ICON",
3,"issueStatusJs",4,"ngIf"],[1,"bv2-rel-issues-picker-id"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"subtle-link",3,"href","onedevHovercardTrigger"],[3,"href"],["class","bv2-rel-issues-picker-id",4,"ngIf"],["class","bv2-rel-issues-picker-title",4,"ngIf"],["class","bv2-remove-icon keep-focus-ring bv2-rel-issues-picker-remove-button",3,"disabled","matTooltip","click",4,"ngIf"],["displayMode","ICON",3,"issueStatusJs"],[3,"onedevIsHovercardReady",
"issueId"],["cardBody",""],[1,"bv2-rel-issues-picker-title"],[1,"bv2-remove-icon","keep-focus-ring","bv2-rel-issues-picker-remove-button",3,"disabled","matTooltip","click"],[1,"bv2-rel-issues-picker-footer"],["mat-button","",1,"gmat-button","mat-stroked-button",3,"disabled","click"],["class","bv2-rel-issues-link",4,"ngIf"],[1,"bv2-rel-issues-link"]],template:function(a,b){a&1&&(Cf(m5b),G(0,"div",0),J(1,"div",1),G(2,"div",2),O(3,FPa,2,1,"div",3),O(4,NPa,2,1,"div",3),O(5,OPa,2,0,"div",3),H(),O(6,RPa,
5,3,"div",4),H());a&2&&(B(2),sf("bv2-rel-issues-picker-content-without-footer",!b.addButtonTitle),B(1),D("ngIf",b.enableWtdmMvpUi),B(1),D("ngIf",!b.enableWtdmMvpUi),B(1),D("ngIf",!b.items.length),B(1),D("ngIf",b.addButtonTitle))},dependencies:[pB,$E,vx,wx,sx,b_,pN,qN,tN,rN,EX,BX],encapsulation:2});var f_=function(){};f_.\u0275fac=function(a){return new (a||f_)};f_.\u0275mod=rc({type:f_});f_.\u0275inj=fc({imports:[[jG,bH,Mx,NX,d_,$N,IX,FX]]});
var g_=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L){DZ.call(this,b,d,e,f,h,k,q,w,y,c,E,I,N,L);this.savedSearchApi=a;this.resource=null};U(g_,DZ);g_.\u0275dir=DZ.\u0275dir;g_.prototype.ngOnInit=function(){DZ.prototype.ngOnInit.call(this)};g_.prototype.loadResource=function(){var a=this,b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};g_.prototype.saveResource=function(){return Promise.resolve()};
g_.\u0275fac=function(a){return new (a||g_)(F(ON),F(uI,2),F(SK),F(cL),F(RK),F(pH),F(OK),F(SM),F(VM),F(BZ),F(dL),F(vP),F(nI),F(fJ),F(wM))};
g_.\u0275cmp=v({type:g_,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},features:[Lf([uI]),gf],decls:8,vars:7,consts:[[1,"bv2-panel","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],[4,"ngIf"],["tabindex","0",4,"ngIf"],[3,"searchResults","resultsPerPageFixed","pageChange"],["tabindex","0"],["class","bv2-panel-controls",3,"panelId",4,"ngIf"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences or search query have changed",
4,"ngIf"],[1,"bv2-panel-controls",3,"panelId"],["matTooltip","Display preferences or search query have changed"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","0","role","region",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],[3,"large"],["tabindex","0","role","region",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange",
"rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2),O(3,SPa,2,0,"div",3),O(4,TPa,2,0,"div",3),O(5,WPa,8,5,"div",4),H(),G(6,"b-pagination",5),K("pageChange",function(c){return b.goToPage(c.page)}),H()(),O(7,aQa,4,3,"div",3),H());a&2&&(nf("aria-busy",b.isLoading),B(3),D("ngIf",!b.resource&&!b.isLoading),B(1),D("ngIf",!b.resource&&b.isLoading),B(1),D("ngIf",b.resource),B(1),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),D("ngIf",b.resource))},
dependencies:[sx,QY,$E,SZ,EZ,mN],encapsulation:2});var h_=function(){};h_.\u0275fac=function(a){return new (a||h_)};h_.\u0275mod=rc({type:h_});h_.\u0275inj=fc({imports:[[Mx,OZ,bH,VZ,FZ,YN]]});
var i_=function(){};i_.\u0275fac=function(a){return new (a||i_)};i_.\u0275mod=rc({type:i_});i_.\u0275inj=fc({});
var j_=function(){this.label="Team"};j_.prototype.ngOnInit=function(){};j_.\u0275fac=function(a){return new (a||j_)};
j_.\u0275cmp=v({type:j_,selectors:[["b-team-breadcrumb"]],inputs:{teamPath:"teamPath",label:"label"},decls:3,vars:2,consts:[["role","navigation",1,"breadcrumb"],[1,"breadcrumb-items"],["class","breadcrumb-item",4,"ngFor","ngForOf"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"routerLink","preserveFragment"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"span",1),O(2,bQa,3,3,"span",2),H()());a&2&&(nf("aria-label",b.label),B(2),D("ngForOf",b.teamPath))},dependencies:[wx,QI],encapsulation:2});
var k_=function(){};k_.\u0275fac=function(a){return new (a||k_)};k_.\u0275mod=rc({type:k_});k_.\u0275inj=fc({imports:[[Mx,WI,jV]]});
var l_=function(a){this.bFocus=!0;this.nativeElement=a.nativeElement};l_.prototype.ngOnInit=function(){this.bFocus&&this.nativeElement.focus()};l_.prototype.ngOnChanges=function(){this.bFocus&&this.nativeElement.focus()};l_.\u0275fac=function(a){return new (a||l_)(F(nd))};l_.\u0275dir=v({type:l_,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},features:[Ac]});var m_=function(){};m_.\u0275fac=function(a){return new (a||m_)};m_.\u0275mod=rc({type:m_});m_.\u0275inj=fc({imports:[[]]});
var o5b=["form"],p5b=["numberInput"],q5b=/^\d+\.?\d*$/,r5b={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},n_=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new Iw;this.displayUnits=0;this.timeUnitEnum=r5b};
n_.prototype.ngOnInit=function(){var a=this;this.durationDays&&(this.displayUnits=0===this.durationDays%365?1:0,this.displayNumber=1===this.displayUnits?this.durationDays/365:this.durationDays);this.formSubscription=this.form.valueChanges.subscribe(function(){var b=a.form.form.getRawValue();a.displayNumber=b.numbers;a.displayUnits=b.unit;a.onValueChange()})};n_.prototype.ngAfterViewInit=function(){};
n_.prototype.onValueChange=function(){if(void 0!==this.displayNumber){switch(this.displayUnits){case 1:var a=365*this.displayNumber;break;default:a=this.displayNumber}a=Math.ceil(a)}else a=void 0;a!==this.durationDays&&(this.durationDays=a,this.durationDaysChange.emit(this.durationDays))};n_.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};n_.\u0275fac=function(a){return new (a||n_)};
n_.\u0275cmp=v({type:n_,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(Zf(o5b,7),Zf(p5b,7));if(a&2){var c;Yf(c=ag())&&(b.form=c.first);Yf(c=ag())&&(b.numberInput=c.first)}},inputs:{durationDays:"durationDays",disabled:"disabled",ariaLabel:"ariaLabel"},outputs:{durationDaysChange:"durationDaysChange"},decls:12,vars:7,consts:[["form","ngForm"],[1,"duration-picker-form"],["color","accent","appearance","outline"],["matInput","","type","number","step","1","min","0","name","numbers","placeholder",
"---",3,"ngModel","disabled","keydown","paste"],["numberInput",""],["name","unit",3,"ngModel","disabled"],["color","accent",3,"value"]],template:function(a,b){a&1&&(G(0,"form",null,0)(2,"div",1)(3,"mat-form-field",2)(4,"input",3,4),K("keydown",function(c){switch(c.key){case "-":case "e":case "E":c.preventDefault()}})("paste",function(c){var d=c.clipboardData.getData("Text");q5b.test(d)||c.preventDefault()}),H()(),G(6,"mat-form-field",2)(7,"mat-select",5)(8,"mat-option",6),P(9,"days"),H(),G(10,"mat-option",
6),P(11,"year(s)"),H()()()()());a&2&&(B(4),D("ngModel",b.displayNumber)("disabled",b.disabled),nf("aria-label",b.ariaLabel),B(3),D("ngModel",b.displayUnits)("disabled",b.disabled),B(1),D("value",b.timeUnitEnum.DAYS),B(2),D("value",b.timeUnitEnum.YEARS))},dependencies:[iy,Fg,jy,by,cy,ry,hy,fy,XB,ZB,YS,lB],styles:["[_nghost-%COMP%]     .duration-picker-form{display:flex;flex-direction:row;width:250px}[_nghost-%COMP%]     .duration-picker-form .mat-form-field{min-width:70px;padding-right:10px}[_nghost-%COMP%]     .duration-picker-form .mat-form-field .mat-form-field-flex{cursor:default}[_nghost-%COMP%]     .duration-picker-form .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]     .duration-picker-form .mat-select-arrow-wrapper{transform:none}[_nghost-%COMP%]     .mat-form-field-infix{padding:1px 0 7px}"],
changeDetection:0});var o_=function(){};o_.\u0275fac=function(a){return new (a||o_)};o_.\u0275mod=rc({type:o_});o_.\u0275inj=fc({imports:[[Mx,wy,$B,YB,ZS,m_]]});
var p_=function(a,b,c){this.dialogRef=a;this.data=b;this.documentationLinks=c};p_.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};p_.prototype.onNoClick=function(){this.dialogRef.close(!1)};p_.\u0275fac=function(a){return new (a||p_)(F(AB),F(FB),F(tP))};
p_.\u0275cmp=v({type:p_,selectors:[["b-field-state-change-confirmation-dialog"]],decls:22,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"],[1,"notice"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"div",1)(3,"p"),P(4,
" The "),G(5,"strong"),P(6),H(),P(7," field will change state from "),G(8,"strong"),P(9),H(),P(10," to "),G(11,"strong"),P(12),H(),P(13,". "),H(),O(14,cQa,6,2,"p",2),G(15,"p"),P(16,"Are you sure?"),H()(),G(17,"div",3)(18,"button",4),K("click",function(){return b.onNoClick()}),P(19," Cancel "),H(),G(20,"button",5),P(21," Confirm "),H()());a&2&&(B(1),If("Field State Change for ",b.data.fieldName,""),B(5),Jf(b.data.fieldName),B(3),Jf(b.data.oldFieldState),B(3),Jf(b.data.newFieldState),B(2),D("ngIf",
b.data.noteText),B(6),D("mat-dialog-close",!0))},dependencies:[sx,pB,IB,JB,KB,LB],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});
var s5b=["fieldStateMenuButton"],t5b=function(a){return{"mat-stroked-button":a}},q_=function(a){this.dialog=a;this.fieldName="";this.fieldState=1;this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new Iw;this.FieldStateProto=NEb;this.defaultLabel="Default";this.menuLabel="Error";this.msgs={visibleName:"Visible",hiddenName:"Hidden",visibleDescription:"the field will always be in the main field section",hiddenDescription:"the field will always be in the hidden field section",
inheritDescription:"allow the parent component to determine whether the field is visible or hidden",becomesHiddenWarning:"Hiding this field will not result in any loss of data, but the field value will no longer be visible by  default for issues in this component and its subcomponents.",becomesInheritedWarning:"If a parent component hides this field in the future, the field will no longer be visible by default for issues in this component and its subcomponents."}};q_.prototype.ngOnInit=function(){this.updateMenuButton()};
q_.prototype.ngOnChanges=function(){this.updateMenuButton()};
var v5b=function(a,b){b!==a.fieldState&&(a.confirmationDialog?u5b(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},u5b=function(a,b){var c=2===b||1===b&&!a.enabledOnParent,d=1!==a.fieldState&&1===b,e=void 0;2!==a.fieldState&&(1!==a.fieldState||a.enabledOnParent)&&c?e=a.msgs.becomesHiddenWarning:d&&(e=a.msgs.becomesInheritedWarning);a.dialog.open(p_,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:w5b(a,a.fieldState),newFieldState:w5b(a,b),noteText:e}})._afterClosed.pipe(Me()).subscribe(function(f){f?
(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};q_.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=w5b(this,this.fieldState)};var w5b=function(a,b){switch(b){case 1:return a.defaultLabel;case 2:return a.msgs.hiddenName;case 3:return a.msgs.visibleName;default:bh(b,"Unknown FieldState.")}};q_.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};
q_.\u0275fac=function(a){return new (a||q_)(F(HB))};
q_.\u0275cmp=v({type:q_,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&Zf(s5b,5,nd);if(a&2){var c;Yf(c=ag())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},features:[Ac],decls:33,vars:18,consts:[["mat-button","",1,"field-state-menu-button","gmat-button","medium",3,"ngClass","disabled","matMenuTriggerFor"],
["fieldStateMenuButton",""],[1,"field-state-menu-button-inner"],[1,"field-state-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"field-state-dropdown-icon"],["fieldStateMenu","matMenu"],[1,"field-state-menu"],[1,"menu-row-container","default-container"],["mat-menu-item","",1,"default-button","field-state-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description","gmat-caption"],["mat-menu-item",
"",1,"field-state-option",3,"click"],[1,"menu-row-container"],[1,"state-info"]],template:function(a,b){a&1&&(G(0,"div")(1,"button",0,1)(3,"div",2),J(4,"span",3)(5,"b-icon",4),H()()(),G(6,"mat-menu",null,5)(8,"div",6)(9,"div",7)(10,"button",8),K("click",function(){return v5b(b,b.FieldStateProto.INHERIT)}),J(11,"b-icon",9),G(12,"div",10),P(13),H(),G(14,"div",11),P(15),H()()(),J(16,"mat-divider"),G(17,"button",12),K("click",function(){return v5b(b,b.FieldStateProto.DISABLED)}),G(18,"div",13)(19,"div",
14),J(20,"b-icon",9),G(21,"div",10),P(22),H(),G(23,"div",11),P(24),H()()()(),G(25,"button",12),K("click",function(){return v5b(b,b.FieldStateProto.ENABLED)}),G(26,"div",13)(27,"div",14),J(28,"b-icon",9),G(29,"div",10),P(30),H(),G(31,"div",11),P(32),H()()()()()());if(a&2){var c=Hf(7);B(1);D("ngClass",Nf(16,t5b,!b.disabled))("disabled",b.disabled)("matMenuTriggerFor",c);B(3);D("innerHTML",b.menuLabel,Jd);B(6);sf("b-menu-item-checked",b.fieldState===b.FieldStateProto.INHERIT);B(3);If(" ",b.defaultLabel,
" ");B(2);If(" ",b.msgs.inheritDescription," ");B(2);sf("b-menu-item-checked",b.fieldState===b.FieldStateProto.DISABLED);B(5);If(" ",b.msgs.hiddenName," ");B(2);If(" ",b.msgs.hiddenDescription," ");B(1);sf("b-menu-item-checked",b.fieldState===b.FieldStateProto.ENABLED);B(5);If(" ",b.msgs.visibleName," ");B(2);If(" ",b.msgs.visibleDescription," ")}},dependencies:[vx,pB,$H,QE,OE,TE,uH],styles:[".field-state-menu[_ngcontent-%COMP%]{max-width:210px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{line-height:normal}.field-state-menu-button-inner[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.field-state-menu-button[disabled][_ngcontent-%COMP%]{border:none}.field-state-menu-button[disabled][_ngcontent-%COMP%]   .field-state-dropdown-icon[_ngcontent-%COMP%]{display:none}"]});
var r_=function(){};r_.\u0275fac=function(a){return new (a||r_)};r_.\u0275mod=rc({type:r_});r_.\u0275inj=fc({imports:[[Mx,jG,MB,eI,UE,dI,zO]]});
var x5b=new jd("XapHatsSurveyApiKey"),y5b=new jd("XapHatsSurveyLocale"),z5b=new jd("XapHatsSurveyWindow"),A5b=new jd("XapHatsSurveyListnrProductId");
var B5b=new Map([[0,1],[1,2]]),s_=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:null!=c?c:"en-US",window:d};h=Xzb(Zzb,"help.service.Lazy.create",b,{apiKey:h.apiKey||h.apiKey,environment:h.environment||h.environment,helpCenterPath:h.helpCenterPath||h.helpCenterPath,locale:h.locale||h.locale||"en-US".replace(/-/g,"_"),nonce:h.nonce||h.nonce,productData:h.productData||h.productData,receiverUri:h.receiverUri||h.receiverUri,renderApiUri:h.renderApiUri||h.renderApiUri,theme:h.theme||h.theme,
window:h.window||h.window});return new dH(h)};this.helpService=e?e.runOutsideAngular(f):f()},Zp=function(a,b,c){c=void 0===c?{}:c;var d=void 0===d?{}:d;var e=d.anonymous?void 0:d.authUser||0;return(new T.Observable(function(f){a.helpService.requestSurvey({triggerId:b,enableTestingMode:d.enableTestingMode,nonProd:d.nonProd,callback:function(h){null!=h.surveyData&&f.next(h.surveyData);f.complete()},authuser:e})})).pipe(Xe(function(f){return new T.Observable(function(h){var k;a.helpService.presentSurvey({surveyData:f,
colorScheme:d.theme?B5b.get(d.theme):1,authuser:e,customZIndex:null!=(k=d.zIndex)?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,listener:{surveyClosed:function(){h.complete()}}});h.next(f.surveyMetadata)})}))};s_.\u0275fac=function(a){return new (a||s_)(t(x5b),t(A5b),t(y5b,8),t(z5b,8),t(ef,8))};s_.\u0275prov=ec({token:s_,factory:s_.\u0275fac,providedIn:"any"});
var t_=function(a,b,c,d,e,f,h){BI.call(this);this.cdr=a;this.paths=b;this.errorHandler=c;this.relatedIssuesService=d;this.analytics=e;this.hatsService=f;this.refreshMagicBox=!1;this.refreshMagicBoxChange=new Iw;this.hideHeader=this.showInline=!1;this.issueTitle="";this.issue={};this.customFieldMap={};this.numIssues=5;this.headerChange=new Iw;this.isRefreshing=this.showSuggestedDupes=!1;this.page=1;this.endIndex=this.startIndex=this.numPages=this.numTotalResults=0;this.magicBoxIssues=[];this.magicBoxLoading=
!0;this.refresh$=new T.Subject;this.CATEGORIES=go;this.enableDupSearchControl=rH(h,"enableDupSearchControl");this.enableDupSearchA=rH(h,"enableDupSearchA");this.enableDupSearchB=rH(h,"enableDupSearchB");this.enableDupSearchC=rH(h,"enableDupSearchC");this.enableSimilarIssues=h.isInternalSession()&&(this.enableDupSearchControl||this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC)};U(t_,BI);t_.\u0275dir=BI.\u0275dir;
t_.prototype.ngOnInit=function(){var a=this;this.fetchIssues();this.refresh$.pipe(Je(750),Ye(this.destroyed$)).subscribe(function(){a.refresh()})};t_.prototype.ngOnChanges=function(a){if(!Object.values(a).some(function(c){return c.isFirstChange()})){var b=!1;a.componentId&&(this.showInline&&(this.showInline=!1),b=!0);a.showInline&&(b=!0);this.enableSimilarIssues&&a.issue&&(this.showSuggestedDupes=C5b(this),this.headerChange.emit(gQa(this)),this.refresh$.next());b&&this.refresh()}};
var C5b=function(a){var b;return!!a.issue.title||!!a.issue.comment||!!a.issue.priority||!!a.issue.type||0<(null!=(b=a.issue.hotlistId)?b:[]).length||a.hasCustomFieldValue()};t_.prototype.hasCustomFieldValue=function(){return this.issue.customField?0<this.issue.customField.map(function(a){return new lJ(a)}).filter(function(a){return!a.isEmpty()}).length:!1};t_.prototype.refresh=function(){this.isRefreshing=!0;this.page=1;this.magicBoxIssues=[];this.fetchIssues()};
t_.prototype.isLoadingAsyncResults=function(){return this.isRefreshing};
t_.prototype.searchAsync=function(a){var b=this,c=this.page;this.relatedIssuesService.get(a,null,null,!0,"modified_time:desc",this.numIssues,c).then(function(d){if(d.issueDigests){var e=d.issueDigests.map(function(f){return{id:f.issueId,title:f.title,href:b.paths.editIssue(f.issueId)}});1===b.page&&(b.magicBoxIssues=[]);b.magicBoxIssues=b.enableSimilarIssues?[].concat(u(b.magicBoxIssues),u(e)):e;e=b.numIssues;b.numTotalResults=d.numTotalResults;b.numPages=Math.ceil(b.numTotalResults/e);b.startIndex=
0===b.numTotalResults?0:(c-1)*e+1;b.endIndex=Math.min(b.startIndex+e-1,b.numTotalResults);b.magicBoxLoading=!1;b.viewAllHref=b.paths.listIssues({q:a,s:"modified_time:desc"});b.totalText=b.getTotalText(b.numTotalResults,c,e,1===c);b.cdr.detectChanges()}else b.magicBoxIssues=[],b.numPages=0,b.page=0,b.numTotalResults=0,b.totalText="0",b.startIndex=0,b.endIndex=0,b.magicBoxLoading=!1},function(d){b.errorHandler.errorHandler(null,d)}).finally(function(){b.isRefreshing=!1})};
var gQa=function(a){return a.showSuggestedDupes?"Similar Issues":"Recent Issues"};t_.prototype.fetchIssues=function(a){a&&(this.page=a);this.componentId&&(this.isRefreshing=!0,a=this.showSuggestedDupes?D5b(this):"componentid:"+this.componentId+" status:open",this.searchAsync(a))};
var D5b=function(a){var b=Xk(a.issue.componentId),c=a.issue.title;b=(b?"componentid:"+b:"")+" "+(c?"title:("+c+")":"");if(a.enableDupSearchControl)return b;c=Xk(a.issue.comment);b=b+" "+(c?"comment:("+c+")":"");if(a.enableDupSearchA)return b;c=Xk(a.issue.type);var d=Xk(a.issue.priority);b=b+" "+(d?"priority:"+d:"")+" "+(c?"type:"+c:"");if(a.enableDupSearchB)return b;c=Xk(a.issue.hotlistId);b=b+" "+(!c||1>(null==c?void 0:c.length)?"":"hotlistid:("+(c.join(" | ")+")"))+" "+E5b(a,Xk(a.issue.customField));
return a.enableDupSearchC?b:""},E5b=function(a,b){return!b||1>(null==b?void 0:b.length)?"":b.map(function(c){return new lJ(c)}).filter(function(c){return!c.isEmpty()}).map(function(c){return F5b(a,c)}).join(" ")},F5b=function(a,b){if(b.isEmpty())return"";var c="customfield"+b.customFieldId+":";switch(a.getCustomFieldType(b)){case "TEXT":var d='"'+b.textValue+'"';break;case "DATE":d=G5b(b.dateValue);break;case "ENUM":d='"'+b.enumValue+'"';break;case "NUMERIC":d=""+b.numericValue;break;case "REPEATED_TEXT":d=
'("'+b.repeatedTextValue.values.join('" | "')+'")';break;case "REPEATED_DATE":d="("+b.repeatedDateValue.values.map(function(e){return G5b(e)}).join(" | ")+")";break;case "REPEATED_ENUM":d='("'+b.repeatedEnumValue.values.join('" | "')+'")';break;case "REPEATED_NUMERIC":d="("+b.repeatedNumericValue.values.join(" | ")+")"}return d?c+d:""},G5b=function(a){return a?a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2):""};
t_.prototype.getCustomFieldType=function(a){var b,c;return null!=(c=null==(b=this.customFieldMap[a.customFieldId])?void 0:b.type)?c:""};t_.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};t_.prototype.getGroupName=function(){return this.enableDupSearchControl?"BaseVariant":this.enableDupSearchA?"VariantA":this.enableDupSearchB?"VariantB":this.enableDupSearchC?"VariantC":"Control"};
t_.\u0275fac=function(a){return new (a||t_)(F(uI,2),F(dL),F(SK),F(zX),F(SM),F(s_),F(pH))};
t_.\u0275cmp=v({type:t_,selectors:[["b-magic-box"]],inputs:{componentId:"componentId",refreshMagicBox:"refreshMagicBox",showInline:"showInline",hideHeader:"hideHeader",issueTitle:"issueTitle",issue:"issue",customFieldMap:"customFieldMap",numIssues:"numIssues"},outputs:{refreshMagicBoxChange:"refreshMagicBoxChange",headerChange:"headerChange"},features:[Lf([zX,uI]),gf,Ac],decls:1,vars:1,consts:[["class","bv2-magic-box",4,"ngIf"],[1,"bv2-magic-box"],[4,"ngIf"],["class","magic-box-text",4,"ngIf"],["class",
"magic-box-more",4,"ngIf"],["class","magic-box-load",4,"ngIf"],["class","magic-box-all",4,"ngIf"],["class","magic-box-pager",4,"ngIf"],["class","unstyled feedback-button","type","button","matTooltip","Send feedback for the suggested similar issues",3,"click",4,"ngIf"],[1,"magic-box-pager"],["class","magic-box-pagenums",4,"ngIf"],["format","icon","size","large","tooltip","Previous page","b-aria-label","Previous page",1,"left","compact",3,"disabled","onAction"],["name","arrow-left","size","large"],
["format","icon","size","large","tooltip","Next page","b-aria-label","Next page",1,"right","compact",3,"disabled","onAction"],["name","arrow-right","size","large"],[1,"magic-box-pagenums"],["type","button","matTooltip","Send feedback for the suggested similar issues",1,"unstyled","feedback-button",3,"click"],["svgIcon","feedback-outline",1,"icon-s","gfx-muted"],[1,"magic-box-text"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",
"location","init",4,"onedevHovercardLazyBody"],["target","_blank",1,"magic-box-title",3,"href","onedevHovercardTrigger","click"],[3,"onedevIsHovercardReady","issueId","location","init"],["cardBody",""],[1,"magic-box-more"],["target","_blank",3,"href"],[1,"magic-box-load"],["mat-button","",1,"gmat-button",3,"click"],["svgIcon","arrow-down"],[1,"magic-box-all"],["mat-button","",1,"gmat-button","primary","hovercard-action",3,"click"],["svgIcon","pop-out"]],template:function(a,b){a&1&&O(0,tQa,3,2,"div",
0);a&2&&D("ngIf",b.componentId)},dependencies:[yO,uH,mN,vx,wx,sx,EX,pN,qN,tN,rN,pB,LE],styles:[".bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:28px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-clickable[_ngcontent-%COMP%]{cursor:pointer}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item[_ngcontent-%COMP%]{padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]{display:none}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]{position:absolute;right:10px;top:5px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%]{float:left;margin-right:10px;margin-top:5px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{min-width:34px;padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]{position:absolute;right:10px;top:12px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .magic-box-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-bottom:15px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%]{border-bottom:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-load[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding-left:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-all[_ngcontent-%COMP%]{float:right}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-all[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:3px}.jfk-bubble[_ngcontent-%COMP%]{left:12px;margin:0;padding:15px 20px 15px 15px}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]{display:block}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   .magic-box-header[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin:0}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   .magic-box-scroll[_ngcontent-%COMP%]{max-height:200px;overflow-y:scroll}.d-cozy[_ngcontent-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:24px}.d-compact[_ngcontent-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:20px}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:disc}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%]{margin-top:8px}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%]{border-top:1px solid;border-color:#dadce0;border-color:var(--divider);padding:0}\n/*# sourceMappingURL=magic-box.css.map */"]});
var u_=function(){};u_.\u0275fac=function(a){return new (a||u_)};u_.\u0275mod=rc({type:u_});u_.\u0275inj=fc({imports:[[zO,dI,YN,Mx,IX,$N,jG,dF]]});
var v_=function(a,b){this.dialogRef=b;this.issueId=a.issueId;this.issueTitle=a.issueTitle};v_.prototype.close=function(){this.dialogRef.close(!1)};v_.\u0275fac=function(a){return new (a||v_)(F(FB),F(AB))};
v_.\u0275cmp=v({type:v_,selectors:[["b-unsubscribe-dialog"]],decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"gmat-body-2"],[1,"gmat-body-1"],["target","_blank",3,"href"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","dialog-primary-action",3,"click"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Unsubscribe From Issue"),H(),G(2,"mat-dialog-content")(3,"div",1),P(4," Are you sure you would like to unsubscribe from the following issue? "),
H(),J(5,"br"),G(6,"div",2)(7,"a",3)(8,"span"),P(9),H()(),P(10," - "),G(11,"span"),P(12),H()(),J(13,"br"),G(14,"div",1),P(15," By unsubscribing, you will no longer receive email updates about this issue. "),H()(),G(16,"mat-dialog-actions")(17,"button",4),K("click",function(){return b.close()}),P(18," Cancel "),H(),G(19,"button",5),K("click",function(){b.dialogRef.close(!0)}),P(20," Unsubscribe "),H()());a&2&&(B(7),Ef("href","/issues/",b.issueId,"",Kd),B(2),If("b/",b.issueId,""),B(3),Jf(b.issueTitle))},
dependencies:[JB,KB,LB,pB],encapsulation:2});
var H5b=function(a,b){return{small:a,medium:b}},I5b=function(a){return{black:a}},w_=function(a,b,c,d,e){this.activeSession=a;this.matDialogService=b;this.issueFridge=c;this.analytics=d;this.routeParams=e;this.iconOnly=!1;this.subscriptionChange=new Iw;this.showNotificationSettings=new Iw;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=cAb;this.bubblePosition=
[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:5},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-5}];this.subscriptions=new Map([["UNKNOWN_SUBSCRIPTION",{label:"Default",icon:"notifications_none_24px"}],["SUBSCRIBED_ALL_UPDATES",{label:"All Updates",icon:"notifications-active"}],["SUBSCRIBED_MAJOR_UPDATES",{label:"Major Updates",icon:"notifications-active"}],["SUBSCRIBED_CLOSURE_ONLY",{label:"Closure Only",icon:"notifications-active"}],["UNSUBSCRIBED",
{label:"Muted",icon:"notifications-off"}]])};w_.prototype.ngOnInit=function(){J5b(this)};w_.prototype.ngOnChanges=function(){this.updateMenuButton()};w_.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};w_.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var J5b=function(a){var b,c;me(function(d){if(1==d.nextAddress)return"true"!==a.routeParams.unsubscribe||a.subscription&&"UNSUBSCRIBED"===a.subscription?d.return():ne(d,(0,T.firstValueFrom)(a.issueFridge.watch(a.issueId)),2);if(3!=d.nextAddress)return(b=d.yieldResult)?ne(d,(0,T.firstValueFrom)(a.matDialogService.open(v_,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}})._afterClosed),3):d.return();if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),bo(a.analytics,go.EDIT_ISSUE,
"unsubscribeUsingDialog");oe(d)})};ki.Object.defineProperties(w_.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){null!=a&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});w_.\u0275fac=function(a){return new (a||w_)(F(pH),F(HB),F(yL),F(SM),F(bS))};
w_.\u0275cmp=v({type:w_,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},features:[Ac],decls:63,vars:29,consts:[["mat-button","",1,"notification-menu-button","gmat-button",3,"ngClass","matMenuTriggerFor","disabled"],[1,"notification-menu-button-inner"],["size","small",1,"icon",3,"name","ngClass"],[4,"ngIf"],["notificationMenu","matMenu"],
[1,"notification-menu"],[1,"menu-row-container","default-container"],["mat-menu-item","",1,"default-button","notification-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description","gmat-caption"],[1,"default-divider",3,"vertical"],["mat-menu-item","","aria-label","Settings",1,"default-settings",3,"click"],["name","settings-outline","size","small",1,"item-icon"],["mat-menu-item","","aria-label","All Updates. Receive emails for major and minor updates.",
"aria-describedby","all-updates-help",1,"notification-option",3,"click"],[1,"menu-row-container"],[1,"subscription-info"],[1,"subscription-help"],[3,"panelTemplate","overlayPositions"],["allUpdates",""],["name","help-outline","size","small",1,"subscription-help","item-icon"],["all",""],["mat-menu-item","","aria-label","Major Updates. Receive emails for major updates only.","aria-describedby","major-updates-help",1,"notification-option",3,"click"],["majorUpdates",""],["major",""],["mat-menu-item",
"",1,"notification-option",3,"click"],[1,"notification-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"notification-dropdown-icon"],["id","all-updates-help",1,"subscription-help-bubble"],[1,"subscription-help-list"],["id","major-updates-help",1,"subscription-help-bubble"]],template:function(a,b){a&1&&(G(0,"div")(1,"button",0)(2,"div",1),J(3,"b-icon",2),O(4,uQa,3,1,"ng-container",3),H()()(),G(5,"mat-menu",null,4)(7,"div",5)(8,"div",6)(9,"button",7),K("click",function(){return b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION)}),
J(10,"b-icon",8),G(11,"div",9),P(12," Default "),H(),G(13,"div",10),P(14," receive emails based on your default settings. "),H()(),J(15,"mat-divider",11),G(16,"button",12),K("click",function(f){return b.showNotificationSettings.emit(f)}),J(17,"b-icon",13),H()(),J(18,"mat-divider"),G(19,"button",14),K("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)}),G(20,"div",15)(21,"div",16),J(22,"b-icon",8),G(23,"div",9),P(24," All Updates "),H(),G(25,"div",10),
P(26," receive emails for major and minor updates. "),H()(),G(27,"div",17)(28,"xap-bubble",18,19),J(30,"b-icon",20),O(31,vQa,13,0,"ng-template",null,21,gg),H()()()(),G(33,"button",22),K("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)}),G(34,"div",15)(35,"div",16),J(36,"b-icon",8),G(37,"div",9),P(38," Major Updates "),H(),G(39,"div",10),P(40," receive emails for major updates only. "),H()(),G(41,"div",17)(42,"xap-bubble",18,23),J(44,"b-icon",20),
O(45,wQa,15,0,"ng-template",null,24,gg),H()()()(),G(47,"button",25),K("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY)}),G(48,"div",15)(49,"div",16),J(50,"b-icon",8),G(51,"div",9),P(52," Closure Only "),H(),G(53,"div",10),P(54," only receive emails when the issue is closed. "),H()()()(),G(55,"button",25),K("click",function(){return b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED)}),G(56,"div",15)(57,"div",16),J(58,"b-icon",8),G(59,"div",
9),P(60," None "),H(),G(61,"div",10),P(62," unsubscribe from further email updates. "),H()()()()()());if(a&2){var c=Hf(6),d=Hf(32),e=Hf(46);B(1);sf("icon-only",b.iconOnly);D("ngClass",Of(24,H5b,b.iconOnly,!b.iconOnly))("matMenuTriggerFor",c)("disabled",b.isAnonymous);nf("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||"UNKNOWN_SUBSCRIPTION").label);B(2);D("name",b.menuIcon)("ngClass",Nf(27,I5b,"notifications-off"===b.menuIcon));B(1);D("ngIf",!b.iconOnly);
B(5);sf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);D("vertical",!0);B(4);sf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(9);D("panelTemplate",d)("overlayPositions",b.bubblePosition);B(5);sf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);B(9);D("panelTemplate",e)("overlayPositions",b.bubblePosition);B(5);sf("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);sf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[vx,sx,pB,$H,QE,OE,TE,uH,SS],styles:[".notification-menu[_ngcontent-%COMP%]{max-width:210px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{line-height:normal}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1px 40px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-button[_ngcontent-%COMP%]{grid-column:1}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-divider[_ngcontent-%COMP%]{grid-column:2;margin:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-settings[_ngcontent-%COMP%]{grid-column:3;height:100%;padding:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-help[_ngcontent-%COMP%]{align-self:center;grid-column:3}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-info[_ngcontent-%COMP%]{grid-column:1}.notification-menu-button-inner[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.notification-menu-button-inner[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:3px}.icon-only[_ngcontent-%COMP%]{padding:0 2px}.icon-only[_ngcontent-%COMP%]   .icon.black[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}  .subscription-help-bubble{max-width:300px}  .subscription-help-bubble ul.subscription-help-list{margin-top:.5em;list-style:disc}  .notification-menu .subscription-help .mat-icon{margin:0px}  .notification-menu .subscription-help .mat-icon:hover{color:#202124;color:var(--text-high-contrast)}"]});
var x_=function(){};x_.\u0275fac=function(a){return new (a||x_)};x_.\u0275mod=rc({type:x_});x_.\u0275inj=fc({imports:[[Mx,jG,eI,UE,dI,zO,cT]]});
var y_=function(a,b){this.sloApi=a;this.cdr=b;this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new Iw;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex_=-1;this.requestIndex_=0},K5b=function(a,b){if(b){var c=a.requestIndex_++;a.sloApi.search(b).then(function(d){c>a.lastProcessedIndex_&&(a.lastProcessedIndex_=c,a.dropdownChoices=d,a.cdr.detectChanges())})}else a.dropdownChoices=[],a.onSloSelect.emit(null),a.cdr.detectChanges()};
y_.prototype.displayFn=function(a){return(null==a?void 0:a.getName())||(null==a?void 0:a.getSloId())||""};y_.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.getSloId();this.onSloSelect.emit(a);this.cdr.detectChanges()};
ki.Object.defineProperties(y_.prototype,{boundId:{configurable:!0,enumerable:!0,get:function(){return this.internalBoundId},set:function(a){var b=this;(this.internalBoundId=a)&&"0"!==this.internalBoundId?this.sloApi.get(this.internalBoundId).then(function(c){b.dropdownChoices=c?[c]:[];b.selectedSlo=c}).catch(function(){b.selectedSlo=(new sY).setSloId(b.internalBoundId)}):(this.dropdownChoices=[],this.selectedSlo=null)}}});y_.\u0275fac=function(a){return new (a||y_)(F(vY),F(uI,2))};
y_.\u0275cmp=v({type:y_,selectors:[["slo-picker"]],inputs:{isDisabled:["bv2Disabled","isDisabled"],placeholder:["bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},features:[Lf([uI])],decls:6,vars:6,consts:[[1,"bv2-slo-picker"],["matInput","","type","text","autocomplete","slo-name",1,"bv2-picker-input","form-control",3,"placeholder","ngModel","disabled","matAutocomplete","ngModelChange","click","input"],["searchInput",""],["panelWidth","574px",3,"displayWith","optionSelected"],
["auto","matAutocomplete"],["class","slo-search-result",3,"value",4,"ngFor","ngForOf"],[1,"slo-search-result",3,"value"]],template:function(a,b){if(a&1){var c=x();G(0,"div",0)(1,"input",1,2);K("ngModelChange",function(e){return b.selectedSlo=e})("click",function(){z(c);var e=Hf(2);return A(K5b(b,e.value))})("input",function(){z(c);var e=Hf(2);return A(K5b(b,e.value))});H();G(3,"mat-autocomplete",3,4);K("optionSelected",function(e){return b.updateSelectionOnChange(e)});O(5,xQa,2,2,"mat-option",5);
H()()}if(a&2){var d=Hf(4);B(1);D("placeholder",b.placeholder)("ngModel",b.selectedSlo)("disabled",b.isDisabled)("matAutocomplete",d);B(2);D("displayWith",b.displayFn);B(2);D("ngForOf",b.dropdownChoices)}},dependencies:[wx,vN,wN,lB,Fg,by,hy],encapsulation:2});
var z_=function(){};z_.\u0275fac=function(a){return new (a||z_)};z_.\u0275mod=rc({type:z_});z_.\u0275inj=fc({imports:[[Mx,yN,wy]]});
var L5b=function(a){return{"empty-list-field-indication":a}},A_=function(a){this.documentationLinks=a;this.issueRetentionDisabled=!1;this.modelChange=new Iw;this.validChange=new Iw;this.RetentionSelection=fAb};A_.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};$p(this)};
A_.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);$p(this)};var $p=function(a){var b=a.validChange,c=b.emit,d;if(d=bq(a))d=a.hasRetentionSelection(a.model.piiRetentionSelection)&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!M5b(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||N5b(a));c.call(b,d)};
A_.prototype.hasRetentionSelection=function(a){return a&&a!==this.RetentionSelection.UNSPECIFIED_RETENTION};
var bq=function(a){return a.hasRetentionSelection(a.model.retentionSelection)&&(a.model.retentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||!!a.model.retentionPeriodDays&&30<=a.model.retentionPeriodDays&&3650>=a.model.retentionPeriodDays)},aq=function(a){return a?po(a):"[unset period]"},N5b=function(a){if(!a.model.piiRetentionPeriodDays||!a.model.spiiRetentionPeriodDays||30>a.model.piiRetentionPeriodDays||30>a.model.spiiRetentionPeriodDays)return!1;var b=a.model.retentionSelection,c=a.model.retentionPeriodDays,
d=a.model.piiRetentionPeriodDays;return a.model.spiiRetentionPeriodDays>d||b===a.RetentionSelection.BUGANIZER_DEFAULT&&3650<d||b===a.RetentionSelection.CUSTOM_PERIOD&&(null==c||d>c)?!1:!0},CQa=function(a){if(!bq(a)||N5b(a))return"";var b=a.model.retentionSelection,c=a.model.piiRetentionPeriodDays,d=a.model.spiiRetentionPeriodDays;if(!c||!d||30>c||30>d)return"must be at least 30 days";if(b===a.RetentionSelection.BUGANIZER_DEFAULT)var e=3650;else b===a.RetentionSelection.CUSTOM_PERIOD&&(e=a.model.retentionPeriodDays);
return e&&c>e?30===e?"must be 30 days":"must be between 30 days and "+aq(e):"Restricted+ retention must not exceed Restricted retention."},M5b=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||60>a.model.retentionPeriodDays)},FQa=function(a){var b=a.model.piiRetentionSelection,c=a.model.piiRetentionPeriodDays,d=a.model.retentionSelection,e=a.model.retentionPeriodDays;d=b===a.RetentionSelection.INDEFINITE_RETENTION&&(d===a.RetentionSelection.INDEFINITE_RETENTION||
d===a.RetentionSelection.BUGANIZER_DEFAULT||d===a.RetentionSelection.CUSTOM_PERIOD&&!!e&&120<e);return b===a.RetentionSelection.CUSTOM_PERIOD&&!!c&&120<c||d};A_.\u0275fac=function(a){return new (a||A_)(F(tP))};
A_.\u0275cmp=v({type:A_,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled"},outputs:{modelChange:"modelChange",validChange:"validChange"},decls:30,vars:31,consts:[["aria-label","Retention settings form",1,"issue-retention-form",3,"ngClass","disabled","name","ngModel","ngModelChange"],[3,"value"],["aria-label","Custom retention period, must be between 30 days and 10 years",3,"value"],["class","duration-error",
4,"ngIf"],["class","custom-duration",4,"ngIf"],[3,"disabled","value"],["class","warning-box","id","indefinite-retention-warning-box",4,"ngIf"],["aria-label","PII Retention settings form",1,"pii-retention-form",3,"ngClass","disabled","name","ngModel","ngModelChange"],["target","_blank","rel","noopener noreferrer nofollow","aria-label","Learn more about restricted access",1,"keep-underline","keep-focus-ring"],[3,"aria-label","disabled","value"],["class","warning-box","id","indefinite-pii-retention-warning-box",
4,"ngIf"],[1,"duration-error"],[1,"custom-duration"],["ariaLabel","Custom duration",3,"disabled","durationDays","durationDaysChange"],[1,"duration-description"],["id","indefinite-retention-warning-box",1,"warning-box"],[1,"b-restricted-retention-duration-label"],["ariaLabel","Restricted retention duration",3,"disabled","durationDays","durationDaysChange"],[1,"warning-box"],["ariaLabel","Restricted+ retention duration",3,"disabled","durationDays","durationDaysChange"],["class","warning-box","id","custom-pii-retention-warning-box",
4,"ngIf"],["id","custom-pii-retention-warning-box",1,"warning-box"],["id","indefinite-pii-retention-warning-box",1,"warning-box"]],template:function(a,b){a&1&&(G(0,"mat-radio-group",0),K("ngModelChange",function(c){return b.updateSelectionOnChange(c)}),G(1,"p")(2,"b"),P(3,"Issue Retention"),H()(),G(4,"mat-radio-button",1),P(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),H(),G(6,"mat-radio-button",2),P(7," Custom retention period "),O(8,yQa,2,0,"span",3),O(9,zQa,4,
3,"div",4),H(),G(10,"mat-radio-button",5),P(11),O(12,AQa,13,0,"div",6),H()(),G(13,"mat-radio-group",7),K("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);$p(b)}),G(14,"p"),J(15,"br"),G(16,"b"),P(17,"Restricted Comments/Attachments Retention "),H(),G(18,"a",8),P(19,"Learn more "),H()(),G(20,"mat-radio-button",1),P(21," Buganizer default retention period : 60 days "),O(22,BQa,2,0,"span",3),
H(),G(23,"mat-radio-button",9),P(24," Custom retention period "),O(25,DQa,2,1,"span",3),O(26,GQa,16,7,"div",4),H(),G(27,"mat-radio-button",5),P(28," Match Issue Retention "),O(29,HQa,3,0,"div",10),H()());a&2&&(D("ngClass",Nf(27,L5b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),D("value",b.RetentionSelection.CUSTOM_PERIOD),
B(2),D("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!(b.model.retentionPeriodDays&&30<=b.model.retentionPeriodDays&&3650>=b.model.retentionPeriodDays)),B(1),D("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),D("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(1),If(" Indefinite retention period ",b.isExternal?"(Internal components only)":""," "),B(1),D("ngIf",b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION),
B(1),D("ngClass",Nf(29,L5b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Kd),B(2),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&M5b(b)),B(1),D("aria-label","Custom Retention Period,"+CQa(b))("disabled",!bq(b))("value",
b.RetentionSelection.CUSTOM_PERIOD),B(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!N5b(b)),B(1),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),D("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&FQa(b)))},dependencies:[vx,sx,by,hy,eY,gY,n_],styles:[".mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:588px}.duration-error[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);font-weight:bold}.warning-box[_ngcontent-%COMP%]{white-space:normal}.b-restricted-retention-duration-label[_ngcontent-%COMP%]{display:inline-block;width:12em}b-duration-picker[_ngcontent-%COMP%]{display:inline-block}"],
changeDetection:0});
var B_=function(){};B_.\u0275fac=function(a){return new (a||B_)};B_.\u0275mod=rc({type:B_});B_.\u0275inj=fc({imports:[[Mx,wy,nY,o_]]});
var O5b=function(){this.type="component";this.includeChildren=!1},P5b=function(){this.type="team";this.includeChildren=!1},Q5b=function(){this.type="hotlist"},R5b=function(){this.type="savedsearch"},S5b=function(){this.type="customfield"};
var T5b=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},U5b="componentid c hotlistid h savedsearchid teamid".split(" "),V5b=U5b.concat("archived assignee attachment blockedbyid blockingid canonicalid cc cccount cl comment commenter created customfield deleted deletionreason deletiontime duplicatecount effortlabel foundin inprod is lastcommenter lastmodifier mention modified modifier mute p parentid postmortem priority reporter resolved s severity star status t targetedto title type verified verifiedin verifier votecount nearestslo".split(" ")),
W5b="cl deleted deletionreason deletiontime effortlabel nearestslo postmortem teamid".split(" "),X5b="(?:\\s|^)(-?)(customfield\\d+|"+V5b.join("|")+")(:|>|<|>=|<=|=)";
var C_=function(a,b,c,d,e,f,h){BI.call(this);var k=this;this.userApi=a;this.customFieldsApi=b;this.hotlistApi=c;this.savedSearchApi=d;this.componentActions=e;this.teamsService=f;this.activeSession=h;this.query="";this.requestIndex=0;this.producers=[{match:function(q){return Y5b(k,q)}},{updateHeader:function(q){return Z5b(k,q)}},{updateHeader:function(q){return $5b(k,q)}},{updateHeader:function(q){return a6b(k,q)}},{updateHeader:function(q){return b6b(k,q)}},{updateHeader:function(q){return c6b(k,
q)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new T.Subject;this.refreshRequest$=new T.Subject;this.refreshRequest$.pipe(Je(250),Ye(this.destroyed$)).subscribe(function(q){d6b(k,q.currentRequestIndex,q.currentSearchContext)});this.sessionIsInternal=h.isInternalSession();a=new Set(V5b);Zi("enableWtdmMvpUi")||a.delete("parentid");this.sessionIsInternal||a.delete("mention");if(!this.sessionIsInternal)for(b=r(W5b),c=b.next();!c.done;c=b.next())a.delete(c.value);
this.atoms=Object.freeze(a);this.atomsWithoutOp=Object.freeze(new Set(["customfield"]))};U(C_,BI);C_.\u0275dir=BI.\u0275dir;
var d6b=function(a,b,c){for(var d=!1,e=!1,f=[],h=r(a.producers),k=h.next();!k.done;k=h.next())k=k.value,k.match&&f.push(k.match(c).then(function(q){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,u(q))}).catch(function(q){return q})),k.updateHeader&&f.push(k.updateHeader(c).then(function(q){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=q)}).catch(function(q){return q}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},Y5b=
function(a,b){if(!b.value.val){var c=b.value.idx;if(c<b.query.length&&-1===b.query.charAt(c).search("\\s"))return Promise.reject(null)}if(b.label){if(b.label.customFieldId)return e6b(a,b);switch(b.label.val){case "archived":return Promise.resolve(eq(f6b,b.value,!0));case "componentid":case "c":return g6b(a,b);case "deleted":return h6b(b);case "deletionreason":return Promise.resolve(eq(i6b,b.value,!0));case "hotlistid":case "h":return j6b(a,b);case "savedsearchid":return k6b(a,b);case "status":case "is":return Promise.resolve(eq(l6b,
b.value,!0));case "teamid":return m6b(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(eq(n6b,b.value,!0));case "severity":case "s":return Promise.resolve(eq(o6b,b.value,!0));case "inprod":case "star":case "mute":return h6b(b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];for(var d=JQa(b.value.val),e=r(a.atoms),f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&Mi(f,d.token)){var h=b.value.idx+(d.negated?1:
0);h={type:"atom",startIdx:h,endIdx:h+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};h={trackId:"atom:"+f,name:f,completionCfg:h};"customfield"===f&&(h.name="customfield[id]:[value]");c.push(h)}c.sort(function(k,q){return au(k.name,q.name)});return Promise.resolve(c)},e6b=function(a,b){return b.label&&b.label.customFieldId?a.customFieldsApi.get(b.label.customFieldId).then(function(c){if("ENUM"!==c.type||!c.allowedValue)return[];var d=c.allowedValue.map(function(e){return{trackId:"customfieldvalue:"+
e,id:e,label:"Custom field "+c.name,name:e,completionCfg:{type:"customfieldvalue",completionValue:'"'+e+'"'}}});return eq(d,b.value,!1,!1)}):Promise.reject(null)};C_.prototype.matchType=function(a){return Promise.resolve(eq(p6b,a.value,!0))};
var h6b=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(eq([{trackId:"booleanAtom:"+b+":true",label:b,name:"true",completionCfg:{enableShadowPlaceholder:!0,completionValue:"true",type:b}},{trackId:"booleanAtom:"+b+":false",label:b,name:"false",completionCfg:{enableShadowPlaceholder:!0,completionValue:"false",type:b}}],a.value,!0))},g6b=function(a,b){var c=b.value.val;return!c||dq(c,!0)?Promise.reject(null):a.componentActions.search(c).then(function(d){var e=
[],f={};d=r(d);for(var h=d.next();!h.done;f={$jscomp$loop$prop$component$1666:f.$jscomp$loop$prop$component$1666,$jscomp$loop$prop$startIdx$1667:f.$jscomp$loop$prop$startIdx$1667,$jscomp$loop$prop$endIdx$1668:f.$jscomp$loop$prop$endIdx$1668},h=d.next())f.$jscomp$loop$prop$component$1666=h.value,h=f.$jscomp$loop$prop$component$1666.componentId,f.$jscomp$loop$prop$startIdx$1667=b.value.idx,f.$jscomp$loop$prop$endIdx$1668=f.$jscomp$loop$prop$startIdx$1667+c.length,h={componentId:h,name:f.$jscomp$loop$prop$component$1666.name,
description:f.$jscomp$loop$prop$component$1666.description,trackId:"component:"+h,accessLimit:f.$jscomp$loop$prop$component$1666.accessLimit,completionCfg:{type:"component",startIdx:f.$jscomp$loop$prop$startIdx$1667,endIdx:f.$jscomp$loop$prop$endIdx$1668,completionValue:""+h,matchingString:c},componentPath:f.$jscomp$loop$prop$component$1666.componentPathInfo.componentPathId.map(function(k){return function(q,w){return{trackId:"subcomponent:"+q,id:""+q,name:String(k.$jscomp$loop$prop$component$1666.componentPathInfo.componentPathName[w]),
completionCfg:{type:"component",completionValue:String(q),startIdx:k.$jscomp$loop$prop$startIdx$1667,endIdx:k.$jscomp$loop$prop$endIdx$1668}}}}(f))},e.push(h);return e})},m6b=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||dq(c,!0))return Promise.reject(null);var d=Jj();mM(a.teamsService,c).pipe(Ye(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[],q={};e=r(e.getTeamSuggestionsList());for(var w=e.next();!w.done;q={$jscomp$loop$prop$pathNames$1670:q.$jscomp$loop$prop$pathNames$1670},
w=e.next())w=w.value,q.$jscomp$loop$prop$pathNames$1670=w.getPathNamesList(),w={trackId:"team:"+w.getId(),name:w.getName(),id:w.getId(),label:"Team "+w.getId(),pathIds:w.getPathIdsList(),pathNames:w.getPathNamesList(),description:w.getDescription(),completionCfg:{type:"team",startIdx:f,endIdx:h,completionValue:String(w.getId()),matchingString:c},teamPath:w.getPathIdsList().map(function(y){return function(E,I){return{trackId:"team:"+E,id:E,name:y.$jscomp$loop$prop$pathNames$1670[I],completionCfg:{type:"team",
completionValue:String(E),startIdx:f,endIdx:h}}}}(q))},k.push(w);d.resolve(k)},function(){d.reject()});return d.promise},Z5b=function(a,b){if(!b.label||"componentid"!==b.label.val&&"c"!==b.label.val)return Promise.reject(null);var c=new O5b;b=b.value.val;return dq(b,!0)?($t(b,"+")&&(b=b.slice(0,b.length-1),c.includeChildren=!0),a.componentActions.get(Number(b)).then(function(d){c.component=d;return c})):Promise.resolve(c)},c6b=function(a,b){if(!a.sessionIsInternal||!b.label||"teamid"!==b.label.val)return Promise.reject(null);
var c=new P5b,d=Jj(),e=b.value.val;dq(e,!0)?($t(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),mM(a.teamsService,e).pipe(Ye(a.destroyed$)).subscribe(function(f){f=f.getTeamSuggestionsList();0<f.length?(f=f[0],c.team={pathNames:f.getPathNamesList(),name:f.getName(),description:f.getDescription()}):c.team={pathNames:[e],name:e,description:""};d.resolve(c)},function(){c.team={pathNames:[e],name:e,description:""};d.resolve(c)})):d.resolve(c);return d.promise},$5b=function(a,b){if(!b.label||"hotlistid"!==
b.label.val&&"h"!==b.label.val)return Promise.reject(null);var c=new Q5b;b=b.value.val;return dq(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},a6b=function(a,b){if(!b.label||"savedsearchid"!==b.label.val)return Promise.reject(null);var c=new R5b;b=b.value.val;return dq(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},b6b=function(a,b){if(b.label&&b.label.customFieldId)var c=
b.label.customFieldId;else if(Mi(b.value.val,"customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&(c=b[1]),Tn("search-usage","customfield");else return Promise.reject(null);var d=new S5b;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},j6b=function(a,b){return dq(b.value.val)?Promise.reject(null):a.userApi.getUserHotlists().then(function(c){c=c.map(function(d){var e=d.hotlistId;return{hotlistId:e,name:d.name,trackId:"hotlist:"+e,completionCfg:{type:"hotlist",
completionValue:""+e}}});return eq(c,b.value,!1,!0)})},k6b=function(a,b){return dq(b.value.val)?Promise.reject(null):a.userApi.getUserSavedSearches().then(function(c){c=c.map(function(d){var e=d.searchId;return{searchId:e,name:d.name,query:d.query,trackId:"savedsearch:"+e,completionCfg:{type:"savedsearch",completionValue:""+e}}});return eq(c,b.value,!1,!0)})};C_.\u0275fac=function(a){return new (a||C_)(t(PJ),t(yZ),t(pL),t(ON),t(AT),t(lM),t(pH))};C_.\u0275prov=ec({token:C_,factory:C_.\u0275fac,providedIn:"root"});
var l6b="accepted assigned closed duplicate fixed infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return fq(a,"status","Status","status")}),p6b=Zi("enableWtdmMvpUi")?"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue project feature milestone epic story task".split(" ").map(function(a){return fq(a,"bugType","Type","type")}):"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue".split(" ").map(function(a){return fq(a,
"bugType","Type","type")}),n6b=["p0","p1","p2","p3","p4"].map(function(a){return fq(a,"priority","Priority","priority")}),o6b=["s0","s1","s2","s3","s4"].map(function(a){return fq(a,"severity","Severity","severity")}),f6b=["all","true","false"].map(function(a){return fq(a,"archived","Archived","archived")}),i6b=["abuse","pii","user_request","retention"].map(function(a){return fq(a,"deletionReason","Deletion Reason","deletionreason")});
var D_=function(a){this.cdr=a;this.optionsChange=new Iw};D_.prototype.ngOnInit=function(){KQa(this)};
var KQa=function(a){var b=null,c;for(c in a.options.propertyValues){var d=a.options.propertyValues[c].value;if(null===b)b=d;else if(b!=d){a.selectAllValue=null;return}}a.selectAllValue=b},LQa=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},q6b=function(a,b){if(b=void 0===b?null:b)b.preventDefault(),b.stopPropagation();a.selectAllValue=null===a.selectAllValue?!0:!a.selectAllValue;a.options.setAll(a.selectAllValue);a.optionsChange.emit(a.options);LQa(a)},r6b=function(a){var b=
[],c=!0,d;for(d in a.options.propertyValues){var e=a.options.propertyValues[d];e.value?b.push(e.displayString):c=!1}return c?a.selectAllText:b.join(", ")};D_.\u0275fac=function(a){return new (a||D_)(F(uI,2))};
D_.\u0275cmp=v({type:D_,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},features:[Lf([uI])],decls:15,vars:12,consts:[["mat-stroked-button","",1,"gmat-button","bv2-appbar-menu",3,"matMenuTriggerFor"],[1,"flex-kids-x","flex-cross-axis-centered"],[1,"bv2-property-picker-summary-text"],["svgIcon","arrow-dropdown"],["menu","matMenu"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-selectall",
"bv2-property-picker-option-row",3,"click"],[3,"checked","indeterminate","label","change"],["mat-menu-item","","class","bv2-property-picker-options","role","menuitemcheckbox",4,"ngFor","ngForOf"],["class","bv2-property-picker-error-message",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-options"],["title","option",1,"bv2-property-picker-option-row",3,"click"],[3,"checked","label","change","click"],[1,"bv2-property-picker-error-message"]],template:function(a,b){a&1&&
(G(0,"div")(1,"button",0)(2,"div",1)(3,"span",2),P(4),P(5," \u00a0 "),H(),J(6,"mat-icon",3),H()(),G(7,"mat-menu",null,4)(9,"div",5),K("click",function(d){return q6b(b,d)}),G(10,"b-checkbox",6),K("change",function(d){b.selectAllValue=d;return q6b(b)}),H()(),J(11,"mat-divider"),O(12,MQa,3,3,"div",7),Q(13,"keyvalue"),H(),O(14,NQa,2,1,"div",8),H());if(a&2){var c=Hf(8);B(1);sf("ng-invalid",!!b.errorString);D("matMenuTriggerFor",c);B(3);If(" ",r6b(b)," ");B(5);nf("aria-checked",b.selectAllValue);B(1);D("checked",
!!b.selectAllValue)("indeterminate",null===b.selectAllValue)("label",b.selectAllText);B(2);D("ngForOf",R(13,10,b.options.propertyValues));B(2);D("ngIf",!!b.errorString)}},dependencies:[wx,sx,vQ,QE,OE,TE,$H,pB,LE,Jx],styles:["[_nghost-%COMP%]   .gmat-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var s6b=function(a,b){this.displayString=a;this.value=b},t6b=function(a){this.propertyValues=a},u6b=function(a){for(var b=r(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},nRa=function(a){for(var b=r(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};t6b.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};
var E_=function(){};E_.\u0275fac=function(a){return new (a||E_)};E_.\u0275mod=rc({type:E_});E_.\u0275inj=fc({imports:[[Mx,wQ,UE,eI,jG,dF]]});
var v6b=function(a,b){this.name=a;this.secondsPerUnit=b},gq=new v6b("minute",60),hq=new v6b("hour",3600),iq=new v6b("day",86400),F_=function(){this.errorString=null;this.objectiveDurationChange=new Iw;this.objectiveBusinessDaysChange=new Iw;this.intervalUnit=iq};F_.prototype.ngOnInit=function(){w6b(this)};F_.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.isFirstChange()})&&w6b(this)};
var QQa=function(a,b){b=b.name;1!==Ki(a.intervalString)&&(b+="s");return b},w6b=function(a){2!=a.dayType&&x6b(a,iq)||x6b(a,hq)||x6b(a,gq);if(0!=a.objectiveBusinessDays||""!=a.businessDayString)a.businessDayString=""+a.objectiveBusinessDays},x6b=function(a,b){var c=a.objectiveDuration.getSeconds();return 0==c%b.secondsPerUnit?(c/=b.secondsPerUnit,0!=c||""!=a.intervalString?(a.intervalString=""+c,a.intervalUnit=b):(2==a.dayType?[gq,hq]:[gq,hq,iq]).includes(a.intervalUnit)||(a.intervalUnit=b),!0):!1},
OQa=function(a){a.errorString=a.validator(a.intervalString,a.businessDayString);SQa(a);TQa(a)},SQa=function(a){a.objectiveDuration.setSeconds(a.intervalUnit.secondsPerUnit*(Ki(a.intervalString)||0));a.objectiveDurationChange.emit(a.objectiveDuration)},TQa=function(a){a.objectiveBusinessDays=Ki(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};F_.\u0275fac=function(a){return new (a||F_)};
F_.\u0275cmp=v({type:F_,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},features:[Ac],decls:2,vars:2,consts:[["class","enabled bv2-slo-objective",4,"ngIf"],["class","disabled",4,"ngIf"],[1,"enabled","bv2-slo-objective"],["class","bv2-slo-objective-interval",
4,"ngIf"],[1,"bv2-slo-objective-interval"],["type","text",3,"ngModel","ngModelChange"],[1,"bv2-slo-objective-unit",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"bv2-slo-objective-unit"],[3,"value"],[1,"disabled"],["class","bv2-slo-objective-biz-day-text",4,"ngIf"],[4,"ngIf"],[1,"bv2-slo-objective-biz-day-text"]],template:function(a,b){a&1&&(O(0,UQa,6,6,"span",0),O(1,YQa,3,2,"span",1));a&2&&(D("ngIf",!b.isDisabled),B(1),D("ngIf",b.isDisabled))},dependencies:[wx,
sx,Fg,by,hy,YS,lB],styles:['[_nghost-%COMP%]{width:200px;line-height:29px}.bv2-slo-objective[_ngcontent-%COMP%]{display:flex}.bv2-slo-objective-interval[_ngcontent-%COMP%]{display:flex}.bv2-slo-objective-unit[_ngcontent-%COMP%]{padding-right:4px;padding-left:4px}[_nghost-%COMP%]     .mat-select-value{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--link);min-width:60px}input.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}\n/*# sourceMappingURL=slo_objective_selector.css.map */']});
var G_=function(a,b){this.typeStringToJSPB=new Map([["BUG",1],["FEATURE_REQUEST",2],["CUSTOMER_ISSUE",3],["INTERNAL_CLEANUP",4],["PROCESS",5],["VULNERABILITY",6],["PRIVACY_ISSUE",7]]);this.jspbTypeToString=new Map([[1,"BUG"],[2,"FEATURE_REQUEST"],[3,"CUSTOMER_ISSUE"],[4,"INTERNAL_CLEANUP"],[5,"PROCESS"],[6,"VULNERABILITY"],[7,"PRIVACY_ISSUE"]]);rH(b,"enableWtdmMvpUi")&&(this.typeStringToJSPB.set("PROJECT",8),this.jspbTypeToString.set(8,"PROJECT"),this.typeStringToJSPB.set("FEATURE",9),this.jspbTypeToString.set(9,
"FEATURE"),this.typeStringToJSPB.set("MILESTONE",10),this.jspbTypeToString.set(10,"MILESTONE"),this.typeStringToJSPB.set("EPIC",11),this.jspbTypeToString.set(11,"EPIC"),this.typeStringToJSPB.set("STORY",12),this.jspbTypeToString.set(12,"STORY"),this.typeStringToJSPB.set("TASK",13),this.jspbTypeToString.set(13,"TASK"));this.priorityStringToJSPB=new Map([["P0",1],["P1",2],["P2",3],["P3",4],["P4",5]]);this.jspbPriorityToString=new Map([[1,"P0"],[2,"P1"],[3,"P2"],[4,"P3"],[5,"P4"]]);this.postmortemValuesToCanonical=
new Map([["TRUE","ANY"],["FALSE","NONE"],["ANY","ANY"],["NONE","NONE"]]);this.canonicalGroupQueryKeywordToQueryValue=new Map([["ANY","any"],["NONE","none"]])},B6b=function(a,b){var c=new y6b,d=z6b(b,"type",function(f){var h=f.toUpperCase(),k=new A6b;a.typeStringToJSPB.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;var e=r(d.values);for(d=e.next();!d.done;d=e.next())c.types.push(a.typeStringToJSPB.get(d.value));d=z6b(b,"priority",function(f){var h=
f.toUpperCase(),k=new A6b;a.priorityStringToJSPB.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;e=r(d.values);for(d=e.next();!d.done;d=e.next())c.priorities.push(a.priorityStringToJSPB.get(d.value));b=z6b(b,"postmortem",function(f){var h=f.toUpperCase(),k=new A6b;a.postmortemValuesToCanonical.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=r(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},z6b=function(a,b,c){var d=new C6b;if(a=(new RegExp(b+":(\\S+)")).exec(a))for(a=a[1],a.startsWith("(")&&a.endsWith(")")&&(a=a.substring(1,a.length-1)),a=a.split("|"),b=0;b<a.length;b++){var e=c(a[b]);if(e.error){d.error=e.error;break}d.values.push(e.value)}return d};G_.\u0275fac=function(a){return new (a||G_)(t(ZH),t(pH))};G_.\u0275prov=ec({token:G_,factory:G_.\u0275fac,providedIn:"root"});
var y6b=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},C6b=function(){this.values=[];this.error=""},A6b=function(){this.error=this.value=""};
var H_=function(){};H_.prototype.validate=function(a){for(var b={},c=r(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};H_.\u0275fac=function(a){return new (a||H_)};H_.\u0275dir=v({type:H_,selectors:[["","customValidators",""]],inputs:{validators:["customValidators","validators"]},features:[Lf([{provide:Vx,useExisting:H_,multi:!0}])]});
var I_=function(a,b,c){this.constants=a;this.sloParseService=b;this.confirmationDialogService=c;this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new Iw;this.onValidation=new Iw;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.metricChoices=[0].concat(m3b);this.dayTypes=[1,2];m3b.map(function(d,e){return[d,e]});this.selectedMetric=0;this.selectedDayType=1;this.selectedMetric=
this.metricChoices[0];this.selectedDayType=1;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.anyNoneDisplayValues=new Map([["ANY","Has postmortem"],["NONE","No postmortem"]]);this.canPerformActions=!0},IRa=function(a,b,c){jq(a);a=r(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},LRa=function(a,b,c){c=ORa(a,b,c);var d=c.newOffset;c.valid&&(jq(a),wa(a.collection,b),wa(a.boundCollection,b.sloElement),a.collection.splice(d,
0,b),a.boundCollection.splice(d,0,b.sloElement),D6b(a))},ORa=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:0<=b&&b<a.collection.length,newOffset:b}},jq=function(a){a=r(a.collection);for(var b=a.next();!b.done;b=a.next())b=b.value,b.stopEditing(),b.canEdit=!0},E6b=function(a,b){var c=b.map(function(d){return new J_(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.canPerformActions=!a.openRow},tRa=function(a,b){return 0!==b&&a.constants.protoIssueTypesDisplayNames.has(b)?a.constants.protoIssueTypesDisplayNames.get(b):
" - "},yRa=function(a,b){return 0!==b&&a.constants.protoIssuePrioritiesDisplayNames.has(b)?a.constants.protoIssuePrioritiesDisplayNames.get(b):" - "},oRa=function(a,b){jq(a);wa(a.collection,b);wa(a.boundCollection,b.sloElement);D6b(a)},aRa=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Nn("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];
D6b(a)},onDismiss:function(){}});b.stopPropagation()},ZQa=function(a,b){var c=new J_(new qY,a,!0);IRa(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);D6b(a)};I_.prototype.onDrop=function(a){LRa(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var D6b=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
ki.Object.defineProperties(I_.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){E6b(this,a)}},canPerformActions:{configurable:!0,enumerable:!0,set:function(a){this.canPerformActionsInternal=a;this.onValidation.emit(a)},get:function(){return this.canPerformActionsInternal}},isDisabled:{configurable:!0,enumerable:!0,set:function(a){this.isDisabledInternal=a;if(this.collection)for(var b=r(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});I_.\u0275fac=function(a){return new (a||I_)(F(ZH),F(G_),F(aN))};
I_.\u0275cmp=v({type:I_,selectors:[["slo-elements-picker"]],inputs:{collectionInput:["collection","collectionInput"],isDisabled:"isDisabled"},outputs:{onCollectionUpdate:"onCollectionUpdate",onValidation:"onValidation"},decls:29,vars:5,consts:[[1,"bv2-slo-elements-picker"],[1,"bv2-slo-elements-table-label","edit-field-header"],["href","http://g3doc/company/teams/buganizer/user-guide/guides/define-slo#creating-a-new-slo-rule"],["matTooltip","These ordered rules determine the objectives for each type of issue for this SLO",
1,"bv2-slo-elements-table-help-icon",3,"name","size"],["class","bv2-slo-elements-actionbar",4,"ngIf"],["cellspacing","0",1,"bv2-slo-elements-table"],[1,"header-row"],[1,"bv2-slo-elements-table-order-header"],[1,"bv2-slo-elements-table-type-header"],[1,"bv2-slo-elements-table-priority-header"],[1,"bv2-slo-elements-table-postmortem-header"],[1,"bv2-slo-elements-table-metric-header"],[1,"bv2-slo-elements-table-objective-header"],[1,"bv2-slo-elements-table-daytype-header"],[1,"bv2-slo-elements-table-actions-header"],
["cdkDropList","",3,"cdkDropListData","cdkDropListDisabled","cdkDropListDropped",4,"ngIf"],["class","bv2-slo-elements-table-empty-list-description",4,"ngIf"],[1,"bv2-slo-elements-actionbar"],[1,"slo-picker-actions"],[1,"slo-picker-icon-action-icon-container"],["class","hoverable","matTooltip","Add a new rule",3,"name","size","click",4,"ngIf"],["matTooltip","Clear all rules",1,"hoverable",3,"name","size","click"],["matTooltip","Add a new rule",1,"hoverable",3,"name","size","click"],["cdkDropList",
"",3,"cdkDropListData","cdkDropListDisabled","cdkDropListDropped"],["class","bv2-slo-element-row","cdkDrag","",3,"draggable",4,"ngFor","ngForOf"],["cdkDrag","",1,"bv2-slo-element-row"],["class","bv2-slo-element-row-counter editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-type-column bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-priority-column bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-postmortem-column bv2-editable-slo-element editable-row",
4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-metric bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-objective bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-daytype bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-action editable-row",4,"ngIf"],["class","bv2-slo-element-row-counter display-row",4,"ngIf"],["class","bv2-slo-element-type-column bv2-slo-element-picker-column display-row",
4,"ngIf"],["class","bv2-slo-element-priority-column bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-postmortem-column bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-metric bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-objective bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-daytype bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-action display-row",
4,"ngIf"],[1,"bv2-slo-element-row-counter","editable-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-type-column","bv2-editable-slo-element","editable-row"],[1,"bv2-type-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-priority-column","bv2-editable-slo-element","editable-row"],[1,"bv2-priority-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-postmortem-column",
"bv2-editable-slo-element","editable-row"],[1,"bv2-postmortem-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-metric","bv2-editable-slo-element","editable-row"],["appearance","outline"],["required","true",1,"bv2-enum-field","bv2-slo-elements-picker-metric-selector",3,"ngModel","customValidators","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"bv2-slo-element-picker-column","bv2-slo-element-objective","bv2-editable-slo-element",
"editable-row"],["required","",3,"dayType","objectiveDuration","objectiveBusinessDays","validator","objectiveDurationChange","objectiveBusinessDaysChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-daytype","bv2-editable-slo-element","editable-row"],["color","accent","appearance","outline"],[1,"bv2-enum-field","bv2-slo-elements-picker-daytype-selector",3,"ngModel","ngModelChange","selectionChange"],[1,"bv2-slo-element-action","editable-row"],["matTooltip","Finish editing",1,"bv2-slo-element-action",
3,"name","size","click"],["matTooltip","Remove row",1,"bv2-slo-element-action",3,"name","size","click"],[1,"bv2-slo-element-row-counter","display-row"],[1,"bv2-slo-element-type-column","bv2-slo-element-picker-column","display-row"],[4,"ngIf"],["class","bv2-property-display-chips",4,"ngIf"],[1,"bv2-property-display-chips"],["class","bv2-property-display-chip-container",4,"ngFor","ngForOf"],[1,"bv2-property-display-chip-container"],[1,"matcher-chip-content"],[1,"bv2-slo-element-priority-column","bv2-slo-element-picker-column",
"display-row"],[1,"bv2-slo-element-postmortem-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-metric","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-objective","bv2-slo-element-picker-column","display-row"],["required","",3,"dayType","objectiveDuration","objectiveBusinessDays","isDisabled","objectiveDurationChange","objectiveBusinessDaysChange"],[1,"bv2-slo-element-daytype","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-action","display-row"],
["class","hoverable bv2-slo-element-action-edit","matTooltip","Edit this rule",3,"name","size","click",4,"ngIf"],["class","hoverable bv2-slo-element-action-more-settings","matTooltip","More options",3,"name","size","matMenuTriggerFor",4,"ngIf"],["settingsMenu","matMenu"],["mat-menu-item","","class","bv2-slo-element-action-more-settings-move-down",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-slo-element-action-more-settings-move-up",3,"click",4,"ngIf"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-below",
3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-above",3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-remove",3,"click"],["matTooltip","Edit this rule",1,"hoverable","bv2-slo-element-action-edit",3,"name","size","click"],["matTooltip","More options",1,"hoverable","bv2-slo-element-action-more-settings",3,"name","size","matMenuTriggerFor"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down",3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up",
3,"click"],[1,"bv2-slo-elements-table-empty-list-description"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div")(2,"div")(3,"label",1),P(4,"Rules"),H(),G(5,"a",2),J(6,"b-icon",3),H(),O(7,bRa,6,3,"span",4),H(),G(8,"table",5)(9,"thead")(10,"tr",6)(11,"th",7),P(12,"Order"),H(),G(13,"th",8),P(14,"Type"),H(),G(15,"th",9),P(16,"Priority"),H(),G(17,"th",10),P(18,"Postmortem"),H(),G(19,"th",11),P(20,"Metric"),H(),G(21,"th",12),P(22,"Objective"),H(),G(23,"th",13),P(24," Day Type "),H(),J(25,"th",14),H()(),
O(26,RRa,2,3,"tbody",15),H(),G(27,"div"),O(28,SRa,2,0,"div",16),H()()());a&2&&(B(6),D("name","help-outline")("size","small"),B(1),D("ngIf",!b.isDisabled),B(19),D("ngIf",b.collection&&0!=b.collection.length),B(2),D("ngIf",!b.collection||0==b.collection.length))},dependencies:[wx,sx,H_,sV,tV,by,sy,hy,uH,XB,QE,OE,TE,YS,lB,$E,D_,F_],styles:['.bv2-slo-elements-picker[_ngcontent-%COMP%]{display:block}.bv2-slo-elements-picker[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]{width:1270px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   icon[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   icon[_ngcontent-%COMP%]{cursor:pointer}.bv2-slo-elements-picker[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:inherit}.bv2-slo-elements-picker[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-select-value-text, .cdk-drag-preview[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-select-value-text{padding-left:4px;text-align:left;width:8em}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--muted);line-height:32px;text-align:center}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:13px;padding-top:2px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:3px;display:inline-block;height:20px;margin-right:4px;white-space:nowrap}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%]{display:inline-block;line-height:16px;margin:2px 5px;max-width:550px;overflow:hidden;text-overflow:ellipsis}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%]{font-weight:bold;padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%]{display:inline-block;padding-bottom:4px;padding-left:4px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%]{display:inline-block;padding-right:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);counter-reset:rulenumber;width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]{counter-increment:rulenumber}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-color:#dadce0;border-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after{content:counter(rulenumber) ""}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:before, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:128px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:0px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field.ng-invalid[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field.ng-invalid[_ngcontent-%COMP%]{padding-top:3px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%]{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric.editable-row[_ngcontent-%COMP%]{padding-top:3px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector{float:left}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input{margin:auto;padding-right:4px;text-align:right;width:3em}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%]{padding-top:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype{text-align:left;padding-left:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field{width:111px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field{padding-top:3px;padding-bottom:0px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field.ng-invalid, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field.ng-invalid{padding-top:3px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%]{padding-top:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field{padding-right:10px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-wrapper{padding:0}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper{transform:none}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-infix, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-infix{padding:1px 0 7px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%]{border:0px;height:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%]{padding-left:16px;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:200px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%]{padding-left:16px;text-align:left;width:60px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]{height:18px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%]{background:none;border:none;box-shadow:none;line-height:initial;min-width:initial;padding:0;vertical-align:initial}.cdk-drag-preview[_ngcontent-%COMP%]{counter-increment:rulenumber;background-color:#fff;background-color:var(--surface-default);box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:table}.cdk-drag-preview[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-color:#dadce0;border-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after{content:counter(rulenumber) ""}.cdk-drag-preview.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:128px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field.ng-invalid[_ngcontent-%COMP%]{padding-top:3px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%]{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric.editable-row[_ngcontent-%COMP%]{padding-top:3px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector{float:left}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input{margin:auto;padding-right:4px;text-align:right;width:3em}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%]{padding-top:6px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype{text-align:left;padding-left:16px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field{width:111px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field{padding-top:3px;padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field.ng-invalid{padding-top:3px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%]{padding-top:6px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field{padding-right:10px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-wrapper{padding:0}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper{transform:none}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-infix{padding:1px 0 7px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after{content:""}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform 250ms cubic-bezier(0, 0, 0.2, 1)}\n/*# sourceMappingURL=slo-elements-picker.css.map */']});
var J_=function(a,b,c){var d=this;this.sloElement=a;this.controllerReference=b;this.isNewElement=void 0===c?!1:c;this.metricSelectorValid=this.postmortemPickerValid=this.priorityPickerValid=this.typePickerValid=this.isEditing_=!1;this.objectiveValid=!0;this.validatePriorityPicker=function(){var e=u6b(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=null===e;return e};this.validateTypePicker=function(){var e=u6b(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
null===e;return e};this.validatePostmortemPicker=function(){var e=u6b(d.postmortemPickerValues)?null:"Postmortem can't be empty";d.postmortemPickerValid=null===e;return e};this.validateObjective=function(e,f){if(2!=d.selectedDayType){if(!e.match(/^\d+$/)||"0"===e)return d.objectiveValid=!1,"Objective must be a positive integer"}else{if(!e.match(/^\d*$/)||!f.match(/^\d*$/))return d.objectiveValid=!1,"Objective must be a positive integer";if(!(""!==e&&"0"!==e||""!==f&&"0"!==f))return d.objectiveValid=
!1,"A business day or time based duration must be specified."}d.objectiveValid=!0;return null};this.matcherText=a.getMatcher();this.selectedMetric=a.getMetric();this.selectedDayType=X(a,4,0)||1;this.selectedObjectiveDuration=F6b(m(a,hm,3));this.selectedObjectiveBusinessDays=dj(a,5);this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return G6b(d,e)}};H6b(this);this.typePickerValues=I6b(this.controllerReference.sloParseService.jspbTypeToString.keys(),function(e){return 0===d.parseResult.types.length||
d.parseResult.types.includes(e)},function(e){return tRa(d.controllerReference,e)});this.priorityPickerValues=I6b(this.controllerReference.sloParseService.jspbPriorityToString.keys(),function(e){return 0===d.parseResult.priorities.length||d.parseResult.priorities.includes(e)},function(e){return yRa(d.controllerReference,e)});this.postmortemPickerValues=I6b(this.controllerReference.anyNoneDisplayValues.keys(),function(e){return 0===d.parseResult.postmortemValues.length||d.parseResult.postmortemValues.includes(e)},
function(e){return d.controllerReference.anyNoneDisplayValues.get(e)});this.validateTypePicker();this.validatePriorityPicker();this.validatePostmortemPicker();G6b(this,this.selectedMetric)},F6b=function(a){return a?a:(new hm).setSeconds(86400)};J_.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};var G6b=function(a,b){b=0!==b;return a.metricSelectorValid=b};
J_.prototype.stopEditing=function(){if(this.isEditing_&&(this.isValid()||this.isNewElement)){this.controllerReference.openRow=null;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.isEditing_=this.isNewElement=!1;this.canEdit=!0;J6b(this);l(this.sloElement,1,this.selectedMetric);l(this.sloElement,4,this.selectedDayType);Ab(this.sloElement,3,this.selectedObjectiveDuration);l(this.sloElement,5,this.selectedObjectiveBusinessDays);H6b(this)}};
var J6b=function(a){var b=K6b(a.typePickerValues),c=K6b(a.priorityPickerValues),d=K6b(a.postmortemPickerValues);b=L6b(b,function(f){return a.controllerReference.sloParseService.jspbTypeToString.get(Ki(f))});c=L6b(c,function(f){return a.controllerReference.sloParseService.jspbPriorityToString.get(Ki(f))});d=L6b(d,function(f){return a.controllerReference.sloParseService.canonicalGroupQueryKeywordToQueryValue.get(f)});var e=[];b&&e.push("type:"+b);c&&e.push("priority:"+c);d&&e.push("postmortem:"+d);
a.matcherText=e.join(" ");a.sloElement.setMatcher(a.matcherText)},K6b=function(a){var b=[],c=!0,d=!0,e;for(e in a.propertyValues)a.propertyValues[e].value?(b.push(e),d=!1):c=!1;return c||d?[]:b},L6b=function(a,b){if(0===a.length)return"";if(1===a.length)return b(a[0]);var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
J_.prototype.startEditing=function(){if(!this.isEditing_){this.controllerReference.canPerformActions=!1;this.controllerReference.openRow=this;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.canEdit=!1;this.isEditing_=!0;H6b(this)}};var H6b=function(a){a.parseResult=B6b(a.controllerReference.sloParseService,a.matcherText)},I6b=function(a,b,c){var d={};a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),h=c(e);d[""+e]=new s6b(h,f)}return new t6b(d)};
var K_=function(){};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275mod=rc({type:K_});K_.\u0275inj=fc({imports:[[Mx,wy,ZS]]});
var L_=function(){};L_.\u0275fac=function(a){return new (a||L_)};L_.\u0275mod=rc({type:L_});L_.\u0275inj=fc({imports:[[Mx]]});
var M_=function(){};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275mod=rc({type:M_});M_.\u0275inj=fc({providers:[],imports:[[Mx,L_,uV,wy,dI,YB,UE,ZS,bH,E_,K_]]});
var N_=function(a,b,c,d,e){BI.call(this);this.element=a;this.cdr=b;this.location=c;this.paths=d;this.hotkeys=e;this.focusedIndex=0;this.slos=[]};U(N_,BI);N_.\u0275dir=BI.\u0275dir;g=N_.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};g.selectPrevious=function(){0>this.focusedIndex-1||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.ngOnInit=function(){var a=this,b=gJ(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next SLO",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous SLO",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View SLO detail",onPress:function(){var c=a.slos[a.focusedIndex];c&&a.editSlo(c);a.cdr.detectChanges()}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=null==(b=this.element.nativeElement.querySelector("table"))?void 0:null==(c=b.rows)?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.slos[a].getName()};g.editSlo=function(a){this.location.path(this.paths.editSlo(a.getSloId()))};
N_.\u0275fac=function(a){return new (a||N_)(F(nd),F(uI,2),F(cL),F(dL),F(fJ))};
N_.\u0275cmp=v({type:N_,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},features:[Lf([uI]),gf],decls:16,vars:1,consts:[[1,"pop-grid","bv2-resource-list","bv2-slo-grid"],[1,"header-row"],[1,"focus-indicator"],[1,"bv2-columnheader-content"],[1,"pop-grid-default-th"],[1,"pop-grid-non-sort-header"],["class","bv2-resource-list-row","tabindex","0",3,"grid-focus","click","focus",4,"ngFor","ngForOf"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","slo-name","clickable"],
["tabindex","-1",1,"grid-link",3,"href","click"],[1,"bv2-resource-list-cell","slo-description","clickable"]],template:function(a,b){a&1&&(G(0,"table",0)(1,"thead")(2,"tr",1),J(3,"th",2),G(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),P(8," SLO name "),H()()()(),G(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),P(13," Description "),H()()()()()(),G(14,"tbody"),O(15,TRa,7,7,"tr",6),H()());a&2&&(B(15),D("ngForOf",b.slos))},dependencies:[wx],styles:[".bv2-slo-grid[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary)}.bv2-slo-grid[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-transform:initial}"]});
var O_=function(){};O_.\u0275fac=function(a){return new (a||O_)};O_.\u0275mod=rc({type:O_});O_.\u0275inj=fc({imports:[[Mx]]});
var P_=function(a){this.log_=a},N6b=function(a,b){var c=yRb(b.getAddMask()),d=yRb(b.getRemoveMask()),e={author:b.getAuthor(),timestamp:b.getTimestamp(),diffs:[]},f=b.getAdd()||new sY;b=b.getRemove()||new sY;for(var h=r(new Set([].concat(u(c),u(d)))),k=h.next();!k.done;k=h.next()){var q=k.value;k=n3b.get(q);if("name"===q){var w=PS(d,q,b.getName());q=PS(c,q,f.getName());e.diffs.push(QS(k,w,q))}else if("description"===q)w=PS(d,q,b.getDescription()),q=PS(c,q,f.getDescription()),e.diffs.push(QS(k,w,q));
else if("parentId"===q)w=PS(d,q,String(b.getParentId())),q=PS(c,q,String(f.getParentId())),e.diffs.push(QS(k,w,q));else if("elements"===q){var y=Ts(b);w=Ts(f);y=zRb(d,q,y.map(function(E){return M6b(E)}));q=zRb(c,q,w.map(function(E){return M6b(E)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:y,added:q}})}else a.log_.error("Unsupported diff field.")}return e},M6b=function(a){var b=a.getMatcher(),c=gRa.get(a.getMetric()),d=kRa.get(X(a,4,0)),e=[];0<dj(a,5)&&e.push(dj(a,5)+" day"+(1<
dj(a,5)?"s":""));0<m(a,hm,3).getSeconds()&&e.push(QNb(1E3*m(a,hm,3).getSeconds()));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};P_.\u0275fac=function(a){return new (a||P_)(t(RK))};P_.\u0275prov=ec({token:P_,factory:P_.\u0275fac,providedIn:"root"});
var Q_=function(a){this.cdr=a;this.snoozeUntilChange=new Iw;this.snoozeUntilCommit=new Iw;this.isPickerVisible=!1};Q_.prototype.ngOnInit=function(){i_a(this)};var i_a=function(a){var b;var c=a.snoozeUntil;if(c){var d=new kC;d.setTime(1E3*c.getSeconds());c=new Ji;c.setTime(d.getTime()-gKb-864E5);d=c}else d=null;a.currentPickerDate=null!=(b=d)?b:void 0};
Q_.prototype.setDate=function(a){if(a){var b=new kC;b.setTime(a.getTime()+gKb+864E5);a=new rj;a.setSeconds(b.getTime()/1E3);b=a}else b=null;this.snoozeUntil=b;this.snoozeUntilChange.emit(this.snoozeUntil)};Q_.\u0275fac=function(a){return new (a||Q_)(F(uI,2))};
Q_.\u0275cmp=v({type:Q_,selectors:[["snooze-date-time-picker"]],inputs:{snoozeUntil:"snoozeUntil"},outputs:{snoozeUntilChange:"snoozeUntilChange",snoozeUntilCommit:"snoozeUntilCommit"},features:[Lf([uI])],decls:1,vars:1,consts:[[4,"ngIf"],[3,"clickOutside"],[3,"date","dateSelectionChange","saveClicked","cancelClicked"]],template:function(a,b){a&1&&O(0,URa,3,1,"div",0);a&2&&D("ngIf",b.isPickerVisible)},dependencies:[sx,xQ,NP],styles:["b-date-time-picker-content[_ngcontent-%COMP%]{position:absolute;right:10px;z-index:100}\n/*# sourceMappingURL=snooze_date_time_picker.css.map */"]});
var R_=function(){};R_.\u0275fac=function(a){return new (a||R_)};R_.\u0275mod=rc({type:R_});R_.\u0275inj=fc({imports:[[Mx,yQ,fQ]]});
var S_=function(){};S_.\u0275fac=function(a){return new (a||S_)};S_.\u0275mod=rc({type:S_});S_.\u0275inj=fc({imports:[[Mx,AP,jG,MB]]});
var T_=function(a){this.documentationLinks=a};T_.\u0275fac=function(a){return new (a||T_)(F(tP))};
T_.\u0275cmp=v({type:T_,selectors:[["b-wtdm-info-hovercard"]],decls:25,vars:6,consts:[["mat-icon-button","","disableRipple","true","aria-label","Work tracking data model help","target","_blank",1,"help","small","info-link",3,"href","onedevHovercardTrigger"],["svgIcon","help-outline",1,"icon-xs"],["card",""],["role","dialog","aria-label","Work tracking data model help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(G(0,
"a",0),J(1,"mat-icon",1),H(),G(2,"onedev-hovercard",null,2)(4,"div",3)(5,"div",4),P(6," A new work tracking data model is now available, which includes a new "),G(7,"strong"),P(8,"Parent/Child"),H(),P(9," relationship with multi-parent support. "),G(10,"a",5),P(11,"Learn more..."),H(),J(12,"br")(13,"br"),P(14," The work tracking data model also includes "),G(15,"a",5),P(16,"new types"),H(),P(17," (available in type dropdown) and an "),G(18,"a",5),P(19,"estimated effort"),H(),P(20," field (with dev days, story points and t-shirt support)."),
J(21,"br")(22,"br"),G(23,"a",5),P(24,"go/wtdm-home"),H()()()());if(a&2){var c=Hf(3);D("href",uP(b.documentationLinks),Kd)("onedevHovercardTrigger",c);B(10);D("href",uP(b.documentationLinks)+"#parent-child-relationship",Kd);B(5);D("href",uP(b.documentationLinks)+"#types",Kd);B(3);D("href",uP(b.documentationLinks)+"#estimated-effort-field",Kd);B(5);D("href",uP(b.documentationLinks),Kd)}},dependencies:[LE,pN,tN],styles:["a.info-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);margin:0 5px}\n/*# sourceMappingURL=wtdm_info_hovercard.css.map */"]});
var U_=function(){};U_.\u0275fac=function(a){return new (a||U_)};U_.\u0275mod=rc({type:U_});U_.\u0275inj=fc({imports:[[Mx,dF,$N]]});
var Q6b=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=r(O6b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a[c]){var d=a[c],e=void 0;Array.isArray(d)?e=d.map(function(f){return"string"===typeof f?Qi(f):""}):e="string"===typeof d?Qi(d):"";this.templateAttributes[c]=e}b=r(P6b);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]&&(this.templateAttributes[c]=a[c]);if(a=a.customFields)for(a=Array.isArray(a)?a:[a],a=r(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),Vi(c)||(this.templateCustomFields[b[0]]=c)},S6b=function(a){return!eh(a.templateCustomFields)||R6b.some(function(b){return null!=a.templateAttributes[b]})},X6b=function(a,b,c){null!=c&&(T6b(a,c),U6b(a,b,c),V6b(b,c));c=r(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;var f=b,h=W6b[d];"function"===typeof h?h(f,e):f[h||d]=e}a.templateAttributes={};a.templateCustomFields={}},U6b=function(a,b,c){null==
b.customField&&(b.customField=[]);for(var d={},e=r(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e={};f=r(Object.entries(a.templateCustomFields));for(var h=f.next();!h.done;e={$jscomp$loop$prop$customFieldId$1672:e.$jscomp$loop$prop$customFieldId$1672},h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$customFieldId$1672=Ki(h);k={customFieldId:e.$jscomp$loop$prop$customFieldId$1672,value:k};h=a.getCustomFieldValue(k,c);null!=d[e.$jscomp$loop$prop$customFieldId$1672]?
(k=b.customField.findIndex(function(q){return function(w){return w.customFieldId===q.$jscomp$loop$prop$customFieldId$1672}}(e)),b.customField[k]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
Q6b.prototype.getCustomFieldValue=function(a,b){var c=new lJ(a);if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=LEb(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=MEb(a.value)||void 0;break;case "REPEATED_TEXT":d=a.value.split(",");c.repeatedTextValue={values:d};break;case "REPEATED_DATE":d=a.value.split(",").map(function(e){return LEb(e)}).filter(function(e){return null!==e});c.repeatedDateValue=
{values:d};break;case "REPEATED_ENUM":d=a.value.split(",");c.repeatedEnumValue={values:d};break;case "REPEATED_NUMERIC":d=a.value.split(",").map(function(e){return MEb(e)}).filter(function(e){return null!==e});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};Q6b.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=b[a.customFieldId])?void 0:c.type)?d:""};
var T6b=function(a,b){a.templateCustomFields=dh(a.templateCustomFields,function(c,d){return!!b[d]})},V6b=function(a,b){if(null!=a.customField){var c={};a=r(a.customField);for(var d=a.next();!d.done;c={$jscomp$loop$prop$allowedValues$1674:c.$jscomp$loop$prop$allowedValues$1674},d=a.next()){d=d.value;var e=b[d.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){c.$jscomp$loop$prop$allowedValues$1674=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(d.repeatedEnumValue=
d.repeatedEnumValue||{values:[]},d.repeatedEnumValue.values=d.repeatedEnumValue.values.filter(function(h){return function(k){return h.$jscomp$loop$prop$allowedValues$1674.includes(k)}}(c)),!d.repeatedEnumValue.values.length&&f&&(d.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):c.$jscomp$loop$prop$allowedValues$1674.includes(d.enumValue)||(d.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},Y6b=function(a,b,c){c&&(c=Array.isArray(c)?c.map(function(d){return Ki(d)}):[Ki(c)],b[a]=c.filter(function(d){return!isNaN(d)}))},
Z6b=function(a,b,c,d){d&&(b=b.find(function(e){return!au(e,d)}))&&(c[a]=b)},$6b=new ZH,a7b=$6b.priorities,b7b=$6b.severities,c7b=$6b.issueTypes,O6b="title type priority severity assignee verifier reporter cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),P6b=["inProd"],R6b="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),V_={},W6b=(V_.cc=function(a,b){if(b){b="string"===typeof b?b.split(","):b;a.ccUsers||(a.ccUsers=
[]);b=r(b);for(var c=b.next();!c.done;c=b.next())(c=c.value.trim())&&a.ccUsers.push(Tl(c));a.ccUsers=Wma(a.ccUsers)}else a.ccUsers=[]},V_.assignee=function(a,b){VRa(b,function(c){a.assigneeUser=c})},V_.reporter=function(a,b){VRa(b,function(c){a.reporterUser=c})},V_.verifier=function(a,b){VRa(b,function(c){a.verifierUser=c})},V_.hotlistIds=Wt(Y6b,"hotlistId"),V_.blockingIssueIds=Wt(Y6b,"blockingIssueId"),V_.blockedByIssueIds=Wt(Y6b,"blockedByIssueId"),V_.foundIn=function(a,b){"string"===typeof b&&
(a.foundInVersion=b.split(","))},V_.targetedTo=function(a,b){"string"===typeof b&&(a.targetedToVersion=b.split(","))},V_.inProd=function(a,b){a.inProd="true"===b},V_.priority=Wt(Z6b,"priority",a7b),V_.severity=Wt(Z6b,"severity",b7b),V_.type=Wt(Z6b,"type",c7b),V_);
var W_=function(a,b){BI.call(this);this.routerEvents=a;this.bLocation=b;this.history=[]};U(W_,BI);W_.\u0275dir=BI.\u0275dir;W_.prototype.install=function(){var a=this;this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.history.push(a.bLocation.url());21<a.history.length&&a.history.shift()}))};W_.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};W_.prototype.hasPreviousPage=function(){return 1<this.history.length};
var X_=function(a){if(a.hasPreviousPage()){a.history.pop();var b=a.history.pop();b?a.bLocation.url(b):a.bLocation.url("/")}else a.bLocation.url("/")};W_.\u0275fac=function(a){return new (a||W_)(t($I),t(cL))};W_.\u0275prov=ec({token:W_,factory:W_.\u0275fac,providedIn:"root"});
var Y_=function(a,b,c){this.bLocation=a;this.routeParams=b;this.domSafe=c},d7b=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&$t(d,"id=")||$t(d,"bugId="))d+=c;xP(a.domSafe,d)}else{var e;a.bLocation.replaceUrl(null!=(e=d)?e:b)}};Y_.\u0275fac=function(a){return new (a||Y_)(t(cL),t(bS),t(vP))};Y_.\u0275prov=ec({token:Y_,factory:Y_.\u0275fac,providedIn:"root"});
var e7b=function(){return!0},Z_=function(a,b){BI.call(this);var c=this;this.routerEvents=a;this.documentVisibility=b;this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1;this.invalidRoutes=[];this.onNavStart=function(d){f7b(c,d.originalPath,d.params)||c.ignoringNextNav||(jKb("appNavStart"),c.mostRecentlyMeasured="")};this.onNavSuccess=function(d){f7b(c,d.originalPath,d.params)||(c.ignoringNextNav?c.ignoringNextNav=!1:c.validNavigations++)}};U(Z_,BI);
Z_.\u0275dir=BI.\u0275dir;
Z_.prototype.install=function(){var a=this;PM()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(this.onNavStart)),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(this.onNavSuccess)),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(b){a.onNavStart(b);a.onNavSuccess(b)})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(De(function(b){return"visible"!==b}),Me()).subscribe(function(){a.tabWasHidden=!0})))};
var g7b=function(a,b){jKb(b);if(b!==a.mostRecentlyMeasured){var c=1>=a.validNavigations?void 0:"appNavStart",d=c?"appNavStart-to-CF":"browserStart-to-CF",e=d+" -> "+b;a.mostRecentlyMeasured=b;if(("browserStart-to-CF"!==d||!a.tabWasHidden)&&PM())if(null===b)console.warn("window.performance does not support endMark `null`");else try{window.performance.measure(e,c,b)}catch(f){console.warn("route_performance",f)}}},f7b=function(a,b,c){a=r(a.invalidRoutes);for(var d=a.next();!d.done;d=a.next()){d=d.value;
var e=d.paramMatcher||e7b;if(b===d.path&&e(c))return!0}return!1};Z_.\u0275fac=function(a){return new (a||Z_)(t($I),t(a0))};Z_.\u0275prov=ec({token:Z_,factory:Z_.\u0275fac,providedIn:"root"});var a0=function(a){var b=this;this.window=a;this.visibilityState$=(0,T.fromEvent)(this.window.document,"visibilityChange").pipe(We(void 0),C(function(){return b.currentVisibility}))};ki.Object.defineProperties(a0.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});
a0.\u0275fac=function(a){return new (a||a0)(t(wM))};a0.\u0275prov=ec({token:a0,factory:a0.\u0275fac,providedIn:"root"});
var h7b=RegExp("action/issues/([0-9]+)/"),i7b=new jd("ETAG_URL_TRANSFORMERS"),b0=function(a){this.transformers=a;this.etagStore={};this.IF_MATCH_METHODS=["POST","PUT","DELETE"]};b0.prototype.intercept=function(a,b){if(this.IF_MATCH_METHODS.includes(a.method)){var c=this.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}if(c=h7b.exec(a.url))this.issueId=c[1];return j7b(this,a,b)};
var j7b=function(a,b,c){return c.handle(b).pipe(Ze(function(d){if(d instanceof zE){var e=d.headers;e.has("etag")&&a.setEtag(b,e.get("etag"));d=d.body;if(d instanceof ML&&a.issueId)for(d=r(rb(d,bn,1)),e=d.next();!e.done;e=d.next()){e=r(e.value.getAttachmentsList());for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.hasEtag()){var h=a.issueId,k=f.getAttachmentId();h=new vm("GET","action/issues/"+h+"/attachments/"+k);a.setEtag(h,f.getEtag())}}}}))};
b0.prototype.setEtag=function(a,b){null!=b&&(a=k7b(this,a),this.etagStore[a]=b)};b0.prototype.getEtag=function(a){a=k7b(this,a);return this.etagStore[a]};var k7b=function(a,b){b=b.url;var c;a=r(null!=(c=a.transformers)?c:[]);for(c=a.next();!c.done;c=a.next())if(c=c.value,(c=c(b))&&c!==b)return c;return b};b0.\u0275fac=function(a){return new (a||b0)(t(i7b,8))};b0.\u0275prov=ec({token:b0,factory:b0.\u0275fac,providedIn:"root"});var l7b={provide:BE,useClass:b0,multi:!0};
var m7b={provide:i7b,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},n7b={provide:i7b,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};
var c0=function(a){this.activeSession=a};c0.prototype.intercept=function(a,b){var c=a.method,d=c+" "+a.urlWithParams;lo[d]=~~lo[d]+1;return"POST"===c||"PUT"===c||"DELETE"===c?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};c0.\u0275fac=function(a){return new (a||c0)(t(pH))};c0.\u0275prov=ec({token:c0,factory:c0.\u0275fac,providedIn:"root"});var o7b={provide:BE,useClass:c0,multi:!0};
var d0=function(){};d0.\u0275fac=function(a){return new (a||d0)};d0.\u0275mod=rc({type:d0});
d0.\u0275inj=fc({providers:[{provide:iO,useFactory:kq,deps:[lO,jO]},{provide:RR,useFactory:kq,deps:[TR,SR]},{provide:UR,useFactory:kq,deps:[WR,VR]},{provide:HFb,useFactory:kq,deps:[HJ,FJ]},{provide:IFb,useFactory:kq,deps:[GJ,EJ]},{provide:eK,useFactory:kq,deps:[hK,fK]},{provide:yZ,useFactory:kq,deps:[AZ,zZ]},{provide:rO,useFactory:kq,deps:[tO,sO]},{provide:wK,useFactory:kq,deps:[AK,yK]},{provide:IO,useFactory:kq,deps:[KO,JO]},{provide:PJ,useFactory:kq,deps:[UJ,QJ]},{provide:RJ,useFactory:kq,deps:[TJ,
SJ]}],imports:[[Mx]]});
var p7b=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1};g=p7b.prototype;g.getId=function(){return this.lookupId_};g.setDisplayName=function(a){this.displayName_=a;return this};g.getDisplayName=function(){return this.displayName_};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
g.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};
var bs=function(a){Z.call(this,a)};U(bs,Z);bs.prototype.getEntryPoint=function(){return X(this,5,0)};bs.prototype.setEntryPoint=function(a){return l(this,5,a)};bs.prototype.toObject=function(){return e0(void 0,this)};var e0=function(a,b){if(null!=b){var c={autocompleteField:n(p(b,1)),autocompletePerson:n(p(b,2)),suggestionField:n(p(b,3)),suggestionPerson:n(p(b,4)),entryPoint:X(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}};
var cs=function(a){Z.call(this,a)};U(cs,Z);cs.prototype.getEntryPoint=function(){return X(this,1,0)};cs.prototype.setEntryPoint=function(a){return l(this,1,a)};cs.prototype.toObject=function(){return q7b(void 0,this)};var q7b=function(a,b){if(null!=b){var c={entryPoint:X(b,1,0),additionEventSources:e0(a,m(b,bs,2)),replacementEventSources:e0(a,m(b,bs,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Pr=function(a){Z.call(this,a)};U(Pr,Z);var Lq=function(a){return m(a,Qr,2)};Pr.prototype.getSessionState=function(){return m(this,f0,3)};Pr.prototype.setSessionState=function(a){Ab(this,3,a)};Pr.prototype.hasSessionState=function(){return cj(this,3)};var Rr=function(a){Z.call(this,a)};U(Rr,Z);g=Rr.prototype;g.getPersonLoggingId=function(){return p(this,1)};g.setPersonLoggingId=function(a){l(this,1,a)};g.getFieldLoggingId=function(){return p(this,2)};g.setFieldLoggingId=function(a){l(this,2,a)};
g.setFieldValue=function(a){return l(this,3,a)};g.clearFieldValue=function(){return mb(this,3)};g.getName=function(){return p(this,4)};g.setName=function(a){return l(this,4,a)};g.hasName=function(){return cj(this,4)};g.getContactId=function(){return p(this,5)};g.setContactId=function(a){l(this,5,a)};g.getProfileId=function(){return p(this,6)};g.setProfileId=function(a){return l(this,6,a)};g.hasProfileId=function(){return cj(this,6)};g.getFieldType=function(){return p(this,7)};
g.getIsPlaceholder=function(){return W(this,10,!1)};g.setIsPlaceholder=function(a){l(this,10,a)};g.getGroupId=function(){return p(this,11)};g.setGroupId=function(a){l(this,11,a)};g.hasGroupId=function(){return cj(this,11)};var Qr=function(a){Z.call(this,a)};U(Qr,Z);g=Qr.prototype;g.getProvenance=function(){return X(this,3,0)};g.setProvenance=function(a){return l(this,3,a)};g.getContext=function(){return X(this,5,0)};g.getExistingSelectionsCount=function(){return dj(this,6,0)};
g.setExistingSelectionsCount=function(a){l(this,6,a)};var f0=function(a){Z.call(this,a)};U(f0,Z);f0.prototype.getQuery=function(){return V(this,1,"")};f0.prototype.setQuery=function(a){return l(this,1,a)};f0.prototype.clearQuery=function(){mb(this,1)};f0.prototype.hasQuery=function(){return cj(this,1)};var r7b=function(a,b){l(a,3,b)};f0.prototype.getAffinityVersion=function(){return p(this,7)};f0.prototype.setAffinityVersion=function(a){l(this,7,a)};var s7b=function(a){var b=KTb();l(a,8,b)};g=f0.prototype;
g.getSources=function(){return m(this,bs,10)};g.getInstanceId=function(){return V(this,11,"")};g.setInstanceId=function(a){return l(this,11,a)};g.clearInstanceId=function(){mb(this,11)};g.hasInstanceId=function(){return cj(this,11)};Pr.prototype.toObject=function(){return t7b(void 0,this)};var t7b=function(a,b){if(null!=b){var c={info:u7b(a,m(b,Rr,1)),targetState:v7b(a,Lq(b)),sessionState:w7b(a,b.getSessionState()),isClosed:W(b,4,!1)};a&&(c.$jspbMessageInstance=b);return c}};
Rr.prototype.toObject=function(){return u7b(void 0,this)};var u7b=function(a,b){if(null!=b){var c={personLoggingId:n(p(b,1)),fieldLoggingId:n(p(b,2)),fieldValue:n(p(b,3)),name:n(p(b,4)),contactId:n(p(b,5)),profileId:n(p(b,6)),fieldType:n(p(b,7)),personType:n(p(b,8)),isFlattened:W(b,9,!0),isPlaceholder:W(b,10,!1),groupId:n(p(b,11))};a&&(c.$jspbMessageInstance=b);return c}};Qr.prototype.toObject=function(){return v7b(void 0,this)};
var v7b=function(a,b){if(null!=b){var c={fieldPosition:dj(b,1,0),personPosition:dj(b,2,0),provenance:X(b,3,0),valueOriginator:X(b,4,0),context:X(b,5,0),existingSelectionsCount:dj(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};f0.prototype.toObject=function(){return w7b(void 0,this)};
var w7b=function(a,b){if(null!=b){var c={query:V(b,1,""),querySessionId:dj(b,3,0),selectSessionId:dj(b,4,0),submitSessionId:dj(b,5,0),cacheUpdatedTimestamp:dj(b,6,0),affinityVersion:n(p(b,7)),callTimestampMs:xl(b,8,0),resultTimestampMs:xl(b,9,0),sources:e0(a,b.getSources()),instanceId:V(b,11,""),contextualSources:q7b(a,m(b,cs,12))};a&&(c.$jspbMessageInstance=b);return c}};
var g0=function(a,b){this.name_=b||"";this.address=a||""},x7b=/"/g,y7b=/\\"/g,z7b=/\\/g,A7b=/\\\\/g,B7b=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),C7b=new RegExp("["+Aja({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");g0.prototype.getName=function(){return this.name_};g0.prototype.getAddress=function(){return this.address};g0.prototype.setName=function(a){this.name_=a};g0.prototype.toString=function(){return D7b(this,'()<>@:\\".[],;')};
var D7b=function(a,b){var c=a.getName();c=c.replace(x7b,"");a:{for(var d=c,e=0;e<b.length;e++)if(da(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(z7b,"\\\\")+'"');return""==c?a.address:""==a.address?c:c+" <"+a.address+">"};g0.prototype.isValid=function(){return B7b.test(this.address)};
var G7b=function(a){var b=E7b;a=a.replace(C7b,"");for(var c="",d="",e=0;e<a.length;){var f=a;var h=e,k=f.charAt(h),q='"<(['.indexOf(k);if(-1==q||F7b(f,h))f=k;else{q='">)]'.charAt(q);for(var w=f.indexOf(q,h+1);0<=w&&F7b(f,w);)w=f.indexOf(q,w+1);f=0<=w?f.substring(h,w+1):k}"<"==f.charAt(0)&&-1!=f.indexOf(">")?(d=f.indexOf(">"),d=f.substring(1,d)):""==d&&(c+=f);e+=f.length}""==d&&-1!=c.indexOf("@")&&(d=c,c="");c=eC(c);c=Qqb(c,"'");c=Qqb(c,'"');c=c.replace(y7b,'"');c=c.replace(A7b,"\\");d=eC(d);return new b(d,
c)},F7b=function(a,b){if('"'!=a.charAt(b))return!1;var c=0;for(--b;0<=b&&"\\"==a.charAt(b);b--)c++;return 0!=c%2};
var E7b=function(a,b){g0.call(this,a,b)};Zt(E7b,g0);var H7b=RegExp("^((?!\\s)[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~\u0080-\uffffFF-])+@((?!\\s)[a-zA-Z0-9\u0080-\u3001\u3003-\uff0d\uff0f-\uff60\uff62-\uffffFF-]+[\\.\\uFF0E\\u3002\\uFF61])+(?!\\s)[a-zA-Z0-9\u0080-\u3001\u3003-\uff0d\uff0f-\uff60\uff62-\uffffFF-]{2,63}$");E7b.prototype.isValid=function(){return h0(this.address)};var h0=function(a){return null==a?!1:H7b.test(a)};E7b.prototype.toString=function(){return D7b(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};
var I7b=/[^a-z0-9]+/ig,J7b=[9,11,10,12,13,14,15,16,19],Bq=[9,19,11],K7b=[1,2,6,7,8,9,11,10,12,13,14,15,16,19],L7b=[3,4,5,17,20],nr=function(a,b){this.originalValue_=(b||"").trim();switch(a){case 1:case 6:b=(b||"").trim().toLowerCase();break;case 2:case 7:b=(b||"").trim().toLowerCase().replace(I7b,"");break;case 3:case 8:case 5:b=(b||"").trim().toLowerCase();3===a&&"me"===b&&(a=17,b="me");break;case 4:case 9:b=(b||"").trim().toLowerCase();break;case 12:case 13:case 14:case 15:case 16:case 10:case 11:case 18:case 19:case 20:b=
(b||"").trim();break;case 17:b="me";break;default:a=0}this.type_=a;this.value_=b};nr.prototype.getType=function(){return this.type_};nr.prototype.getValue=function(){return this.value_};var Fq=function(a){return J7b.includes(a.getType())},eUa=function(a,b){return new nr(a,b)},M7b=function(a){var b=a.indexOf(":"),c=a.substring(b+1);return 0>=b?new nr(0,c):new nr(parseInt(a.substring(0,b),10),c)};nr.prototype.toString=function(){return this.getType()+":"+this.getValue()};
nr.prototype.equals=function(a){return a?this===a?!0:this.getType()===a.getType()&&this.getValue()===a.getValue():!1};var rr=eUa(0,"");new nr(17,"me");
var xr=function(a){Z.call(this,a,2)};U(xr,Z);var N7b={};xr.prototype.toObject=function(){if(null!=this){var a={dataMap:Db(Yi(this,1))};Cb(this,a,N7b)}else a=void 0;return a};
var Lr=function(a){Z.call(this,a)};U(Lr,Z);g=Lr.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return cj(this,1)};g.getValue=function(){return V(this,2,"")};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};g.toObject=function(){var a=null!=this?{type:X(this,1,0),value:V(this,2,"")}:void 0;return a};
var O7b=function(a){Z.call(this,a)};U(O7b,Z);g=O7b.prototype;g.getEnableClearcut=function(){return W(this,1,!1)};g.setEnableClearcut=function(a){return l(this,1,a)};g.getClientId=function(){return X(this,2,0)};g.setClientId=function(a){return l(this,2,a)};g.getSocialApplication=function(){return p(this,3)};g.getComponentFlow=function(){return X(this,4,0)};g.setComponentFlow=function(a){return l(this,4,a)};g.getInterfaceType=function(){return X(this,5,0)};
g.setInterfaceType=function(a){return l(this,5,a)};g.toObject=function(){return P7b(this)};var P7b=function(a){if(null!=a)return{enableClearcut:W(a,1,!1),clientId:X(a,2,0),socialApplication:n(p(a,3)),componentFlow:X(a,4,0),interfaceType:X(a,5,0),enableVeTracking:W(a,6,!0)}};
var i0=function(a){Z.call(this,a)};U(i0,Z);i0.prototype.toObject=function(){return Q7b(this)};var Q7b=function(a){if(null!=a)return{enableDisambigForAdditionSuggestions:W(a,1,!1),enableSyntheticVe:W(a,2,!1),enableOodTag:W(a,3,!1),enableLegacyReplacementStyling:W(a,4,!0)}};
var j0=function(a){Z.call(this,a)};U(j0,Z);j0.prototype.getApplication=function(){return X(this,1,0)};j0.prototype.setApplication=function(a){return l(this,1,a)};j0.prototype.getIsEnabled=function(){return W(this,2,!1)};j0.prototype.toObject=function(){return R7b(this)};var R7b=function(a){if(null!=a)return{application:X(a,1,0),isEnabled:W(a,2,!1),overriddenExperiments:Q7b(m(a,i0,3))}};
var S7b=function(a){Z.call(this,a)};U(S7b,Z);g=S7b.prototype;g.getClearcut=function(){return m(this,O7b,1)};g.setClearcut=function(a){Ab(this,1,a)};g.hasClearcut=function(){return cj(this,1)};g.getExperiments=function(){return m(this,j0,2)};g.setExperiments=function(a){Ab(this,2,a)};g.hasExperiments=function(){return cj(this,2)};
g.toObject=function(){var a=null!=this?{clearcut:P7b(this.getClearcut()),experiments:R7b(this.getExperiments()),maxUndoStackSize:dj(this,3,10),enableTargetedCopyOptions:W(this,4,!1),enableEmailEditing:W(this,5,!1)}:void 0;return a};
var T7b=function(){var a=ho(S7b,"[[true,49,740,4]]");a.hasClearcut()||a.setClearcut(new O7b);a.hasExperiments()||a.setExperiments(new j0);this.internal=a};
var LSa=function(a){this.root=a;this.length=0};g=LSa.prototype;g.append=function(a){this.root.appendChild(a);++this.length};g.insert=function(a,b){if(0>a||a>this.length)throw new RangeError("Ae");if(a===this.length)this.append(b);else{var c=Array.from(this.root.childNodes);this.root.insertBefore(b,c[a]);++this.length}};g.remove=function(a){if(0>a||a>=this.length)throw new RangeError("Ae");var b=Array.from(this.root.childNodes);this.root.removeChild(b[a]);--this.length};
g.clear=function(){dD(this.root);this.length=0};g.getRoot=function(){return this.root};
var JSa=function(a){return Gq('<ul id="'+Hq(a.id)+'" peoplekit-id="'+Hq("rymPhb")+'" role="listbox" class="'+Hq("peoplekitComponentsListImplList")+'"></ul>')};
var KSa=RU.getInstance();
var U7b=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(u(a));this.activeItems=new Set([]);this.hideContextMenu=function(){}};g=U7b.prototype;
g.remove=function(a,b){var c=-1;a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c=this.list.indexOf(d),this.list.splice(c,1),this.activeItems.delete(d),b||(c<this.spotlightIndex?--this.spotlightIndex:c===this.spotlightIndex&&this.reset());0<=c&&b&&(this.isActive=!1,this.goToIndex(c,0))};
g.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(u(b)));c?(V7b(this),W7b(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):0<=a&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};g.size=function(){return this.list.length};g.prev=function(a){var b=0===this.spotlightIndex&&1===a;!this.list.length||b?a=!1:(this.isActive?(b=this.spotlightIndex-1,b=0<=b?b:this.list.length+b):b=this.list.length-1,a=this.goToIndex(b,a));return a};
g.next=function(a){var b=this.spotlightIndex===this.list.length-1&&1===a;if(!this.list.length||b)a=!1;else{var c;this.isActive?c=(this.spotlightIndex+1)%this.list.length:c=0;a=this.goToIndex(c,a)}return a};g.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
g.goToIndex=function(a,b){this.hideContextMenu();if(!this.list.length||void 0===a||0>a)return!1;var c=this.isActive?this.spotlightIndex:-1;this.spotlightIndex=Math.max(Math.min(this.list.length-1,a),0);this.isActive||(this.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:V7b(this);X7b(this);break;case 3:X7b(this);break;case 1:a=YRa(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=YRa(this.multiActivateAnchorIndex,c,this.spotlightIndex);if(0<=c&&(a||b||this.multiActivateAnchorIndex===
this.spotlightIndex))for(b=b?this.multiActivateAnchorIndex:this.spotlightIndex,c<b?(a=c,c=b-1):a=b+1;a<=c;a++)b=this.list[a],b.deactivate(),this.activeItems.delete(b);W7b(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};g.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};g.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
g.getItem=function(a){for(var b=r(this.list),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getRoot();if(d===a||d.contains(a))return c}};g.clear=function(){this.reset();this.list.length=0};g.reset=function(){this.hideContextMenu();V7b(this);this.spotlightIndex=-1;this.isActive=!1};g.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
g.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(u(this.secondaryEventTargets));b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;null==(d=c.value)||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};g.onContextMenu=function(a,b){this.hideContextMenu();var c=a.event;if(c=c.target===c.currentTarget?this.getSpotlitItem():this.getItem(c.target))this.hideContextMenu=c.onContextMenu(a,b)};
var X7b=function(a){var b=a.list[a.spotlightIndex];a.activeItems.has(b)?(b.deactivate(),a.activeItems.delete(b)):(b.activate(),a.activeItems.add(b));a.multiActivateAnchorIndex=a.spotlightIndex},V7b=function(a){for(var b=r(a.activeItems),c=b.next();!c.done;c=b.next())c.value.deactivate();a.activeItems.clear()},W7b=function(a,b,c){var d=Math.max(b,c)+1;for(b=Math.min(b,c);b<d;b++)c=a.list[b],c.activate(),a.activeItems.add(c)};
var Y7b=function(a){this.delegate=a};g=Y7b.prototype;g.prev=function(a){a=this.delegate.prev(a);Z7b(this);return a};g.next=function(a){a=this.delegate.next(a);Z7b(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);Z7b(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);Z7b(this);return a};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};
g.getItem=function(a){return this.delegate.getItem(a)};g.clear=function(){this.delegate.clear()};g.reset=function(){this.delegate.reset()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};g.remove=function(a,b){this.delegate.remove(a,b)};g.insert=function(a,b,c){this.delegate.insert(a,b,c)};
var Z7b=function(a){if(a=a.delegate.getSpotlitItem())if(a=a.getRoot(),cu){var b=CWb(a);FWb(a,b)}else a.scrollIntoView({block:"nearest"})};
var $7b=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(lh[3-6]\\.(googleadsserving\\.cn|xn--9kr7l\\.com))|(photos\\-image\\-(dev|qa)(-auth)?\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/",
"i"),a8b=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,b8b=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,c8b=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i;
var d8b=/\/\/lh[3-6]\./,e8b=function(a,b,c,d){var e;(e=!a)||(e=String(a),e=!($7b.test(e)||a8b.test(e)||b8b.test(e)||c8b.test(e)));if(e)return String(a||"");a=String(a);b=Math.ceil((b||0)*d);c=Math.ceil((c||0)*d);d=b==c;a=a.replace(d8b,"//lh3.");return(new wR(a)).setSize(d?c:void 0).setWidth(d?void 0:b).setHeight(d?void 0:c).setCrop(!1).setKillAnimation(!1).setEsPortraitApprovedOnly(!1).setSmartCrop(!0).setCenterCrop().setOverlay(!1).setNoOverlay(!1).setRequestWebp(!1).setQualityBucket().setImageFilter().setLooseFaceCrop(!1).setForceMonogram(!1).setRequestPng(!1).setRequestJpeg(!1).setRequestH264(!1).setPad(!1).build()};
var $Ra=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;Array.isArray(b);a=Gq;var h='<div class="'+Hq("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Hq(EU(d))+"px; height: "+Hq(EU(d))+'px"><div peoplekit-id="'+Hq("YLEF4c")+'" class="'+Hq("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Hq(EU(d))+"px; height: "+Hq(EU(d))+'px">';Array.isArray(b);1==BU(b).length?(Array.isArray(b),b=Gq('<div class="'+Hq("peoplekitComponentsAvatarImplContainer")+
'">'+k0(b[0],c,d,e,f)+"</div>")):2==BU(b).length?(Array.isArray(b),b=Gq('<div class="'+Hq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Hq("peoplekitComponentsAvatarImplColumn")+'">'+k0(b[0],c,d,e,f)+"</div>"+l0()+'<div class="'+Hq("peoplekitComponentsAvatarImplColumn")+'">'+k0(b[1],c,d,e,f)+"</div></div>")):3==BU(b).length?(Array.isArray(b),b=Gq('<div class="'+Hq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Hq("peoplekitComponentsAvatarImplColumn")+'">'+k0(b[0],c,d,e,f)+
"</div>"+l0()+'<div class="'+Hq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Hq("peoplekitComponentsAvatarImplRow")+'">'+k0(b[1],c,Math.round(.5*d),e,f)+"</div>"+l0()+'<div class="'+Hq("peoplekitComponentsAvatarImplRow")+'">'+k0(b[2],c,Math.round(.5*d),e,f)+"</div></div></div>")):(Array.isArray(b),b=Gq('<div class="'+Hq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Hq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Hq("peoplekitComponentsAvatarImplRow")+'">'+k0(b[0],
c,Math.round(.5*d),e,f)+"</div>"+l0()+'<div class="'+Hq("peoplekitComponentsAvatarImplRow")+'">'+k0(b[2],c,Math.round(.5*d),e,f)+"</div></div>"+l0()+'<div class="'+Hq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Hq("peoplekitComponentsAvatarImplRow")+'">'+k0(b[1],c,Math.round(.5*d),e,f)+"</div>"+l0()+'<div class="'+Hq("peoplekitComponentsAvatarImplRow")+'">'+k0(b[3],c,Math.round(.5*d),e,f)+"</div></div></div>"));b=Gq(b);return a(h+b+'</div><div peoplekit-id="'+Hq("Btuy5e")+'" class="'+
Hq("peoplekitComponentsAvatarImplAvatarBadge")+'">'+Gq('<img class="'+Hq("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Hq("m6fZne")+'" draggable="false" alt="">')+"</div></div>")},k0=function(a,b,c,d,e){var f="",h=UVb(e8b(a,c,c,e));h=GVb(h);a=UVb(e8b(a,d,d,e));a=GVb(a);b=UVb(e8b(b,c,c,e));b=GVb(b);f+='<div peoplekit-id="'+Hq("IHgMKc")+'" class="'+Hq("peoplekitComponentsAvatarImplImageRoot")+'"><img peoplekit-id="'+Hq("HiaYvf")+'" class="'+Hq("peoplekitComponentsAvatarImplImage")+
'" style="width: '+Hq(EU(c))+"px; height: "+Hq(EU(c))+'px;" data-preload-src="'+Hq(a)+'" data-src="'+Hq(h)+'" data-backup-src="'+Hq(b)+'" draggable="false" alt=""></div>';return Gq(f)},l0=function(){return Gq('<div class="'+Hq("peoplekitComponentsAvatarImplDivider")+'"></div>')};
var f8b=new Map([[0,"light_theme"],[1,"dark_theme"]]);
var g8b=!cu&&!caa(),h8b=function(a,b){if(/-[a-z]/.test(b))return null;if(g8b&&a.dataset){if(daa()&&!(b in a.dataset))return null;a=a.dataset[b];return void 0===a?null:a}return a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};
var i8b=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),j8b=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),bSa=function(a,b){this.appearance=b;this.root=a;k8b(this)};
bSa.prototype.setBadge=function(a){var b=mq(this.root,"Btuy5e");if(0===a.badgeType)b.classList.remove("visible");else{var c=i8b.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(f8b.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=j8b.get(a.badgeType)||"";d=mq(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};
var k8b=function(a){var b={};a=r(Array.from(a.root.querySelectorAll('[peoplekit-id="IHgMKc"]')));for(var c=a.next();!c.done;b={$jscomp$loop$prop$img$1682:b.$jscomp$loop$prop$img$1682,$jscomp$loop$prop$src$1680:b.$jscomp$loop$prop$src$1680,$jscomp$loop$prop$imageRoot$1681:b.$jscomp$loop$prop$imageRoot$1681,$jscomp$loop$prop$backupSrc$1683:b.$jscomp$loop$prop$backupSrc$1683},c=a.next())b.$jscomp$loop$prop$imageRoot$1681=c.value,b.$jscomp$loop$prop$img$1682=mq(b.$jscomp$loop$prop$imageRoot$1681,"HiaYvf"),
c=h8b(b.$jscomp$loop$prop$img$1682,"preloadSrc"),b.$jscomp$loop$prop$src$1680=h8b(b.$jscomp$loop$prop$img$1682,"src"),b.$jscomp$loop$prop$backupSrc$1683=h8b(b.$jscomp$loop$prop$img$1682,"backupSrc"),ZRa(b.$jscomp$loop$prop$src$1680)?b.$jscomp$loop$prop$img$1682.src=b.$jscomp$loop$prop$src$1680:ZRa(c)?(b.$jscomp$loop$prop$img$1682.src=c,qD(function(d){return function(){d.$jscomp$loop$prop$img$1682.src=d.$jscomp$loop$prop$src$1680}}(b),0)):(b.$jscomp$loop$prop$imageRoot$1681.classList.add("isLoading"),
b.$jscomp$loop$prop$img$1682.onload=function(d){return function(){d.$jscomp$loop$prop$imageRoot$1681.classList.remove("isLoading")}}(b),b.$jscomp$loop$prop$img$1682.onerror=function(d){return function(){d.$jscomp$loop$prop$img$1682.src=d.$jscomp$loop$prop$backupSrc$1683}}(b),b.$jscomp$loop$prop$img$1682.src=b.$jscomp$loop$prop$src$1680)};
var nq=function(){this.theme=this.density=0};nq.prototype.getDensity=function(){return this.density};nq.prototype.setDensity=function(a){this.density=a};nq.prototype.getTheme=function(){return this.theme};nq.prototype.setTheme=function(a){this.theme=a};
var vSa=function(a){a=a.memberCount;return(new IP("{MEMBER_COUNT_1,plural,=0{No members}=1{1 member}other{{MEMBER_COUNT_2} members}}")).format_({MEMBER_COUNT_1:a,MEMBER_COUNT_2:""+a},!0)},uSa=function(a){a=a.memberNames;Array.isArray(a);return BU(a).join(", ")};
var l8b=function(a){Z.call(this,a)};U(l8b,Z);l8b.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var m8b=function(a){Z.call(this,a)};U(m8b,Z);m8b.prototype.toObject=function(){return n8b(this)};var n8b=function(a){if(null!=a)return{exampleBooleanFlag:W(a,1,!1),exampleIntegerFlag:dj(a,2,42)}};
var o8b=function(a){Z.call(this,a)};U(o8b,Z);o8b.prototype.toObject=function(){return p8b(this)};var p8b=function(a){if(null!=a)return{enableTypescriptCodegenRefactor:W(a,3,!1)}};
var m0=function(a){Z.call(this,a)};U(m0,Z);m0.prototype.toObject=function(){return q8b(this)};var q8b=function(a){if(null!=a)return{enableProjectLean:W(a,1,!1),enableEmailAddressMatching:W(a,2,!1),enableFilterNonPrimarySignupEmail:W(a,3,!1),enableSmartaddressCounterfactualLogging:W(a,4,!1),enableExtensibleLookupcache:W(a,5,!1)}};
var r8b=function(a){Z.call(this,a)};U(r8b,Z);r8b.prototype.toObject=function(){return s8b(this)};var s8b=function(a){if(null!=a)return{enableProjectLean:W(a,1,!1)}};
var t8b=function(a){Z.call(this,a)};U(t8b,Z);t8b.prototype.toObject=function(){return u8b(this)};var u8b=function(a){if(null!=a)return{enablePopulousV2:W(a,1,!0)}};
var v8b=function(a){Z.call(this,a)};U(v8b,Z);v8b.prototype.getIsEnabled=function(){return W(this,1,!1)};v8b.prototype.toObject=function(){return w8b(this)};var w8b=function(a){if(null!=a)return{isEnabled:W(a,1,!1),answer:dj(a,2,42)}};
var vq=function(a){Z.call(this,a)};U(vq,Z);vq.prototype.getRequestType=function(){return p(this,1)};vq.prototype.setRequestType=function(a){return l(this,1,a)};vq.prototype.toObject=function(){return x8b(this)};
var x8b=function(a){if(null!=a){var b=n(p(a,1)),c=w8b(m(a,v8b,101));var d=null!=m(a,l8b,102)?{}:void 0;return{requestType:b,testExperimentFlags:c,hovercardExperimentsRoot:d,peopleIntelligenceExperimentsRoot:p8b(m(a,o8b,103)),populousExperimentsRoot:q8b(m(a,m0,104)),sendkitExperimentsRoot:u8b(m(a,t8b,105)),integrationExampleFeature:n8b(m(a,m8b,106)),peoplekitExperimentsRoot:Q7b(m(a,i0,107)),populousLeanExperimentFlags:s8b(m(a,r8b,108))}}};
var y8b=function(){var a=new vq,b=new i0;this.experimentFlags_=Ab(a,107,b)};y8b.prototype.getExperimentFlags=function(){return this.experimentFlags_};y8b.prototype.getExperimentIds=function(){return[]};
var cr=function(a,b){this.cache=b;this.overriddenExperiments=m(a,i0,3)||new i0};cr.prototype.getExperiments=function(){var a,b=(null==(a=this.cache.getExperimentFlags())?void 0:m(a,i0,107))||new i0;a=this.overriddenExperiments;if(cj(a,3)){var c=W(a,3,!1);l(b,3,c)}cj(a,4)&&(a=W(a,4,!0),l(b,4,a));return b};cr.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};
var Zq=function(a){Z.call(this,a)};U(Zq,Z);g=Zq.prototype;g.getCacheStaleSec=function(){return dj(this,4,14400)};g.getCacheExpiredSec=function(){return dj(this,5,1209600)};g.getRpcTimeoutSec=function(){return dj(this,7,60)};g.getApiKey=function(){return V(this,8,"")};g.getEnableClearcut=function(){return W(this,13,!0)};g.setEnableClearcut=function(a){return l(this,13,a)};
g.toObject=function(){var a=null!=this?{minimumCacheRefreshSec:dj(this,3,1800),cacheStaleSec:dj(this,4,14400),cacheExpiredSec:dj(this,5,1209600),rpcTimeoutSec:dj(this,7,60),apiKey:V(this,8,""),apiRoot:n(p(this,10)),cacheRefreshRateSec:dj(this,11,14400),maxRefreshCount:dj(this,12,18),enableClearcut:W(this,13,!0)}:void 0;return a};
var z8b=function(){};z8b.prototype.getExperimentFlags=function(){return new vq};z8b.prototype.getExperimentIds=function(){return[]};
var ar=function(){};ar.prototype.prefetch=function(){};ar.prototype.loadExperiments=function(){return new z8b};
var n0=function(a){Z.call(this,a)};U(n0,Z);n0.prototype.getVersion=function(){return p(this,1)};n0.prototype.setVersion=function(a){return l(this,1,a)};n0.prototype.toObject=function(){return A8b(this)};var A8b=function(a){if(null!=a)return{version:n(p(a,1))}};
var o0=function(a){Z.call(this,a)};U(o0,Z);g=o0.prototype;g.getApplication=function(){return p(this,1)};g.setApplication=function(a){return l(this,1,a)};g.getVersion=function(){return p(this,2)};g.setVersion=function(a){return l(this,2,a)};g.toObject=function(){return B8b(this)};var B8b=function(a){if(null!=a)return{application:n(p(a,1)),version:n(p(a,2))}};
var C8b=function(a){Z.call(this,a)};U(C8b,Z);g=C8b.prototype;g.getRequestType=function(){return X(this,1,0)};g.setRequestType=function(a){return l(this,1,a)};g.getProfileId=function(){return p(this,2)};g.setProfileId=function(a){return l(this,2,a)};g.hasProfileId=function(){return cj(this,2)};g.getCaller=function(){return m(this,n0,3)};g.setCaller=function(a){return Ab(this,3,a)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};
g.clearInstanceId=function(){mb(this,4)};g.hasInstanceId=function(){return cj(this,4)};g.getClient=function(){return m(this,o0,5)};g.setClient=function(a){return Ab(this,5,a)};g.hasClient=function(){return cj(this,5)};g.toObject=function(){var a=null!=this?{requestType:X(this,1,0),profileId:n(p(this,2)),caller:A8b(this.getCaller()),instanceId:n(p(this,4)),client:B8b(this.getClient())}:void 0;return a};
var sq=function(a){Z.call(this,a)};U(sq,Z);g=sq.prototype;g.getErrorType=function(){return X(this,2,1)};g.setErrorType=function(a){return l(this,2,a)};g.getErrorMessage=function(){return p(this,3)};g.setErrorMessage=function(a){l(this,3,a)};g.toObject=function(){return D8b(this)};var D8b=function(a){if(null!=a)return{errorType:X(a,2,1),errorMessage:n(p(a,3))}};
var uq=function(a){Z.call(this,a,-1,E8b)};U(uq,Z);g=uq.prototype;g.getExperimentFlags=function(){return m(this,vq,1)};g.setExperimentFlags=function(a){return Ab(this,1,a)};g.hasExperimentFlags=function(){return cj(this,1)};g.getError=function(){return m(this,sq,2)};g.setError=function(a){Ab(this,2,a)};g.hasError=function(){return cj(this,2)};g.getSource=function(){return p(this,3)};g.setSource=function(a){return l(this,3,a)};g.hasSource=function(){return cj(this,3)};
g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){mb(this,4)};g.hasInstanceId=function(){return cj(this,4)};g.getExperimentIdsList=function(){return jb(this,5)};g.setExperimentIdsList=function(a){return hl(this,5,a)};var E8b=[5];
uq.prototype.toObject=function(){var a=null!=this?{experimentFlags:x8b(this.getExperimentFlags()),error:D8b(this.getError()),source:n(p(this,3)),instanceId:n(p(this,4)),experimentIdsList:n(jb(this,5))}:void 0;return a};
var p0=function(a,b){this.client_=a;this.runtime_=b;rq();this.apiKey_=a.getApiKey();this.apiRoot_=p(this.client_,10)||CCa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};p0.prototype.getClient=function(){return this.client_};p0.prototype.getApiKey=function(){return this.apiKey_};
var q0=function(a){Z.call(this,a,-1,F8b)};U(q0,Z);g=q0.prototype;g.getExperimentFlags=function(){return m(this,vq,1)};g.setExperimentFlags=function(a){return Ab(this,1,a)};g.hasExperimentFlags=function(){return cj(this,1)};g.getObfuscatedGaiaId=function(){return p(this,2)};g.setObfuscatedGaiaId=function(a){l(this,2,a)};g.getExperimentIdsList=function(){return jb(this,3)};g.setExperimentIdsList=function(a){return hl(this,3,a)};var G8b=function(a){return ho(q0,a)},F8b=[3];
q0.prototype.toObject=function(){var a=null!=this?{experimentFlags:x8b(this.getExperimentFlags()),obfuscatedGaiaId:n(p(this,2)),experimentIdsList:n(jb(this,3))}:void 0;return a};
var H8b=function(a){var b=void 0;b=void 0===b?Date.now:b;this.clientConfig_=a;this.now_=b},I8b=function(a,b,c){a=a.now_()-1E3*c;return b>a};H8b.prototype.getCacheState=function(a){var b=dj(this.clientConfig_.getClient(),3,1800);if(I8b(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(I8b(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return I8b(this,a,b)?3:4};
var tq=function(a,b){b=Error.call(this,void 0===b?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=a};U(tq,Error);
var J8b=function(a,b){b=void 0===b?null:b;var c=hSa(a);a=a.getProfileId()||b;return c&&a?JSON.stringify([c,a]):null},K8b=new tq(6);
var L8b=function(){};
var r0=function(){};Zt(r0,L8b);r0.prototype.getCount=function(){for(var a=0,b=r(this),c=b.next();!c.done;c=b.next())a++;return a};r0.prototype[Symbol.iterator]=function(){return BIb(this.__iterator__(!0)).toEs6()};r0.prototype.clear=function(){var a=Array.from(this);a=r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};
var M8b=function(a){this.storage_=a};Zt(M8b,r0);g=M8b.prototype;g.set=function(a,b){try{this.storage_.setItem(a,b)}catch(c){if(0==this.storage_.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.storage_.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.storage_.removeItem(a)};g.getCount=function(){return this.storage_.length};
g.__iterator__=function(a){var b=0,c=this.storage_,d=new eL;d.next=function(){if(b>=c.length)return AIb;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}};return d};g.clear=function(){this.storage_.clear()};g.key=function(a){return this.storage_.key(a)};
var jSa=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.storage_=a};Zt(jSa,M8b);
var s0=function(a,b){this.mechanism_=a;this.prefix_=b+"::"};Zt(s0,r0);s0.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};s0.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};s0.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
s0.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new eL;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.prefix_.length)!=c.prefix_;){e=b.next();if(e.done)return e;e=e.value}return{value:a?e.slice(c.prefix_.length):c.mechanism_.get(e),done:!1}};return d};
var xq=function(a,b){var c=void 0,d=void 0;b=void 0===b?new jSa:b;c=void 0===c?HD:c;d=void 0===d?rtb:d;this.clientConfig_=a;this.transformer_=new H8b(this.clientConfig_);this.localStorage_=b;this.serializeJson_=c;this.isValidJson_=d;this.prefix_="PeopleStackExperiments";this.storage_=new s0(this.localStorage_,this.prefix_)};
xq.prototype.set=function(a,b){var c=J8b(a,b.getObfuscatedGaiaId());if(!c)throw K8b;a={keyPath:c,experiments:b.serialize(),lastUpdated:Date.now(),instanceId:a.getInstanceId()};this.storage_.set(c,this.serializeJson_(a));return c};
xq.prototype.get=function(a){a=J8b(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;if((a=a&&this.isValidJson_(a)?JSON.parse(a):null)&&4!==this.transformer_.getCacheState(a.lastUpdated)){var b=this.transformer_;a={keyPath:a.keyPath,experiments:G8b(a.experiments),lastUpdated:new Date(a.lastUpdated),state:b.getCacheState(a.lastUpdated),instanceId:a.instanceId}}else a=null;return a};xq.prototype.delete=function(a){this.storage_.remove(a);return!0};
xq.prototype.clean=function(){for(var a=this.localStorage_.getCount(),b=0;b<a;b++){var c=this.localStorage_.key(b);if(c&&c.includes(this.prefix_)){var d=(d=this.localStorage_.get(c))&&this.isValidJson_(d)?JSON.parse(d):null;d=this.transformer_.getCacheState(d.lastUpdated)}else d=0;4===d&&this.localStorage_.remove(c)}};
var yq=function(a){var b=void 0;b=void 0===b?new Map:b;this.clientConfig_=a;this.transformer_=new H8b(this.clientConfig_);this.cache_=b};yq.prototype.set=function(a,b){var c=J8b(a,b.getObfuscatedGaiaId());if(!c)throw K8b;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
yq.prototype.get=function(a){a=J8b(a);if(!a)return null;a=this.cache_.get(a);if(!a)return null;var b=this.transformer_.getCacheState(a.lastUpdated.getTime());if(4===b)return null;a.state=b;return a};yq.prototype.delete=function(a){this.cache_.delete(a);return!0};yq.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){4===a.transformer_.getCacheState(b.lastUpdated.getTime())&&a.cache_.delete(c)})};
var N8b=function(){};g=N8b.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};
var O8b=function(a){Z.call(this,a)};U(O8b,Z);g=O8b.prototype;g.getCaller=function(){return m(this,n0,1)};g.setCaller=function(a){return Ab(this,1,a)};g.getClient=function(){return m(this,o0,2)};g.setClient=function(a){return Ab(this,2,a)};g.hasClient=function(){return cj(this,2)};g.toObject=function(){return P8b(this)};var P8b=function(a){if(null!=a)return{caller:A8b(a.getCaller()),client:B8b(a.getClient())}};
var Q8b=function(a){Z.call(this,a)};U(Q8b,Z);g=Q8b.prototype;g.getRequestType=function(){return p(this,1)};g.setRequestType=function(a){return l(this,1,a)};g.setProperties=function(a){return Ab(this,3,a)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){mb(this,4)};g.hasInstanceId=function(){return cj(this,4)};
g.toObject=function(){var a=null!=this?{requestType:n(p(this,1)),properties:P8b(m(this,O8b,3)),instanceId:n(p(this,4))}:void 0;return a};
var R8b=new mG("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",Q8b,q0,function(a){return a.serialize()},G8b);
var S8b=function(a){var b={format:"jspb"};this.client_=new UG(b);this.hostname_=a};S8b.prototype.getExperimentFlags=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},R8b)};
var t0=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new N8b};t0.prototype.getMetric=function(){return this.metric_};t0.prototype.send=function(a){var b=this,c;return me(function(d){var e=(new O8b).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new Q8b).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceId()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
t0.prototype.close=function(){};t0.prototype.processResponse=function(a){return a};
var T8b=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var U8b=function(a,b){this.config_=a;this.request_=b;this.resolver_=new T8b;this.rpcPromise_=null;this.state_=0};g=U8b.prototype;g.isPending=function(){return 1===this.state_};g.cancel=function(){switch(this.state_){case 1:this.rpcPromise_.cancel();break;case 0:this.state_=2,this.rpcPromise_=rsb(new oD),this.resolver_.reject(1)}};
g.send=function(){var a=this;if(0!==this.state_)return this.resolver_.promise;var b=BCa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);this.rpcPromise_=Bsb(usb([b,Ksb(1E3*this.config_.timeoutSec,"TIMEOUT")]),function(){a.state_=2}).then(function(c){return a.onResponse_(c)},function(c){return a.onError_(c)});return this.resolver_.promise};
g.onResponse_=function(a){if(a&&"TIMEOUT"!==a){try{var b=this.request_.processResponse(a)}catch(c){this.onError_(c,2);return}this.resolver_.resolve(b);this.request_.close(0)}else this.onError_(a)};
g.onError_=function(a,b){b=void 0===b?0:b;if("TIMEOUT"===a)var c=4;else a instanceof oD?c=1:a&&"object"===typeof a?(c=a.code||2,2===c&&(c=Ko("result.error.code",a)||a.status,c=Number(c),c=VTb.has(c)?VTb.get(c):200<=c&&300>c?0:400<=c&&500>c?9:500<=c&&600>c?13:2,2!==c||b||(b=(a.message||"").startsWith("Rpc failed due to xhr error.")?3:0))):c=2;!this.config_.authErrorHandler||16!==c&&7!==c||this.config_.authErrorHandler();this.resolver_.reject(c);this.request_.close(c,b)};
var V8b=Symbol("Ce"),W8b=function(){};W8b.prototype.intercept=function(a,b){return b(a).then(function(c){var d=c.getMetadata();if(d){d=Number(d["content-length"])||0;var e=c.responseMessage_;e&&isFinite(d)&&(e[V8b]=d)}return c})};
var u0=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};u0.prototype.getMetric=function(){return this.metric_};u0.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
u0.prototype.processResponse=function(a){this.metric_.stop("network");this.metric_.start("processed");try{return this.request_.processResponse(a)}catch(b){throw this.metric_.logError(b&&b.message||"processResponse",b),b;}finally{this.metric_.stop("processed"),this.contentLength_=a&&a[V8b]||0}};u0.prototype.close=function(a,b){b=void 0===b?0:b;this.request_.close(a,b);this.metric_.stop("total");this.metric_.status(a,b,this.contentLength_)};
var X8b=function(a){this.config_=a;this.pendingRpcs_=new Set},Z8b=function(a,b){b=new u0(b);b=new U8b(a.config_,b);a.pendingRpcs_.add(b);Y8b(a,b);return b.resolver_.promise},Y8b=function(a,b){me(function(c){if(1==c.nextAddress)return Lt(c,2,3),ne(c,b.send(),3);if(2!=c.nextAddress)return Ot(c),a.pendingRpcs_.delete(b),Pt(c,0);Nt(c);return c.jumpTo(3)})};
var lSa=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new X8b(a);this.rpcClient_=new S8b(this.clientConfig_.apiRoot_)},a9b=function(a,b){var c,d,e,f;return me(function(h){switch(h.nextAddress){case 1:var k=$8b(b);if(c=a.inflightRequests_.get(k)||null)return h.return(c);d=new t0(b,a.rpcClient_);Lt(h,2,3);e=Z8b(a.dispatcher_,d);k=$8b(b);a.inflightRequests_.set(k,
e);return ne(h,e,5);case 5:return f=h.yieldResult,h.return(f);case 3:Ot(h);k=$8b(b);a.inflightRequests_.delete(k);Pt(h,0);break;case 2:throw Nt(h),Error("De");}})},$8b=function(a){a=hSa(a);if(!a)throw K8b;return a};
var b9b=function(a){Z.call(this,a)};U(b9b,Z);g=b9b.prototype;g.getInstanceId=function(){return p(this,1)};g.setInstanceId=function(a){return l(this,1,a)};g.clearInstanceId=function(){mb(this,1)};g.hasInstanceId=function(){return cj(this,1)};g.getRequestType=function(){return p(this,4)};g.setRequestType=function(a){return l(this,4,a)};g.getSourceType=function(){return p(this,6)};g.setSourceType=function(a){return l(this,6,a)};g.getClient=function(){return p(this,7)};
g.setClient=function(a){return l(this,7,a)};g.hasClient=function(){return cj(this,7)};g.getErrorType=function(){return p(this,8)};g.setErrorType=function(a){return l(this,8,a)};g.toObject=function(){var a=null!=this?{instanceId:n(p(this,1)),requestId:n(p(this,2)),durationUsec:n(p(this,3)),requestType:n(p(this,4)),requestOrigin:n(p(this,5)),sourceType:n(p(this,6)),client:n(p(this,7)),errorType:n(p(this,8))}:void 0;return a};
var mSa=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=Zr(new $r,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(442955898).setEnableClearcut(b.getEnableClearcut())};g=mSa.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){throw Error("Va");};g.createStatusMetric=function(){throw Error("Va");};g.createErrorMetric=function(){throw Error("Va");};
g.createLatencyMetric=function(a,b){a=b.source();b=Math.round(1E3*b.duration());l(a,3,b);return a};
var v0=function(a,b){this.metrics_=a;this.state_=new lU(b);this.label_="total";this.source=b};v0.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};v0.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};
var nSa=function(a,b){this.worker_=a;this.metrics_=Uo(b)},c9b=function(a,b){var c=new b9b,d=rq();c=l(c,2,d).setRequestType(a.getRequestType());return l(c,5,b).setClient(a.getClient().getApplication())};
nSa.prototype.updateExperimentsCache=function(a,b){b=void 0===b?2:b;var c=this,d,e,f,h;return me(function(k){if(1==k.nextAddress)return d=c9b(a,b),e=new v0(c.metrics_,d),e.start(),ne(k,c.worker_.updateExperimentsCache(a,b),2);f=k.yieldResult;d.setSourceType(f.getSource());d.setInstanceId(f.getInstanceId());(h=f.getError())&&d.setErrorType(h.getErrorType());e.stop();return k.return(f)})};
nSa.prototype.getCachedExperiments=function(a,b){b=void 0===b?0:b;var c=c9b(a,b),d=new v0(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);c.setSourceType(a.getSource());c.setInstanceId(a.getInstanceId());(b=a.getError())&&c.setErrorType(b.getErrorType());d.stop();return a};
var d9b=function(a){this.timer=a;this.count=0},pSa=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;this.refreshRateMs_=1E3*dj(this.clientConfig_.getClient(),11,14400);this.eventHandler_=new OG(this)};pSa.prototype.updateExperimentsCache=function(a,b){try{return e9b(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(wq(c))}};pSa.prototype.getCachedExperiments=function(a,b){try{return e9b(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return wq(c)}};
var e9b=function(a,b){var c=hSa(b);if(!c)throw new tq(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new pD(a.refreshRateMs_);a.eventHandler_.listen(d,"tick",function(){if(a.worker_){b.clearInstanceId();a.worker_.updateExperimentsCache(b,1);var e=a.refreshers_.get(c);e.count++;var f=dj(a.clientConfig_.getClient(),12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new d9b(d))}a.refreshers_.get(c)};
var f9b=function(){},oSa=function(a,b){this.cache_=a;this.loader_=b};
oSa.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return me(function(k){if(1==k.nextAddress){e=d=null;try{d=g9b(c,a)}catch(E){e=E}if(d&&3!==d.state)return k.return(c.getCachedExperiments(a,b));Lt(k,3);return ne(k,h9b(c,a),5)}if(3!=k.nextAddress){f=k.yieldResult;var q=k.return,w=e;w=void 0===w?null:w;var y=(new uq).setExperimentFlags(f.getExperimentFlags()).setExperimentIdsList(f.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceId());w&&y.setError(iSa(w));return q.call(k,
y)}h=Nt(k);return k.return(wq(h))})};oSa.prototype.getCachedExperiments=function(a){try{var b=g9b(this,a);if(b){var c=(new uq).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);1!==b.state&&h9b(this,a).catch(f9b);return c}h9b(this,a).catch(f9b);return wq()}catch(d){return wq(d)}};
var g9b=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof tq)throw d;throw new tq(3);}},h9b=function(a,b){var c,d;return me(function(e){if(1==e.nextAddress)return Lt(e,2),b.hasInstanceId()||b.setInstanceId(rq()),ne(e,a9b(a.loader_,b),4);if(2!=e.nextAddress)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=Nt(e);if(d instanceof tq)throw d;throw new tq(2);})};
var kSa;
var i9b=function(a){this.clientConfig_=a;this.worker_=qSa(this.clientConfig_)};i9b.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};
var br=function(){this.peopleApiEnv_=4};br.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};br.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};
var j9b=function(a,b){this.client_=a;this.request_=b;this.response_=null};j9b.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};j9b.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList()};
var $q=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=442955898};$q.prototype.prefetch=function(a){var b=new p0(this.clientConfig_,new br);a=k9b(this,a,"");qSa(b).updateExperimentsCache(a,2)};$q.prototype.loadExperiments=function(a,b,c){var d=new p0(this.clientConfig_,b),e=k9b(this,a,c);qSa(d).updateExperimentsCache(e,2);b=new i9b(new p0(this.clientConfig_,b));a=k9b(this,a,c);return new j9b(b,a)};
var k9b=function(a,b,c){var d=(new n0).setVersion(a.version_);b=(new o0).setApplication(b);return(new C8b).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};
var zq=new cr(new j0,new y8b);
var tSa=RU.getInstance();
var xSa=RU.getInstance();
var w0=function(a){this.delegate=a};g=w0.prototype;g.getAllIds=function(){return this.delegate.getAllIds()};g.toggleSelection=function(){this.delegate.toggleSelection()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.spotlight=function(){this.delegate.spotlight()};g.getRoot=function(){return this.delegate.getRoot()};g.getSelection=function(){return this.delegate.getSelection()};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};
g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};g.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};g.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};g.addTag=function(a){this.delegate.addTag(a)};g.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};
var l9b=new ti(kQ.WEEKDAY_MONTH_DAY_MEDIUM),m9b=new ti(7);new ti(kQ.WEEKDAY_MONTH_DAY_MEDIUM);
var n9b=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);
var o9b=function(a){var b=a.altText,c=a.iconUrl,d=a.persistentText,e=a.styleClass;a=Gq;e='<div class="'+Hq("peoplekitComponentsTagTag")+" "+(e?Hq(e):"")+'" peoplekit-id="'+Hq("mQXP")+'">';if(c){var f='<img class="'+Hq("peoplekitComponentsTagIcon")+'" src="';zU(c,xVb)||zU(c,yVb)?c=DU(c):c instanceof hh?c=DU(ih(c)):c instanceof rh?c=DU(nh(c)):c instanceof Hy?c=DU(uh(c)):c instanceof th?c=DU(xja(c)):(c=String(c),c=YVb.test(c)?c.replace(SVb,TVb):"about:invalid#zSoyz");b=f+Hq(c)+'" alt="'+Hq(b)+'"><div'+
(d?"":' class="'+Hq("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Hq("peoplekitComponentsTagText")+'">'+AU(b)+"</div></div>"}else b='<div class="'+Hq("peoplekitComponentsTagText")+'">'+AU(b)+"</div>";return a(e+b+"</div>")};
var zSa=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;p9b(this,{tags:d});WRa(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){p9b(h,k)})};g=zSa.prototype;g.getAllIds=function(){return[]};g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.getRoot=function(){return this.root};
g.getSelection=function(){throw Error("Fe");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=mq(this.root,"Z306Oe");if(this.isOutOfOffice=4===a.getCurrentStatus()){if(4!==a.getCurrentStatus())throw Error("Ee");a=a.getCurrentStatusEndTime();var c=new Date(Date.now());a=c.getYear()===a.getYear()&&c.getMonth()===a.getMonth()&&c.getDate()===a.getDate()?"Out of office - back at "+m9b.format(a):"Out of office - back on "+l9b.format(a);hD(b,String(a));this.root.classList.add("isOutOfOffice")}else hD(b,""),this.root.classList.remove("isOutOfOffice")}};
g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:n9b.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=mq(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=Zo(o9b,Object.assign({},a,{styleClass:c}));b.appendChild(a)};
g.setMetaIcon=function(a){var b=Array.from(this.root.querySelectorAll('[peoplekit-id="SC3Htd"]'))[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var p9b=function(a,b){for(var c=r(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};zSa.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};
var q9b=function(a,b,c,d){this.loggingToken=d;(new p7b(a)).setDisplayName(b).forceDisplayNameOverride_=c};q9b.prototype.getLoggingToken=function(){return this.loggingToken};
var x0=function(a){this.delegate_=a};g=x0.prototype;g.getDelegate=function(){return this.delegate_};g.getResultType=function(){return this.delegate_.getResultType()};g.getTargetList=function(){return this.delegate_.getTargetList()};g.getMemberList=function(){return this.delegate_.getMemberList()};g.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};g.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};g.getDisplayName=function(){return this.delegate_.getDisplayName()};
g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};g.getMatchInfo=function(){return this.delegate_.getMatchInfo()};
var Dq=function(a){this.delegate_=a};U(Dq,x0);g=Dq.prototype;g.getPrimaryTarget=function(){return this.getTargetList()[0]};g.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};g.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};g.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
g.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};
var r9b=function(){};r9b.prototype.getDisplayNameMatches=function(){return[]};r9b.prototype.getDisplayValueMatches=function(){return[]};r9b.prototype.getGivenNameMatches=function(){return[]};var s9b=new r9b;
var ASa=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=ASa.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return this.targets_};g.getMemberList=function(){return[]};g.getTotalMemberCount=function(){return this.memberCount_};g.getPrimaryTarget=function(){throw Error("Ge");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getMatchInfo=function(){return s9b};
var t9b=new Map([[1,1],[2,1],[3,1],[4,1],[5,2],[6,1],[7,1],[8,1],[9,3],[10,5],[11,6],[12,4],[13,4],[14,4],[15,4],[16,4],[17,1],[18,7],[19,7]]);
var Ir=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=Ir.prototype;g.getUrl=function(){return this.url_};g.setUrl=function(a){this.url_=a||"";return this};g.getType=function(){return this.type_};g.setType=function(a){this.type_=a;return this};g.getSourceType=function(){return this.sourceType_};g.setSourceType=function(a){this.sourceType_=a||0;return this};g.getGlyph=function(){return this.glyph_};g.setGlyph=function(a){this.glyph_=a||"";return this};
var u9b=(new Ir).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),v9b=new Ir;
var w9b=function(a){this.id_=a;this.value_=this.id_.originalValue_;this.description_="";this.name_=null;this.photo_=Fq(this.id_)?v9b:u9b;this.tags_=[];this.sourceIds_=L7b.includes(this.id_.getType())?[this.id_]:[];8===this.id_.getType()&&this.sourceIds_.push(new nr(3,this.id_.originalValue_));this.isMe_=17===this.id_.getType();this.dataSource_=0;this.resultType_=t9b.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=this.originatingField_=
null};g=w9b.prototype;g.getId=function(){return this.id_};g.getTargetType=function(){return this.id_.getType()};g.getValue=function(){return this.value_};g.setValue=function(a){this.value_=(a||"").trim();return this};g.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return a&&a.getValue()||"";case 1:case 2:case 6:case 7:return this.getValue();default:return""}};g.getName=function(){return this.name_};g.setName=function(a){this.name_=a;return this};
g.getDescription=function(){return this.description_};g.setDescription=function(a){this.description_=a||"";return this};g.getPhoto=function(){return this.photo_};g.setPhoto=function(a){a&&a.getUrl()&&1!==a.getType()?this.photo_=a:this.photo_=Fq(this.id_)?v9b:u9b};g.getSourceIdList=function(){return this.sourceIds_};g.getProfileId=function(){return this.getSourceIdList().filter(function(a){return 3===a.getType()}).map(function(a){return a.originalValue_}).find(Boolean)||""};
g.getContactId=function(){return this.getSourceIdList().filter(function(a){return 4===a.getType()}).map(function(a){return a.originalValue_}).find(Boolean)||""};g.getLoggingToken=function(){return new Pr};var yUa=function(a,b){a.isMe_=b;return a};g=w9b.prototype;g.getIsPersonalResult=function(){return 1===this.dataSource_};g.getDataSource=function(){return this.dataSource_};g.setDataSource=function(a){this.dataSource_=a;return this};g.getResultType=function(){return this.resultType_};
g.getFieldLoggingId=function(){return this.fieldLoggingId_};g.setFieldLoggingId=function(a){this.fieldLoggingId_=a||""};g.getPersonLoggingId=function(){return this.personLoggingId_};g.setPersonLoggingId=function(a){this.personLoggingId_=a||""};g.getOrgState=function(){return this.orgState_};g.getOriginatingField=function(){return this.originatingField_};var Jr=function(a,b){a.originatingField_=b;return a},Kr=function(a){return new w9b(a)};
var x9b=function(){this.internalId=rr;this.displayNameOverride="";this.forceDisplayNameOverride=!1;var a=Kr(this.internalId).setDataSource(3);this.internalResult=new Dq(Eq(0,[a]));this.internalSelectionToken=new q9b(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,null)};g=x9b.prototype;g.id=function(){return this.internalId};g.selectionToken=function(){return this.internalSelectionToken};g.result=function(){return this.internalResult};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};
g.isPlaceholder=function(){return!0};
var Iq=function(a,b,c,d,e){this.delegate=Cq(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=new x9b};U(Iq,w0);Iq.prototype.getAllIds=function(){return[this.id]};Iq.prototype.getSelection=function(){return this.selection};
var y9b=function(a,b,c,d,e,f,h){c=void 0===c?"":c;d=void 0===d?!1:d;return Gq('<div role="option" class="'+Hq("peoplekitComponentsResultlistitemResultListItem")+" "+Hq(c)+'" id="'+Hq(a)+'" peoplekit-id="'+Hq(a)+'" aria-disabled="'+Hq(d)+'" aria-selected="false"><div class="'+Hq("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Hq("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Hq(b)+'">'+AU(e)+'</div><div class="'+Hq("peoplekitComponentsResultlistitemCenter")+
'">'+AU(f)+'</div><div class="'+Hq("peoplekitComponentsResultlistitemRight")+'">'+AU(h)+'</div></div><div peoplekit-id="'+Hq("Z306Oe")+'" class="'+Hq("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},z9b=function(a,b,c,d){return Gq('<div class="'+Hq("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Hq("peoplekitComponentsResultlistitemLabel")+" "+Hq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Hq("peoplekitComponentsResultlistitemLabelText")+'" data-hovercard-id="'+
Hq(b)+'" translate="no">'+AU(JVb(a))+'</div><div peoplekit-id="'+Hq("x00ATb")+'" class="'+Hq("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(c?'<div class="'+Hq("peoplekitComponentsResultlistitemSublabel")+" "+Hq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Hq("peoplekitComponentsResultlistitemSublabelText")+'" data-hovercard-id="'+Hq(b)+'"'+(d?"":' translate="no"')+">"+AU(JVb(c))+"</div></div>":"")+"</div>")},A9b=function(a){return Gq('<div class="'+Hq("peoplekitComponentsResultlistitemAvatar")+
'"><div class="'+Hq("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Hq("d6MZcd")+'"></div>'+(a?AU(a):"")+"</div>")},B9b=function(){var a=Gq,b='<div class="'+Hq("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Hq("peoplekitComponentsResultlistitemWhiteCheck")+'">';var c=Gq('<svg viewBox="0 0 24 24" class="'+(Hq("peoplekitComponentsResultlistitemWhiteCheckSvg")+'"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'));
return a(A9b(CU(b+c+"</div></div>")))},C9b=function(){return Gq('<img class="'+Hq("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Hq("SC3Htd")+'" alt="" src=""/>')};
var BSa=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.disableReason,f=a.allowSublabelTranslation;return Gq(y9b(a.id,b,"isDisabled "+a.densityClass,!0,CU(""+A9b()),CU(""+z9b(c,b,d,f)),CU('<div class="'+Hq("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'+AU(e)+"</div>")))};
var y0=function(a){this.delegate=a;var b=this;this.eventHandler=new OG(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};U(y0,w0);y0.prototype.onClick=function(){this.toggleSelection()};
var ESa=function(a,b){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=!1;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("He");this.target=a;a=this.target.getLoggingToken();b=this.target.getId();this.internalSelectionToken=new q9b(b,this.displayNameOverride,this.forceDisplayNameOverride,a)};g=ESa.prototype;g.id=function(){return this.target.getId()};g.selectionToken=function(){return this.internalSelectionToken};g.result=function(){return this.internalResult};
g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.isPlaceholder=function(){return!1};
var D9b=["pk-select","pk-deselect","pk-click","pk-input"],E9b=new Map([["pk-select",3],["pk-deselect",3],["pk-click",3],["pk-input",15]]);
var z0=function(a,b,c,d,e,f){this.delegate=Cq(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=new x9b};U(z0,w0);z0.prototype.getAllIds=function(){return[this.id]};z0.prototype.toggleSelection=function(){for(var a=r(this.result.getMemberList()),b=a.next();!b.done;b=a.next())b=FSa(b.value),this.selectionsState.select(b);this.root.dispatchEvent(DSa("pk-select",this.root))};z0.prototype.getSelection=function(){return this.selection};
var F9b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return Gq(y9b(a.id,b,a.densityClass,void 0,CU(""+A9b()),CU(""+z9b(c,b,d)),CU(""+C9b())))};
var GSa=RU.getInstance();
var J9b=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&G9b(this,this.getSelection());H9b(this.selectionsState,function(d){d.id().equals(c.id)&&(c.getRoot().classList.remove("isSelected"),c.getRoot().setAttribute("aria-selected","false"))});I9b(this.selectionsState,function(d){return G9b(c,d)})};U(J9b,w0);
J9b.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=DSa("pk-deselect",a)}else a=this.getRoot(),a=DSa("pk-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var G9b=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};
var K9b=function(a,b,c,d,e,f){this.delegate=Cq(a,b,d,e,f,[2]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||FSa(b,b.getDisplayName())};U(K9b,w0);K9b.prototype.getAllIds=function(){return[this.id]};K9b.prototype.getSelection=function(){return this.selection};
var L9b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return Gq(y9b(a.id,b,a.densityClass,void 0,CU(""+B9b()),CU(""+z9b(c,b,d)),CU(""+C9b())))};
var M9b=function(a,b,c,d,e,f){this.delegate=Cq(a,b,d,e,f,[]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||FSa(b)};U(M9b,w0);M9b.prototype.getAllIds=function(){return[this.id]};M9b.prototype.getSelection=function(){return this.selection};
var N9b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Gq(y9b(a.id,b,a.densityClass,void 0,CU(""+B9b()),CU(""+z9b(c,b,d,e)),CU(""+C9b())))};
var MSa=function(a,b,c,d,e){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.selectionsState=d;this.results=[];this.intelligentCollection=e.create();a=new U7b(this.results);this.navigatable=new Y7b(a)};g=MSa.prototype;g.register=function(a){this.results.push(a);this.navigatable.insert(this.navigatable.size(),[a],!1);this.intelligentCollection.append([a])};
g.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){a:{var c=b.value,d=this.selectionsState,e=this.resultConfig;b=this.appearanceConfig;var f=IWb(this.list.getRoot()),h=!!d.get(c.getPrimaryTarget().getId());var k=c;var q=e;if(q.getManuallyDisableResultCallback()(k))k=5;else{var w=k.getPrimaryTarget().getId();k=Bq.includes(w.getType())?3:Fq(w)?2:1===k.getTargetList().length?h&&!q.getAllowResultDeselection()?4:1:0}switch(k){case 1:f=c;k=b;b=sSa(f,e,qq(k.getDensity()));c=Zo(L9b,b);Kq(c,
25285,["impression","pk-select","pk-deselect"],[HSa(f.getPrimaryTarget().getLoggingToken())]);h=mq(c,"d6MZcd");q=pq(k.getDensity());k=oq(h,b.photos,q,q,k);b=new K9b(c,f,d,e,b.tags,k);b=new y0(new J9b(b,d));break a;case 4:b=CSa(c,1,e,b,f);break a;case 5:b=CSa(c,2,e,b,f);break a;case 2:k=b;b=ySa(c,e,f,qq(k.getDensity()));f=Zo(N9b,b);Kq(f,25285,["impression","pk-select","pk-deselect"],[HSa(c.getPrimaryTarget().getLoggingToken())]);h=mq(f,"d6MZcd");q=pq(k.getDensity());k=oq(h,b.photos,q,q,k);b=new M9b(f,
c,d,e,b.tags,k);b=new y0(new J9b(b,d));break a;case 3:f=ySa(c,e,f,qq(b.getDensity()));k=Zo(F9b,f);Kq(k,25285,["impression","pk-select","pk-deselect"],[HSa(c.getPrimaryTarget().getLoggingToken())]);h=mq(k,"d6MZcd");q=pq(b.getDensity());b=oq(h,f.photos,q,q,b);b=new y0(new z0(k,c,d,e,f.tags,b));break a;default:throw Error("Ie");}}this.list.append(b.getRoot());this.register(b)}};g.clear=function(){this.list.clear();this.results.length=0;this.navigatable.clear();this.intelligentCollection.clear()};
g.reset=function(){this.navigatable.reset()};g.getNavigatable=function(){return this.navigatable};
var ISa=function(a){a=a.header;return Gq('<div peoplekit-id="'+Hq("aittld")+'">'+(0<BU(a).length?'<div class="'+Hq("peoplekitUiResultlistHeader")+'">'+AU(a)+"</div>":"")+'<div peoplekit-id="'+Hq("tjneg")+'"></div></div>')},O9b=function(a){a=a.name;return Gq('<div class="'+Hq("peoplekitUiResultlistGroup")+'">'+AU(a)+"</div>")};
var Mq=function(a,b,c){this.delegate=a;this.list=b;this.grouping=c;this.renderedGroups=new Set};Mq.prototype.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.grouping.getGroupId(b);if(c&&!this.renderedGroups.has(c)){var d=this.grouping.getGroupName(c);d&&(d=Zo(O9b,{name:d}),this.list.append(d));this.renderedGroups.add(c)}this.delegate.append([b])}};Mq.prototype.clear=function(){this.renderedGroups.clear();this.delegate.clear()};
Mq.prototype.reset=function(a){this.grouping.reset(a);this.renderedGroups.clear();this.delegate.reset(a)};Mq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var Nq=function(a,b){this.delegate=a;this.interactions=b};Nq.prototype.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.delegate.append([b]),this.interactions.display(b)};Nq.prototype.clear=function(){this.delegate.clear()};Nq.prototype.reset=function(a){this.delegate.reset(a)};Nq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var er=function(a){this.label=a};er.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return 2!==b.getDataSource()})?"non_directory":"directory"};er.prototype.getGroupName=function(a){switch(a){case "directory":return this.label;case "non_directory":return"";default:return a}};er.prototype.reset=function(){};
var fr=function(a){this.label=a};fr.prototype.getGroupId=function(a){return 7!==a.getResultType()?"suggestions":"non_suggestions"};fr.prototype.getGroupName=function(a){switch(a){case "suggestions":return this.label;case "non_suggestions":return"";default:return a}};fr.prototype.reset=function(){};
var P9b=function(a,b){this.ariaParent=a;this.delegate=b};g=P9b.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),eJ(this.ariaParent,a)):eJ(this.ariaParent,null)};g.prev=function(a){a=this.delegate.prev(a);this.update();return a};g.next=function(a){a=this.delegate.next(a);this.update();return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};g.getItem=function(a){return this.delegate.getItem(a)};g.clear=function(){this.delegate.clear();this.update()};g.reset=function(){this.delegate.reset();this.update()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};
g.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};g.remove=function(a,b){this.delegate.remove(a,b);this.update()};g.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};
var Q9b=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};Q9b.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};Q9b.prototype.preventDefault=function(){this.event.preventDefault()};
var R9b=function(a){this.input=this.navigatable=null;this.navigatePastBeginCallback=a.navigatePastBegin||function(){};this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.options=Object.assign({},{shouldReactToHomeEnd:!0},{shouldReactToHomeEnd:!1});this.eventHandler=new OG(this)};g=R9b.prototype;
g.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(new Q9b(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new Q9b(d))});this.eventHandler.listen(this.input,"blur",function(){return c.onBlur()})};g.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
g.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal))switch(a.event.keyCode){case 40:this.navigatable.next(0)||this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case 38:this.navigatable.prev(0)||this.navigatePastBeginCallback();a.stopPropagation();a.preventDefault();break;case 36:if(!this.options.shouldReactToHomeEnd)break;this.navigatable.goToIndex(0,0);a.stopPropagation();a.preventDefault();break;case 35:this.options.shouldReactToHomeEnd&&
(this.navigatable.goToIndex(this.navigatable.size()-1,0),a.stopPropagation(),a.preventDefault())}};g.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};g.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};g.reset=function(){this.navigatable&&this.navigatable.reset()};g.onBlur=function(){this.reset()};
var S9b=new KC;S9b.altKey=!0;S9b.keyCode=39;
var T9b=function(){DC.call(this)};U(T9b,DC);T9b.prototype.init=function(){};new T9b;
var xTa=function(a,b,c,d,e,f){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.count=0;this.attached=!1;this.navigatable=new P9b(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=new R9b({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}});this.eventHandler=new OG(this);lq(this.root,0)};g=xTa.prototype;
g.search=function(a,b,c,d){var e=this;this.resultList.reset(a);this.resultList.clear();this.root.classList.remove("noResults");this.root.classList.add("isLoading");lq(this.root,1);this.count=0;if(a){var f=U9b(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=U9b(this.health);h.start();this.session.suggest(function(k){e.update(k,d,h,!1)})}};
g.attach=function(){this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(a){return a.preventDefault()}))};g.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();lq(this.root,0)};g.isShown=function(){return!0};g.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
g.update=function(a,b,c,d){var e=a.getResults();a=a.getMetadata();this.root.classList.remove("isLoading");this.resultList.append(e);this.count+=e.length;b(this.count);0<this.count?this.attach():a.getIsLastCallback()&&this.root.classList.add("noResults");a.getIsLastCallback()&&lq(this.root,0===a.getCode()?2:3);(d||this.config.getAutoActivateFirstSuggestion())&&0<this.count&&!this.navigatable.getSpotlitItem()&&this.navigatable.next(0);c.stop()};
g.onKeyDown=function(a){var b=13===a.event.keyCode;if(9===a.event.keyCode&&!a.event.shiftKey||b)if(b=this.navigatable.getActiveItems(),b.length){b=r(b);for(var c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}};g.getNavigatable=function(){return this.navigatable};g.getRoot=function(){return this.root};
var uTa=function(){var a=Gq,b='<div class="'+Hq("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Hq("yDHfq")+'"><div class="'+Hq("peoplekitComponentsAutocompleteInlineListContainer")+'">';var c=CU('<div peoplekit-id="'+Hq("tjneg")+'"></div>');c=Gq('<div tabindex="-1" class="'+Hq("peoplekitComponentsScrollboxScrollbar")+'">'+AU(c)+"</div>");b=b+c+'</div><div class="'+Hq("peoplekitComponentsAutocompleteInlineCircularProgress")+'">';c="Loading...";c='<div class="'+Hq("peoplekitComponentsCircularprogressCircularProgress")+
(" "+Hq("isActive"))+'" data-loadingmessage="'+Hq(c)+'" data-active="true" dir="ltr"><div class="'+Hq("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Hq("vyyg5")+'">'+AU(c)+'</div><div class="'+Hq("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Hq("peoplekitComponentsCircularprogressColorOne")+" "+Hq("exportColorOne")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Hq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+" "+Hq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+
" "+Hq("exportCircle")+'"></div></div></div><div class="'+Hq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Hq("peoplekitComponentsCircularprogressColorTwo")+" "+Hq("exportColorTwo")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+" "+Hq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+" "+Hq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div></div><div class="'+Hq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Hq("peoplekitComponentsCircularprogressColorThree")+" "+Hq("exportColorThree")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Hq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+" "+Hq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+
" "+Hq("exportCircle")+'"></div></div></div><div class="'+Hq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Hq("peoplekitComponentsCircularprogressColorFour")+" "+Hq("exportColorFour")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+" "+Hq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div><div class="'+Hq("peoplekitComponentsCircularprogressCircleClipper")+" "+Hq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Hq("peoplekitComponentsCircularprogressCircle")+" "+Hq("exportCircle")+'"></div></div></div></div></div>';c=Gq(c);return a(b+c+"</div></div>")},vTa=function(){return Gq('<div class="'+Hq("peoplekitComponentsAutocompleteInlineNoResultsContainer")+'"></div>')};
var wTa=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Hq("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Hq(a)+'"':"")+'><p class="'+Hq("peoplekitComponentsNoResultsMessageHeader")+'">';b=AU(b?b:"No results");a=a+b+"</p>";if(FVb(c)||FVb(d))a+='<p class="'+Hq("peoplekitComponentsNoResultsMessageExplanation")+'">',c&&(c=AU(c),a=a+c+(d?" ":"")),d&&(a+='<a jsname="'+Hq("viORvd")+'" class="'+Hq("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+Hq(UVb(d))+'">',d=AU(e?e:"Learn more"),a+=d,a+="</a>"),a+="</p>";a+="</div>";return Gq(a)};
var V9b=Object.freeze(new Rq(NaN,NaN)),W9b=Object.freeze(new LU(NaN,NaN,NaN,NaN)),Vq=function(a,b,c){this.root=a;this.requestHide=b;this.lastPosition=V9b;this.lastBounds=W9b;this.anchorUpdateTimer=new pD(15);this.options=Object.assign({},{moveAboveAnchorIfOffscreen:!0},c);this.eventHandler=new OG(this);this.attach()};Vq.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return X9b(a)})};Vq.prototype.isShown=function(){return"none"!=this.root.style.display};
Vq.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};Vq.prototype.show=function(a){this.anchor=a;this.lastPosition=V9b;this.lastBounds=W9b;PU(this.root,!0);X9b(this);this.anchorUpdateTimer.start()};
var X9b=function(a){var b;if((b=a.anchor)&&!(b=!a.lastPosition.equals(OU(a.anchor)))){b=a.lastBounds;var c=Oq(a.root);b=!(b==c||b&&c&&b.left==c.left&&b.width==c.width&&b.top==c.top&&b.height==c.height)}if(b)if(c=a.anchor,b=Oq(c),(c=Pq(c))&&b.intersection(QSa(c))){var d=a.anchor;b=a.root;c=a.options.moveAboveAnchorIfOffscreen;Uq(b,"","");b.style.height=NU("",!0);var e=TSa(d,9,b,8,c);d=TSa(d,8,b,9,c);e.height>=d.height||!c?WSa(b,e):WSa(b,d);a.lastPosition=OU(a.anchor);a.lastBounds=Oq(a.root)}else a.requestHide()};
Vq.prototype.hide=function(){this.root.style.cssText="";PU(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=V9b;this.lastBounds=W9b};
var yTa=function(a,b,c,d,e){var f=this;this.root=a;this.navigationInput=b;this.inlineAutocomplete=c;this.selectionsState=d;this.config=e;this.lastShowTime=0;this.popup=XSa(this.root,function(){f.hide()},{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=new OG(this);this.attach()};g=yTa.prototype;
g.search=function(a,b,c,d){var e=this;this.hide();this.inlineAutocomplete.search(a,b,c,function(f){e.anchor=b;e.update(f);d(f)})};g.attach=function(){var a=this;I9b(this.selectionsState,function(){return a.onSelect()});Y9b(this.selectionsState,function(){return a.onSelect()});this.eventHandler.listen(this.root,"mouseover",function(b){100>Date.now()-a.lastShowTime&&(b.preventDefault(),b.stopPropagation())})};g.onSelect=function(){this.hide()};
g.onKeyDown=function(a){this.isShown()&&27===a.event.keyCode&&(this.hide(),a.preventDefault(),a.stopPropagation())};g.detach=function(){this.hide()};g.isShown=function(){return this.popup.isShown()};g.dispose=function(){this.detach();this.eventHandler.removeAll();this.inlineAutocomplete.dispose();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};g.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};g.getRoot=function(){return this.root};
g.update=function(a){a&&this.show()};
g.show=function(){this.navigationInput.setAttribute("aria-expanded","true");this.lastShowTime=Date.now();var a=this.navigationInput.clientWidth;a:{var b=this.config.getDensity();switch(b){case 0:b=300;break a;case 1:b=300;break a;case 2:b=240;break a;default:throw Error("Be`"+b);}}a:{var c=this.config.getDensity();switch(c){case 0:c=420;break a;case 1:c=420;break a;case 2:c=320;break a;default:throw Error("Be`"+c);}}this.root.style.width=NU(Math.max(Math.min(c,a),b),!0);a:switch(a=this.config.getDensity(),
a){case 0:a=Number("64");break a;case 1:a=Number("52");break a;case 2:a=Number("44");break a;default:throw Error("Be`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.root.style.minHeight=a+"px";this.popup.show(this.anchor)};g.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};
var tTa=function(){return Gq('<div class="'+Hq("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Hq("noeiCf")+'" style="display: none;"></div>')};
var Z9b=function(a){this.resolveComponents=a;this.batches=new Map};Z9b.prototype.add=function(a){for(var b=r(this.resolveComponents(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getSupportedIntelligenceFeatures().sort().join("-");this.batches.has(d)||this.batches.set(d,{ids:[],features:c.getSupportedIntelligenceFeatures()});this.batches.get(d).ids.push(a)}};
var YSa=function(a,b){this.service=a;this.resolveComponents=b};
YSa.prototype.update=function(a){var b=this;a=r([].concat(u(a.batches.values())));for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(d.features.length){c=this.service.for(d.ids);d=r(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){$9b(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){$9b(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var $9b=function(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=r(a.resolveComponents(e)),h=f.next();!h.done;h=f.next())c(e,d,h.value)}};
var a$b=new Set([1,3,20]),b$b=function(a){var b=this;this.idToComponent=new Map;this.updater=ZSa(a,function(c){return b.resolveComponents(c)})};g=b$b.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return a$b.has(h.getType())})});a=[];b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=r(c.getAllIds()),e=d.next();!e.done;e=d.next())e=e.value,a.push(e),e=String(e),this.idToComponent.has(e)||this.idToComponent.set(e,[]),this.idToComponent.get(e).push(c)}this.refresh(a)};
g.remove=function(a){var b={};a=r(a);for(var c=a.next();!c.done;b={$jscomp$loop$prop$component$1685:b.$jscomp$loop$prop$component$1685},c=a.next()){b.$jscomp$loop$prop$component$1685=c.value;c=r(b.$jscomp$loop$prop$component$1685.getAllIds());for(var d=c.next();!d.done;d=c.next()){d=String(d.value);var e=this.idToComponent.get(d);e&&this.idToComponent.set(d,e.filter(function(f){return function(h){return h!==f.$jscomp$loop$prop$component$1685}}(b)))}}};
g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};g.refresh=function(a){var b=this,c=new Z9b(function(e){return b.resolveComponents(e)});a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);this.updater.update(c)};g.clear=function(){this.idToComponent.clear()};
var A0=function(){};A0.prototype.append=function(){};A0.prototype.remove=function(){};A0.prototype.refresh=function(){};A0.prototype.clear=function(){};
var sTa=function(a){this.peopleIntelligence=a};sTa.prototype.create=function(){return this.peopleIntelligence?new b$b(this.peopleIntelligence):new A0};
var nTa=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);
var c$b=function(){this.label="";this.type=0};g=c$b.prototype;g.getAutocompleteGroupingType=function(){return this.type};g.setAutocompleteGroupingType=function(a){this.type=a};g.getAutocompleteGroupingLabel=function(){return this.label};g.setAutocompleteGroupingLabel=function(a){this.label=a};g.getAutocompleteCustomGrouping=function(){return this.customGrouping};
var d$b=function(){this.decorationConfigRequest=function(){};this.manuallyDisableResultCallback=function(){return!1}};g=d$b.prototype;g.getAllowResultDeselection=function(){return!1};g.getWarnForExternalSelections=function(){return!1};g.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};g.getManuallyDisableResultCallback=function(){return this.manuallyDisableResultCallback};g.getShouldHideSuggestionSublabels=function(){return!1};
var e$b=function(a){this.header="";this.showSuggestions=!1;this.autoActivateFirstSuggestion=!0;this.maxResultsBeforeScroll=7;this.moveAutocompleteAboveAnchorIfOffscreen=!0;this.entryPoint=0;this.environmentConfig=a;this.grouping=new c$b;this.result=new d$b;this.appearance=new nq};g=e$b.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.header};g.setAutocompleteHeader=function(a){this.header=a};g.getShowSuggestions=function(){return this.showSuggestions};
g.setShowSuggestions=function(a){this.showSuggestions=a};g.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};g.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};
g.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};g.setEntryPoint=function(a){this.entryPoint=a};g.getEntryPoint=function(){return this.entryPoint};g.getNoResultsMessage=function(){return null};g.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};
g.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};g.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};
g.getManuallyDisableResultCallback=function(){return this.result.getManuallyDisableResultCallback()};g.getShouldHideSuggestionSublabels=function(){return this.result.getShouldHideSuggestionSublabels()};g.getDensity=function(){return this.appearance.getDensity()};g.setDensity=function(a){this.appearance.setDensity(a)};g.getTheme=function(){return this.appearance.getTheme()};g.setTheme=function(a){this.appearance.setTheme(a)};
var f$b=function(a){this.environmentConfig=a;this.autocomplete=new e$b(a)};g=f$b.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};g.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};g.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};g.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
g.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
g.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};g.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};g.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};g.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};g.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};g.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};
g.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};g.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};
g.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};g.getManuallyDisableResultCallback=function(){return this.autocomplete.getManuallyDisableResultCallback()};g.getShouldHideSuggestionSublabels=function(){return this.autocomplete.getShouldHideSuggestionSublabels()};g.getDensity=function(){return this.autocomplete.getDensity()};
g.setDensity=function(a){this.autocomplete.setDensity(a)};g.getTheme=function(){return this.autocomplete.getTheme()};g.setTheme=function(a){this.autocomplete.setTheme(a)};
var g$b=Object.freeze(new Map([[5,1]]));
var B0=function(){this.entryPoint_=0};B0.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};B0.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};B0.prototype.serialize=function(){return[this.entryPoint_].toString()};var h$b=Object.freeze(new B0);
var C0=function(){this.originator_=0};C0.prototype.setOriginator=function(a){this.originator_=a;return this};C0.prototype.getOriginator=function(){return this.originator_};
var oTa=function(a,b,c){var d=this;this.reporter=a.getReporter((new B0).setPeoplekitEntryPoint(c));I9b(b,function(e,f,h){d.select(e,h)});H9b(b,function(e,f,h){d.deselect(e,h)});i$b(b,function(e,f,h,k){d.replace(e,k)})};g=oTa.prototype;g.display=function(a){this.reporter.reportDisplay($Sa(a.getTargetList()))};g.select=function(a,b){if(!a.isPlaceholder())switch(b){case 1:case 12:case 5:this.reporter.reportSelect(Wq([a]),(new C0).setOriginator(g$b.get(b)||0));break;case 6:this.reporter.reportExternalSelect(Wq([a]))}};
g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(Wq([a]))}};g.dismiss=function(a){this.reporter.reportDismiss(Wq(a))};g.save=function(a){this.reporter.reportSave(Wq(a))};g.send=function(a){this.reporter.reportSend(Wq(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};
var j$b=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};j$b.prototype.call=function(a){var b=this;if(!this.isBatchingInternal){var c=Date.now(),d=c-this.lastBatchTime;this.lastBatchTime=c;this.isBatchingInternal=!0;this.timerId=qD(function(){b.isBatchingInternal=!1;a()},100<d?0:100)}};j$b.prototype.cancel=function(){rD(this.timerId);this.isBatchingInternal=!1};
var FTa=function(a,b,c,d,e){var f=this;this.autocomplete=a;this.selectionsState=b;this.interactions=c;this.tracker=d;this.config=e;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new j$b;I9b(this.selectionsState,function(){k$b(f)})};g=FTa.prototype;g.search=function(a,b){this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){0<d&&!c&&(c=!0)})};g.isShown=function(){return this.autocomplete.isShown()};
g.report=function(a){var b=void 0===b?[]:b;var c=this.interactions;b=b.length?b:this.selectionsState.selectionsState.slice();switch(a){case 1:c.reporter.reportProceed(Wq(b));break;case 2:c.dismiss(b);break;case 3:c.save(b);break;case 4:c.send(b)}};g.cancel=function(){this.autocomplete.detach()};g.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.autocomplete.dispose()};
var l$b=function(a,b){a.selectionChangedListeners.push(b)},k$b=function(a){a.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.selectionsState.slice(),c=r(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};
var D0=function(a){Z.call(this,a)};U(D0,Z);D0.prototype.getVersion=function(){return X(this,1,1)};D0.prototype.setVersion=function(a){return l(this,1,a)};D0.prototype.toObject=function(){return m$b(this)};var m$b=function(a){if(null!=a)return{version:X(a,1,1)}};
var n$b=function(a){Z.call(this,a)};U(n$b,Z);g=n$b.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getEntryPoint=function(){return p(this,5)};g.setEntryPoint=function(a){return l(this,5,a)};g.getSocialClient=function(){return m(this,UT,2)};g.setSocialClient=function(a){return Ab(this,2,a)};g.setVersionName=function(a){return l(this,3,a)};g.getBaselineCl=function(){return p(this,4)};g.setBaselineCl=function(a){return l(this,4,a)};
g.hasBaselineCl=function(){return cj(this,4)};g.getComponentFlow=function(){return p(this,7)};g.setComponentFlow=function(a){return l(this,7,a)};g.toObject=function(){return o$b(this)};var o$b=function(a){if(null!=a)return{clientId:n(p(a,1)),entryPoint:n(p(a,5)),socialClient:ASb(a.getSocialClient()),versionName:n(p(a,3)),baselineCl:n(p(a,4)),componentFlow:n(p(a,7)),androidClientInfo:m$b(m(a,D0,6))}};
var p$b=function(a){Z.call(this,a)};U(p$b,Z);p$b.prototype.toObject=function(){return q$b(this)};var q$b=function(a){if(null!=a)return{imageType:n(p(a,1)),imageDataCached:n(p(a,2))}};
var r$b=function(a){Z.call(this,a)};U(r$b,Z);r$b.prototype.toObject=function(){return s$b(this)};var s$b=function(a){if(null!=a)return{avatarMetadata:q$b(m(a,p$b,1))}};
var t$b=function(a){Z.call(this,a)};U(t$b,Z);g=t$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return u$b(this)};var u$b=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var v$b=function(a){Z.call(this,a)};U(v$b,Z);g=v$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};g.getValue=function(){return dj(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};g.toObject=function(){return w$b(this)};var w$b=function(a){if(null!=a)return{label:n(p(a,1)),value:dj(a,2,1)}};
var x$b=function(a){Z.call(this,a)};U(x$b,Z);g=x$b.prototype;g.setLatencyUsec=function(a){l(this,2,a)};g.getQueryLength=function(){return p(this,3)};g.setQueryLength=function(a){l(this,3,a)};g.hasQueryLength=function(){return cj(this,3)};g.toObject=function(){return y$b(this)};
var y$b=function(a){if(null!=a)return{resultCount:n(p(a,1)),latencyUsec:n(p(a,2)),queryLength:n(p(a,3)),isContactsPermissionsGranted:n(Ro(a,4)),isShowDeviceContactsDisplayed:n(Ro(a,5)),memoryAllocatedDelta:n(p(a,6)),inAppResultCount:n(p(a,7))}};
var z$b=function(a){Z.call(this,a)};U(z$b,Z);g=z$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return A$b(this)};var A$b=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var B$b=function(a){Z.call(this,a)};U(B$b,Z);g=B$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};g.setLatencyUsec=function(a){l(this,2,a)};g.getCacheStatus=function(){return p(this,3)};g.setCacheStatus=function(a){return l(this,3,a)};g.toObject=function(){return C$b(this)};var C$b=function(a){if(null!=a)return{label:n(p(a,1)),latencyUsec:n(p(a,2)),cacheStatus:n(p(a,3))}};
var E0=function(a){Z.call(this,a)};U(E0,Z);E0.prototype.getInterfaceType=function(){return p(this,1)};E0.prototype.setInterfaceType=function(a){return l(this,1,a)};E0.prototype.toObject=function(){return D$b(this)};var D$b=function(a){if(null!=a)return{interfaceType:n(p(a,1)),dataSourceType:n(p(a,2)),entryIndex:n(p(a,3))}};
var E$b=function(a){Z.call(this,a)};U(E$b,Z);E$b.prototype.toObject=function(){return F$b(this)};var F$b=function(a){if(null!=a)return{suggestionsLoaded:n(Ro(a,1)),closeType:n(p(a,2))}};
var F0=function(a){Z.call(this,a)};U(F0,Z);F0.prototype.getEventType=function(){return p(this,1)};F0.prototype.setEventType=function(a){return l(this,1,a)};F0.prototype.setLatencyUsec=function(a){l(this,2,a)};F0.prototype.toObject=function(){return G$b(this)};var G$b=function(a){if(null!=a)return{eventType:n(p(a,1)),latencyUsec:n(p(a,2)),entityCount:n(p(a,3)),memoryAllocatedDelta:n(p(a,4)),animationFps:n(p(a,5)),timeToActionMillis:n(p(a,6)),completionMetadata:F$b(m(a,E$b,7))}};
var H$b=function(a){Z.call(this,a)};U(H$b,Z);g=H$b.prototype;g.getCount=function(){return m(this,v$b,3)};g.setCount=function(a){Ab(this,3,a)};g.getLatency=function(){return m(this,B$b,4)};g.setLatency=function(a){return Ab(this,4,a)};g.getError=function(){return m(this,z$b,5)};g.setError=function(a){Ab(this,5,a)};g.hasError=function(){return cj(this,5)};g.toObject=function(){return I$b(this)};
var I$b=function(a){if(null!=a)return{entryType:n(p(a,1)),sharedDimension:D$b(m(a,E0,2)),count:w$b(a.getCount()),latency:C$b(a.getLatency()),peoplekitError:u$b(m(a,t$b,8)),error:A$b(a.getError()),dataDisplay:y$b(m(a,x$b,6)),userEvent:G$b(m(a,F0,7))}};
var G0=function(a){Z.call(this,a,-1,J$b)};U(G0,Z);G0.prototype.setElementIndex=function(a){l(this,2,a)};G0.prototype.setCardinalDirection=function(a){l(this,7,a)};var J$b=[3];G0.prototype.toObject=function(){return K$b(this)};var K$b=function(a){if(null!=a)return{elementId:n(p(a,1)),elementIndex:n(p(a,2)),pathToRootElementIdList:n(jb(a,3)),userAction:n(p(a,4)),cardinalDirection:n(p(a,7))}};
var L$b=function(a){Z.call(this,a)};U(L$b,Z);L$b.prototype.toObject=function(){return M$b(this)};var M$b=function(a){if(null!=a)return{ancestryVisualElement:K$b(m(a,G0,1)),intentClassName:n(p(a,2)),firstInFlow:n(Ro(a,3)),userInterfaceStyle:X(a,4,0)}};
var N$b=function(a){Z.call(this,a)};U(N$b,Z);g=N$b.prototype;g.getClientInterface=function(){return m(this,n$b,3)};g.setClientInterface=function(a){return Ab(this,3,a)};g.getMetadata=function(){return m(this,r$b,4)};g.setMetadata=function(a){Ab(this,4,a)};g.toObject=function(){var a=null!=this?{visualElementEntry:M$b(m(this,L$b,1)),metricsDataEntry:I$b(m(this,H$b,2)),clientInterface:o$b(this.getClientInterface()),metadata:s$b(this.getMetadata())}:void 0;return a};
var pTa=function(a){this.logContext=Yr(Zr(new $r,"PeopleKit").setLogSource(624).setApplication(a.getSocialApplication()).setEnvironment(0).setVersion("1.0").setBaselineCl(442955898).setEnableClearcut(a.getEnableClearcut()),zq.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=pTa.prototype;g.getLogContext=function(){return this.logContext};g.createCountMetric=function(){throw Error("Va");};g.createStatusMetric=function(){throw Error("Va");};
g.createLatencyMetric=function(a,b){b=b.source();a=(new N$b).setClientInterface((new n$b).setClientId(this.clientId).setSocialClient(a.getSocialClient()).setVersionName(this.getLogContext().getVersion()).setBaselineCl(this.getLogContext().getBaselineCl()).setComponentFlow(this.componentFlow));return Ab(a,2,b)};g.createErrorMetric=function(){throw Error("Va");};
var O$b=function(a,b){this.count=0;this.metrics=a;this.label="total";a=new H$b;a=l(a,1,4);var c=new E0;b=l(c,2,2).setInterfaceType(b);this.dataEntry=Ab(a,2,b).setLatency((new B$b).setLabel(8));this.state=new lU(this.dataEntry)};O$b.prototype.start=function(){this.count=0;this.metrics.start(this.state,this.label)};
O$b.prototype.stop=function(a){a=void 0===a?function(){}:a;this.metrics.stop(this.state,this.label);var b=this.state.durationUsec(this.label),c;null==(c=this.dataEntry.getLatency())||c.setLatencyUsec(b);a(b);var d;null!=(d=m(this.dataEntry,E0,2))&&l(d,3,this.count);this.metrics.latency(this.state);++this.count};
var rTa=function(a,b){this.metrics=a;this.userInterfaceType=b};
var qTa=function(a){this.trackers=a},U9b=function(a){a=a.trackers;return new O$b(a.metrics,a.userInterfaceType)};
var dr=function(){this.selectionCallbacks=[];this.deselectionCallbacks=[];this.selectionReplacedCallbacks=[];this.selectionAttemptedCallbacks=[];this.selectionsState=[]};
dr.prototype.select=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?0:c;var d=String(a.id());if(this.selectionsState.find(function(e){return d===String(e.id())}))return Xq(a,b,c,this.selectionAttemptedCallbacks),!1;0<=b?(this.selectionsState.splice(b,0,a),Xq(a,b,c,this.selectionCallbacks)):(this.selectionsState.push(a),Xq(a,this.selectionsState.length-1,c,this.selectionCallbacks));return!0};
dr.prototype.deselect=function(a,b){b=void 0===b?0:b;var c=String(a.id()),d=this.selectionsState.findIndex(function(e){return c===String(e.id())});0>d||(this.selectionsState.splice(d,1),Xq(a,d,b,this.deselectionCallbacks))};dr.prototype.toggle=function(a,b){b=void 0===b?0:b;var c=String(a.id());if(0>this.selectionsState.findIndex(function(d){return c===String(d.id())}))return this.select(a,-1,b),!0;this.deselect(a,b);return!1};
var I9b=function(a,b){a.selectionCallbacks.push(b)},H9b=function(a,b){a.deselectionCallbacks.push(b)},i$b=function(a,b){a.selectionReplacedCallbacks.push(b)},Y9b=function(a,b){a.selectionAttemptedCallbacks.push(b)};g=dr.prototype;g.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};g.at=function(a){return this.selectionsState[a]};
g.replace=function(a,b,c){c=void 0===c?0:c;var d=String(a),e=this.selectionsState.findIndex(function(f){return d===String(f.id())});if(0>e||!a.equals(b.id())&&this.get(b.id()))return!1;this.selectionsState[e]=b;aTa(b,e,a,c,this.selectionReplacedCallbacks);return!0};g.pop=function(a){a=void 0===a?0:a;var b=this.selectionsState.pop();if(b)return Xq(b,this.selectionsState.length,a,this.deselectionCallbacks),b};
g.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};g.size=function(){return this.selectionsState.length};g.clear=function(){for(;0<this.selectionsState.length;)this.deselect(this.selectionsState[0])};
var jr=function(){};jr.prototype.start=function(){};jr.prototype.stop=function(){};
var P$b=function(a){this.userAction=a;this.cardinalDirection=void 0};
var ir=function(a){this.visualElementRoot=a;this.syntheticVisualElements=new Map;a=Jq(this.visualElementRoot);this.syntheticRoot=bTa(a);this.syntheticVisualElements.set(a.id,this.syntheticRoot)};
ir.prototype.insert=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Jq(b);if(c&&!this.syntheticVisualElements.has(c.id)){c=this.visualElementRoot;var d=[];if(c.contains(b)){for(;b&&b!==c;)b.hasAttribute("pk-log")&&d.push(b),b=b.parentElement;b&&b.hasAttribute("pk-log")&&d.push(b)}b=d;b.reverse();for(c=1;c<b.length;c++){var e=Jq(b[c]);this.syntheticVisualElements.has(e.id)||(d=bTa(e),this.syntheticVisualElements.set(e.id,d),e=Jq(b[c-1]),this.syntheticVisualElements.get(e.id).appendChild(d))}}}};
ir.prototype.remove=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next())if(b=Jq(b.value)){var c=this.syntheticVisualElements.get(b.id);this.syntheticVisualElements.delete(b.id);c&&c.parentElement&&c.parentElement.removeChild(c)}};ir.prototype.getRoot=function(){return this.syntheticRoot};ir.prototype.getElement=function(a){return this.syntheticVisualElements.get(a)};
var CTa=function(a,b){this.syntheticTree=a;this.tracker=b;this.delayedImpression=new yWb(this.impress,15,this)};CTa.prototype.impress=function(){var a=this.tracker,b=this.syntheticTree.getRoot();b=Q$b(a.traverser_,b);R$b(a,b,new LU(0,0,0,0))};CTa.prototype.dispose=function(){this.delayedImpression.dispose()};
var DTa=function(a,b){this.root=a;this.visualElementHandler=b;this.eventHandler=new OG(this)};
DTa.prototype.observe=function(){var a=this;this.mutationObserver||(this.mutationObserver=new MutationObserver(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"childList"===c.type){var d=cTa(c.removedNodes);d.length&&a.visualElementHandler.syntheticTree.remove(d);c=cTa(c.addedNodes);c.length&&(d=a.visualElementHandler,d.syntheticTree.insert(c),d.delayedImpression.start())}}),this.mutationObserver.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,
D9b,function(b){b.stopPropagation();var c=a.visualElementHandler,d=b.type;if(b=Jq(b.target))if(b=c.syntheticTree.getElement(b.id),d=E9b.get(d),b&&d&&(c=c.tracker,d=new P$b(d),(b=H0(c.visualElementProvider_,b))&&b.impressionEventID))for(b=c.eventHandler_.interactionEvent(b,d),d=0;d<b.length;++d)c.metadataHandler_.addEventMetadata(b[d]),c.clearcut_&&c.clearcut_.log(b[d])}))};DTa.prototype.dispose=function(){var a;null==(a=this.mutationObserver)||a.disconnect();this.eventHandler.removeAll();this.visualElementHandler.dispose()};
var ETa=function(a){this.visualElementObserver=a};ETa.prototype.start=function(){this.visualElementObserver.observe()};ETa.prototype.stop=function(){this.visualElementObserver.dispose()};
var I0={CLICK:{string:"click",googRequiredXid:"cOuCgd"},GENERIC_CLICK:{string:"generic_click",googRequiredXid:"szJgjc"},IMPRESSION:{string:"impression",googRequiredXid:"xr6bB"},HOVER:{string:"hover",googRequiredXid:"ZmdkE"},KEYPRESS:{string:"keypress",googRequiredXid:"Kr2w4b"},KEYBOARD_ENTER:{string:"keyboard_enter",googRequiredXid:"SYhH9d"}},J0={TRACK:{string:"track",googRequiredXid:"u014N"},INDEX:{string:"index",googRequiredXid:"cQYSPc"},MUTABLE:{string:"mutable",googRequiredXid:"dYFj7e"},TEST_CODE:{string:"tc",
googRequiredXid:"DM6Eze"}},S$b=J0.TRACK.string,T$b=J0.INDEX.string,U$b=J0.MUTABLE.string,V$b=J0.TEST_CODE.string,W$b=I0.IMPRESSION.string,dTa=hTa(I0),X$b=new Map,Y$b;for(Y$b in I0)X$b.set(I0[Y$b].googRequiredXid,I0[Y$b].string);var fTa=hTa(J0);
var K0=function(a,b){this.visualElementID_=a;this.xidTagComponents_=b||!1;this.tracks_=new Set;this.index_=null;this.testCodes_=[];this.componentID_=void 0;this.retain_cached_impression_=this.mutable_=!1;this.attribute_=null;this.metadataHandlers_=[]},Z$b=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):0!=a.tracks_.size};g=K0.prototype;g.setIndex=function(a){this.index_=a};g.getIndex=function(){return this.index_};g.setComponentID=function(a){this.componentID_=a};g.getComponentID=function(){return this.componentID_};
g.isMutable=function(){return this.mutable_};g.setAttribute=function(a){this.attribute_=a;return this};g.getAttribute=function(){return this.attribute_};var $$b=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};K0.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?eTa(a):a};K0.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?gTa(a):a};
var aac=function(a){K0.call(this,a)};U(aac,K0);
var L0=function(a){Z.call(this,a)};U(L0,Z);L0.prototype.toObject=function(){return bac(void 0,this)};var bac=function(a,b){if(null!=b){var c={timeUsec:n(p(b,1)),serverIp:n(p(b,2)),processId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}},cac=[L0,1,Yib,2,ajb,3,ajb];
var M0=function(a){Z.call(this,a)};U(M0,Z);M0.prototype.toObject=function(){return N0(void 0,this)};var N0=function(a,b){if(null!=b){var c={base:bac(a,m(b,L0,1)),clientCounter:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},dac=[M0,1,cjb,cac,2,Yib];
var O0=function(a){Z.call(this,a,-1,eac)};U(O0,Z);O0.prototype.getOffset=function(){return dj(this,2,0)};O0.prototype.setOffset=function(a){l(this,2,a)};var eac=[1];O0.prototype.toObject=function(){return fac(void 0,this)};var fac=function(a,b){if(null!=b){var c={baseList:n(jb(b,1)),offset:dj(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}},gac=[O0,1,Zib,2,Cu];
var P0=function(a){Z.call(this,a)};U(P0,Z);P0.prototype.setVeIndex=function(a){l(this,1,a)};var hac=function(a,b){l(a,2,b)};P0.prototype.setElementIndex=function(a){l(this,5,a)};P0.prototype.getResultIndex=function(){return dj(this,6,-1)};P0.prototype.setResultIndex=function(a){l(this,6,a)};P0.prototype.toObject=function(){return iac(void 0,this)};
var iac=function(a,b){if(null!=b){var c={veIndex:dj(b,1,-1),nonArchivalVeIndex:dj(b,11,-1),veOffsetIdentifier:fac(a,m(b,O0,15)),veType:n(p(b,2)),odelaySeLinker:n(p(b,8)),elementIndex:dj(b,5,-1),resultIndex:dj(b,6,-1),pageStart:n(p(b,7)),resultGroupElementIndex:dj(b,9,-1),doNotLogUrl:W(b,10,!1),resultFprint:n(p(b,12)),veEventId:N0(a,m(b,M0,13)),youtubeVeCounter:dj(b,14,-1)};a&&(c.$jspbMessageInstance=b);return c}},jac=[P0,1,Cu,11,Cu,15,cjb,gac,2,Cu,8,Cu,5,Cu,6,Cu,7,Cu,9,Cu,10,bjb,12,$ib,13,cjb,dac,
14,Cu];
var Q0=function(a,b){this.el_=a;this.veTag_=b;this.loggedImpression_=!1;this.rootImpressionEventID=this.impressionEventID=void 0;this.neverShown=this.hidden=!0;this.serverVed_=this.parent_=this.traversalOrder_=void 0};Q0.prototype.getTag=function(){return this.veTag_};Q0.prototype.getElement=function(){return this.el_};var lac=function(a){var b=kac++;a.traversalOrder_=b};Q0.prototype.setParent=function(a){this.parent_=a};Q0.prototype.getParent=function(){return this.parent_};
var zTa=function(a){Z.call(this,a)};U(zTa,Z);g=zTa.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getEntryPoint=function(){return p(this,2)};g.setEntryPoint=function(a){return l(this,2,a)};g.getApplication=function(){return p(this,3)};g.setApplication=function(a){return l(this,3,a)};g.setVersionName=function(a){return l(this,4,a)};g.getBaselineCl=function(){return p(this,5)};g.setBaselineCl=function(a){return l(this,5,a)};
g.hasBaselineCl=function(){return cj(this,5)};g.getMetadata=function(){return m(this,r$b,6)};g.setMetadata=function(a){Ab(this,6,a)};g.toObject=function(){var a=null!=this?{clientId:n(p(this,1)),entryPoint:n(p(this,2)),application:n(p(this,3)),versionName:n(p(this,4)),baselineCl:n(p(this,5)),metadata:s$b(this.getMetadata())}:void 0;return a};
var BTa=function(a){this.context_=a};BTa.prototype.createNewTag=function(a){return new aac(a)};BTa.prototype.addEventMetadata=function(a){eE(a,this.context_.serialize())};
var mac=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};
var R0=function(){};R0.prototype.impressionEvent=function(){return[]};R0.prototype.interactionEvent=function(){return[]};R0.prototype.visibilityEvent=function(){return[]};
var T0=function(){if(!S0){var a=S0=new L0,b=1E3*Date.now();l(a,1,b);l(S0,2,0);l(S0,3,0)}a=new M0;a=Ab(a,1,S0);b=++nac;return l(a,2,b)},nac=0,S0=void 0;
var U0=function(a){Z.call(this,a)};U(U0,Z);U0.prototype.toObject=function(){return oac(this)};var oac=function(a){if(null!=a)return{rootEventId:N0(void 0,m(a,M0,1))}};
var V0=function(a){Z.call(this,a)};U(V0,Z);V0.prototype.getEvent=function(){return wl(this,L0,1,pac)};V0.prototype.setVed=function(a){return ao(this,5,W0,a)};var pac=[1,3,4],W0=[2,5];V0.prototype.toObject=function(){return X0(void 0,this)};var X0=function(a,b){if(null!=b){var c={event:bac(a,b.getEvent()),clientEvent:N0(a,wl(b,M0,3,pac)),ei:n(Or(b,4,pac)),rootVe:iac(a,wl(b,P0,2,W0)),ved:n(Or(b,5,W0))};a&&(c.$jspbMessageInstance=b);return c}};
var Y0=function(a){Z.call(this,a)};U(Y0,Z);g=Y0.prototype;g.getTarget=function(){return m(this,V0,1)};g.setTarget=function(a){return Ab(this,1,a)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return cj(this,2)};g.toObject=function(){return qac(void 0,this)};
var qac=function(a,b){if(null!=b){var c={target:X0(a,b.getTarget()),type:X(b,2,0),cloneTree:X0(a,m(b,V0,3)),sourceTree:X0(a,m(b,V0,5)),graftTimeUsec:n(p(b,4)),dedupe:W(b,6,!1)};a&&(c.$jspbMessageInstance=b);return c}};
var Z0=function(a){Z.call(this,a,-1,rac)};U(Z0,Z);var rac=[1];Z0.prototype.toObject=function(){return sac(this)};var sac=function(a){if(null!=a)return{graftList:Bb(rb(a,Y0,1),qac)}};
var a1=function(a){Z.call(this,a,1)};U(a1,Z);var tac={};a1.prototype.toObject=function(){return uac(this)};var uac=function(a){if(null!=a){var b={};Cb(a,b,tac);return b}};
var b1=function(a){Z.call(this,a,-1,vac)};U(b1,Z);b1.prototype.getOffset=function(){return dj(this,2,0)};b1.prototype.setOffset=function(a){l(this,2,a)};var vac=[1];b1.prototype.toObject=function(){return wac(void 0,this)};var wac=function(a,b){if(null!=b){var c={identifierBaseList:n(jb(b,1)),offset:dj(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var c1=function(a){Z.call(this,a)};U(c1,Z);c1.prototype.getEventId=function(){return wl(this,L0,1,xac)};c1.prototype.setEventId=function(a){xu(this,1,xac,a)};var xac=[1,2],yac=[3,6];c1.prototype.toObject=function(){return zac(void 0,this)};var zac=function(a,b){if(null!=b){var c={eventId:bac(a,b.getEventId()),clientEventId:N0(a,wl(b,M0,2,xac)),featureIndex:dj(b,qb(b,yac,3),-1),featureOffsetIdentifier:wac(a,wl(b,b1,6,yac)),featureTreeRefLabel:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Aac=function(a){Z.call(this,a)};U(Aac,Z);Aac.prototype.toObject=function(){return Bac(void 0,this)};var Bac=function(a,b){if(null!=b){var c={reference:X0(a,m(b,V0,1))};a&&(c.$jspbMessageInstance=b);return c}};
var d1=function(a){Z.call(this,a,233,Cac)};U(d1,Z);d1.prototype.setUiType=function(a){return l(this,1,a)};d1.prototype.setElementIndex=function(a){l(this,3,a)};var Dac=function(a,b){hl(a,4,b)};d1.prototype.getResultIndex=function(){return p(this,7)};d1.prototype.setResultIndex=function(a){l(this,7,a)};d1.prototype.setVisible=function(a){return l(this,6,a)};var Eac={},Cac=[4];d1.prototype.toObject=function(){return Fac(void 0,this)};
var Fac=function(a,b){if(null!=b){var c={uiType:n(p(b,1)),elementIndex:dj(b,3,-1),containsElementsList:n(jb(b,4)),targetUrl:n(p(b,5)),resultIndex:n(p(b,7)),featureTreeRef:zac(a,m(b,c1,11)),visible:X(b,6,0),language:n(p(b,17)),adImpressionIndex:dj(b,149,-1),dataElement:Bac(a,m(b,Aac,232))};Cb(b,c,Eac,a);a&&(c.$jspbMessageInstance=b);return c}};
var e1=function(a){Z.call(this,a,17,Gac)};U(e1,Z);g=e1.prototype;g.setVed=function(a){return l(this,11,a)};g.setUiType=function(a){return l(this,1,a)};g.setVeIndex=function(a){l(this,2,a)};g.setCardinalDirection=function(a){l(this,4,a)};g.getResultIndex=function(){return dj(this,7,-1)};g.setResultIndex=function(a){l(this,7,a)};g.setElementIndex=function(a){l(this,8,a)};g.getImageUrl=function(){return p(this,9)};var Hac=function(a,b){zb(a,14,b)},Iac={},Gac=[14];e1.prototype.toObject=function(){return Jac(this)};
var Jac=function(a){if(null!=a){var b={clickTrackingCgi:iac(void 0,m(a,P0,16)),ved:n(p(a,11)),uiType:dj(a,1,-1),veIndex:dj(a,2,-1),primaryUserAction:n(p(a,3)),cardinalDirection:n(p(a,4)),toggleState:n(p(a,5)),interactionContext:dj(a,6,-1),resultIndex:dj(a,7,-1),elementIndex:dj(a,8,-1),imageUrl:n(p(a,9)),imageReferrerUrl:n(p(a,10)),thumbnailId:n(p(a,12)),referrerId:n(p(a,13)),ancestryList:Bb(rb(a,d1,14),Fac),clientInteractionMetadata:uac(m(a,a1,15))};Cb(a,b,Iac);return b}};
var f1=function(a){Z.call(this,a,-1,Kac)};U(f1,Z);f1.prototype.getEventId=function(){return m(this,M0,1)};f1.prototype.setEventId=function(a){Ab(this,1,a)};var Kac=[2];
f1.prototype.toObject=function(){var a=null!=this?{eventId:N0(void 0,this.getEventId()),visualElementsList:Bb(rb(this,d1,2),Fac),parentEventId:N0(void 0,m(this,M0,3)),ephemeralParentEventId:n(p(this,6)),snapshotParentEventId:N0(void 0,m(this,M0,8)),requestContext:Jac(m(this,e1,4)),graftType:n(p(this,5)),grafts:sac(m(this,Z0,7)),coreEventMetadata:oac(m(this,U0,9))}:void 0;return a};
var Lac=function(){};Lac.prototype.createNewTag=function(a){return new K0(a)};Lac.prototype.addEventMetadata=function(){};
var g1=function(a){Z.call(this,a)};U(g1,Z);var Mac=function(a){var b=Date.now().toString();l(a,1,b)};g1.prototype.toObject=function(){return Nac(void 0,this)};var Nac=function(a,b){if(null!=b){var c={clientWallClockTimestamp:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var h1=function(a){Z.call(this,a)};U(h1,Z);h1.prototype.getTimestamp=function(){return m(this,g1,1)};h1.prototype.setTimestamp=function(a){return Ab(this,1,a)};h1.prototype.hasTimestamp=function(){return cj(this,1)};h1.prototype.toObject=function(){return Oac(void 0,this)};var Oac=function(a,b){if(null!=b){var c={timestamp:Nac(a,b.getTimestamp())};a&&(c.$jspbMessageInstance=b);return c}};
var Pac=yb(126,{coreInteractionMetadata:0},h1,Oac);tac[126]=Pac;
var Qac=yb(618,{coreVeMetadata:0},h1,Oac);Eac[618]=Qac;
var gr=function(a,b){this.enableAncestryLogging_=void 0===a?!0:a;this.enableBatching_=void 0===b?!1:b};U(gr,R0);gr.prototype.impressionEvent=function(a,b){for(var c=[],d=[],e=0;e<a.length;++e)a[e].keys().next().value.impressionEventID?d.push(a[e]):c.push(a[e]);a=Rac(this,c,b);b=this.enableBatching_?Sac(this,d,b):Tac(this,d,b);return a.concat(b)};
gr.prototype.interactionEvent=function(a,b){var c=new dE,d=new f1,e=T0();d.setEventId(e);e=new e1;a.serverVed_?e.setVed(a.serverVed_):e.setUiType(a.getTag().visualElementID_).setVeIndex(a.traversalOrder_);Hac(l(e,3,b.userAction),this.getAncestry_(a));b.cardinalDirection&&e.setCardinalDirection(b.cardinalDirection);a.getTag();this.setTimestamp(e);b=new U0;Ab(b,1,a.impressionEventID);Ab(d,3,a.impressionEventID);Ab(d,4,e);Ab(d,9,b);JSON.stringify(null,null,1);fE(c,d.serialize());return[c]};
gr.prototype.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],h=f.getElement(),k=f.rootImpressionEventID,q=d.get(k);q=q?q:[];if(f.neverShown||Z$b(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new Y0;h.setType(1);var w=Uac(f);h.setTarget(w);w=h;var y=Date.now();l(w,4,y);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||h||(h=new Y0,h.setType(2),w=Uac(f),h.setTarget(w),w=h,y=Date.now(),l(w,4,y),q.push(h),f.hidden=!0);d.set(k,q)}a=r(d.keys());for(b=
a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new Z0,zb(e,1,f),f=new f1,k=T0(),q=new U0,Ab(q,1,b),f.setEventId(k),Ab(f,3,b),Ab(f,7,e),Ab(f,9,q),b=new dE,JSON.stringify(null,null,1),fE(b,f.serialize()),c.push(b));return c};
gr.prototype.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return"true"==a.getAttribute("ve-visible");if(a instanceof HTMLElement&&(0>=a.offsetWidth||0>=a.offsetHeight))return!1;a=a.getBoundingClientRect();return(b=AWb(b,new LU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};
var Rac=function(a,b,c){for(var d=[],e={},f=b.length-1;0<=f;e={$jscomp$loop$prop$impressionEventID$1687:e.$jscomp$loop$prop$impressionEventID$1687,$jscomp$loop$prop$clientVeProto$1688:e.$jscomp$loop$prop$clientVeProto$1688,$jscomp$loop$prop$testCodes$1689:e.$jscomp$loop$prop$testCodes$1689},f--){e.$jscomp$loop$prop$clientVeProto$1688=new f1;e.$jscomp$loop$prop$testCodes$1689=[];e.$jscomp$loop$prop$impressionEventID$1687=T0();e.$jscomp$loop$prop$clientVeProto$1688.setEventId(e.$jscomp$loop$prop$impressionEventID$1687);
var h=new U0;Ab(h,1,e.$jscomp$loop$prop$impressionEventID$1687);Ab(e.$jscomp$loop$prop$clientVeProto$1688,9,h);if(h=Jtb(window.location.href,"ved"))h=(new e1).setVed(h),Ab(e.$jscomp$loop$prop$clientVeProto$1688,4,h);b[f].forEach(function(k){return function(q,w){w.impressionEventID=k.$jscomp$loop$prop$impressionEventID$1687;w.rootImpressionEventID=k.$jscomp$loop$prop$impressionEventID$1687;var y=Vac(w);q.length&&Dac(y,q);q=w.getElement();this.isVisible_(q,c)?(w.neverShown=!1,w.hidden=!1):y.setVisible(1);
this.setTimestamp(y);yu(k.$jscomp$loop$prop$clientVeProto$1688,2,d1,y);k.$jscomp$loop$prop$testCodes$1689=k.$jscomp$loop$prop$testCodes$1689.concat(w.getTag().testCodes_)}}(e),a);h=new dE;JSON.stringify(null,null,1);fE(h,e.$jscomp$loop$prop$clientVeProto$1688.serialize());hl(h,20,e.$jscomp$loop$prop$testCodes$1689);d.push(h)}return d},Sac=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;0<=f;f--){var h=b[f],k=h.keys().next().value.rootImpressionEventID,q=e.get(k)||[];q.push(h);e.set(k,q)}e.forEach(function(w,
y){var E=0,I=[],N=new f1,L=[],S=T0();N.setEventId(S);Ab(N,3,y);var Y=new U0;Ab(Y,1,y);Ab(N,9,Y);for(Y=0;Y<w.length;Y++)for(var ka=w[Y],ha=ka.keys(),ya=ha.next().value,Ha=ka.get(ya),Ja={},Ka=0;Ka<Ha.length;Ja={$jscomp$loop$prop$startingOffset$1691:Ja.$jscomp$loop$prop$startingOffset$1691,$jscomp$loop$prop$cloneTreeRootIndex$1692:Ja.$jscomp$loop$prop$cloneTreeRootIndex$1692},++Ka){var Ma=ya;Ja.$jscomp$loop$prop$cloneTreeRootIndex$1692=0;Ja.$jscomp$loop$prop$startingOffset$1691=Ha[Ka];var hb=ka.size;
Ka!=Ha.length-1&&(hb=Ha[Ka+1]);for(var fb=Ja.$jscomp$loop$prop$startingOffset$1691;fb<hb;++fb){var Lb=ha.next().value;fb==Ja.$jscomp$loop$prop$startingOffset$1691&&(Ma=Lb,Ja.$jscomp$loop$prop$cloneTreeRootIndex$1692=E);Lb.impressionEventID=S;Lb.rootImpressionEventID=y;Lb.traversalOrder_=E;var ta=ka.get(Lb),Aa=Vac(Lb);ta.length&&Dac(Aa,ta.map(function(xa){return function(Xa){return Xa-xa.$jscomp$loop$prop$startingOffset$1691+xa.$jscomp$loop$prop$cloneTreeRootIndex$1692}}(Ja)));ta=Lb.getElement();this.isVisible_(ta,
c)?(Lb.neverShown=!1,Lb.hidden=!1):Aa.setVisible(1);this.setTimestamp(Aa);yu(N,2,d1,Aa);L=L.concat(Lb.getTag().testCodes_);E++}hb=new Y0;hb.setType(3);fb=Uac(ya);hb.setTarget(fb);fb=new V0;Lb=new P0;Lb.setVeIndex(Ma.traversalOrder_);hac(Lb,Ma.getTag().visualElementID_);xu(fb,2,W0,Lb);Ab(hb,3,fb);I.push(hb)}I.length&&(w=new Z0,zb(w,1,I),Ab(N,7,w));I=new dE;JSON.stringify(null,null,1);fE(I,N.serialize());hl(I,20,L);d.push(I)},a);return d},Tac=function(a,b,c){for(var d=[],e=b.length-1;0<=e;e--)for(var f=
b[e],h=f.keys(),k=h.next().value,q=f.get(k),w={},y=0;y<q.length;w={$jscomp$loop$prop$startingOffset$1694:w.$jscomp$loop$prop$startingOffset$1694},++y){w.$jscomp$loop$prop$startingOffset$1694=q[y];var E=f.size;y!=q.length-1&&(E=q[y+1]);var I=new f1,N=[],L=T0(),S=new U0;Ab(S,1,k.impressionEventID);I.setEventId(L);Ab(I,3,k.impressionEventID);l(I,5,3);Ab(I,9,S);S=new e1;k.serverVed_?S.setVed(k.serverVed_):S.setUiType(k.getTag().visualElementID_).setVeIndex(k.traversalOrder_);Hac(S,a.getAncestry_(k));
Ab(I,4,S);for(S=w.$jscomp$loop$prop$startingOffset$1694;S<E;++S){var Y=h.next().value;Y.impressionEventID=L;Y.rootImpressionEventID=k.rootImpressionEventID;void 0!=Y.traversalOrder_&&(Y.traversalOrder_-=w.$jscomp$loop$prop$startingOffset$1694);var ka=f.get(Y),ha=Vac(Y);ka.length&&Dac(ha,ka.map(function(ya){return function(Ha){return Ha-ya.$jscomp$loop$prop$startingOffset$1694}}(w)));ka=Y.getElement();a.isVisible_(ka,c)?(Y.neverShown=!1,Y.hidden=!1):ha.setVisible(1);a.setTimestamp(ha);yu(I,2,d1,ha);
N=N.concat(Y.getTag().testCodes_)}E=new dE;JSON.stringify(null,null,1);fE(E,I.serialize());hl(E,20,N);d.push(E)}return d};gr.prototype.getAncestry_=function(a){if(!this.enableAncestryLogging_)return[];for(var b=[],c=new Set;a&&!c.has(a);){var d=Vac(a);b.unshift(d);c.add(a);a=a.getParent()}return b};
var Vac=function(a){var b=(new d1).setUiType(a.getTag().visualElementID_);null!=a.getTag().getIndex()&&b.setElementIndex(a.getTag().getIndex());$$b(a.getTag(),b);return b},Uac=function(a){var b=new V0;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new P0;xu(b,3,pac,a.impressionEventID);c.setVeIndex(a.traversalOrder_);hac(c,a.getTag().visualElementID_);xu(b,2,W0,c)}return b};
gr.prototype.setTimestamp=function(a){if(a instanceof e1&&(!m(a,a1,15)||!m(a,a1,15).getExtension(Pac))){var b=new h1,c=new g1,d=m(a,a1,15);d||(d=new a1);Mac(c);b.setTimestamp(c);Pac.setExtensionFn(d,b);Ab(a,15,d)}a instanceof d1&&(b=new h1,c=new g1,Mac(c),b.setTimestamp(c),Qac.setExtensionFn(a,b))};
/*

 Copyright 2011 Google LLC.
 SPDX-License-Identifier: Apache-2.0
*/
var Wac=1;
(function(){for(var a=["ms","moz","webkit","o"],b=0;b<a.length&&!window.requestAnimationFrame;++b)window.requestAnimationFrame=window[a[b]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[a[b]+"CancelAnimationFrame"]||window[a[b]+"CancelRequestAnimationFrame"];if(!window.requestAnimationFrame){var c=0;window.requestAnimationFrame=function(d){var e=(new Date).getTime(),f=Math.max(0,16-(e-c));c=e+f;return window.setTimeout(function(){d(e+f)},f)};window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(d){clearTimeout(d)})}})();var Xac=function(){},Yac=[[],[]],Zac=0,$ac=!1,abc=null,bbc=0,cbc=0,dbc=0,i1=0,ebc=0,j1=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.context_=a;this.state_ctor_=Xac};j1.prototype.measure=function(a){this.measure_=a;return this};j1.prototype.mutate=function(a){this.mutate_=a;return this};j1.prototype.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
j1.prototype.build=function(){return fbc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var fbc=function(a,b){var c=ebc++,d=Math.max(a.measure?a.measure.length:0,a.mutate?a.mutate.length:0),e={id:c,measureFn:a.measure,mutateFn:a.mutate,context:b,args:[]},f=e;return function(){var h=0!==f.phase;h&&(f=Object.assign({phase:0},e));b||(f.context=this);f.args=Array.prototype.slice.call(arguments);d>arguments.length&&f.args.push(new a.stateCtor);h&&(h=Zac,!a.runInCurrentFrameIfPossible||0==i1||a.measure&&1!=i1||(h=(h+1)%2),Yac[h].push(f));return gbc()}},hbc=function(a,b){$ac=!1;var c={};i1=
1;for(var d=0;d<a.length;++d){var e=a[d];e.args[e.args.length-1]&&(e.args[e.args.length-1].now=b);if(e.measureFn){e.phase=1;try{e.measureFn.apply(e.context,e.args)}catch(f){c[d]=!0,$a(f)}}}i1=2;for(d=0;d<a.length;++d)if(e=a[d],e.args[e.args.length-1]&&(e.args[e.args.length-1].now=b),!c[d]&&e.mutateFn){e.phase=2;try{e.mutateFn.apply(e.context,e.args)}catch(f){$a(f)}}0<bbc&&1<b&&(a=b-bbc,500>a&&(Wac++,100<a&&cbc++,dbc<a&&(dbc=a)));bbc=$ac&&1<b?b:0},gbc=function(){$ac||($ac=!0,abc=new Promise(function(a){window.requestAnimationFrame(function(b){var c=
Yac[Zac];Zac=(Zac+1)%2;try{hbc(c,b)}finally{i1=0,c.length=0}a()})}));return abc};
var ibc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},H0=function(a,b){var c=b.__ve||null,d;!(d=c&&!c.getTag().isMutable())&&(d=c&&c.getTag().isMutable())&&(d=b.getAttribute("jslog"),d=!(!d||Vi(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=jbc(a,d);if(!d||d.getComponentID()&&d.getComponentID()!=a.componentID_)return null;a=new Q0(b,d);c&&c.getTag().retain_cached_impression_&&c.loggedImpression_&&(a.loggedImpression_=
!0);if(c=a.getElement().getAttribute("data-ved")){a.serverVed_=c;if(!c||"0"!=c.charAt(0)&&"2"!=c.charAt(0))var e=null;else{c=c.substring(1);try{b:{if(ou.length){var f=ou.pop();f.setOptions();f.decoder_.init(c,void 0,void 0,void 0);var h=f}else h=new Sib(c);try{var k=Xaa(jac);var q=Yaa(new k.ctor,h,k);break b}finally{h.free()}q=void 0}e=m(q,M0,13)}catch(w){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.__ve=a},jbc=function(a,b){if(Vi(b))return null;var c=b.split(";"),d=Number(c[0].trim());
if(isNaN(d))return null;d=a.tagPopulator_.createNewTag(d);for(var e=1;e<c.length;e++){var f=c[e].trim();if(!Vi(f)){var h=Rqb(f);if(2>h.length)return null;f=h[0].trim();h=h[1].trim();if(Vi(f)||Vi(h))return null;switch(f){case a.maybeXidPartLabel_(S$b):f=h.split(",");for(h=0;h<f.length;++h){var k=f[h].trim();if(a.expectXidTagComponents_){if(!d.xidTagComponents_)throw Error("Me");if(!X$b.has(k))throw Error("Ne`"+k);d.tracks_.add(k)}else d.tracks_.add(d.maybeXidEventLabel_(k))}break;case a.maybeXidPartLabel_(T$b):d.setIndex(Number(h));
break;case a.maybeXidPartLabel_(V$b):f=h.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(h);break;case a.maybeXidPartLabel_(U$b):"true"==h?d.mutable_=!0:"rci"==h&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};ibc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?gTa(a):a};ibc.prototype.setComponentID=function(a){this.componentID_=a};ibc.prototype.getComponentID=function(){return this.componentID_};
var kbc=function(a,b){this.visualElementProvider_=a;this.traverseShadowDom_=void 0===b?!1:b},Q$b=function(a,b){return lbc(a,b).filter(function(c){return null!=H0(this.visualElementProvider_,c)},a)},mbc=function(a,b){var c=a.visualElementProvider_;a=[];for(var d=void 0,e={},f=0;f<b.length;e={$jscomp$loop$prop$parent$1696:e.$jscomp$loop$prop$parent$1696},++f){var h=H0(c,b[f]);void 0==h.traversalOrder_&&void 0==h.serverVed_&&(e.$jscomp$loop$prop$parent$1696=void 0,kTa(b[f],function(k){return function(q){q=
H0(c,q);return null!=q?(k.$jscomp$loop$prop$parent$1696=q,!0):!1}}(e)),e.$jscomp$loop$prop$parent$1696?d&&d.has(e.$jscomp$loop$prop$parent$1696)||(d=new Map,a.unshift(d),d.set(e.$jscomp$loop$prop$parent$1696,[]),kac=1):(d=new Map,a.unshift(d),kac=0),lac(h),h.setParent(e.$jscomp$loop$prop$parent$1696),d.set(h,[]),e.$jscomp$loop$prop$parent$1696&&d.get(e.$jscomp$loop$prop$parent$1696).push(h.traversalOrder_))}return a},nbc=function(a,b){var c=a.visualElementProvider_;return b.map(function(d){return H0(c,
d)})},lbc=function(a,b){if(a.traverseShadowDom_){var c=[];a=[];for(c.push.apply(c,b.querySelectorAll("*"));0<c.length;){var d=c.shift();d.getAttribute("jslog")&&a.push(d);d.shadowRoot&&c.unshift.apply(c,d.shadowRoot.querySelectorAll("*"))}}else a=[].slice.call(b.querySelectorAll("[jslog]"));a.unshift(b);return a},kac=0;
var obc=function(a,b,c){DC.call(this);this.listener_=null!=c?a.bind(c):a;this.interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.timer_=null};U(obc,DC);g=obc.prototype;g.stop=function(){this.timer_&&(rD(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};g.pause=function(){this.pauseCount_++};g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,this.doAction_())};
g.disposeInternal=function(){DC.prototype.disposeInternal.call(this);this.stop()};g.onTimer_=function(){this.timer_=null;this.shouldFire_&&!this.pauseCount_&&(this.shouldFire_=!1,this.doAction_())};g.doAction_=function(){var a=this;this.timer_=qD(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};
var pbc=function(a,b){FC.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};U(pbc,FC);
var qbc=function(a){Oo.call(this);this.domHelper_=a||Xo();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Po(this.domHelper_.document_,this.eventType_,Vt(this.handleChange_,this))};Zt(qbc,Oo);g=qbc.prototype;g.getBrowserEventType_=rp(function(){var a=!!this.getHiddenPropertyName_(),b="hidden"!=this.getHiddenPropertyName_();if(a){var c;b?c=(((fu?"Webkit":eu?"Moz":cu?"ms":null)||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});
g.getHiddenPropertyName_=rp(function(){return zWb("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=rp(function(){return zWb("visibilityState",this.domHelper_.document_)});g.handleChange_=function(){var a=this.getHiddenPropertyName_()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new pbc(!!this.domHelper_.document_[this.getHiddenPropertyName_()],a);this.dispatchEvent(a)};g.disposeInternal=function(){SC(this.eventKey_);qbc.superClass_.disposeInternal.call(this)};
var k1=function(a,b,c,d){var e=this,f=void 0===d?{}:d,h=void 0===f.backgroundJobDeferrer?void 0:f.backgroundJobDeferrer;d=void 0===f.expectXidTagComponents?!1:f.expectXidTagComponents;f=void 0===f.traverseShadowDom?!1:f.traverseShadowDom;OG.call(this);this.eventBuilder_=a;this.expectXidTagComponents_=d;this.metadataHandler_=b||new Lac;this.visualElementProvider_=new ibc(this.metadataHandler_,this.expectXidTagComponents_);if(this.clearcut_=c)this.clearcut_.setClientSideLogOnlyForDevelopment(!1),dvb(this.clearcut_,
!0),this.clearcut_.useGetRequestForFinalFlush=!0;this.maybeXidEventLabel_("generic_click");this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.pageVisibilityMonitor_=new qbc;this.logImpressionsTask_=(new j1(this)).measure(h?function(){return h().then(e.handleImpressions_.bind(e))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();new obc(this.logImpressionsTask_,500,this);this.traverser_=new kbc(this.visualElementProvider_,f);this.impressionListeners_=[];this.eventBuilder_ instanceof
R0&&(this.eventHandler_=this.eventBuilder_)};Zt(k1,OG);g=k1.prototype;g.setClearcutClientInfo=function(a){this.clearcut_&&this.clearcut_.setClearcutClientInfo(a)};g.setBuildLabel=function(a){this.clearcut_&&this.clearcut_.setBuildLabel(a)};g.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};g.log=function(a){this.clearcut_&&this.clearcut_.log(a)};g.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_&&this.clearcut_.setClientSideLogOnlyForDevelopment(a)};
var rbc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};k1.prototype.getIndex=function(a){return a.getTag().getIndex()};var sbc=function(a){return a.map(function(b){return b.getTag().visualElementID_})};g=k1.prototype;g.getMetadata=function(a,b){var c=new d1;$$b(a.getTag(),c);for(a=0;a<b.length;++a)$$b(b[a].getTag(),c);return c};
g.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;kTa(a,function(d){if(!fD(d))return!1;d=H0(c,d);null!=d&&b.push(d);return!1});return b};
g.handleImpressions_=function(){var a=this.pageVisibilityMonitor_;if(!a.domHelper_.document_[a.getHiddenPropertyName_()]&&this.root_){if(a=!!(window.performance&&window.performance.mark&&window.performance.measure&&window.performance.clearMeasures&&window.performance.clearMarks))window.performance.clearMeasures("ZVwBtb"),window.performance.clearMarks("KtiTlc"),window.performance.mark("KtiTlc");var b=Q$b(this.traverser_,this.root_);if(this.eventHandler_){var c=this.domHelper_.getViewportSize();c=new LU(0,
0,c.width,c.height);R$b(this,b,c);b=nbc(this.traverser_,b);c=this.eventHandler_.visibilityEvent(b,c);if(c.length)for(b=0;b<c.length;++b)this.metadataHandler_.addEventMetadata(c[b]),this.clearcut_&&this.clearcut_.log(c[b]);rbc(this)}else{c=[];var d=this.domHelper_.getViewportSize();d=new LU(0,0,d.width,d.height);for(var e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=H0(this.visualElementProvider_,f))&&Z$b(f.getTag(),W$b)&&c.push(f)}for(b=0;b<c.length;b++)if(d=c[b],!d.loggedImpression_){e=
this.getAncestry_(d.getElement());var h=sbc(e);f=this.getIndex(d);var k=new G0;k=l(k,4);var q=d.getTag().visualElementID_;k=l(k,1,q);h=hl(k,3,h);null!=f&&h.setElementIndex(f);f=new mac;f.ve_metadata=this.getMetadata(d,e);f.global_metadata=this.invariantData_;f.client_info=this.appInfo_;e=h;e=eE(new dE,e.serialize());e=hl(e,20,f.testCodes);this.clearcut_&&this.clearcut_.log(e);rbc(this);d.loggedImpression_=!0}}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
g.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return"true"==a.getAttribute("ve-visible");a=a.getBoundingClientRect();return(b=AWb(b,new LU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};g.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?eTa(a):a};var R$b=function(a,b,c){b=mbc(a.traverser_,b);if(b.length)for(c=a.eventHandler_.impressionEvent(b,c),b=0;b<c.length;++b)a.metadataHandler_.addEventMetadata(c[b]),a.clearcut_&&a.clearcut_.log(c[b])};
var ATa=function(a,b,c,d,e,f,h,k,q){e=void 0===e?!1:e;k=void 0===k?new RTb(b,c,d,void 0,void 0,void 0,f):k;k1.call(this,a,h||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:void 0===q?!1:q})};Zt(ATa,k1);
var Yq=function(){this.filter_=null;this.boostIds_=[];this.queryScope_=0;this.slots_=[];this.entryPoint_=0};g=Yq.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.getEntryPoint=function(){return this.entryPoint_};g.setEntryPoint=function(a){this.entryPoint_=a;return this};
g.clone=function(){var a=new Yq;a.filter_=this.filter_;a.boostIds_=this.boostIds_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;return a};
var gs=function(a){Z.call(this,a)};U(gs,Z);var l1=function(a,b){return l(a,1,b)};g=gs.prototype;g.getProvenance=function(){return X(this,2,0)};g.setProvenance=function(a){return l(this,2,a)};g.getCode=function(){return X(this,3,0)};g.setCode=function(a){return l(this,3,a)};g.toObject=function(){return tbc(this)};var tbc=function(a){if(null!=a)return{isLateLoaded:n(Ro(a,1)),provenance:n(p(a,2)),code:n(p(a,3))}};
var m1=function(a){Z.call(this,a)};U(m1,Z);m1.prototype.getSource=function(){return m(this,gs,1)};m1.prototype.setSource=function(a){return Ab(this,1,a)};m1.prototype.hasSource=function(){return cj(this,1)};var n1=function(a,b){return l(a,2,b)},o1=function(a,b){return l(a,3,b)};m1.prototype.toObject=function(){return ubc(this)};var ubc=function(a){if(null!=a)return{source:tbc(a.getSource()),statusAtQuery:n(p(a,2)),statusAtResult:n(p(a,3))}};
var vbc=function(){this.filter_=null};vbc.prototype.getFilter=function(){return this.filter_};vbc.prototype.setFilter=function(a){this.filter_=a;return this};
var wbc=function(a){Z.call(this,a)};U(wbc,Z);g=wbc.prototype;g.getEnd=function(){return dj(this,2,0)};g.setEnd=function(a){return l(this,2,a)};g.getTotalItems=function(){return dj(this,3,0)};g.setTotalItems=function(a){return l(this,3,a)};g.getCode=function(){return X(this,4,2)};g.setCode=function(a){return l(this,4,a)};g.getCacheState=function(){return m(this,m1,5)};g.setCacheState=function(a){return Ab(this,5,a)};g.hasCacheState=function(){return cj(this,5)};
g.toObject=function(){var a=null!=this?{begin:dj(this,1,0),end:dj(this,2,0),totalItems:dj(this,3,0),code:X(this,4,2),cacheState:ubc(this.getCacheState())}:void 0;return a};
var xbc=function(a,b){this.results_=a;this.metadata_=b};xbc.prototype.getResults=function(){return this.results_};xbc.prototype.getMetadata=function(){return this.metadata_};
var ybc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=ybc.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getOriginator=function(){return this.originator_};g.setOriginator=function(a){this.originator_=a;return this};
g.clone=function(){var a=(new ybc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope());a.useOriginalDisplayValue_=this.useOriginalDisplayValue_;return a};
var zbc=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.code_=2;this.cacheState_=new m1};g=zbc.prototype;g.getIsFirstCallback=function(){return this.isFirstCallback_};g.getIsLastCallback=function(){return this.isLastCallback_};g.getCode=function(){return this.code_};g.getCacheState=function(){return this.cacheState_};g.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};g.setIsLastCallback=function(a){this.isLastCallback_=a;return this};g.setCallbackNumber=function(){return this};
g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};
var Abc=function(a,b){this.results_=a;this.metadata_=b};Abc.prototype.getResults=function(){return this.results_};Abc.prototype.getMetadata=function(){return this.metadata_};
var p1=function(a){Z.call(this,a)};U(p1,Z);g=p1.prototype;g.getQuery=function(){return V(this,1,"")};g.setQuery=function(a){return l(this,1,a)};g.clearQuery=function(){mb(this,1)};g.hasQuery=function(){return cj(this,1)};g.getIsFirstCallback=function(){return W(this,2,!1)};g.setIsFirstCallback=function(a){return l(this,2,a)};g.getIsLastCallback=function(){return W(this,3,!1)};g.setIsLastCallback=function(a){return l(this,3,a)};g.setCallbackNumber=function(a){return l(this,4,a)};
g.getNextPageToken=function(){return V(this,5,"")};g.getCode=function(){return X(this,6,2)};g.setCode=function(a){return l(this,6,a)};g.getCacheState=function(){return m(this,m1,7)};g.setCacheState=function(a){return Ab(this,7,a)};g.hasCacheState=function(){return cj(this,7)};
g.toObject=function(){var a=null!=this?{query:V(this,1,""),isFirstCallback:W(this,2,!1),isLastCallback:W(this,3,!1),callbackNumber:dj(this,4,-1),nextPageToken:V(this,5,""),code:X(this,6,2),cacheState:ubc(this.getCacheState())}:void 0;return a};
var q1=function(a,b){this.results_=a;this.metadata_=b};q1.prototype.getResults=function(){return this.results_};q1.prototype.getMetadata=function(){return this.metadata_};
var Bbc={create:function(a,b,c,d,e){e=void 0===e?new Yq:e;return mTa(a,b,c,d,new T7b,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=void 0===e?{}:e;return mTa(a,b,c,d,new T7b,e)},createConfig:function(a){return new f$b(a)}};
var Wr=function(a){Z.call(this,a)};U(Wr,Z);g=Wr.prototype;g.getTimestamp=function(){return dj(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return cj(this,1)};g.getAffinityVersion=function(){return dj(this,2)};g.setAffinityVersion=function(a){l(this,2,a)};g.getTotalItems=function(){return dj(this,3)};g.setTotalItems=function(a){return l(this,3,a)};g.getNextPageToken=function(){return V(this,4)};
g.toObject=function(){var a=null!=this?{timestamp:n(p(this,1)),affinityVersion:n(p(this,2)),totalItems:n(p(this,3)),nextPageToken:n(p(this,4)),skipIndexing:n(Ro(this,5))}:void 0;return a};
var r1=function(){this.bits_=[]};g=r1.prototype;g.and=function(a){for(var b=new r1,c=r(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};g.or=function(a){for(var b=new r1,c=r(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=r(a);for(d=a.next();!d.done;d=a.next())b.bits_[d.value]=!0;return b};g.get=function(a){return!!this.bits_[a]};g.set=function(a){this.bits_[a]=!0};g.setAll=function(a){var b=a;for(a+=NaN;b<a;b++)this.bits_[b]=!0};
g.clear=function(a){this.bits_[a]=!1};r1.prototype[Symbol.iterator]=function(){var a=this,b=-1;return{next:function(){a:{for(var c=b+1,d=a.bits_.length;c<d;c++)if(a.bits_[c]){b=c;break a}b=-1}return 0>b?{done:!0}:{value:b,done:!1}}}};
var JTa=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),ITa=/^[<"']|[>"']$/g,kr=RegExp("[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+","gi"),Cbc=/[^a-z0-9]+/gi,HTa=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};
var Dbc=function(a,b){this.key=a;this.terms=KTa(b)};
var s1=function(a,b,c){b=void 0===b?"":b;c=void 0===c?new r1:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_="\u2026"===b};s1.prototype.cloneNode=function(a){for(var b=[],c=r(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new s1(b)};
s1.prototype.getMatches=function(a){for(var b=[],c=r(this.prefix_?this.matchIndices_:MTa(this.items_.length)),d=c.next();!d.done&&(d=a.loadOrSkip(this.items_[d.value].key),null==d||(b.push(d),!a.isDone()));d=c.next());return b};
s1.prototype.search=function(a){var b=this;return a.length?a.map(function(c){for(var d=b,e=0;e<c.length;e++){var f=c.charAt(e),h=d;if(!h.isExpanded_){for(var k=r(h.prefix_?h.matchIndices_:MTa(h.items_.length)),q=k.next();!q.done;q=k.next()){var w=h;q=q.value;for(var y=w.prefix_+"\ufdc7",E=r(w.items_[q].terms),I=E.next();!I.done;I=E.next())I=I.value,I.length<=w.prefix_.length||I<w.prefix_||I>y||(I=I.charAt(w.prefix_.length),w.childNodes_[I]||(w.childNodes_[I]=new s1(w.items_,w.prefix_+I)),w.childNodes_[I].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||t1;if(d===t1)break}return d}).reduce(function(c,d){return c.and(d)}):this};var Ebc=function(a){a.isExpanded_=!1;for(var b=r(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&Ebc(c)};s1.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new s1(this.items_,"\u2026",a)};s1.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new s1(this.items_,"\u2026",a)};var t1=new s1([]);
t1.isExpanded_=!0;
var u1=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};u1.prototype.getExpiry=function(){return this.expiry_};u1.prototype.getValue=function(){return this.value_};u1.prototype.isExpired=function(){return this.expiry_<Date.now()};u1.prototype.isStale=function(){return this.stale_<Date.now()};
var Fbc=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=Fbc.prototype;g.size=function(){return this.items_.size};g.clear=function(){this.items_.clear()};g.has=function(a){return this.items_.has(a)};g.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
g.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=r(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};g.delete=function(a){return this.items_.delete(a)};g.compact=function(){for(var a=0,b=r(this.items_),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var Gbc=function(){var a=new Fbc(function(){return 1E3<a.size()});return a};
var Hbc=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new Fbc(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=Hbc.prototype;g.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};g.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};g.has=function(a){return!!this.get(a)};g.size=function(){return this.delegate_.size()};g.clear=function(){this.delegate_.clear()};
g.delete=function(a){return this.delegate_.delete(a)};g.compact=function(){return this.delegate_.compact()};var v1=function(a,b){return new Hbc(a,function(c){var d=Date.now()+b;return new u1(d,c,d)})};
var w1=function(a){Z.call(this,a,-1,Ibc)};U(w1,Z);g=w1.prototype;g.getCacheSize=function(){return dj(this,3,500)};g.setCacheSize=function(a){l(this,3,a)};g.hasCacheSize=function(){return cj(this,3)};g.getCacheStaleSec=function(){return xl(this,4,86400)};g.getCacheExpiredSec=function(){return xl(this,5,1209600)};g.getRpcTimeoutSec=function(){return xl(this,12,60)};var Ibc=[24,25];w1.prototype.toObject=function(){return Jbc(this)};
var Jbc=function(a){if(null!=a)return{suggestMaxResults:dj(a,1,5),searchMaxResults:dj(a,2,5),cacheSize:dj(a,3,500),cacheStaleSec:xl(a,4,86400),cacheExpiredSec:xl(a,5,1209600),lruCacheCapacity:dj(a,6,500),lruCacheExpiredSec:dj(a,7,43200),autocompleteIndexCapacity:dj(a,8,250),autocompleteIndexExpiredSec:xl(a,9,3600),notFoundCapacity:dj(a,10,500),notFoundExpiredSec:xl(a,11,600),rpcTimeoutSec:xl(a,12,60),serverWarmupThrottleSec:xl(a,13,60),cacheFlushThrottleSec:xl(a,14,300),suggestFormat:X(a,15,1),searchFormat:X(a,
16,1),lookupFormat:X(a,17,1),listFormat:X(a,18,1),coalescedSortOrder:X(a,19,1),preferSource:X(a,20,1),enableEmailPlaceholders:W(a,21,!1),allowEmptyTargets:W(a,22,!1),singleIant:W(a,23,!1),iantApplicationList:n(jb(a,24)),idTypesList:n(jb(a,25)),smartAddressIndexCapacity:dj(a,26,10),smartAddressIndexExpiredSec:xl(a,27,600),supportSmtpAddresses:W(a,28,!1),contextualSuggestMaxAdditionResults:dj(a,29,3),enableBoosting:W(a,30,!1),boostIndexCapacity:dj(a,31,5),boostIndexExpiredSec:xl(a,32,3600),enableInterleavedGroups:W(a,
33,!1),enableExtensibleLookups:W(a,34,!0),enableSlotReservations:W(a,35,!1)}};
var OTa=new Set([10,11]);
var Kbc=function(a){this.interleaveGroups_=W(a,33,!1)},Lbc=function(a,b,c){return b.filter(function(d){return 8!==d.provenance}).sort(function(d,e){a:{var f=a.interleaveGroups_;switch(c){case 2:d=PTa(d,e,f,!0);break a;default:d=QTa(d,e,f)}}return d}).map(function(d){return String(d.id)})};
var Mbc=function(a,b){this.metrics_=a;this.state_=new lU(b);this.source=b;this.label_="total"};Mbc.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};Mbc.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};
var Nbc=function(a,b){this.metrics_=a;this.state_=new lU(b);this.source=b};Nbc.prototype.increment=function(a){this.metrics_.count(this.state_,void 0===a?1:a)};
var Obc=function(a,b){this.metrics_=a;this.state_=new lU(b);this.source=b};Obc.prototype.report=function(){this.metrics_.error(this.state_)};
var Er=function(a){Z.call(this,a)};U(Er,Z);Er.prototype.getEventType=function(){return X(this,1,0)};Er.prototype.setEventType=function(a){return l(this,1,a)};var Fr=function(a,b){return l(a,2,b)},jUa=function(a,b){return l(a,3,b)};g=Er.prototype;g.getErrorType=function(){return X(this,6,0)};g.setErrorType=function(a){return l(this,6,a)};g.getIdType=function(){return X(this,8,0)};g.setIdType=function(a){l(this,8,a)};g.getResultIndex=function(){return dj(this,9,0)};
g.setResultIndex=function(a){l(this,9,a)};g.getToken=function(){return V(this,10,"")};g.setToken=function(a){return l(this,10,a)};g.getCacheState=function(){return m(this,m1,11)};g.setCacheState=function(a){return Ab(this,11,a)};g.hasCacheState=function(){return cj(this,11)};g.getQueryLength=function(){return p(this,14)};g.setQueryLength=function(a){l(this,14,a)};g.hasQueryLength=function(){return cj(this,14)};g.getItemCount=function(){return p(this,15)};g.setItemCount=function(a){l(this,15,a)};
g.hasItemCount=function(){return cj(this,15)};g.toObject=function(){var a=null!=this?{eventType:X(this,1,0),apiLabel:X(this,2,0),rpcLabel:X(this,3,0),countType:X(this,4,0),latencyType:X(this,5,0),errorType:X(this,6,0),errorCause:X(this,7,0),idType:X(this,8,0),resultIndex:dj(this,9,0),token:V(this,10,""),cacheState:ubc(this.getCacheState()),contentLength:dj(this,12,0),errorHint:X(this,13,0),queryLength:n(p(this,14)),itemCount:n(p(this,15))}:void 0;return a};
var Pbc=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};Pbc.prototype.getErrorType=function(){return this.errorType_};
var Qbc=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=Qbc.prototype;g.getCacheType=function(){return this.delegate_.getCacheType()};g.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};g.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
g.index=function(a,b,c){var d=this.trackers_.latency(this.indexingLabel_);d.start();try{this.delegate_.index(a,b,c)}catch(e){throw this.trackers_.error(this.errorLabel_,10).report(),e;}finally{d.stop()}};g.search=function(a){var b=this.trackers_.latency(this.searchLabel_);b.start();try{return this.delegate_.search(a)}catch(c){throw this.trackers_.error(this.errorLabel_,13).report(),c;}finally{b.stop()}};
var Rbc=function(){};Rbc.prototype.processItem=function(){};var Sbc=new Rbc;
var uUa=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=uUa.prototype;g.getDisplayName=function(){return this.displayName_};g.setDisplayName=function(a){this.displayName_=a||"";return this};g.getGivenName=function(){return this.givenName_};g.setGivenName=function(a){this.givenName_=a||"";return this};g.getFamilyName=function(){return this.familyName_};g.setFamilyName=function(a){this.familyName_=a||"";return this};g.getSourceType=function(){return this.sourceType_};
g.setSourceType=function(a){this.sourceType_=a||0;return this};
var Tbc=function(){this.altText_=""};Tbc.prototype.getIconUrl=function(){return""};
var Ubc=function(){};Ubc.prototype.configure=function(){};
var x1=function(a){Z.call(this,a,-1,Vbc)};U(x1,Z);x1.prototype.getEnableClearcut=function(){return W(this,1,!1)};x1.prototype.setEnableClearcut=function(a){return l(this,1,a)};x1.prototype.getSocialApplication=function(){return X(this,2,0)};var Vbc=[5,6];x1.prototype.toObject=function(){return Wbc(this)};
var Wbc=function(a){if(null!=a)return{enableClearcut:W(a,1,!1),socialApplication:X(a,2,0),affinityLogSource:X(a,3,41),metricLogSource:X(a,4,574),eventSourcesList:Bb(rb(a,bs,5),e0),contextualEventSourcesList:Bb(rb(a,cs,6),q7b)}};
var y1=function(a){Z.call(this,a)};U(y1,Z);y1.prototype.getApplication=function(){return X(this,1,0)};y1.prototype.setApplication=function(a){return l(this,1,a)};y1.prototype.getIsEnabled=function(){return W(this,2,!1)};y1.prototype.toObject=function(){return Xbc(this)};var Xbc=function(a){if(null!=a)return{application:X(a,1,0),isEnabled:W(a,2,!1)}};
var z1=function(a){Z.call(this,a)};U(z1,Z);z1.prototype.getApiKey=function(){return V(this,1,"")};z1.prototype.toObject=function(){return Ybc(this)};var Ybc=function(a){if(null!=a)return{apiKey:V(a,1,""),apiKeyTest:V(a,2,"")}};
var A1=function(a){Z.call(this,a,-1,Zbc)};U(A1,Z);var Zbc=[1];A1.prototype.toObject=function(){return B1(this)};var B1=function(a){if(null!=a)return{papiExtensionList:n(jb(a,1))}};
var C1=function(a){Z.call(this,a,-1,$bc)};U(C1,Z);C1.prototype.getClientId=function(){return V(this,1,"CLIENT_UNSPECIFIED")};C1.prototype.setClientId=function(a){return l(this,1,a)};C1.prototype.getAffinityType=function(){return V(this,4,"AFFINITY_TYPE_UNKNOWN")};C1.prototype.setAffinityType=function(a){return l(this,4,a)};var $bc=[7,8];C1.prototype.toObject=function(){return acc(this)};
var acc=function(a){if(null!=a)return{clientId:V(a,1,"CLIENT_UNSPECIFIED"),clientName:V(a,2,"CLIENT_UNSPECIFIED"),clientVersion:V(a,3,""),affinityType:V(a,4,"AFFINITY_TYPE_UNKNOWN"),affinityTypeEnum:X(a,5,0),mergedPersonModel:X(a,6,1),containerTypeList:n(jb(a,7)),fieldMaskList:n(jb(a,8)),listRankedTargetsPapiExtensions:B1(m(a,A1,9)),listPeopleByKnownIdPapiExtensions:B1(m(a,A1,10)),listContactPeoplePapiExtensions:B1(m(a,A1,11)),getPeoplePapiExtensions:B1(m(a,A1,12)),identityAcl:W(a,13,!1),offlineStoreDelayMillis:dj(a,
14,5E3),enablePrivateNames:W(a,15,!1),dasherAdminDisabled:W(a,16,!1),enableSmimeCertificate:W(a,17,!1)}};
var bcc=function(a){Z.call(this,a)};U(bcc,Z);g=bcc.prototype;g.getClient=function(){return m(this,w1,1)};g.setClient=function(a){return Ab(this,1,a)};g.hasClient=function(){return cj(this,1)};g.getGapi=function(){return m(this,z1,2)};g.getPeopleApi=function(){return m(this,C1,3)};g.getClearcut=function(){return m(this,x1,4)};g.setClearcut=function(a){Ab(this,4,a)};g.hasClearcut=function(){return cj(this,4)};g.getExperiments=function(){return m(this,y1,5)};g.setExperiments=function(a){Ab(this,5,a)};
g.hasExperiments=function(){return cj(this,5)};g.toObject=function(){var a=null!=this?{client:Jbc(this.getClient()),gapi:Ybc(this.getGapi()),peopleApi:acc(this.getPeopleApi()),clearcut:Wbc(this.getClearcut()),experiments:Xbc(this.getExperiments())}:void 0;return a};
var ccc=function(a){Z.call(this,a,1)};U(ccc,Z);var dcc={};ccc.prototype.toObject=function(){if(null!=this){var a={};Cb(this,a,dcc)}else a=void 0;return a};
var fcc=function(a){Z.call(this,a,-1,ecc)};U(fcc,Z);g=fcc.prototype;g.getExperimentIdsList=function(){return jb(this,1)};g.setExperimentIdsList=function(a){return hl(this,1,a)};g.getProfileId=function(){return p(this,2)};g.setProfileId=function(a){return l(this,2,a)};g.hasProfileId=function(){return cj(this,2)};var ecc=[1];fcc.prototype.toObject=function(){var a=null!=this?{experimentIdsList:n(jb(this,1)),profileId:n(p(this,2))}:void 0;return a};
var gcc=function(){},hcc=function(){return!1},icc=function(){this.experiments_=new fcc;this.peopleApiEnv_=4;this.delegatorId_="";this.onAuthError_=gcc;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=hcc;this.isOrgStateEnabled_=!1};g=icc.prototype;g.getUserEmail=function(){return""};g.getDelegatorId=function(){return this.delegatorId_};g.getPeopleApiEnv=function(){return this.peopleApiEnv_};g.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};
g.getExperiments=function(){return this.experiments_};g.getAuthErrorHandler=function(){return this.onAuthError_};g.setClearcutUrl=function(a){this.clearcutUrl_=a};g.getClearcutUrl=function(){return this.clearcutUrl_};g.setAuthErrorHandler=function(a){this.onAuthError_=a||gcc};g.getApiKey=function(){return this.apiKey_};
var D1=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new icc;a=this.getPeopleApi();jb(a,7).length||hl(a,7,[2,8,1,7,10,11]);jb(a,8).length||hl(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=r(jb(a,8));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":ob(a,8,c+".metadata.verified")}};D1.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new w1);return this.delegate_.getClient()};
D1.prototype.getGapi=function(){if(!cj(this.delegate_,2)){var a=this.delegate_,b=new z1;Ab(a,2,b)}return this.delegate_.getGapi()};D1.prototype.getPeopleApi=function(){if(!cj(this.delegate_,3)){var a=this.delegate_,b=new C1;Ab(a,3,b)}return this.delegate_.getPeopleApi()};D1.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new x1);return this.delegate_.getClearcut()};var jcc=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new y1);return a.delegate_.getExperiments()};
D1.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var kcc=function(a){a=a.getClient();return dj(a,6,500)?Math.min(Math.round(dj(a,6,500)/4),500):500};
var as=null;
var lcc=function(a){this.qos=a};lcc.prototype.getIndex=function(){return String(this.qos)};var mcc=new lcc(1),ncc=new lcc(2);
var occ=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};occ.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||(a.orgState_=0)};
var E1=function(a){Z.call(this,a)};U(E1,Z);E1.prototype.getDescription=function(){return p(this,6)};E1.prototype.setDescription=function(a){return l(this,6,a)};E1.prototype.toObject=function(){return pcc(void 0,this)};var pcc=function(a,b){if(null!=b){var c={entityType:n(p(b,4)),presence:n(p(b,1)),memberCount:n(p(b,2)),avatarUrl:n(p(b,3)),developerName:n(p(b,5)),description:n(p(b,6)),dndState:n(p(b,7)),organizationInfo:ijb(a,m(b,fjb,8))};a&&(c.$jspbMessageInstance=b);return c}};
var qcc=function(a){Z.call(this,a)};U(qcc,Z);qcc.prototype.toObject=function(){return rcc(void 0,this)};var rcc=function(a,b){if(null!=b){var c={actorId:n(p(b,1)),subtitle:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var tr=function(a){Z.call(this,a,5)};U(tr,Z);tr.prototype.getIsPlaceholder=function(){return Ro(this,2)};tr.prototype.setIsPlaceholder=function(a){l(this,2,a)};tr.prototype.getContactId=function(){return p(this,4)};tr.prototype.setContactId=function(a){l(this,4,a)};var scc={};tr.prototype.toObject=function(){return tcc(void 0,this)};
var tcc=function(a,b){if(null!=b){var c={dynamiteExtendedData:pcc(a,m(b,E1,1)),isPlaceholder:n(Ro(b,2)),paisaExtendedData:rcc(a,m(b,qcc,3)),contactId:n(p(b,4))};Cb(b,c,scc,a);a&&(c.$jspbMessageInstance=b);return c}};
var bUa=yb(417869898,{clientSpecificData:0},tr,tcc);N7b[417869898]=bUa;
var vr=function(a){Z.call(this,a)};U(vr,Z);vr.prototype.toObject=function(){return ucc(void 0,this)};var ucc=function(a,b){if(null!=b){var c={grammaticalGender:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var YTa=yb(417866180,{peopleStackFieldData:0},vr,ucc);N7b[417866180]=YTa;
var F1=function(a){Z.call(this,a)};U(F1,Z);g=F1.prototype;g.getIdCase=function(){return pb(this,G1)};g.getProfileId=function(){return V(this,qb(this,G1,1))};g.setProfileId=function(a){return ao(this,1,G1,a)};g.hasProfileId=function(){return ul(this,1,G1)};g.getEmail=function(){return V(this,qb(this,G1,2))};g.setEmail=function(a){return ao(this,2,G1,a)};g.hasEmail=function(){return ul(this,2,G1)};g.getPhone=function(){return V(this,qb(this,G1,3))};g.setPhone=function(a){return ao(this,3,G1,a)};
g.hasPhone=function(){return ul(this,3,G1)};var G1=[1,2,3];F1.prototype.toObject=function(){return vcc(void 0,this)};var vcc=function(a,b){if(null!=b){var c={profileId:n(Or(b,1,G1)),email:n(Or(b,2,G1)),phone:n(Or(b,3,G1))};a&&(c.$jspbMessageInstance=b);return c}};
var yr=function(a){Z.call(this,a,-1,wcc)};U(yr,Z);yr.prototype.getHiddenKeysList=function(){return rb(this,F1,3)};var wcc=[3];yr.prototype.toObject=function(){return xcc(void 0,this)};var xcc=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Bb(b.getHiddenKeysList(),vcc,a),familyStatus:n(p(b,2)),birthdayStatus:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var cUa=yb(417869137,{peopleStackPersonData:0},yr,xcc);N7b[417869137]=cUa;
var ycc=function(a){a=null==a?"":String(a);for(var b=0,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a.codePointAt(c);return b},$Ta=function(a){if(!a)return 0;a=Array.from(a).map(ycc);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};
var RTa=new Map([["CONTACT_GROUP",9],["FAMILY",11],["MEDIA_COLLECTION",10],["CHAT",12],["GROUP_DM",12],["ROOM",13],["DYNAMITE_ROOM",13],["DYNAMITE_NAMED_ROOM",13],["DYNAMITE_UNNAMED_ROOM",14],["DYNAMITE_CLASSIC_NAMED_ROOM",15],["DYNAMITE_CLASSIC_UNNAMED_ROOM",16]]);
var zcc=function(a){Z.call(this,a)};U(zcc,Z);g=zcc.prototype;g.getLoggingId=function(){return uu(this,1)};g.setLoggingId=function(a){l(this,1,a)};g.getValue=function(){return tu(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};g.toObject=function(){return Acc(void 0,this)};var Acc=function(a,b){if(null!=b){var c={loggingId:Eb(b.getLoggingId()),value:n(tu(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Bcc=function(a){Z.call(this,a)};U(Bcc,Z);g=Bcc.prototype;g.getValue=function(){return p(this,1)};g.setValue=function(a){return l(this,1,a)};g.hasValue=function(){return cj(this,1)};g.getGivenName=function(){return p(this,2)};g.setGivenName=function(a){return l(this,2,a)};g.hasGivenName=function(){return cj(this,2)};g.getFamilyName=function(){return p(this,3)};g.setFamilyName=function(a){return l(this,3,a)};g.hasFamilyName=function(){return cj(this,3)};
g.getSourceType=function(){return p(this,4)};g.setSourceType=function(a){return l(this,4,a)};g.toObject=function(){return Ccc(void 0,this)};var Ccc=function(a,b){if(null!=b){var c={value:n(p(b,1)),givenName:n(p(b,2)),familyName:n(p(b,3)),sourceType:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Dcc=function(a){Z.call(this,a)};U(Dcc,Z);g=Dcc.prototype;g.getUrl=function(){return p(this,1)};g.setUrl=function(a){return l(this,1,a)};g.hasUrl=function(){return cj(this,1)};g.getType=function(){return p(this,2)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return cj(this,2)};g.getGlyph=function(){return p(this,3)};g.setGlyph=function(a){return l(this,3,a)};g.toObject=function(){return Ecc(void 0,this)};
var Ecc=function(a,b){if(null!=b){var c={url:n(p(b,1)),type:n(p(b,2)),glyph:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var H1=function(a){Z.call(this,a)};U(H1,Z);g=H1.prototype;g.getPhoto=function(){return m(this,Dcc,1)};g.setPhoto=function(a){Ab(this,1,a)};g.hasPhoto=function(){return cj(this,1)};g.getName=function(){return m(this,Bcc,2)};g.setName=function(a){return Ab(this,2,a)};g.hasName=function(){return cj(this,2)};g.getAffinity=function(){return m(this,zcc,3)};g.hasAffinity=function(){return cj(this,3)};g.getPrimary=function(){return Ro(this,4)};g.toObject=function(){return Fcc(void 0,this)};
var Fcc=function(a,b){if(null!=b){var c={photo:Ecc(a,b.getPhoto()),name:Ccc(a,b.getName()),affinity:Acc(a,b.getAffinity()),primary:n(Ro(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Gcc=function(a){Z.call(this,a)};U(Gcc,Z);Gcc.prototype.toObject=function(){return Hcc(void 0,this)};var Hcc=function(a,b){if(null!=b){var c={smtpServerSupportsTls:n(Ro(b,1)),usesConfusingCharacters:n(Ro(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var I1=function(a){Z.call(this,a,-1,Icc)};U(I1,Z);I1.prototype.getApplication=function(){return X(this,1,0)};I1.prototype.setApplication=function(a){return l(this,1,a)};var Hr=function(a){Z.call(this,a)};U(Hr,Z);Hr.prototype.getState=function(){return p(this,2)};var Icc=[2];I1.prototype.toObject=function(){return Jcc(void 0,this)};var Jcc=function(a,b){if(null!=b){var c={application:X(b,1,0),stateStatusList:Bb(rb(b,Hr,2),Kcc,a)};a&&(c.$jspbMessageInstance=b);return c}};
Hr.prototype.toObject=function(){return Kcc(void 0,this)};var Kcc=function(a,b){if(null!=b){var c={contextType:n(p(b,1)),state:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var J1=function(a){Z.call(this,a,-1,Lcc)};U(J1,Z);J1.prototype.getValue=function(){return p(this,1)};J1.prototype.setValue=function(a){return l(this,1,a)};J1.prototype.hasValue=function(){return cj(this,1)};var K1=function(a){Z.call(this,a)};U(K1,Z);K1.prototype.getStatus=function(){return p(this,2)};K1.prototype.setStatus=function(a){return l(this,2,a)};K1.prototype.hasStatus=function(){return cj(this,2)};var Lcc=[2];J1.prototype.toObject=function(){return Mcc(void 0,this)};
var Mcc=function(a,b){if(null!=b){var c={value:n(p(b,1)),certificatesList:Bb(rb(b,K1,2),Ncc,a),securityInfo:Hcc(a,m(b,Gcc,3)),internalExternal:Jcc(a,m(b,I1,4))};a&&(c.$jspbMessageInstance=b);return c}};K1.prototype.toObject=function(){return Ncc(void 0,this)};var Ncc=function(a,b){if(null!=b){var c={expirationTimestampSeconds:n(p(b,1)),status:n(p(b,2)),configurationName:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var or=function(a){Z.call(this,a)};U(or,Z);g=or.prototype;g.getProfileId=function(){return p(this,1)};g.setProfileId=function(a){return l(this,1,a)};g.hasProfileId=function(){return cj(this,1)};g.getEmail=function(){return Or(this,2,qr)};g.setEmail=function(a){return ao(this,2,qr,a)};g.hasEmail=function(){return ul(this,2,qr)};g.getPhone=function(){return Or(this,3,qr)};g.setPhone=function(a){return ao(this,3,qr,a)};g.hasPhone=function(){return ul(this,3,qr)};var qr=[2,3];
or.prototype.toObject=function(){return Occ(void 0,this)};var Occ=function(a,b){if(null!=b){var c={profileId:n(p(b,1)),email:n(Or(b,2,qr)),phone:n(Or(b,3,qr))};a&&(c.$jspbMessageInstance=b);return c}};
var Pcc=function(a){Z.call(this,a)};U(Pcc,Z);Pcc.prototype.getDisplayValue=function(){return p(this,1)};Pcc.prototype.toObject=function(){return Qcc(void 0,this)};var Qcc=function(a,b){if(null!=b){var c={displayValue:n(p(b,1)),canonicalValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var sr=function(a){Z.call(this,a)};U(sr,Z);sr.prototype.getIdCase=function(){return pb(this,L1)};sr.prototype.getProfileId=function(){return Or(this,1,L1)};sr.prototype.setProfileId=function(a){return ao(this,1,L1,a)};sr.prototype.hasProfileId=function(){return ul(this,1,L1)};var L1=[1];sr.prototype.toObject=function(){return Rcc(void 0,this)};var Rcc=function(a,b){if(null!=b){var c={profileId:n(Or(b,1,L1))};a&&(c.$jspbMessageInstance=b);return c}};
var zr=function(a){Z.call(this,a,-1,Scc)};U(zr,Z);g=zr.prototype;g.getValueCase=function(){return pb(this,pr)};g.getDisplayInfo=function(){return m(this,H1,1)};g.hasDisplayInfo=function(){return cj(this,1)};g.getEmail=function(){return wl(this,J1,2,pr)};g.setEmail=function(a){return xu(this,2,pr,a)};g.hasEmail=function(){return ul(this,2,pr)};g.getPhone=function(){return wl(this,Pcc,3,pr)};g.setPhone=function(a){return xu(this,3,pr,a)};g.hasPhone=function(){return ul(this,3,pr)};
g.getTypeLabel=function(){return p(this,10)};var Scc=[5],pr=[2,3,4];zr.prototype.toObject=function(){return Tcc(void 0,this)};var Tcc=function(a,b){if(null!=b){var c={displayInfo:Fcc(a,b.getDisplayInfo()),email:Mcc(a,b.getEmail()),phone:Qcc(a,b.getPhone()),inAppTarget:Occ(a,wl(b,or,4,pr)),sourceIdsList:Bb(rb(b,sr,5),Rcc,a),isSelf:n(Ro(b,6)),isGoogleGroup:n(Ro(b,7)),isPersonal:n(Ro(b,8)),peopleStackFieldExtendedData:ucc(a,m(b,vr,9)),typeLabel:n(p(b,10))};a&&(c.$jspbMessageInstance=b);return c}};
var Cr=function(a){Z.call(this,a,-1,Ucc)};U(Cr,Z);Cr.prototype.getDisplayInfo=function(){return m(this,H1,1)};Cr.prototype.hasDisplayInfo=function(){return cj(this,1)};Cr.prototype.getMembersList=function(){return rb(this,zr,2)};Cr.prototype.getLabelId=function(){return p(this,3)};var Ucc=[2];Cr.prototype.toObject=function(){return Vcc(void 0,this)};
var Vcc=function(a,b){if(null!=b){var c={displayInfo:Fcc(a,b.getDisplayInfo()),membersList:Bb(b.getMembersList(),Tcc,a),labelId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Mr=function(a){Z.call(this,a)};U(Mr,Z);Mr.prototype.getIdCase=function(){return pb(this,Nr)};var Nr=[1];Mr.prototype.toObject=function(){return Wcc(void 0,this)};var Wcc=function(a,b){if(null!=b){var c={rosterEmail:n(Or(b,1,Nr))};a&&(c.$jspbMessageInstance=b);return c}};
var Ycc=function(a){Z.call(this,a,-1,Xcc)};U(Ycc,Z);Ycc.prototype.getHiddenKeysList=function(){return rb(this,F1,3)};var Xcc=[3];Ycc.prototype.toObject=function(){return Zcc(void 0,this)};var Zcc=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Bb(b.getHiddenKeysList(),vcc,a),familyStatus:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Br=function(a){Z.call(this,a,-1,$cc)};U(Br,Z);Br.prototype.getAffinity=function(){return m(this,zcc,2)};Br.prototype.hasAffinity=function(){return cj(this,2)};var $cc=[1];Br.prototype.toObject=function(){return adc(void 0,this)};
var adc=function(a,b){if(null!=b){var c={affinity:Acc(a,b.getAffinity()),contactMethodsList:Bb(rb(b,zr,1),Tcc,a),clientSpecificData:tcc(a,m(b,tr,3)),peopleStackExtendedData:Zcc(a,m(b,Ycc,4)),peopleStackPersonExtendedData:xcc(a,m(b,yr,5))};a&&(c.$jspbMessageInstance=b);return c}};
var cdc=function(a){Z.call(this,a,-1,bdc)};U(cdc,Z);g=cdc.prototype;g.getDisplayInfo=function(){return m(this,H1,1)};g.hasDisplayInfo=function(){return cj(this,1)};g.getMembersList=function(){return rb(this,Br,2)};g.getGroupId=function(){return p(this,4)};g.setGroupId=function(a){l(this,4,a)};g.hasGroupId=function(){return cj(this,4)};var bdc=[2,6];cdc.prototype.toObject=function(){return ddc(void 0,this)};
var ddc=function(a,b){if(null!=b){var c={displayInfo:Fcc(a,b.getDisplayInfo()),membersList:Bb(b.getMembersList(),adc,a),fullGroupSize:n(p(b,3)),groupId:n(p(b,4)),groupType:n(p(b,5)),groupAlternateIdList:Bb(rb(b,Mr,6),Wcc,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Dr=function(a){Z.call(this,a)};U(Dr,Z);Dr.prototype.getGroup=function(){return wl(this,cdc,2,Ar)};Dr.prototype.setGroup=function(a){xu(this,2,Ar,a)};var Ar=[1,2,3];Dr.prototype.toObject=function(){return edc(void 0,this)};var edc=function(a,b){if(null!=b){var c={person:adc(a,wl(b,Br,1,Ar)),group:ddc(a,b.getGroup()),contactLabel:Vcc(a,wl(b,Cr,3,Ar))};a&&(c.$jspbMessageInstance=b);return c}};
var Gr=function(a){Z.call(this,a)};U(Gr,Z);g=Gr.prototype;g.getIdCase=function(){return pb(this,M1)};g.getEmail=function(){return Or(this,1,M1)};g.setEmail=function(a){return ao(this,1,M1,a)};g.hasEmail=function(){return ul(this,1,M1)};g.getPhone=function(){return Or(this,2,M1)};g.setPhone=function(a){return ao(this,2,M1,a)};g.hasPhone=function(){return ul(this,2,M1)};g.getProfileId=function(){return Or(this,3,M1)};g.setProfileId=function(a){return ao(this,3,M1,a)};
g.hasProfileId=function(){return ul(this,3,M1)};var M1=[1,2,3];Gr.prototype.toObject=function(){return fdc(void 0,this)};var fdc=function(a,b){if(null!=b){var c={email:n(Or(b,1,M1)),phone:n(Or(b,2,M1)),profileId:n(Or(b,3,M1))};a&&(c.$jspbMessageInstance=b);return c}};
var N1=function(a){Z.call(this,a,-1,gdc)};U(N1,Z);N1.prototype.getAffinityVersion=function(){return p(this,1)};N1.prototype.setAffinityVersion=function(a){l(this,1,a)};N1.prototype.getAffinityType=function(){return p(this,4)};N1.prototype.setAffinityType=function(a){return l(this,4,a)};var hdc=function(a){Z.call(this,a)};U(hdc,Z);var gdc=[3];N1.prototype.toObject=function(){return idc(void 0,this)};
var idc=function(a,b){if(null!=b){var c={affinityVersion:n(p(b,1)),affinityThreshold:n(tu(b,2)),featureList:Bb(rb(b,hdc,3),jdc,a),affinityType:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};hdc.prototype.toObject=function(){return jdc(void 0,this)};var jdc=function(a,b){if(null!=b){var c={featureType:X(b,1,0),weight:xl(b,2,0),exponent:xl(b,3,1)};a&&(c.$jspbMessageInstance=b);return c}};
var O1=function(a){Z.call(this,a,-1,kdc)};U(O1,Z);var kdc=[1];O1.prototype.toObject=function(){return ldc(void 0,this)};var ldc=function(a,b){if(null!=b){var c={resultsList:Bb(rb(b,Dr,1),edc,a),affinityResponseContext:idc(a,m(b,N1,2))};a&&(c.$jspbMessageInstance=b);return c}};
var ndc=function(a){Z.call(this,a,-1,mdc)};U(ndc,Z);var P1=function(a){Z.call(this,a)};U(P1,Z);P1.prototype.getId=function(){return m(this,Gr,1)};P1.prototype.setId=function(a){return Ab(this,1,a)};var mdc=[1];ndc.prototype.toObject=function(){var a=null!=this?{matchesList:Bb(rb(this,P1,1),odc)}:void 0;return a};var pdc=[2,3];P1.prototype.toObject=function(){return odc(void 0,this)};
var odc=function(a,b){if(null!=b){var c={id:fdc(a,b.getId()),autocompletion:edc(a,wl(b,Dr,2,pdc)),failureType:n(Or(b,3,pdc))};a&&(c.$jspbMessageInstance=b);return c}};
var qdc=function(a){Z.call(this,a)};U(qdc,Z);qdc.prototype.toObject=function(){return rdc(this)};var rdc=function(a){if(null!=a)return{sqliteStatus:n(p(a,1))}};
var sdc=function(a){Z.call(this,a)};U(sdc,Z);sdc.prototype.getSqliteErrorInfo=function(){return wl(this,qdc,2,tdc)};var tdc=[2];sdc.prototype.toObject=function(){return udc(this)};var udc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:rdc(a.getSqliteErrorInfo())}};
var vdc=function(a){Z.call(this,a)};U(vdc,Z);vdc.prototype.getSqliteErrorInfo=function(){return wl(this,qdc,2,wdc)};var wdc=[2];vdc.prototype.toObject=function(){return xdc(this)};var xdc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:rdc(a.getSqliteErrorInfo())}};
var ydc=function(a){Z.call(this,a)};U(ydc,Z);ydc.prototype.toObject=function(){return zdc(this)};var zdc=function(a){if(null!=a)return{errorLocation:n(p(a,1))}};
var Q1=function(a){Z.call(this,a)};U(Q1,Z);g=Q1.prototype;g.getClientInterface=function(){return m(this,WT,1)};g.setClientInterface=function(a){return Ab(this,1,a)};g.getEventType=function(){return p(this,3)};g.setEventType=function(a){return l(this,3,a)};g.getCacheStatus=function(){return m(this,Adc,12)};g.setCacheStatus=function(a){return Ab(this,12,a)};g.getCount=function(){return m(this,R1,4)};g.setCount=function(a){Ab(this,4,a)};g.getLatency=function(){return m(this,S1,5)};
g.setLatency=function(a){return Ab(this,5,a)};g.getError=function(){return m(this,T1,6)};g.setError=function(a){Ab(this,6,a)};g.hasError=function(){return cj(this,6)};g.getRpcRequest=function(){return m(this,U1,7)};g.setRpcRequest=function(a){return Ab(this,7,a)};g.getRpcResponse=function(){return m(this,V1,8)};g.setRpcResponse=function(a){return Ab(this,8,a)};g.getApiCall=function(){return m(this,W1,9)};g.setApiCall=function(a){return Ab(this,9,a)};g.getApiResult=function(){return m(this,X1,10)};
g.setApiResult=function(a){return Ab(this,10,a)};var Adc=function(a){Z.call(this,a)};U(Adc,Z);var R1=function(a){Z.call(this,a)};U(R1,Z);g=R1.prototype;g.getDataSource=function(){return p(this,3)};g.setDataSource=function(a){return l(this,3,a)};g.getType=function(){return p(this,4)};g.setType=function(a){return l(this,4,a)};g.hasType=function(){return cj(this,4)};g.getValue=function(){return dj(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};var Bdc=function(a){Z.call(this,a)};U(Bdc,Z);var S1=function(a){Z.call(this,a)};U(S1,Z);g=S1.prototype;g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return cj(this,3)};g.setLatencyUsec=function(a){l(this,2,a)};g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};
g.hasLabel=function(){return cj(this,1)};var Y1=function(a){Z.call(this,a)};U(Y1,Z);Y1.prototype.getLabel=function(){return p(this,1)};Y1.prototype.setLabel=function(a){return l(this,1,a)};Y1.prototype.hasLabel=function(){return cj(this,1)};var Cdc=function(a){Z.call(this,a)};U(Cdc,Z);var T1=function(a){Z.call(this,a)};U(T1,Z);g=T1.prototype;g.setStatusCode=function(a){l(this,5,a)};g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};
g.hasLabel=function(){return cj(this,1)};g.getCause=function(){return p(this,2)};g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return cj(this,3)};var U1=function(a){Z.call(this,a)};U(U1,Z);U1.prototype.getLabel=function(){return p(this,1)};U1.prototype.setLabel=function(a){return l(this,1,a)};U1.prototype.hasLabel=function(){return cj(this,1)};var V1=function(a){Z.call(this,a)};U(V1,Z);g=V1.prototype;g.getLabel=function(){return p(this,1)};
g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return cj(this,2)};g.setLatencyUsec=function(a){l(this,3,a)};g.getErrorCode=function(){return p(this,4)};g.setStatusCode=function(a){l(this,7,a)};g.setBlockedUsec=function(a){return l(this,8,a)};var Ddc=function(a){Z.call(this,a)};U(Ddc,Z);var W1=function(a){Z.call(this,a)};U(W1,Z);g=W1.prototype;
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){l(this,2,a)};g.hasItemCount=function(){return cj(this,2)};g.getLookupInfo=function(){return m(this,Ddc,3)};g.getQueryLength=function(){return p(this,4)};g.setQueryLength=function(a){l(this,4,a)};g.hasQueryLength=function(){return cj(this,4)};var X1=function(a){Z.call(this,a)};U(X1,Z);g=X1.prototype;
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return cj(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return cj(this,2)};g.setLatencyUsec=function(a){l(this,3,a)};g.getResultIndex=function(){return p(this,4)};g.setResultIndex=function(a){l(this,4,a)};g.getDataSource=function(){return p(this,7)};g.setDataSource=function(a){return l(this,7,a)};
g.getItemCount=function(){return p(this,8)};g.setItemCount=function(a){l(this,8,a)};g.hasItemCount=function(){return cj(this,8)};g.getLookupInfo=function(){return m(this,Ddc,10)};g.setStatusCode=function(a){l(this,11,a)};g.getQueryLength=function(){return p(this,13)};g.setQueryLength=function(a){l(this,13,a)};g.hasQueryLength=function(){return cj(this,13)};
Q1.prototype.toObject=function(){var a=null!=this?{clientInterface:OSb(this.getClientInterface()),autocompleteSessions:aTb(m(this,dU,2)),eventType:n(p(this,3)),cacheStatus:Edc(this.getCacheStatus()),deviceInfo:Fdc(m(this,Bdc,13)),count:Gdc(this.getCount()),latency:Hdc(this.getLatency()),error:Idc(this.getError()),rpcRequest:Jdc(this.getRpcRequest()),rpcResponse:Kdc(this.getRpcResponse()),apiCall:Ldc(this.getApiCall()),apiResult:Mdc(this.getApiResult()),memory:Ndc(m(this,Y1,11))}:void 0;return a};
Adc.prototype.toObject=function(){return Edc(this)};var Edc=function(a){if(null!=a)return{topnCacheItemCount:n(p(a,1)),iosDeviceCacheItemCount:n(p(a,2))}};R1.prototype.toObject=function(){return Gdc(this)};var Gdc=function(a){if(null!=a)return{dataSource:n(p(a,3)),type:n(p(a,4)),value:dj(a,2,1),label:n(p(a,1))}};Bdc.prototype.toObject=function(){return Fdc(this)};var Fdc=function(a){if(null!=a)return{numberOfContacts:n(p(a,1))}};S1.prototype.toObject=function(){return Hdc(this)};
var Hdc=function(a){if(null!=a)return{type:n(p(a,3)),latencyUsec:n(p(a,2)),label:n(p(a,1))}};Y1.prototype.toObject=function(){return Ndc(this)};var Ndc=function(a){if(null!=a)return{label:n(p(a,1)),memoryUsedBytes:n(p(a,2)),memoryAverageUsedBytes:n(p(a,3))}};Cdc.prototype.toObject=function(){return Odc(this)};var Odc=function(a){if(null!=a)return{cpuPeakUsageFraction:n(tu(a,1)),cpuAverageUsageFraction:n(tu(a,2)),memoryPeakUsageBytes:n(p(a,3)),memoryAverageUsageBytes:n(p(a,4))}},Pdc=[6,7,8];
T1.prototype.toObject=function(){return Idc(this)};var Idc=function(a){if(null!=a)return{statusCode:X(a,5,2),iosErrorInfo:xdc(wl(a,vdc,6,Pdc)),androidErrorInfo:udc(wl(a,sdc,7,Pdc)),webErrorInfo:zdc(wl(a,ydc,8,Pdc)),label:n(p(a,1)),cause:n(p(a,2)),type:n(p(a,3)),causeType:n(p(a,4))}};U1.prototype.toObject=function(){return Jdc(this)};var Jdc=function(a){if(null!=a)return{label:n(p(a,1)),requestProtoBytes:n(p(a,2)),requestBytes:n(p(a,3))}};V1.prototype.toObject=function(){return Kdc(this)};
var Kdc=function(a){if(null!=a)return{label:n(p(a,1)),status:n(p(a,2)),latencyUsec:n(p(a,3)),errorCode:n(p(a,4)),responseProtoBytes:n(p(a,5)),responseBytes:n(p(a,6)),statusCode:X(a,7,2),blockedUsec:n(p(a,8)),processingUsec:n(p(a,9))}};Ddc.prototype.toObject=function(){return Qdc(this)};var Qdc=function(a){if(null!=a)return{phoneItemCount:n(p(a,1)),emailItemCount:n(p(a,2)),gaiaItemCount:n(p(a,3)),notFoundPhoneItemCount:n(p(a,4)),notFoundEmailItemCount:n(p(a,5)),notFoundGaiaItemCount:n(p(a,6))}};
W1.prototype.toObject=function(){return Ldc(this)};var Ldc=function(a){if(null!=a)return{label:n(p(a,1)),itemCount:n(p(a,2)),lookupInfo:Qdc(a.getLookupInfo()),queryLength:n(p(a,4))}};X1.prototype.toObject=function(){return Mdc(this)};
var Mdc=function(a){if(null!=a)return{label:n(p(a,1)),status:n(p(a,2)),latencyUsec:n(p(a,3)),resultIndex:n(p(a,4)),cacheStatusAtQuery:n(p(a,5)),cacheStatusAtResult:n(p(a,6)),dataSource:n(p(a,7)),itemCount:n(p(a,8)),duplicatesRejectedCount:n(p(a,12)),resources:Odc(m(a,Cdc,9)),lookupInfo:Qdc(a.getLookupInfo()),statusCode:X(a,11,2),queryLength:n(p(a,13))}};
var Z1=function(a){Z.call(this,a)};U(Z1,Z);Z1.prototype.setDevice=function(a){return l(this,1,a)};Z1.prototype.toObject=function(){return Rdc(this)};var Rdc=function(a){if(null!=a)return{device:n(p(a,1))}};
var Sdc=function(a){Z.call(this,a)};U(Sdc,Z);g=Sdc.prototype;g.getAffinityType=function(){return p(this,1)};g.setAffinityType=function(a){return l(this,1,a)};g.getQuery=function(){return p(this,2)};g.setQuery=function(a){return l(this,2,a)};g.clearQuery=function(){mb(this,2)};g.hasQuery=function(){return cj(this,2)};g.getClientInformation=function(){return m(this,Z1,3)};g.setClientInformation=function(a){Ab(this,3,a)};
g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),query:n(p(this,2)),clientInformation:Rdc(this.getClientInformation())}:void 0;return a};
var a2=function(a){Z.call(this,a,-1,Tdc)};U(a2,Z);a2.prototype.getAffinityType=function(){return p(this,1)};a2.prototype.setAffinityType=function(a){return l(this,1,a)};a2.prototype.getClientInformation=function(){return m(this,Z1,2)};a2.prototype.setClientInformation=function(a){Ab(this,2,a)};var Udc=function(a,b){zb(a,3,b)},Tdc=[3];
a2.prototype.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:Rdc(this.getClientInformation()),idsList:Bb(rb(this,Gr,3),fdc)}:void 0;return a};
var Vdc=function(a){Z.call(this,a)};U(Vdc,Z);g=Vdc.prototype;g.getAffinityType=function(){return p(this,1)};g.setAffinityType=function(a){return l(this,1,a)};g.getClientInformation=function(){return m(this,Z1,2)};g.setClientInformation=function(a){Ab(this,2,a)};g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:Rdc(this.getClientInformation())}:void 0;return a};
var Wdc=function(a){Z.call(this,a)};U(Wdc,Z);Wdc.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var Xdc=new mG("/peoplestack.PeopleStackAutocompleteService/Autocomplete",Sdc,O1,function(a){return a.serialize()},function(a){return ho(O1,a)});
var Ydc=new mG("/peoplestack.PeopleStackAutocompleteService/Lookup",a2,ndc,function(a){return a.serialize()},function(a){return ho(ndc,a)});
var Zdc=new mG("/peoplestack.PeopleStackAutocompleteService/Warmup",Vdc,Wdc,function(a){return a.serialize()},function(a){return ho(Wdc,a)});
var $dc=function(a){var b={unaryInterceptors:[new W8b]};b=b||{};b.format="jspb";this.client_=new UG(b);this.hostname_=a};$dc.prototype.autocomplete=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},Xdc)};$dc.prototype.lookup=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},Ydc)};
var b2=function(a,b,c,d){this.grpcClient_=a;d?a=kUa(d):(a=new Er,jUa(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=d?2:1;this.trackers_=c;this.query_=d;this.affinity_=X(b.getPeopleApi(),5,0)};b2.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};b2.prototype.send=function(a){var b=new Sdc;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new Z1).setDevice(1));return this.grpcClient_.autocomplete(b,a)};
b2.prototype.processResponse=function(a){var b=iUa(a,this.provenance_),c=new Wr;cj(a,2)&&c.setAffinityVersion(m(a,N1,2).getAffinityVersion());return{data:b,metadata:c}};b2.prototype.close=function(){};
var c2=function(a,b,c,d,e){this.grpcClient_=a;a=new Er;jUa(a.setEventType(4),7).setIdType(d);this.sourceInfo_=a;this.provenance_=3;this.keys_=e;this.type_=d;this.trackers_=c;this.affinity_=X(b.getPeopleApi(),5,0)};c2.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};
c2.prototype.send=function(a){var b=this,c=new a2;c.setAffinityType(this.affinity_).setClientInformation((new Z1).setDevice(1));Udc(c,this.keys_.map(function(d){return qUa(b.type_,d)}).filter(function(d){return!!d}));return this.grpcClient_.lookup(c,a)};
c2.prototype.processResponse=function(a){var b=this.provenance_,c=new Map;a=r(rb(a,P1,1));for(var d=a.next();!d.done;d=a.next())if(d=d.value,ul(d,2,pdc)){var e=hUa(wl(d,Dr,2,pdc),b);switch(d.getId().getIdCase()){case 1:c.set(d.getId().getEmail(),e);break;case 2:c.set(d.getId().getPhone(),e);break;case 3:c.set(d.getId().getProfileId(),e)}}return{data:c,metadata:new Wr}};c2.prototype.close=function(){};
var aec=function(a){Z.call(this,a)};U(aec,Z);aec.prototype.toObject=function(){return bec(void 0,this)};var bec=function(a,b){if(null!=b){var c={leanAutocomplete:ldc(a,m(b,O1,1))};a&&(c.$jspbMessageInstance=b);return c}},cec=yb(342338249,{leanOfflineData:0},aec,bec);dcc[342338249]=cec;
var dec=function(){};dec.prototype.write=function(a,b){var c=new aec;b=Ab(c,1,b);cec.setExtensionFn(a,b)};dec.prototype.read=function(a){return(a=a.getExtension(cec))?m(a,O1,1):null};
var d2=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=kUa("");this.trackers_=c;this.affinity_=X(b.getPeopleApi(),5,0)};d2.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};d2.prototype.send=function(a){var b=new Vdc;b.setAffinityType(this.affinity_).setClientInformation((new Z1).setDevice(1));var c=this.grpcClient_;return hG(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},Zdc)};
d2.prototype.processResponse=function(){return{data:[],metadata:new Wr}};d2.prototype.close=function(){};
var eec=new $yb;
var e2=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};e2.prototype.send=function(a){var b=this;return me(function(c){return b.runtimeConfig_.isOffline_()?c.return(eec):c.return(b.delegate_.send(a))})};e2.prototype.getMetric=function(){return this.delegate_.getMetric()};e2.prototype.processResponse=function(a){return a===eec?this.offlineResponse_:this.delegate_.processResponse(a)};e2.prototype.close=function(a){this.delegate_.close(a)};
var fec={data:[],metadata:l(new Wr,5,!0)},gec={data:new Map,metadata:l(new Wr,5,!0)};l(new Wr,5,!0);
var hec=function(a){Z.call(this,a)};U(hec,Z);g=hec.prototype;g.getTimestamp=function(){return dj(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return cj(this,1)};g.getOwner=function(){return V(this,2)};g.setOwner=function(a){return l(this,2,a)};g.toObject=function(){return iec(void 0,this)};var iec=function(a,b){if(null!=b){var c={timestamp:n(p(b,1)),owner:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},jec=yb(342656659,{metadata:0},hec,iec);
dcc[342656659]=jec;
var f2=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null},kec=function(a){var b,c;return me(function(d){if(1==d.nextAddress)return Lt(d,2),ne(d,a.offlineStorage_.fetch(),4);if(2!=d.nextAddress){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(jec);c=a.offlineMetadata_?M7b(a.offlineMetadata_.getOwner()):rr;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):
d.return(null)}Nt(d);return d.return(null)})};
f2.prototype.send=function(a){var b=this,c,d,e,f,h;return me(function(k){switch(k.nextAddress){case 1:return Lt(k,2),ne(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==eec){k.jumpTo(5);break}return ne(k,kec(b),6);case 6:return e=k.yieldResult,k.return(e||eec);case 5:return setTimeout(function(){var q=new ccc;wr(q,jec,(new hec).setTimestamp(d).setOwner(String(b.owner_)));b.offlineDataTransformer_.write(q,c);b.offlineStorage_.store(q)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=
Nt(k),ne(k,kec(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};f2.prototype.getMetric=function(){return this.delegate_.getMetric()};f2.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(this.offlineMetadata_.getTimestamp());return a};f2.prototype.close=function(a){this.delegate_.close(a)};
var g2=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;b={apiKey:b.runtimeConfig_.getApiKey()||(7===b.runtimeConfig_.getPeopleApiEnv()?V(b.getGapi(),2,""):b.getGapi().getApiKey()),timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new X8b(b);a=CCa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new $dc(a);this.offlineDataTransformer_=
new dec};g2.prototype.loadRankedItems=function(){var a=new b2(this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new e2(a,this.config_.runtimeConfig_,fec);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=new nr(1,e),b=dj(b.getPeopleApi(),14,5E3),a=new f2(a,d,c,e,b))}return Z8b(this.dispatcher_,a)};
g2.prototype.loadAutocompleteItems=function(a){a=a?new b2(this.grpcPeopleStackClient_,this.config_,this.trackers_,a):new d2(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new e2(a,this.config_.runtimeConfig_,fec);return Z8b(this.dispatcher_,a)};g2.prototype.loadLookupItems=function(a,b){a=new c2(this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new e2(a,this.config_.runtimeConfig_,gec);return Z8b(this.dispatcher_,a)};g2.prototype.loadContactItems=function(){};
var rUa=new Map([[1,1],[2,2]]);
var vUa=new Map([[3,3],[1,2],[2,1]]),lec=new Map([[2,1],[4,2],[3,3],[1,4]]),mec=function(a){this.delegate_=a};
mec.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=b.getValue()||"";c=Kr(a.id).setValue(c);if(rb(b,K1,2).length||cj(b,3)){var d=1;if(rb(b,K1,2).length){var e=rb(b,K1,2)[0];p(e,1);d=lec.get(e.getStatus())||d}cj(b,3)&&(e=m(b,Gcc,3),Ro(e,1));4===(void 0===d?1:d)&&Date.now()}cj(b,4)&&(b=sUa(m(b,I1,4)),c.orgState_=b);Ro(a.contactMethod,7)&&(c.resultType_=2);b=c;break;case 3:b=a.contactMethod.getPhone();
b=b.getDisplayValue()||p(b,2)||"";b=Kr(a.id).setValue(b);break;case 4:b=wl(a.contactMethod,or,4,pr);b=xUa(a,b);break;default:b=Kr(a.id||rr)}a.containerIds&&(b.sourceIds_=a.containerIds||[]);yUa(b,!!a.isMe);a.person&&a.person.hasAffinity()&&b.setPersonLoggingId(tUa(nba(p(a.person.getAffinity(),1))||""));a.contactMethod.hasDisplayInfo()&&wUa(b,a.contactMethod.getDisplayInfo());cj(a.contactMethod,10)&&(c=b,d=a.contactMethod.getTypeLabel(),e=new Tbc,e.altText_=d||"",c.tags_=[e]);a.target=b}else a.group?
zUa(a,a.group.getDisplayInfo()):a.contactLabel&&zUa(a,a.contactLabel.getDisplayInfo());this.delegate_.processItem(a);a.contactMethod&&delete a.contactMethod;a.person&&delete a.person;a.group&&delete a.group;a.contactLabel&&delete a.contactLabel};
var nec=function(a,b){this.metrics_=a;this.state_=new lU(b)};g=nec.prototype;g.start=function(a){this.metrics_.start(this.state_,a)};g.stop=function(a){this.metrics_.stop(this.state_,a)};g.count=function(){this.metrics_.count(this.state_)};g.latency=function(){this.metrics_.latency(this.state_)};g.error=function(){this.metrics_.error(this.state_)};
g.status=function(a,b,c){b=void 0===b?0:b;c=void 0===c?0:c;if(b){var d=this.state_.source();l(d,13,b)}c&&(b=this.state_.source(),l(b,12,c));this.metrics_.status(this.state_,a)};g.logError=function(a,b){this.metrics_.logError(a,b)};
var h2=function(a){this.metrics_=a};h2.prototype.error=function(a,b){var c=this.metrics_,d=new Er;a=d.setEventType(3).setErrorType(a);l(a,7,b);return new Obc(c,d)};h2.prototype.latency=function(a){var b=this.metrics_,c=new Er,d=c.setEventType(2);l(d,5,a);return new v0(b,c)};h2.prototype.count=function(a){var b=this.metrics_,c=new Er,d=c.setEventType(1);l(d,4,a);return new Nbc(b,c)};var i2=function(a,b){return new Mbc(a.metrics_,b)};h2.prototype.rpc=function(a){return new nec(this.metrics_,a)};
var oec=function(a,b){this.ranker_=new Kbc(a.getClient());this.loader_=new g2(a,b);b=Sbc;b=void 0===b?Sbc:b;this.targetFactory_=new occ(a,new mec(b))};
var pec=function(){};pec.prototype.suggest=function(){};var qec=new pec;
var rec=function(){};rec.prototype.create=function(){return qec};var AUa=new rec;
var sec=function(){this.createSmartAddressFactory_=BUa;this.cacheConfigurators_=[];this.grpcClient_=null};
var CUa=function(a){this.delegate_=a};U(CUa,x0);
var tec=function(a){this.keys_=new Set(a)};tec.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};tec.prototype.isDone=function(){return!this.keys_.size};
var uec=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new tec(a)};uec.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};uec.prototype.isDone=function(){return this.delegate_.isDone()};var vec=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};
var wec=new Wr,xec=Promise.resolve(new gs),yec=function(a,b){this.trieFactory_=a;this.indexes_=v1(dj(b,31,5),1E3*xl(b,32,3600))};g=yec.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};g.fetch=function(a){this.index(a,[],wec);return xec};g.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return(this.indexes_.get(b.cacheKey)||t1).search(a.getTerms()).getMatches(a.getCollector()).map(DUa)};
g.index=function(a){var b=a.getBoostKey();b.cacheKey&&(a=zec(this.trieFactory_,new uec(b.ids),a.getFormat()),this.indexes_.set(b.cacheKey,a))};
var Aec=new Pbc(60,61,34);
var Bec=function(){};Bec.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;a=a.clientConfig.getClient();W(a,30,!1)&&(c=new yec(c,a),b=new Qbc(c,b,Aec),d.unshift(b))};
var Cec=function(){return Date.now()},Dec=function(a,b,c){this.staleMillis_=1E3*a;this.expiredMillis_=1E3*b;this.nowFn_=c;this.timestamp_=0};g=Dec.prototype;g.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};g.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};g.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};g.getTimestamp=function(){return this.timestamp_};g.setTimestamp=function(a){this.timestamp_=a};
g.markAsFresh=function(){this.timestamp_=this.nowFn_()};
var FUa=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),EUa=new Map([[1,7],[2,5]]);
var Eec=function(a,b){this.delegate_=a;this.extendedData_=b};U(Eec,x0);
var Fec=function(a,b,c){this.group_=a;this.members_=b||[];this.totalMemberCount_=Math.max(c||0,this.members_.length);this.resultType_=t9b.get(this.group_.getTargetType())||0};g=Fec.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return[this.group_]};g.getMemberList=function(){return this.members_};g.getTotalMemberCount=function(){return this.totalMemberCount_};g.getPrimaryTarget=function(){throw Error("Ge");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getMatchInfo=function(){return s9b};
var Gec=function(a){this.delegate_=a};g=Gec.prototype;g.getDelegate=function(){return this.delegate_};g.getId=function(){return this.delegate_.getId()};g.getTargetType=function(){return this.delegate_.getTargetType()};g.getValue=function(){return this.delegate_.getValue()};g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getName=function(){return this.delegate_.getName()};g.getPhoto=function(){return this.delegate_.getPhoto()};
g.getSourceIdList=function(){return this.delegate_.getSourceIdList()};g.getProfileId=function(){return this.delegate_.getProfileId()};g.getContactId=function(){return this.delegate_.getContactId()};g.getLoggingToken=function(){return this.delegate_.getLoggingToken()};g.getIsPersonalResult=function(){return this.delegate_.getIsPersonalResult()};g.getOrgState=function(){return this.delegate_.getOrgState()};g.getDataSource=function(){return this.delegate_.getDataSource()};g.getOriginatingField=function(){return this.delegate_.getOriginatingField()};
var HUa=function(a,b){this.delegate_=a;this.loggingToken_=b};U(HUa,Gec);HUa.prototype.getLoggingToken=function(){return this.loggingToken_};
var Hec=function(a){this.itemResolver_=a};Hec.prototype.create=function(a,b){var c=this,d=M7b(a);a=j2(this.itemResolver_,a);if(!a)return null;if(Fq(d))return d=(a.memberKeys||[]).map(function(e){return c.create(e,b)}).filter(function(e){return!!e}),this.createGroup(a,d,b);a=2===b&&a.coalescedKeys?a.coalescedKeys.map(function(e){return j2(c.itemResolver_,e)}).filter(function(e){return!!e}):[a];return Iec(a,d,b)};
var Iec=function(a,b,c){var d=[],e=0,f=null,h=null;a=r(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var q=k.target,w=q.getId().equals(b);if(!e||w)e=q.getResultType();q=IUa(q,k.provenance,c);w?(f=k.totalMemberCount,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=Eq(e,d,f);return h?new Eec(b,h):b};
Hec.prototype.createGroup=function(a,b,c){c=IUa(a.target,a.provenance,c);var d=a.totalMemberCount||0;b=void 0===b?[]:b;c=new Dq(new Fec(c,b,void 0===d?0:d));return(a=a.resultExtendedData)?new Eec(c,a):c};
var JUa=[3,1,2,4,5,6,9,7,8],Jec=function(a,b){this.targetFactory_=a;this.resultFactory_=new Hec(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=void 0===d?Cec:d;this.expiry_=new Dec(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=v1(dj(b,6,500),1E3*dj(b,7,43200));this.idTypes_=new Set(jb(b,25))};Jec.prototype.load=function(a,b){return this.resultFactory_.create(a,b)};var j2=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)};g=Jec.prototype;
g.getExpiry=function(){return this.expiry_};g.getAffinityVersion=function(){return this.affinityVersion_};g.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(a.getTimestamp()):this.expiry_.markAsFresh();this.lruStorage_.compact()};g.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};
g.store=function(a,b,c){c=void 0===c?"":c;if(!this.idTypes_.size||!K7b.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var d=!1,e=String(b.id),f=(b.containerIds||[]).map(String),h=Kec(this,a,e);Lec(this,a,e,b)&&(h(e,b),d=!0);f=r(f);for(var k=f.next();!k.done;k=f.next())k=k.value,Lec(this,a,k,b)&&(h(k,b),d=!0);c&&e!==c&&Lec(this,a,c,b)&&(h(c,b),d=!0);d&&!b.target&&this.targetFactory_.processItem(b)}};
var Lec=function(a,b,c,d){var e=j2(a,c);if(!e)return!0;1===b&&a.lruStorage_.has(c)&&(b=a.lruStorage_.get(c),a.ttlStorage_.set(c,b),a.lruStorage_.delete(c));return e.id.equals(d.id)?LUa(d)&&!LUa(e)||Mec(a,e)<Mec(a,d)||KUa(d)<KUa(e)||18===d.id.getType()&&18===e.id.getType()?!0:!1:String(d.id)===c},Mec=function(a,b){b.target||a.targetFactory_.processItem(b);a=b.target;b=0;if(a.getPhoto())switch(a.getPhoto().getType()){case 3:b|=2;break;case 2:b|=1}a.getName()&&a.getName().getDisplayName()&&(b|=4);return b},
Kec=function(a,b,c){return a.ttlStorage_.has(c)||1===b?function(d,e){return a.ttlStorage_.set(d,e)}:function(d,e){return a.lruStorage_.set(d,e)}};
var Nec=function(a,b){this.loader_=a;this.storage_=b;this.contacts_=[];this.totalItems_=0;this.pendingRequest_=null;this.requestId_=0;this.nextPageToken_="";this.isCompleted_=!1},Pec=function(a){if(a.isCompleted_)return Promise.resolve(l1(new gs,!1).setProvenance(5).setCode(0));a.pendingRequest_||(a.pendingRequest_=(new Promise(function(b,c){Oec(a,a.requestId_,function(d){a.isCompleted_=!0;b(d)},function(d){c(d)})})).finally(function(){a.pendingRequest_=null}));return a.pendingRequest_};
Nec.prototype.flush=function(){this.requestId_++;this.contacts_=[];this.totalItems_=0;this.nextPageToken_="";this.pendingRequest_=null;this.isCompleted_=!1};
var Oec=function(a,b,c,d){a.loader_.loadContactItems(a.nextPageToken_,ncc).then(function(e){if(b!==a.requestId_)d(l1(new gs,!0).setProvenance(5).setCode(1));else{var f=e.metadata;a.totalItems_=f.getTotalItems();a.nextPageToken_=f.getNextPageToken();Array.prototype.push.apply(a.contacts_,e.ids);e=r(e.data);for(f=e.next();!f.done;f=e.next())a.storage_.store(1,f.value);a.nextPageToken_?Oec(a,b,c,d):(a.totalItems_=a.contacts_.length,c(l1(new gs,!0).setProvenance(5).setCode(0)))}},function(e){e=isFinite(e)?
e:13;d(l1(new gs,!0).setProvenance(5).setCode(e))})};
Nec.prototype.list=function(a,b,c,d,e){var f=this,h=e.getFilter();h&&h.reset("");var k=function(){return{results:f.contacts_.slice(a,b).map(function(q){return f.storage_.load(String(q),c)}).filter(function(q){return q&&(!h||h.filterResult(q))}),begin:a,end:b,totalItems:f.totalItems_}};this.contacts_.length>=b?d(k(),l1(new gs,!1).setProvenance(5).setCode(0)):Pec(this).then(function(q){d(k(),q)},function(q){q instanceof gs||(q=(new gs).setCode(13));d({results:[],begin:a,end:b,totalItems:0},q)})};
var NUa=function(a,b){this.delegate_=a;this.displayValue_=b};U(NUa,Gec);NUa.prototype.getDisplayValue=function(){return this.displayValue_};
var Sr=function(a,b){this.delegate_=a;this.targets_=b};U(Sr,x0);Sr.prototype.getTargetList=function(){return this.targets_};
var Qec=function(a,b,c,d){this.format=b;this.listener=c;this.options=d;this.notFoundIds=new Map;this.callbackNumber=0;this.remainingIds=new Map(a.map(function(e){return[String(e),e]}))};g=Qec.prototype;g.isCancelled=function(){return!1};g.getFormat=function(){return this.format};g.getOptions=function(){return this.options};g.queryScope=function(){return this.options.getQueryScope()};g.getResultFilter=function(){return this.options.getFilter()};g.isDone=function(){return 0===this.remainingIds.size};
g.notify=function(a,b,c){if(a.size||b.length||this.isDone()||0!==c.getCode()){a=OUa(a,this.options);for(var d=r(a.keys()),e=d.next();!e.done;e=d.next())this.remainingIds.delete(String(e.value));b=r(b);for(e=b.next();!e.done;e=b.next())e=e.value,d=String(e),this.notFoundIds.set(d,e),this.remainingIds.delete(d);a=new Abc(a,(new zbc).setCallbackNumber(this.callbackNumber).setIsFirstCallback(0===this.callbackNumber).setIsLastCallback(this.isDone()).setCode(c.getCode()));this.callbackNumber++;this.listener(a,
c)}};
var Rec=function(a,b){this.stages=a;this.indexer=b};Rec.prototype.flush=function(){this.indexer.flush()};
Rec.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,w,y;return me(function(E){switch(E.nextAddress){case 1:null==(f=d.getFilter())||f.reset(""),h=new Qec(a,b,c,d),k=1===h.queryScope()||2===h.queryScope(),q=r(e.stages),w=q.next();case 2:if(w.done){E.jumpTo(4);break}y=w.value;if(k&&1!==y.getStageType()){E.jumpTo(3);break}if(h.isDone()){E.jumpTo(4);break}return ne(E,y.lookup(h),3);case 3:w=q.next();E.jumpTo(2);break;case 4:return h.isDone()||h.notify(new Map,Array.from(h.remainingIds.values()),
l1((new gs).setProvenance(6),!1).setCode(0)),e.indexer.compact(),E.return()}})};
var Sec=function(){};Sec.prototype.createFromQuery=function(a){var b=a.getPrefix();if(0!==a.getCollector().resultCount()||!h0(b))return null;b=Kr(new nr(1,b)).setValue(b).setDataSource(3);b=Eq(b.getResultType(),[b],null);return(a=a.getResultFilter())?a.filterResult(b):b};Sec.prototype.createFromLookupId=function(a){if(1!==a.getType()||!h0(a.getValue()))return null;a=Kr(a).setValue(a.originalValue_).setDataSource(3);return Eq(a.getResultType(),[a],null)};
var Tec=function(){};Tec.prototype.createFromQuery=function(){return null};Tec.prototype.createFromLookupId=function(){return null};var Uec=new Tec;
var k2=function(a,b){this.storage=a;a=b.getClient();this.placeholderFactory=W(a,21,!1)?new Sec:Uec;this.notFoundIds=v1(dj(a,10,500),1E3*xl(a,11,600))},Vec=function(a,b){a:switch(b.getType()){case 1:case 6:var c=h0(b.getValue().trim());break a;case 2:case 7:c=b.getValue().replace(I7b,"");c=3<=c.length&&"0"<=c[0]&&"9">=c[0];break a;default:c=!0}return c?!!a.notFoundIds.get(String(b)):!0};k2.prototype.compact=function(){this.notFoundIds.compact()};k2.prototype.flush=function(){this.notFoundIds.clear()};
k2.prototype.store=function(a,b,c){if(!W(c,5))for(l(c,5,!0),b=r(b),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;c=String(eUa(a,String(c)));d=r(d);for(var e=d.next();!e.done;e=d.next())this.storage.store(2,e.value,c)}};k2.prototype.load=function(a,b,c,d,e){var f=String(a);if((b=this.storage.load(f,b))&&(!c||c.filterResult(b)))return b;if(e&&(a=this.placeholderFactory.createFromLookupId(a))&&(!c||c.filterResult(a)))return a;d||this.notFoundIds.set(f,f);return null};
var Wec=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
Wec.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,w,y,E,I,N,L,S,Y,ka,ha;return me(function(ya){switch(ya.nextAddress){case 1:return h=3===b?4:3,k=l1((new gs).setProvenance(h),!0).setCode(0),q=!0,Lt(ya,2),ne(ya,f.loader.loadLookupItems(b,a.map(function(Ha){return Ha.originalValue_}),ncc),4);case 4:w=ya.yieldResult;q=W(w.metadata,5);try{f.indexer.store(b,w.data,w.metadata)}catch(Ha){f.trackers.error(21,10).report(),k.setCode(13),q=!0}Mt(ya,3);break;case 2:y=Nt(ya),E=Number(y),k.setCode(isFinite(E)&&
E?E:13),q=!0;case 3:I=e.getFilter();N=[];L=new Map;S=r(a);for(Y=S.next();!Y.done;Y=S.next())ka=Y.value,(ha=f.indexer.load(ka,c,I,q,!0))?L.set(ka,ha):N.push(ka);d(L,N,k);return ya.return()}})};
var Xec=function(a,b,c){this.fetcher_=a;this.indexer_=b;this.maxLookupChunkSize_=kcc(c)};Xec.prototype.flush=function(){this.indexer_.flush()};
Xec.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta;return me(function(Aa){(f=d.getFilter())&&f.reset("");h=[];k=[];q=[];w=[];y=new Map;E=r(a);for(I=E.next();!I.done;I=E.next())if(N=I.value,L=e.indexer_.load(N,b,f,!0,!1))y.set(N,L);else if(Vec(e.indexer_,N))w.push(N);else switch(N.getType()){case 1:case 6:h.push(N);continue;case 2:case 7:k.push(N);continue;case 17:case 3:case 8:q.push(N);continue;default:w.push(N)}Y=S=0;ka=function(xa,Xa,eb){Xa=
S+1>=Y;c(new Abc(xa,(new zbc).setCallbackNumber(S).setIsFirstCallback(!S).setIsLastCallback(Xa).setCode(eb.getCode())),eb);S++};if(1===d.getQueryScope()||2===d.getQueryScope())return ka(y,[].concat(u(w),u(h),u(k),u(q)),l1((new gs).setProvenance(6),!1).setCode(0)),Aa.return();(y.size||w.length)&&Y++;ha=PUa(h,e.maxLookupChunkSize_);ya=PUa(k,e.maxLookupChunkSize_);Ha=PUa(q,e.maxLookupChunkSize_);Y+=ha.length+ya.length+Ha.length;(y.size||w.length)&&ka(y,w,l1((new gs).setProvenance(6),!1).setCode(0));
Ja=r(ha);for(Ka=Ja.next();!Ka.done;Ka=Ja.next())Ma=Ka.value,e.fetcher_.fetch(Ma,1,b,ka,d);hb=r(ya);for(Ka=hb.next();!Ka.done;Ka=hb.next())fb=Ka.value,e.fetcher_.fetch(fb,2,b,ka,d);Lb=r(Ha);for(Ka=Lb.next();!Ka.done;Ka=Lb.next())ta=Ka.value,e.fetcher_.fetch(ta,3,b,ka,d);e.indexer_.compact();oe(Aa)})};
var Yec=new function(){this.ids=[];this.cacheKey=""};
var Zec=function(){};Zec.prototype.loadOrSkip=function(){return null};Zec.prototype.resultCount=function(){return 0};Zec.prototype.isDone=function(){return!0};var $ec=new Zec;
var afc=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=$ec;this.boostKey_=Yec;this.listener_=function(){}};g=afc.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.format_};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return!0};g.isCancelled=function(){return!0};
g.isSuggestQuery=function(){return!0};g.queryScope=function(){return 0};g.getResultFilter=function(){return null};var bfc=new afc;
var cfc=function(){this.fetchDone_=Promise.resolve((new gs).setCode(0))};g=cfc.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};var dfc=new cfc;
var efc=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return 1===b.getCacheType()})||dfc;this.prefetched_=a.filter(function(b){return 2===b.getCacheType()||1===b.getCacheType()});this.lazyLoaded_=a.filter(function(b){return 3===b.getCacheType()})};
efc.prototype.prefetch=function(a){var b=this,c,d,e,f,h,k;return me(function(q){if(1==q.nextAddress)return ne(q,b.primary_.fetch(a),2);c=q.yieldResult;if(0!==c.getCode())return q.return(c);d=r(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();h=r(b.prefetched_.filter(function(w){return w!==b.primary_}));for(e=h.next();!e.done;e=h.next())k=e.value,k.fetch(a);return q.return(c)})};
efc.prototype.warmUpSession=function(a){var b=this;if(1===a.queryScope())return Promise.resolve([(new gs).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});2!==a.queryScope()&&c.push.apply(c,u(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var ffc=function(a){var b=[a.primary_].concat(u(a.prefetched_.filter(function(d){return d!==a.primary_})),u(a.lazyLoaded_)).reverse();b=r(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},gfc=function(a,b){var c=[];a=r(a.prefetched_);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(b.isDone()||b.isCancelled())break;c.push.apply(c,u(d.search(b)))}return c},ifc=function(a,b,c){var d,e,f;return me(function(h){if(1==h.nextAddress){if(2===b.queryScope())return h.return();d=r(a.lazyLoaded_);
e=d.next()}if(3!=h.nextAddress){if(e.done)return h.jumpTo(0);f=e.value;return b.isDone()||b.isCancelled()?h.return():ne(h,hfc(f,b,c),3)}e=d.next();return h.jumpTo(2)})},hfc=function(a,b,c){var d,e;return me(function(f){if(1==f.nextAddress)return 1===b.queryScope()?(d=l1((new gs).setProvenance(6).setCode(0),!1),f.jumpTo(2)):ne(f,a.fetch(b),3);2!=f.nextAddress&&(d=f.yieldResult);if(b.isCancelled())return f.return();e=a.search(b);c(e,d);oe(f)})};
var jfc=function(a,b,c,d,e,f){this.clientInfo_=a.getClient();this.trackers_=b;this.storage_=f;this.lookupCache_=d;this.listCache_=e;this.prefixSearch_=c;this.serverWarming_=this.cacheWarming_=null};g=jfc.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};g.warmUpCache=function(){return l2(this,bfc)};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return me(function(k){switch(k.nextAddress){case 1:return ne(k,l2(b,a),2);case 2:return c=n1(new m1,m2(b)),Lt(k,3,4),b.serverWarming_||(b.serverWarming_=b.prefixSearch_.warmUpSession(a)),ne(k,b.serverWarming_,6);case 6:return d=k.yieldResult,e=d.find(function(q){return 2===q.getProvenance()})||(new gs).setProvenance(2).setCode(0),k.return(o1(c.setSource(e),m2(b)));case 4:Ot(k);b.serverWarming_=null;Pt(k,0);break;case 3:return f=Nt(k),h=f instanceof
gs?f:(new gs).setProvenance(2).setCode(13),k.return(Promise.reject(o1(c.setSource(h),m2(b))))}})};
g.search=function(a){var b=this,c,d,e;return me(function(f){switch(f.nextAddress){case 1:kfc(b);Lt(f,2);if(!a.isSuggestQuery()){c=o1(n1((new m1).setSource(l1(new gs,!1).setProvenance(1).setCode(0)),m2(b)),m2(b));l2(b,a);f.jumpTo(4);break}return ne(f,l2(b,a),5);case 5:c=f.yieldResult;case 4:return ne(f,lfc(b,a,c),6);case 6:Mt(f,0);break;case 2:d=Nt(f);if(a.isCancelled())return f.return();d instanceof m1?c=d:(e=d instanceof gs?d:(new gs).setCode(13),c=o1((new m1).setSource(e),m2(b)));a.getListener()(new q1([],
(new p1).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));oe(f)}})};
var lfc=function(a,b,c){var d,e,f;return me(function(h){if(b.isCancelled())return h.return();d=0;e=gfc(a.prefixSearch_,b);f=b.isDone()||b.isSuggestQuery();if(e.length||f){b.getListener()(new q1(e,(new p1).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c).setCallbackNumber(d).setIsFirstCallback(!d).setIsLastCallback(f)));if(f)return h.return();d++}return ne(h,ifc(a.prefixSearch_,b,function(k,q){b.getListener()(new q1(k,(new p1).setQuery(b.getPrefix()).setCallbackNumber(d).setIsFirstCallback(!d).setIsLastCallback(!0).setCacheState(o1(n1((new m1).setSource(q),
p(c,2)),m2(a))).setCode(q.getCode())));d++}),0)})};jfc.prototype.lookup=function(a,b,c){var d=this;kfc(this);l2(this,bfc);var e=n1(new m1,m2(this));this.lookupCache_.lookup(a,X(this.clientInfo_,17,1),function(f,h){e.setSource(h);o1(e,m2(d));f.getMetadata().setCacheState(e);b(f)},c)};
jfc.prototype.list=function(a,b,c,d){var e=this;l2(this,bfc);var f=n1(new m1,m2(this));this.listCache_.list(a,b,X(this.clientInfo_,18,1),function(h,k){var q=h.results;var w=new wbc;w=l(w,1,h.begin);c(new xbc(q,w.setEnd(h.end).setTotalItems(h.totalItems).setCode(k.getCode()).setCacheState(o1(f.setSource(k),m2(e)))))},d)};
var l2=function(a,b){var c=m2(a),d=n1(new m1,c);if(a.storage_.getExpiry().isStale()){var e=a.storage_.getExpiry().isExpired();e&&a.storage_.getExpiry().getTimestamp()&&mfc(a);a.cacheWarming_||(a.cacheWarming_=new Promise(function(f,h){var k,q,w;return me(function(y){switch(y.nextAddress){case 1:return Lt(y,2,3),ne(y,a.prefixSearch_.prefetch(b),5);case 5:k=y.yieldResult,o1(d,m2(a)).setSource(k),f(d);case 3:Ot(y);a.cacheWarming_=null;Pt(y,0);break;case 2:q=Nt(y),w=q instanceof gs?q:(new gs).setCode(13),
o1(d,m2(a)).setSource(w),h(d),y.jumpTo(3)}})}));if(e)return a.cacheWarming_}return Promise.resolve(o1(d,c).setSource(l1((new gs).setProvenance(1),!1).setCode(0)))},m2=function(a){return a.storage_.getExpiry().getStatus()},mfc=function(a){ffc(a.prefixSearch_);a.lookupCache_.flush();a.listCache_.flush();a.storage_.flush()},kfc=function(a){var b=1===m2(a)?1:2;a.trackers_.count(b).increment()};
var nfc=function(a){this.itemResolver_=a},ofc=function(a,b,c){c=void 0===c?[]:c;var d=b.target,e=d.getName();e&&(c.push(e.getDisplayName()),c.push(e.getGivenName()),c.push(e.getFamilyName()));if(e=d.getDisplayValue())switch(d.getTargetType()){case 2:case 7:var f=c.push,h=f.apply,k=e.split(Cbc).filter(Boolean),q=k.length-1;if(0<q){var w=k.join(".");k.push(k.join("-"));for(k.push(w);0<q;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(JTa,""));"+"===e[0]&&k.push("+"+k[0]);h.call(f,c,u(k));break;default:c.push(e)}if(!c.length&&
b.memberKeys&&b.memberKeys.length&&10!==d.getTargetType())for(b=r(b.memberKeys),d=b.next();!d.done;d=b.next())(d=j2(a.itemResolver_,d.value))&&ofc(a,d,c);return c};
var pfc=new ybc,qfc=function(a,b){this.itemResolver_=a;this.lookupCache_=b;this.indexer_=new nfc(a);this.trieRoots_=new Map},zec=function(a,b,c){var d=(a.trieRoots_.get(c)||t1).cloneNode(b);b.isDone()||(b=vec(b).map(M7b),a.lookupCache_.lookup(b,c,function(e){e=Array.from(e.getResults().keys(),String);e=rfc(a,e);Array.prototype.push.apply(d.items_,e);Ebc(d)},pfc));return d},sfc=function(a,b){a=rfc(a,b);return new s1(a)},rfc=function(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;
var e=j2(a.itemResolver_,d);e&&(e=ofc(a.indexer_,e),c.push(new Dbc(d,e)))}return c};
var tfc=function(){this.queryId_=0};tfc.prototype.getQueryId=function(){return this.queryId_};
var ufc=function(a){this.delegate=a};g=ufc.prototype;g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.warmUpCache=function(){return this.delegate.warmUpCache()};g.warmUpSession=function(a){var b=this;return me(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return me(function(c){return c.return(b.delegate.search(a))})};
g.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};g.list=function(a,b,c,d){this.delegate.list(a,b,c,d)};
var vfc=function(a,b){this.delegate_=a;this.name_=b};U(vfc,Gec);vfc.prototype.getName=function(){return this.name_};
var wfc=function(){};wfc.prototype.filterResult=function(a){var b=this,c=a.getTargetList().filter(function(d){return!!b.types_.includes(d.getTargetType())});return 0===c.length?null:c.length===a.getTargetList().length?a:new Dq(new Sr(a,c))};wfc.prototype.reset=function(){};
var QUa=function(a){this.types_=a};U(QUa,wfc);QUa.prototype.reset=function(){};var SUa=function(a){this.filters_=a};SUa.prototype.filterResult=function(a){for(var b=r(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};SUa.prototype.reset=function(a){for(var b=r(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var xfc=Tr();
var yfc=function(){this.delegate=xfc};yfc.prototype.filterResult=function(a){return this.delegate.filterResult(a)};yfc.prototype.reset=function(a){this.delegate.reset(a)};var zfc=function(a,b){a.delegate=null!=b?b:xfc};
var Afc=function(a){this.delegate=a};g=Afc.prototype;g.getPrefix=function(){return this.delegate.getPrefix()};g.getTerms=function(){return this.delegate.getTerms()};g.getFormat=function(){return this.delegate.getFormat()};g.getCollector=function(){return this.delegate.getCollector()};g.getBoostKey=function(){return this.delegate.getBoostKey()};g.getListener=function(){return this.delegate.getListener()};g.isDone=function(){return this.delegate.isDone()};g.isCancelled=function(){return this.delegate.isCancelled()};
g.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};g.queryScope=function(){return this.delegate.queryScope()};g.getResultFilter=function(){return this.delegate.getResultFilter()};
var n2=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};n2.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};n2.prototype.resultCount=function(){return this.count_};n2.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};
var Bfc=function(a,b,c,d,e){this.delegate=a;var f=this;this.isFirstSlot=d;this.isLastSlot=e;d=a.getCollector();0<c.limit&&(d=new n2(d,c.limit));this.collector=d;this.listener=function(k){var q=k.getMetadata();q.getIsFirstCallback()&&q.setIsFirstCallback(f.isFirstSlot);q.getIsLastCallback()&&q.setIsLastCallback(f.isLastSlot);q.setCallbackNumber(-1);f.delegate.getListener()(k)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?Tr.apply(null,u(d)):
null;var h;this.scope=null!=(h=c.scope)?h:a.queryScope()};U(Bfc,Afc);g=Bfc.prototype;g.getCollector=function(){return this.collector};g.getListener=function(){return this.listener};g.isDone=function(){return this.collector.isDone()};g.getResultFilter=function(){return this.resultFilter};g.queryScope=function(){return this.scope};
var Cfc=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};U(Cfc,ufc);
Cfc.prototype.search=function(a){var b=this,c,d,e,f,h;return me(function(k){switch(k.nextAddress){case 1:c=b.slots,c=a.isSuggestQuery()?c.filter(function(q){return 2!==q.visibility}):c.filter(function(q){return 1!==q.visibility}),d=c.map(function(q,w){return new Bfc(a,b.originalFilter,q,0===w,w===b.slots.length-1)}),e=r(d),f=e.next();case 2:if(f.done){k.jumpTo(4);break}h=f.value;if(a.isCancelled()||a.isDone()){k.jumpTo(4);break}zfc(b.filterInterceptor,h.getResultFilter());return ne(k,b.delegate.search(h),
3);case 3:f=e.next();k.jumpTo(2);break;case 4:return k.return()}})};
var o2=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=KTa([b]);this.id_=new nr(1,b);this.listener_=function(e){var f=e.getResults().map(function(h){if(d.id_.equals(h.getPrimaryTarget().getId())&&h.getDisplayName()!==c){var k=(new uUa).setDisplayName(c),q=h.getPrimaryTarget();h=MUa(h,new vfc(q,k))}return h});e=new q1(f,e.getMetadata());a.getListener()(e)}};U(o2,Afc);o2.prototype.getPrefix=function(){return this.query_};o2.prototype.getTerms=function(){return this.terms_};
o2.prototype.getListener=function(){return this.listener_};
var Dfc=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new tfc;this.clientInfo_=c};g=Dfc.prototype;g.warmUpSession=function(a){a=Efc(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=Efc(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=Efc(this.queryFactory_,a,this.querySession_,c,b);W(this.clientInfo_,28,!1)&&(b=a.getPrefix(),b.includes("<")&&(c=G7b(b),c.isValid()||(c=G7b(b+">")),a=c.isValid()&&c.getName()?new o2(a,c.getAddress(),c.getName()):a));this.cache_.search(a)};g.cancel=function(){++this.querySession_.queryId_};g.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
var p2=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=W(c,35,!1)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new yfc;e.setFilter(q);e=new Cfc(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};p2.prototype.warmUpCache=function(){return this.cache_.warmUpCache()};p2.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};p2.prototype.list=function(a,b,c,d){this.cache_.list(a,b,c,d)};
p2.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new Dfc(a,this.queryFactory_,this.clientInfo_)};
var Ffc=function(a){this.ids=a.map(String);this.cacheKey=$Ta(this.ids)+":"+this.ids.length};
var Gfc=function(a,b,c,d,e,f,h){this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.listener_=f;this.filter_=h};g=Gfc.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.delegate_.getFormat()};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return this.collector_.isDone()};
g.isCancelled=function(){return this.delegate_.isCancelled()};g.isSuggestQuery=function(){return!this.prefix_};g.queryScope=function(){return this.delegate_.queryScope()};g.getResultFilter=function(){return this.filter_};
var Hfc=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};Hfc.prototype.getFormat=function(){return this.format_};Hfc.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};Hfc.prototype.queryScope=function(){return this.queryScope_};
var Ifc=function(a){this.delegate_=a;this.foundKeys_=new Set};Ifc.prototype.loadOrSkip=function(a){if(this.foundKeys_.has(a))return null;a=this.delegate_.loadOrSkip(a);if(!a)return null;for(var b=r(a.getTargetList()),c=b.next();!c.done;c=b.next())this.foundKeys_.add(String(c.value.getId()));return a};Ifc.prototype.resultCount=function(){return this.delegate_.resultCount()};Ifc.prototype.isDone=function(){return this.delegate_.isDone()};
var Jfc=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};Jfc.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};Jfc.prototype.resultCount=function(){return this.delegate_.resultCount()};Jfc.prototype.isDone=function(){return this.delegate_.isDone()};
var Kfc=function(a,b){this.storage_=a;this.format_=b};Kfc.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};Kfc.prototype.resultCount=function(){return 0};Kfc.prototype.isDone=function(){return!1};
var Lfc=[198,230,306,307,338,339],Mfc=function(a){this.matchers_=a.map(function(b){return new RegExp("(?:^|[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+|\\b)"+On(b),"g")})},TUa=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=mr(b),e=d.indexOf("@");a=r(a.matchers_);for(var f=a.next();!f.done;f=a.next()){f=f.value;f.lastIndex=0;for(var h=f.exec(d);h;h=f.exec(d)){h=h.index;if(0<=
e&&h>e)break;c.push([h,f.lastIndex])}}c.sort(function(k,q){return k[0]-q[0]});for(e=c.length-1;0<e;e--)a=c[e-1],f=c[e],a[1]>=f[0]&&(a[1]=f[1],c.splice(e,1));if(c.length&&d.length!==b.length){d=[];e=[];for(a=0;a<b.length;a++)f=b.codePointAt(a),65535<f||768<=f&&879>=f?(d.push(a),a++):Lfc.includes(f)&&e.push(a);b=r(c);for(a=b.next();!a.done;a=b.next()){a=a.value;f=r(d);for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&a[0]++,h<a[1]&&a[1]++;f=r(e);for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&
a[0]--,h<a[1]&&a[1]--}}return c};
var Ur=function(a,b){this.start_=a;this.end_=b};Ur.prototype.getStart=function(){return this.start_};Ur.prototype.getEnd=function(){return this.end_};
var Vr=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};Vr.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};Vr.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};Vr.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};
var q2=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new q2(c,b)});this.matchInfo_=null};U(q2,x0);q2.prototype.getMemberList=function(){return this.memberList_};q2.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=(null==(a=this.getDelegate().getPrimaryTarget().getName())?void 0:a.getGivenName())||"";this.matchInfo_=UUa(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};
var Nfc=function(a,b){this.delegate_=a;this.matcher_=new Mfc(b)};Nfc.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new q2(a,this.matcher_):null};Nfc.prototype.resultCount=function(){return this.delegate_.resultCount()};Nfc.prototype.isDone=function(){return this.delegate_.isDone()};
var Ofc=/\s+/g,Pfc=function(a,b){this.clientInfo_=a;this.storage_=b},Efc=function(a,b,c,d,e){var f=KTa([b]);b=(b||"").replace(Ofc," ").trim();var h=!f.length,k=h?X(a.clientInfo_,15,1):X(a.clientInfo_,16,1),q=h?dj(a.clientInfo_,1,5):dj(a.clientInfo_,2,5);h=d.boostIds_;h=h.length?new Ffc(h):Yec;var w=d.getFilter();a=new Kfc(a.storage_,k);w&&(a=new Jfc(a,w,b));a=new Ifc(a);a=new n2(a,q);a=f.length?new Nfc(a,f):a;c=new Hfc(k,c,d.getQueryScope());return new Gfc(c,b,f,a,h,e,w)};
var Qfc=function(a){this.fetcher=a};Qfc.prototype.getStageType=function(){return 2};
Qfc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,w,y;return me(function(E){switch(E.nextAddress){case 1:c=WUa(Array.from(a.remainingIds.values())),d=r(c),e=d.next();case 2:if(e.done){E.jumpTo(4);break}f=e.value;h=r(f);k=h.next().value;q=h.next().value;w=k;y=q;if(!w){E.jumpTo(3);break}return ne(E,b.fetcher.fetch(y,w,a.getFormat(),function(I,N,L){a.notify(I,N,L)},a.getOptions()),3);case 3:e=d.next();E.jumpTo(2);break;case 4:return E.return()}})};
var Rfc=function(a,b){this.delegate=a;this.maxLookupChunkSize=kcc(b)};Rfc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return me(function(w){switch(w.nextAddress){case 1:var y=f.maxLookupChunkSize;if(a.length)if(a.length<=y)y=[a];else{for(var E=[],I=0;I<a.length;I+=y){var N=a.slice(I,I+y);N.length&&E.push(N)}y=E}else y=[];h=r(y);k=h.next();case 2:if(k.done){w.jumpTo(4);break}q=k.value;return ne(w,f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();w.jumpTo(2);break;case 4:return w.return()}})};
var Sfc=function(a){this.indexer=a};Sfc.prototype.getStageType=function(){return 1};Sfc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return me(function(q){c=new Map;d=[];e=r(Array.from(a.remainingIds.values()));for(f=e.next();!f.done;f=e.next())h=f.value,(k=b.indexer.load(h,a.getFormat(),a.getResultFilter(),!0,!1))?c.set(h,k):Vec(b.indexer,h)&&d.push(h);a.notify(c,d,l1((new gs).setProvenance(6),!1).setCode(0));return q.return()})};
var Tfc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.placeholderFactory_=W(e,21,!1)?new Sec:Uec;this.indexes_=v1(dj(e,8,250),1E3*xl(e,9,3600));this.notFound_=v1(dj(e,10,500),1E3*xl(e,11,600))};g=Tfc.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear();this.notFound_.clear()};
g.fetch=function(a){var b=this,c,d,e,f,h;return me(function(k){switch(k.nextAddress){case 1:c=l1(new gs,!0).setProvenance(2).setCode(0);if(b.indexes_.has(a.getPrefix())||b.notFound_.has(a.getPrefix()))return k.return(l1(c,!1));if(!h0(a.getPrefix()))for(d=a.getPrefix().length;0<d;d--)if(b.notFound_.has(a.getPrefix().substr(0,d)))return k.return(l1(c,!1));e=a.getPrefix()?ncc:mcc;Lt(k,2);return ne(k,b.loader_.loadAutocompleteItems(a.getPrefix(),e),4);case 4:f=k.yieldResult;Mt(k,3);break;case 2:return h=
Nt(k),k.return(c.setCode(isFinite(h)?h:13));case 3:try{b.index(a,f.data,f.metadata)}catch(q){return k.return(c.setCode(13))}return k.return(c)}})};g.search=function(a){return a.isSuggestQuery()?[]:this.indexes_.has(a.getPrefix())?this.indexes_.get(a.getPrefix()).search([]).getMatches(a.getCollector()):(a=this.placeholderFactory_.createFromQuery(a))?[a]:[]};
g.index=function(a,b,c){if(!W(c,5)&&(l(c,5,!0),!a.isSuggestQuery()))if(b.length){c=Lbc(this.ranker_,b,1);b=r(b);for(var d=b.next();!d.done;d=b.next())this.storage_.store(1,d.value);c=sfc(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),c)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};
var Ufc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.coalescedSortOrder_=e;this.indexes_=new Map;this.trieFactory_.trieRoots_=this.indexes_};g=Ufc.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return me(function(h){switch(h.nextAddress){case 1:return c=l1(new gs,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?ncc:mcc,Lt(h,2),ne(h,b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;Mt(h,3);break;case 2:return f=Nt(h),h.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return h.return(c)}})};
g.search=function(a){return a.isSuggestQuery()||a.getTerms().length?(this.indexes_.get(a.getFormat())||t1).search(a.getTerms()).getMatches(a.getCollector()):[]};
g.index=function(a,b,c){if(!W(c,5)){l(c,5,!0);a=1!==this.coalescedSortOrder_?Lbc(this.ranker_,b,this.coalescedSortOrder_):null;var d=Lbc(this.ranker_,b,1);this.storage_.flush();b=r(b);for(var e=b.next();!e.done;e=b.next())this.storage_.store(1,e.value);this.storage_.markAsFresh(c);c=sfc(this.trieFactory_,d);a=a?sfc(this.trieFactory_,a):c;this.indexes_.set(1,c);this.indexes_.set(2,a)}};
var Vfc=new Pbc(27,32,33),Wfc=new Pbc(24,23,20);
var Xfc=function(){};Xfc.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,h=a.prefixCaches,k=a.lookupStages,q=a.loaderFactory.ranker_,w=a.clientConfig.getClient();if(0<w.getCacheSize()){var y=X(w,19,1);y=new Ufc(e,q,f,c,y);y=new Qbc(y,b,Wfc);h.push(y);k.push(new Sfc(d))}0<dj(w,2,5)&&(c=new Tfc(e,q,f,c,w),b=new Qbc(c,b,Vfc),h.push(b));h=new Wec(a.trackers,a.loader,a.indexer);h=new Rfc(h,a.clientConfig);k.push(new Qfc(h))};
var Yfc=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};Yfc.prototype.getId=function(){return this.id_};Yfc.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var r2=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};r2.prototype.getIdType=function(){return this.idType_};r2.prototype.getOptions=function(){return this.options_};
r2.prototype.getKeys=function(){var a=this;return this.ids_.map(function(b){return new Yfc(a.getIdType(),b,a.getOptions())})};var Zfc=function(a,b){a.ids_=b;return a};r2.prototype.setIdType=function(a){this.idType_=a};r2.prototype.setOptions=function(){this.options_=void 0};r2.prototype.clone=function(){var a=this.getIdType(),b=this.getOptions();return new r2(a,this.ids_,b)};
var s2=function(a,b){this.ids_=new Set(b.ids_);this.parameters_=b.clone();this.loader_=a;this.resolver_=new T8b;this.isSent_=!1};s2.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(Zfc(this.parameters_,a)).then(this.resolver_.resolve,this.resolver_.reject)}};s2.prototype.promise=function(){return this.resolver_.promise};
s2.prototype.merge=function(a,b){var c;(c=this.isSent_)||(c=this.parameters_,c=!(a.getIdType()===c.getIdType()&&a.getOptions()===c.getOptions()));if(c||a.ids_.length+this.ids_.size>b)return!1;a=r(a.ids_);for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};
var $fc=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=kcc(c);this.lastRequestCreationTime_=0};
$fc.prototype.load=function(a){var b=this;this.batchedRequest_&&(this.batchedRequest_.merge(a,this.maxRequestSize_)?this.tracker_.count(89).increment():(this.batchedRequest_.send(),this.batchedRequest_=null));if(!this.batchedRequest_){this.tracker_.count(90).increment();var c=this.batchedRequest_=new s2(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;qD(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},30<d?0:30)}return this.batchedRequest_.promise()};
var agc=function(a,b){this.delegate_=a;this.inflightRequests_=Gbc();this.tracker_=b};
agc.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=r(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getIndex();this.inflightRequests_.has(h)?c.add(this.inflightRequests_.get(h)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=Zfc(a.clone(),d);var q=new s2(this.delegate_,k);q.send();c.add(q);a=r(k.getKeys());for(f=a.next();!f.done;f=a.next())this.inflightRequests_.set(f.value.getIndex(),
q);q.promise().catch(function(){}).finally(function(){for(var w=r(k.getKeys()),y=w.next();!y.done;y=w.next())b.inflightRequests_.delete(y.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(w){return w.promise()})).then(function(w){return q?q.promise().then(function(y){return XUa(w,y.metadata)}):XUa(w)})};
var bgc=function(a){this.peopleLoader_=a};bgc.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.ids_,a.getOptions())};
var cgc=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};cgc.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new bgc(this.peopleLoader_);b=new $fc(b,this.tracker_,this.clientConfig_);b=new agc(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};
var t2=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new cgc(this.delegate_,this.trackers_,c)},dgc=function(a,b,c,d){var e,f;return me(function(h){if(1==h.nextAddress){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),h.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);h.catchAddress_=0;h.finallyAddress_=2;return ne(h,f,4)}if(2!=h.nextAddress)return h.return(h.yieldResult);Ot(h);a.searchRequests_.delete(e);
return Pt(h,0)})};t2.prototype.loadRankedItems=function(a){var b=this;return dgc(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};t2.prototype.loadAutocompleteItems=function(a,b){var c=this;return dgc(this,82,a,function(){return c.delegate_.loadAutocompleteItems(a,b)})};t2.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new r2(a,b,c))};t2.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var egc=function(){return Date.now()},u2=function(a,b,c){this.delegate_=a;this.nowFn_=c;this.cacheFlushRateMillis_=1E3*xl(b.getClient(),14,300);this.serverWarmupRateMillis_=1E3*xl(b.getClient(),13,60);this.lastServerWarmup_=this.lastCacheFlush_=0};u2.prototype.loadRankedItems=function(a){var b=a.qos;var c=this.nowFn_();1===b&&this.lastCacheFlush_+this.cacheFlushRateMillis_>c?b=!0:(this.lastCacheFlush_=c,b=!1);return b?Promise.reject(1):this.delegate_.loadRankedItems(a)};
u2.prototype.loadAutocompleteItems=function(a,b){var c=b.qos;var d=this.nowFn_();1===c&&this.lastServerWarmup_+this.serverWarmupRateMillis_>d?c=!0:(this.lastServerWarmup_=d,c=!1);return c?Promise.reject(1):this.delegate_.loadAutocompleteItems(a,b)};u2.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};u2.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var v2=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};v2.prototype.suggest=function(a){a=void 0===a?this.listener_:a;this.delegate_.suggest(a,this.options_)};v2.prototype.search=function(a,b){b=void 0===b?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};v2.prototype.cancel=function(){this.delegate_.cancel();return this};v2.prototype.getReporter=function(a){a=void 0===a?h$b:a;return this.delegate_.getReporter(a)};
var fgc=function(a,b){this.delegate_=a;this.members_=b};U(fgc,x0);fgc.prototype.getMemberList=function(){return this.members_};fgc.prototype.getTotalMemberCount=function(){var a=this.getDelegate().getTotalMemberCount();return a?a-(this.getDelegate().getMemberList().length-this.members_.length):a};
var ggc=function(a){this.filter_=a};ggc.prototype.filterResult=function(a){var b=this;if(!Bq.includes(a.getPrimaryTarget().getId().getType()))return a;var c=a.getMemberList().map(function(d){return b.filter_.filterResult(d)}).filter(Boolean);return 0===c.length?null:a.getMemberList().every(function(d,e){return d===c[e]})?a:new Dq(new fgc(a,c))};ggc.prototype.reset=function(a){this.filter_.reset(a)};var Xr=function(a){this.filter_=Tr(a,new ggc(a))};Xr.prototype.filterResult=function(a){return this.filter_.filterResult(a)};
Xr.prototype.reset=function(a){this.filter_.reset(a)};
var w2=function(a){this.delegate_=a};w2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof m1&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};w2.prototype.lookup=function(a,b,c){c=void 0===c?new ybc:c;c.setFilter(YUa(c.getFilter()));this.delegate_.lookup(a,b,c);return this};
w2.prototype.list=function(a,b,c,d){d=void 0===d?new vbc:d;d.setFilter(YUa(d.getFilter()));this.delegate_.list(a,b,c,d);return this};w2.prototype.beginSession=function(a,b){b=void 0===b?new Yq:b;b=b.clone();b.setFilter(YUa(b.getFilter()));var c=this.delegate_.beginSession(b);return new v2(c,a,b)};
var hgc=new Map([[2,0],[0,1],[1,3],[3,10],[4,7],[5,9],[7,5],[16,5],[8,11],[9,2],[10,4],[11,2],[12,2],[13,11],[14,11],[15,11]]),igc=new Map([[2,13],[3,6]]),jgc=new Map([[2,0],[0,1],[1,2],[3,3],[4,3],[5,2],[7,3],[16,3],[8,3],[9,3],[10,3],[11,3],[12,3],[13,3],[14,3],[15,3]]);
var ZUa=new Map([[1,1],[2,3],[3,5]]),kgc=new Map([[1,2],[2,4],[3,5],[4,8],[6,15]]),lgc=new Map([[1,2],[2,9],[3,6],[4,6],[6,15]]),mgc=function(a,b){this.logContext_=aVa(a,b)};g=mgc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source(),e=new Q1;switch(d.getEventType()){case 1:d=e.setCount;b=X(b.source(),4,0);var f=new R1;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=e.setRpcRequest;b=X(b.source(),3,0);d=new U1;d.setLabel(b);c.call(e,d);e.setEventType(4);break;case 6:case 7:c=e.setApiCall;b=b.source();d=X(b,2,0);f=new W1;b.hasItemCount()&&f.setItemCount(b.getItemCount());b.hasQueryLength()&&f.setQueryLength(b.getQueryLength());f.setLabel(d);c.call(e,
f);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=new Q1;switch(d.getEventType()){case 4:case 5:d=e.setRpcResponse;var f=b.source(),h=X(f,3,0);var k=X(f,13,0)||0;k=igc.get(k)||hgc.get(c)||0;var q=b.durationUsec("blocked"),w=b.durationUsec("network"),y=b.durationUsec("processed");b=new V1;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(w);l(b,9,y);b.setStatusCode(c);dj(f,12,0)&&(c=dj(f,12,0),l(b,6,c));d.call(e,b);e.setEventType(5);break;case 6:case 7:d=e.setApiResult;h=b.source();
k=X(h,2,0);f=new X1;f.setLabel(k);f.setStatusCode(c);h.hasItemCount()&&f.setItemCount(h.getItemCount());h.hasQueryLength()&&f.setQueryLength(h.getQueryLength());0===c&&(b=b.durationUsec("total"),f.setLatencyUsec(b));c=jgc.get(c)||0;f.setStatus(c);c=h.getResultIndex();f.setResultIndex(c);if(b=h.getCacheState())c=$Ua(p(b,2)),l(f,5,c),c=$Ua(p(b,3)),l(f,6,c),c=f.setDataSource,h=b.getSource(),b=!W(h,1),h=h.getProvenance(),b=(b?lgc.get(h):kgc.get(h))||0,c.call(f,b);d.call(e,f);e.setEventType(7);break;default:return null}e.setClientInterface(a);
return e};g.createLatencyMetric=function(a,b){var c=b.source();if(2!==c.getEventType())return null;var d=new Q1;d.setClientInterface(a);a=d.setLatency;var e=X(b.source(),5,0);if(37===e||38===e||40===e){e=X(b.source(),5,0);var f=b.durationUsec("LATENCY_A");b=b.durationUsec("LATENCY_B");b=null!=f&&null!=b?f-b:NaN;f=new S1;f.setType(e);isFinite(b)&&f.setLatencyUsec(b);e=f}else b=b.durationUsec("total"),f=new S1,f.setType(e),f.setLatencyUsec(b),e=f;a.call(d,e);d.setEventType(c.getEventType());return d};
g.createErrorMetric=function(a,b){var c=b.source();if(3!==c.getEventType())return null;var d=new Q1;d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=X(e,7,0);var f=new T1;f.setType(b);l(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};
var ngc=function(a,b){this.delegate_=a;this.trackers_=b};g=ngc.prototype;g.reportDisplay=function(a){this.delegate_.reportDisplay(a)};g.reportSelect=function(a,b){b=void 0===b?new C0:b;this.delegate_.reportSelect(a,b)};g.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};g.reportDeselect=function(a){this.delegate_.reportDeselect(a)};g.reportProceed=function(a){this.delegate_.reportProceed(a)};g.reportDismiss=function(){this.delegate_.reportDismiss();ogc(this)};
g.reportSave=function(a){this.delegate_.reportSave(a);ogc(this)};g.reportSend=function(a){this.delegate_.reportSend(a);ogc(this)};var ogc=function(a){a=a.trackers_;var b=new Er;Fr(b.setEventType(6),3);i2(a,b).call()};
var pgc=function(a,b){this.delegate_=a;this.trackers_=b};g=pgc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};
g.suggest=function(a,b){var c=this;try{var d=i2(this.trackers_,pUa());d.call();this.delegate_.suggest(function(e){var f=e.getMetadata().getCacheState();d.source.setCacheState(f);d.source.setItemCount(e.getResults().length);d.result(f.getSource().getCode());f=c.trackers_.latency(90);f.start();try{a(e)}catch(h){throw c.trackers_.error(22,11).report(),h;}finally{f.stop()}},b)}catch(e){throw this.trackers_.error(22,1).report(),e;}};
g.search=function(a,b,c){var d=this;try{var e=i2(this.trackers_,oUa(a));e.call();this.delegate_.search(a,function(f){var h=f.getMetadata().getCacheState();e.source.setCacheState(h);e.source.setItemCount(f.getResults().length);e.result(h.getSource().getCode());h=d.trackers_.latency(91);h.start();try{b(f)}catch(k){throw d.trackers_.error(23,11).report(),k;}finally{h.stop()}},c)}catch(f){throw this.trackers_.error(23,1).report(),f;}};g.cancel=function(){this.delegate_.cancel()};
g.getLastUpdatedTimestamp=function(){return this.delegate_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate_.getAffinityVersion()};g.getReporter=function(a){a=this.delegate_.getReporter(a);return new ngc(a,this.trackers_)};g.getSessionState=function(){return this.delegate_.getSessionState()};
var x2=function(a,b){this.delegate_=a;a=this.trackers_=b;b=new Er;Fr(b.setEventType(6),1);i2(a,b).call()};x2.prototype.warmUpCache=function(){var a=this,b=i2(this.trackers_,nUa());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof m1?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new m1).setSource((new gs).setCode(2)));return Promise.reject(c)})};
x2.prototype.lookup=function(a,b,c){var d=this,e=i2(this.trackers_,lUa(a));e.call();try{this.delegate_.lookup(a,function(f){var h=f.getMetadata().getCacheState();e.source.setCacheState(h);e.source.setItemCount(f.getResults().size);e.result(h.getSource().getCode());h=d.trackers_.latency(89);h.start();try{b(f)}catch(k){throw d.trackers_.error(8,11).report(),k;}finally{h.stop()}},c)}catch(f){throw this.trackers_.error(8,1).report(),f;}};
x2.prototype.list=function(a,b,c,d){var e=this,f=i2(this.trackers_,mUa());f.call();try{this.delegate_.list(a,b,function(h){var k=h.getMetadata().getCacheState();f.source.setCacheState(k);f.result(k.getSource().getCode());try{c(h)}catch(q){throw e.trackers_.error(27,11).report(),q;}},d)}catch(h){throw this.trackers_.error(27,1).report(),h;}};x2.prototype.beginSession=function(a){var b=this.trackers_,c=new Er;Fr(c.setEventType(6),2);i2(b,c).call();a=this.delegate_.beginSession(a);return new pgc(a,this.trackers_)};
var qgc=function(a,b){this.clearcut_=a;this.logEventFactory_=b};qgc.prototype.report=function(a){var b=mU(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=r(a);for(b=a.next();!b.done;b=a.next())nU(this.clearcut_,b.value)};
var rgc=function(a){this.clearcut_=a};rgc.prototype.report=function(a){this.clearcut_.report(a)};
var sgc=function(a){this.writer_=a},ugc=function(a,b,c){var d=new XT,e=a.writer_,f=d.getMetadata()||new YT;d.setMetadata(f);var h=Lq(b)||new Qr;a=m(b,Rr,1)||new Rr;e.metadataStateWriter_.write(f,h,(W(a,9,!0)?dj(h,2,0):dj(h,1,0))||0,tgc(b));e.contactInfoWriter_.write(d,a,c,h.getProvenance()||0);b=m(d,ZT,4)||new ZT;Ab(d,4,b);m(d,ZT,4).setType(a.getFieldType());d.setLoggingId(a.getFieldLoggingId());return d};
var vgc=function(){};
vgc.prototype.create=function(a,b,c){var d=new dU,e=dj(b,3,0);l(d,1,e);e=dj(b,4,0);l(d,2,e);e=dj(b,5,0);l(d,3,e);d.setInstanceId(b.getInstanceId());d.setAffinityVersion(b.getAffinityVersion());e=new bU;Ab(e,3,d);7!==c&&b.hasQuery()&&(d=b.getQuery(),2===c&&e.setQuery(d),e.setQueryLength(d.length));var f=new cU;d=HCa(xl(b,9,0)-xl(b,8,0));l(f,2,d);d=new VT;Ab(d,1,e);Ab(d,6,f);e=new GSb;if(f=dj(b,6,0)){l(e,3,1E3*f);var h=1E3*(Date.now()-f);l(e,2,h)}l(e,1,!!f);Ab(d,3,e);d.setAffinityVersion(b.getAffinityVersion());b=
new CSb;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};
var wgc=function(){};wgc.prototype.extractPersonEventSource=function(a){return p(bVa(a),4)};wgc.prototype.extractFieldEventSource=function(a){return p(bVa(a),3)};
var xgc=function(){};xgc.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new bs;return(a.getQuery()||"").length?p(b,2):p(b,4)};xgc.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new bs;return(a.getQuery()||"").length?p(b,1):p(b,3)};
var ygc=function(){};ygc.prototype.extractPersonEventSource=function(a){return p(cVa(a),4)};ygc.prototype.extractFieldEventSource=function(a){return p(cVa(a),3)};
var zgc=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};
var Agc=new Map([[1,11],[2,12],[0,0]]),Bgc=function(){};Bgc.prototype.write=function(a,b,c){var d=new $T;l(d,1,c);c=new eU;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Ab(a,8,c);b=[Agc.get(b.getContext())];hl(a,3,b)};
var Cgc=new Map([[1,5],[2,4],[3,6],[7,13]]),Dgc=function(){};Dgc.prototype.write=function(a,b,c,d){var e=new $T;l(e,1,c);a.setPosition(e);c=Cgc.get(b.getProvenance())||0;d||1===X(b,4,0)?c=3:2===X(b,4,0)&&(c=10);hl(a,3,[c])};
var Egc=new Set([9,1,2]),Fgc=function(){};Fgc.prototype.write=function(a,b,c,d){if(8===c||10===c||9===c||2===c&&Egc.has(d))c=new ZT,1!==b.getFieldType()&&7!==b.getFieldType()||c.setEmail(p(b,3)),2!==b.getFieldType()&&5!==b.getFieldType()||c.setPhone(p(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),Ab(a,4,c),c=new aU,c.setName(b.getName()),b=a.getMetadata()||new YT,Ab(b,2,c),a.setMetadata(b)};
var Ggc=function(a){var b=new Fgc;this.metadataStateWriter_=a;this.contactInfoWriter_=b},tgc=function(a){var b=m(a,Rr,1);if(null==b?0:b.getIsPlaceholder())return!0;var c;a=mr(((null==(c=a.getSessionState())?void 0:c.getQuery())||"").trim());b=mr(((null==b?void 0:p(b,3))||"").trim());return!!a&&a===b};
var es=function(a){Z.call(this,a,-1,Hgc)};U(es,Z);g=es.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getSessionState=function(){return m(this,f0,2)};g.setSessionState=function(a){Ab(this,2,a)};g.hasSessionState=function(){return cj(this,2)};var gVa=function(a,b){Ab(a,4,b)},Hgc=[3];
es.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),sessionState:w7b(void 0,this.getSessionState()),tokensList:Bb(rb(this,Pr,3),t7b),eventSources:e0(void 0,m(this,bs,4))}:void 0;return a};
var Igc=new Set([8]),Jgc=function(){this.defaultEntityFactory_=new sgc(new Ggc(new Dgc));this.contextualEntityFactory_=new sgc(new Ggc(new Bgc));this.extensionFactory_=new vgc;this.defaultEventSourceExtractor_=new xgc;this.additionEventSourceExtractor_=new wgc;this.replacementEventSourceExtractor_=new ygc};
Jgc.prototype.create=function(a,b){var c=b.getSessionState()||new f0,d=b.getEventType();b=rb(b,Pr,3);var e=ds(b,eVa);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(u(ds(f,dVa).values())):[];b=b?[].concat(u(ds(b,dVa).values())):[];e=e?[].concat(u(ds(e,dVa).values())):[];f=new zgc(f,b,e);b=[];var h=r(f.defaultTokenGroups_);for(e=h.next();!e.done;e=h.next())b.push.apply(b,u(Kgc(this,a,d,e.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));h=r(f.additionTokenGroups_);for(e=h.next();!e.done;e=
h.next())b.push.apply(b,u(Kgc(this,a,d,e.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));f=r(f.replacementTokenGroups_);for(e=f.next();!e.done;e=f.next())b.push.apply(b,u(Kgc(this,a,d,e.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var Kgc=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=d.map(function(y){var E=new XT,I=h.writer_,N=E.getMetadata()||new YT;E.setMetadata(N);var L=Lq(y)||new Qr,S=m(y,Rr,1)||new Rr;I.metadataStateWriter_.write(N,L,dj(L,2,0)||0,tgc(y));I.contactInfoWriter_.write(E,S,c,L.getProvenance()||0);E.setLoggingId(S.getPersonLoggingId());y=m(E,ZT,4)||new ZT;Ab(E,4,y);y.setType(p(S,8));return E});k.push(Lgc(a,b,c,f.extractPersonEventSource(e),q,e));q=[];d=r(d);for(var w=d.next();!w.done;w=
d.next())w=w.value,cj(w,1)&&Igc.has(m(w,Rr,1).getFieldType())||q.push(ugc(h,w,c));q.length&&k.push(Lgc(a,b,c,f.extractFieldEventSource(e),q,e));return k},Lgc=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);zb(a,2,e);return a};
var Mgc=function(a,b){this.logContext_=Yr(Zr(new $r,"PeopleStore.BigBug").setLogSource(X(a.getClearcut(),3,41)).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1002").setBaselineCl(442955898).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(u(a.runtimeConfig_.getExperiments().getExperimentIdsList()),u(as?as.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);this.eventsFactory_=
new Jgc};Mgc.prototype.getLogContext=function(){return this.logContext_};
var Ngc=function(a){this.clientConfig_=a;this.reportingCache_=new Map};Ngc.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new Mgc(this.clientConfig_,a),a=new rgc(new qgc(TTb(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};
var Ogc=function(a,b){this.reporting_=a;this.sharedSessionState_=b};g=Ogc.prototype;g.reportDisplay=function(a){y2(this,fs(a,1))};g.reportSelect=function(a,b){b=void 0===b?new C0:b;if(0!==b.getOriginator())for(var c=r(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!cj(d,2)){var e=new Qr;Ab(d,2,e)}d=Lq(d);l(d,4,b.getOriginator())}b=dj(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);y2(this,fs(a,2,this.sharedSessionState_))};
g.reportExternalSelect=function(a){for(var b=r(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!cj(c,2)){var d=new Qr;Ab(c,2,d)}c=Lq(c);l(c,4,2)}b=dj(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);y2(this,fs(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){y2(this,fs(a,17,this.sharedSessionState_))};g.reportProceed=function(a){y2(this,fs(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new es;a=a.clone();b.setSessionState(a);b.setEventType(7);gVa(b,a.getSources());y2(this,[b])};g.reportSave=function(a){y2(this,fs(a,9,this.sharedSessionState_))};g.reportSend=function(a){y2(this,fs(a,8,this.sharedSessionState_,!0))};var y2=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};
var Pgc=function(a,b,c){this.delegate_=a;this.sharedSessionState_=c;l(this.sharedSessionState_,5,Math.floor(9007199254740991*Math.random()));this.reportingFactory_=b};g=Pgc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};g.suggest=function(a,b){var c=this;r7b(this.sharedSessionState_,dj(this.sharedSessionState_,3,0)+1);var d=this.sharedSessionState_.clone();d.setQuery("");s7b(d);this.delegate_.suggest(function(e){Qgc(c,e.getResults(),hVa(e),d,0);a(e)},b)};
g.search=function(a,b,c){var d=this;r7b(this.sharedSessionState_,dj(this.sharedSessionState_,3,0)+1);var e=this.sharedSessionState_.clone();e.setQuery(a);s7b(e);var f=0;this.delegate_.search(a,function(h){f=Qgc(d,h.getResults(),hVa(h),e,f);b(h)},c)};g.cancel=function(){this.delegate_.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate_.getAffinityVersion()};
g.getReporter=function(a){return new Ogc(this.reportingFactory_.create(a),this.sharedSessionState_)};g.getSessionState=function(){return this.sharedSessionState_};
var Qgc=function(a,b,c,d,e){var f=KTb();l(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();l(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=r(b);for(f=a.next();!f.done;f=a.next()){b=0;f=r(f.value.getTargetList());for(var h=f.next();!h.done;h=f.next()){h=h.value.getLoggingToken();var k=Lq(h)||new Qr;7!==k.getProvenance()&&k.setProvenance(c.getProvenance());l(k,2,e);l(k,1,b);Ab(h,2,k);h.setSessionState(d);b++}e++}return e};
var z2=function(a,b,c){this.delegate_=a;this.reportingFactory_=b;this.instanceId_=rq();this.clearcutConfig_=c};z2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};
z2.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,h=d.getMetadata();h.getCacheState()&&(h=h.getCacheState(),h.hasSource()&&(f=h.getSource()));f=f||new gs;h=c.getOriginator();e=r(e);for(var k=e.next();!k.done;k=e.next()){k=r(k.value.getTargetList());for(var q=k.next();!q.done;q=k.next()){q=q.value.getLoggingToken();var w=Lq(q)||new Qr;7!==w.getProvenance()&&w.setProvenance(f.getProvenance());l(w,4,h);Ab(q,2,w)}}b(d)},c)};
z2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};z2.prototype.beginSession=function(a){var b=new f0,c=Rgc(this,a);Ab(b,10,c);c=Sgc(this,a);Ab(b,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new Pgc(a,this.reportingFactory_,b)};
var Rgc=function(a,b){a=rb(a.clearcutConfig_,bs,5);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new bs},Sgc=function(a,b){a=rb(a.clearcutConfig_,cs,6);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new cs};
var Tgc=function(a){this.delegate_=a};g=Tgc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};g.suggest=function(a,b){this.delegate_.suggest(a,b)};g.search=function(a,b,c){this.delegate_.search(a,b,c)};g.cancel=function(){this.delegate_.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate_.getAffinityVersion()};g.getReporter=function(a){return this.delegate_.getReporter(a)};
g.getSessionState=function(){return this.delegate_.getSessionState()};
var A2=function(a,b){this.delegate_=a;this.smartAddressFactory_=b};A2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};A2.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,b,c)};A2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};A2.prototype.beginSession=function(a){a=this.delegate_.beginSession(a);return new Tgc(a,this.smartAddressFactory_.create(a.getSessionState()))};
var Ugc={create:function(a){a=new D1(ho(bcc,'[[15,15],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",""],["BUGANIZER","BUGANIZER",null,"ISSUE_TRACKER_AFFINITY",47,null,null,["person.name","person.photo","person.email","person.metadata"]],[null,740,null,null,[[180,181,178,179]]]]'),a);if(a.runtimeConfig_.getExperiments().getProfileId())if(jcc(a).getIsEnabled()){var b=ho(Zq,'[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]');b=new $q(b,1)}else b=new ar;else b=new ar;var c=
a.runtimeConfig_.getExperiments().getProfileId(),d=a.runtimeConfig_;as=b.loadExperiments(jcc(a).getApplication(),(new br).setPeopleApiEnv(d.getPeopleApiEnv()),c);b=new sec;b.cacheConfigurators_.push(new Ubc);d=b;d=void 0===d?new sec:d;b=a.getClearcut();b=new mgc(b,a.runtimeConfig_);b=Uo(b);b=new h2(b);c=new oec(a,b);var e=a.getClient();e=new Jec(c.targetFactory_,e);var f=void 0===f?egc:f;f=new u2(c.loader_,a,f);f=new t2(f,b,a);var h=[new Xfc,new Bec].concat(u(d.cacheConfigurators_)),k=[],q=[],w=new k2(e,
a),y;(y=W(a.getClient(),34,!0))||(y=as?m(as.getExperimentFlags(),m0,104)||new m0:new m0,y=W(y,5,!1));y=y?new Rec(q,w):new Xec(new Wec(b,f,w),w,a);q={clientConfig:a,trackers:b,storage:e,indexer:w,loader:f,loaderFactory:c,trieFactory:new qfc(e,y),prefixCaches:k,lookupStages:q};h=r(h);for(w=h.next();!w.done;w=h.next())w.value.configure(q);k=new efc(k);f=new jfc(a,b,k,y,new Nec(f,e),e);k=a.getClient();k=new Pfc(k,e);y=a.getClient();f=new p2(f,k,y);f=new z2(f,new Ngc(a),a.getClearcut());a=(0,d.createSmartAddressFactory_)(a,
e,k,c.targetFactory_,b);f=new A2(f,a);f=new x2(f,b);return new w2(f)}};
var B2=function(){};B2.\u0275fac=function(a){return new (a||B2)};B2.\u0275cmp=v({type:B2,selectors:[["b-async-data-placeholder"]],inputs:{isReady:"isReady"},ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","animated-loading-bar",4,"ngIf"],[4,"ngIf"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(Cf(),O(0,iVa,1,0,"div",0),O(1,jVa,2,0,"ng-container",1));a&2&&(D("ngIf",!b.isReady),B(1),D("ngIf",b.isReady))},dependencies:[sx],encapsulation:2});
var C2=function(a,b){var c=this;this.fridge=a;this.userAccess=b;this.currentComponentId="";this.providedComponentId$=new T.ReplaySubject(1);this.accessCheckIsThinking$=new T.BehaviorSubject(!0);this.component$=this.providedComponentId$.pipe(Xe(function(d){return c.fridge.watchOne(d)}));this.userIsComponentReader$=this.providedComponentId$.pipe(Xe(function(d){d!==c.currentComponentId&&(c.accessCheckIsThinking$.next(!0),c.currentComponentId=d);return DK(c.userAccess,"reader","components/"+d).then(function(e){return e},
function(){return!1}).finally(function(){c.accessCheckIsThinking$.next(!1)})}));this.isReady$=(0,T.combineLatest)([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(C(function(d){var e=r(d);d=e.next().value;e=e.next().value;return!d&&!e}),We(!1));this.manageComponentLink=""};C2.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};C2.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};
C2.\u0275fac=function(a){return new (a||C2)(F(bK),F(CK))};
C2.\u0275cmp=v({type:C2,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},features:[Ac],decls:6,vars:7,consts:[[3,"isReady"],[3,"href",4,"ngIf","ngIfElse"],["notComponentReader",""],[3,"href"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),Q(1,"async"),O(2,kVa,3,4,"a",1),Q(3,"async"),O(4,lVa,2,1,"ng-template",null,2,gg),H());if(a&2){var c=Hf(5);D("isReady",R(1,3,b.isReady$));B(2);D("ngIf",R(3,5,b.userIsComponentReader$))("ngIfElse",c)}},dependencies:[sx,B2,Fx],
encapsulation:2});
var D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};
D2.\u0275cmp=v({type:D2,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},decls:2,vars:2,consts:[[3,"ngClass"]],template:function(a,b){a&1&&(G(0,"span",0),P(1),H());a&2&&(D("ngClass","priority-"+b.issuePriority),B(1),a=b.issuePriority,a=null==a?"--":"string"===typeof a?aJb.get(a):$Ib.get(a),If(" ",a," "))},dependencies:[vx],styles:["span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:18px;border-radius:4px;word-break:keep-all}.priority-1[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--issue-priority);border:2px solid transparent;color:#fff;min-width:19px}.priority-2[_ngcontent-%COMP%]{background:transparent;border:2px solid;border-color:#1a73e8;border-color:var(--issue-priority);color:#202124;color:var(--text-high-contrast);min-width:19px}\n/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});
var E2=function(){this.showIssueMetadataContainer=!1;this.manageComponentLink=""};
ki.Object.defineProperties(E2.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(null==a)this.showIssueMetadataContainer=!1;else if(this.showIssueMetadataContainer=!0,this.issueId=a.issueId,this.issueLastModified=oo(a.modifiedTime),a.teamId&&0!==a.teamId&&(this.issueTeamId=String(a.teamId)),a=a.issueState)this.issueType=jCb[a.type],this.issueStatus=kCb[a.status],this.issuePriority=a.priority,this.issueSeverity=bJb.get(a.severity),this.issueComponentId=String(a.componentId)}}});
E2.\u0275fac=function(a){return new (a||E2)};
E2.\u0275cmp=v({type:E2,selectors:[["b-access-denied-metadata"]],inputs:{issueMetadata:"issueMetadata"},decls:4,vars:1,consts:[[1,"b-access-denied"],[1,"heading-l","margin-bottom"],["class","carded margin-top",4,"ngIf"],[1,"carded","margin-top"],[3,"issuePriority"],[4,"ngIf"],[3,"componentId"],[3,"teamId"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"h3",1),P(2," Access is denied to this issue "),H(),O(3,oVa,33,11,"ol",2),H());a&2&&(B(3),D("ngIf",b.showIssueMetadataContainer))},dependencies:[sx,
C2,D2,kV,Ix],styles:[".b-access-denied[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}ol[_ngcontent-%COMP%]{box-sizing:border-box;width:322px;padding-right:8px}li[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px;line-height:21px}li[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}label[_ngcontent-%COMP%]{width:100px;font-weight:bold;color:#5f6368;color:var(--text-muted);margin-right:8px;font-size:.8125rem}"],changeDetection:0});
var F2=function(){};F2.\u0275fac=function(a){return new (a||F2)};F2.\u0275mod=rc({type:F2});F2.\u0275inj=fc({imports:[[Mx]]});
var G2=function(){};G2.\u0275fac=function(a){return new (a||G2)};G2.\u0275mod=rc({type:G2});G2.\u0275inj=fc({imports:[[Mx,F2]]});
var H2=function(){};H2.\u0275fac=function(a){return new (a||H2)};H2.\u0275mod=rc({type:H2});H2.\u0275inj=fc({imports:[[Mx]]});
var I2=function(){};I2.\u0275fac=function(a){return new (a||I2)};I2.\u0275mod=rc({type:I2});I2.\u0275inj=fc({imports:[[Mx,G2,H2,lV]]});
var ms=Symbol("Pe"),Vgc=["OR","AND","NAND"],Wgc=["OR","NAND"],Xgc="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),Ygc=["AND","OR","NAND"],Zgc=["OR","LT","GT","LE","GE"],ls=function(a){this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};ls.prototype[ms]=function(a){this.initType(a);this.initValues(a)};
ls.prototype.initType=function(a){if(a.type)switch(a.operator){case "LT":this.type=a.negated?"GE":"LT";break;case "GT":this.type=a.negated?"LE":"GT";break;case "LE":this.type=a.negated?"GT":"LE";break;case "GE":this.type=a.negated?"LT":"GE";break;default:this.type="OR"===a.type?a.negated?"NOR":"OR":"AND"===a.type?a.negated?"NAND":"AND":a.negated?"NAND":"OR"}else this.type=this.getLegalTypes()[0]};ls.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var $gc=function(a){var b="NAND"===a.type||"NOR"===a.type||"NDURATION"===a.type||"NRANGE"===a.type,c="EQ";if("AND"===a.type||"NAND"===a.type)var d="AND";else if("OR"===a.type||"NOR"===a.type)d="OR";else if(d="NIL","LE"===a.type||"LT"===a.type||"GE"===a.type||"GT"===a.type)c=a.type;b&&("AND"===d?d="OR":"OR"===d&&(d="AND"));return{operator:c,joinType:d,negated:b}};
ls.prototype.toString=function(){var a=$gc(this),b=this.valuesToStrings().filter(function(e){return e}),c={GT:">",LT:"<",GE:">=",LE:"<=",EQ:":"};if(1===b.length)b=b[0];else if(1<b.length)b="("+b.join("AND"===a.joinType?" ":" | ")+")";else return"";var d=ahc(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var ahc=function(a){var b=a.label.field;a:{var c=pVa()[b];if(c&&(c=c.queryLabel,null!=c)){b=c;break a}b=Ii(b).toLowerCase()}return b+(a.label.customFieldId||"")};
ls.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};ls.prototype.getWidgetType=function(){return"default"};ls.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};ls.prototype.getLegalTypes=function(){return Vgc};var bhc=[],J2=function(a){ls.call(this,a);this.enumValues={}};U(J2,ls);g=J2.prototype;g.getLegalTypes=function(){return Wgc};g.getWidgetType=function(){return"enum"};
g.initValues=function(a){this.enumValues={};for(var b=r(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=r(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[sVa(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys(dh(this.enumValues,function(a){return a}))};g.getOptions=function(){return bhc};var chc=paa().map(function(a){return{id:"p"+a,label:"P"+a}}),dhc=function(a){J2.call(this,a)};U(dhc,J2);
dhc.prototype.getOptions=function(){return chc};var ehc=paa().map(function(a){return{id:"s"+a,label:"S"+a}}),fhc=function(a){J2.call(this,a)};U(fhc,J2);fhc.prototype.getOptions=function(){return ehc};
var ghc=Zi("enableWtdmMvpUi")?[{id:"bug"},{id:"customer_issue",label:"customer issue"},{id:"feature_request",label:"feature request"},{id:"internal_cleanup",label:"internal cleanup"},{id:"process"},{id:"vulnerability"},{id:"privacy_issue",label:"privacy issue"},{id:"project"},{id:"feature"},{id:"milestone"},{id:"epic"},{id:"story"},{id:"task"}]:[{id:"bug"},{id:"customer_issue",label:"customer issue"},{id:"feature_request",label:"feature request"},{id:"internal_cleanup",label:"internal cleanup"},{id:"process"},
{id:"vulnerability"},{id:"privacy_issue",label:"privacy issue"}],hhc=function(a){J2.call(this,a)};U(hhc,J2);hhc.prototype.getOptions=function(){return ghc};var ihc=[{id:"open"},{id:"new",group:"open"},{id:"assigned",group:"open"},{id:"accepted",group:"open"},{id:"closed"},{id:"fixed"},{id:"verified"},{id:"duplicate"},{id:"infeasible"},{id:"intended_behavior",label:"intended behavior"},{id:"not_reproducible",label:"not reproducible"},{id:"obsolete"}],jhc=function(a){J2.call(this,a)};U(jhc,J2);
jhc.prototype.getOptions=function(){return ihc};var khc=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],lhc=function(a){J2.call(this,a)};U(lhc,J2);lhc.prototype.getOptions=function(){return khc};var is=function(a){J2.call(this,a);this.allowedValues=[]};U(is,J2);is.prototype[ms]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:sVa(b)}});J2.prototype[ms].call(this,a)};
is.prototype.valuesToStrings=function(){return Object.keys(dh(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};is.prototype.getOptions=function(){return this.allowedValues};var zs=function(a){ls.call(this,a);this.csv=""};U(zs,ls);zs.prototype.getWidgetType=function(){return"csv"};zs.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};zs.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};
var K2=function(a){zs.call(this,a)};U(K2,zs);K2.prototype.getWidgetType=function(){return"id"};K2.prototype.valuesToStrings=function(){return zs.prototype.valuesToStrings.call(this).map(function(a){return"none"===a.toLowerCase()?"none":"any"===a.toLowerCase()?"any":String(Ki(a))})};var mhc=function(a){zs.call(this,a)};U(mhc,K2);mhc.prototype.getLegalTypes=function(){return Wgc};var ns=function(a){zs.call(this,a)};U(ns,zs);ns.prototype.getWidgetType=function(){return"user"};
var L2=function(a){zs.call(this,a)};U(L2,ns);L2.prototype.getLegalTypes=function(){return Wgc};var hs=function(a){ls.call(this,a);this.dateTo=this.dateFrom=this.duration=""};U(hs,ls);var nWa=function(a){return a&&"string"===typeof a?a:""};hs.prototype.initType=function(a){ls.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&("RANGE"===b.type?this.type=a.negated?"NRANGE":"RANGE":$t(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};
hs.prototype.getWidgetType=function(){return"date"};hs.prototype.initValues=function(a){if(a.values){var b=a.values[0].simpleValues[0].value;if("DURATION"===this.type||"NDURATION"===this.type)this.duration=b.slice(0,b.length-1);else if(this.dateFrom=nhc(b),"RANGE"===this.type||"NRANGE"===this.type)this.dateTo=nhc(a.values[0].simpleValues[1].value)}};
hs.prototype.valuesToStrings=function(){if("DURATION"===this.type||"NDURATION"===this.type){var a=Ki(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if("RANGE"===this.type||"NRANGE"===this.type){a=this.dateFrom&&ohc(this.dateFrom)||(new Ji).toIsoString(!0);var b=this.dateTo&&ohc(this.dateTo)||(new Ji).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&ohc(this.dateFrom)||(new Ji).toIsoString(!0)]};
var phc=function(a){var b=String(a.getMonth()+1),c=String(a.getDate());return b+"/"+c+"/"+String(a.getFullYear())},nhc=function(a){var b=new kC(2E3);a=Qi(a);var c=-1==a.indexOf("T")?" ":"T";a=a.split(c);var d=a[0].match(Sqb);if(d){var e=Number(d[2]),f=Number(d[3]),h=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));h?(b.setDate(1),b.setMonth(0),b.add(new no("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new no("d",(4>=d?1-d:8-d)+(Number(k)+7*(Number(c)-
1))-1))):(e&&(b.setDate(1),b.setMonth(e-1)),f&&b.setDate(f));c=!0}else c=!1;if(c&&!(c=2>a.length)){c=a[1];a=c.match(Uqb);if(a)if(c=c.substring(0,c.length-a[0].length),"Z"===a[0])var q=0;else q=60*Number(a[2])+Number(a[3]),q*="-"==a[1]?1:-1;if(h=c.match(Tqb)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(h[1]);e=Number(h[2])||0;f=Number(h[3])||0;var w=h[4]?1E3*Number(h[4]):0;(h=0<=a&&100>a)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,w);h&&(a-=126227808E5);b.setTime(a+6E4*q)}else b.setHours(Number(h[1])),
b.setMinutes(Number(h[2])||0),b.setSeconds(Number(h[3])||0),b.setMilliseconds(h[4]?1E3*Number(h[4]):0);c=!0}else c=!1}return phc(c?b:null)},ohc=function(a){a=a.split("/").map(Number);return(new Ji(a[2],a[0]-1,a[1])).toIsoString(!0)};hs.prototype.getLegalTypes=function(){return Xgc};var M2=function(a){ls.call(this,a)};U(M2,ls);M2.prototype.getWidgetType=function(){return"bool"};
M2.prototype.initType=function(a){var b="OR"===a.type||""===a.type;a.values&&(b="true"===a.values[0].simpleValues[0].value.toLowerCase());a.negated&&(b=!b);this.type=b?"OR":"NAND"};M2.prototype.toString=function(){return ahc(this)+":"+("OR"===this.type)};M2.prototype.getLegalTypes=function(){return Wgc};var N2=function(a){ls.call(this,a)};U(N2,ls);N2.prototype.getWidgetType=function(){return"boolwithall"};
N2.prototype.initType=function(a){-1===this.getLegalTypes().indexOf(a.type)?this.type=this.getLegalTypes()[0]:this.type=a.type;if(a.values)switch(a.values[0].simpleValues[0].value){case "true":this.type="OR";break;case "false":this.type="NAND";break;case "all":this.type="AND"}a.negated&&"AND"!==this.type&&(this.type="OR"===this.type?"NAND":"OR")};N2.prototype.toString=function(){var a=ahc(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
N2.prototype.getLegalTypes=function(){return Ygc};var ks=function(a){ls.call(this,a)};U(ks,ls);ks.prototype.getWidgetType=function(){return"text"};ks.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){b=b.simpleValues[0];var c=b.value;"QUOTED_TEXT"===b.type&&(c=c.slice(1,c.length-1));return{value:c}})};ks.prototype.valuesToStrings=function(){return this.values.map(function(a){return-1<a.value.indexOf(" ")?'"'+a.value+'"':a.value})};var O2=function(a){ls.call(this,a)};
U(O2,ls);O2.prototype.getWidgetType=function(){return"component"};O2.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};$t(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};O2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var qhc=function(a){ls.call(this,a)};U(qhc,ls);
qhc.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};$t(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};qhc.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var rhc=function(a){ls.call(this,a)};U(rhc,qhc);rhc.prototype.getWidgetType=function(){return"team"};var shc=function(a){ls.call(this,a)};
U(shc,ls);shc.prototype.getWidgetType=function(){return"hotlist"};var thc=function(a){ls.call(this,a)};U(thc,ls);thc.prototype.getWidgetType=function(){return"savedsearch"};var js=function(a){zs.call(this,a)};U(js,zs);js.prototype.getWidgetType=function(){return"number"};js.prototype.getLegalTypes=function(){return Zgc};var uhc=function(a){hs.call(this,a)};U(uhc,hs);uhc.prototype.initType=function(a){hs.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var P2={},tVa=(P2.ATTACHMENT={ruleCtor:ks,name:"Attachment name"},P2.COMMENT={ruleCtor:ks},P2.TITLE={ruleCtor:ks},P2.ASSIGNEE={ruleCtor:L2},P2.MODIFIER={ruleCtor:ns},P2.REPORTER={ruleCtor:L2},P2.VERIFIER={ruleCtor:L2},P2.CC={ruleCtor:ns},P2.COMPONENT_ID={ruleCtor:O2,name:"Component"},P2.TEAM_ID={ruleCtor:rhc,name:"Team"},P2.TYPE={ruleCtor:hhc},P2.STATUS={ruleCtor:jhc},P2.PRIORITY={ruleCtor:dhc},P2.SEVERITY={ruleCtor:fhc},P2.BLOCKED_BY_ID={ruleCtor:K2},P2.BLOCKING_ID={ruleCtor:K2},P2.PARENT_ID={ruleCtor:K2},
P2.CANONICAL_ID={ruleCtor:mhc},P2.ID={ruleCtor:mhc},P2.FOUND_IN={ruleCtor:zs},P2.TARGETED_TO={ruleCtor:zs},P2.VERIFIED_IN={ruleCtor:zs},P2.CL={ruleCtor:zs,name:"Changelists"},P2.POSTMORTEM={ruleCtor:zs,name:"Postmortems"},P2.MODIFIED={ruleCtor:hs},P2.RESOLVED={ruleCtor:uhc},P2.CREATED={ruleCtor:hs},P2.VERIFIED={ruleCtor:uhc},P2.DELETION_TIME={ruleCtor:hs,name:"Deletion time"},P2.SAVED_SEARCH_ID={ruleCtor:thc,name:"Saved search"},P2.HOTLIST_ID={ruleCtor:shc,name:"Hotlist"},P2.STAR={ruleCtor:M2,name:"Starred"},
P2.MUTE={ruleCtor:M2,name:"Muted"},P2.IN_PROD={ruleCtor:M2,name:"In production"},P2.CC_COUNT={ruleCtor:js},P2.DUPLICATE_COUNT={ruleCtor:js},P2.VOTE_COUNT={ruleCtor:js},P2.LAST_MODIFIER={ruleCtor:L2,name:"Last Modified By"},P2.COMMENTER={ruleCtor:ns},P2.LAST_COMMENTER={ruleCtor:L2},P2.ARCHIVED={ruleCtor:N2},P2.IS_DELETED={ruleCtor:M2,name:"Deleted",queryLabel:"deleted"},P2.DELETION_REASON={ruleCtor:lhc,name:"Deletion reason"},P2.MIN_SLO_TARGET={ruleCtor:hs,name:"Nearest SLO",queryLabel:"nearestslo"},
P2.EFFORT_LABEL={ruleCtor:zs},P2._TEXT_={ruleCtor:ks,queryLabel:"",name:"All fields"},P2);
var rs=function(a){Z.call(this,a,-1,vhc)};U(rs,Z);rs.prototype.getType=function(){return X(this,1,0)};rs.prototype.setType=function(a){return l(this,1,a)};rs.prototype.hasType=function(){return cj(this,1)};var ss=function(a){Z.call(this,a,-1,whc)};U(ss,Z);g=ss.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return cj(this,1)};g.getValuesList=function(){return rb(this,Q2,2)};g.setValuesList=function(a){zb(this,2,a)};
g.getLabel=function(){return m(this,xhc,4)};g.setLabel=function(a){return Ab(this,4,a)};g.hasLabel=function(){return cj(this,4)};var Q2=function(a){Z.call(this,a,-1,yhc)};U(Q2,Z);g=Q2.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return cj(this,1)};g.getValuesList=function(){return rb(this,Q2,2)};g.setValuesList=function(a){zb(this,2,a)};var os=function(a){Z.call(this,a)};U(os,Z);g=os.prototype;
g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return cj(this,1)};g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return cj(this,2)};var xhc=function(a){Z.call(this,a)};U(xhc,Z);g=xhc.prototype;g.getField=function(){return X(this,1,0)};g.setField=function(a){l(this,1,a)};g.getCustomFieldId=function(){return kj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};
g.hasCustomFieldId=function(){return cj(this,2)};var vhc=[2];rs.prototype.toObject=function(){return zhc(this)};var zhc=function(a){if(null!=a)return{type:n(p(a,1)),expressionsList:Bb(rb(a,ss,2),Ahc)}},whc=[2];ss.prototype.toObject=function(){return Ahc(void 0,this)};var Ahc=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Bb(b.getValuesList(),Bhc,a),negated:n(Ro(b,3)),label:Chc(a,b.getLabel()),operator:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}},yhc=[2,3];
Q2.prototype.toObject=function(){return Bhc(void 0,this)};var Bhc=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Bb(b.getValuesList(),Bhc,a),simpleValuesList:Bb(rb(b,os,3),Dhc,a)};a&&(c.$jspbMessageInstance=b);return c}};os.prototype.toObject=function(){return Dhc(void 0,this)};var Dhc=function(a,b){if(null!=b){var c={type:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};xhc.prototype.toObject=function(){return Chc(void 0,this)};
var Chc=function(a,b){if(null!=b){var c={field:n(p(b,1)),customFieldId:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};rs.messageId="b.QueryBuilderResponse";
var ps=function(a){Z.call(this,a)};U(ps,Z);ps.prototype.toObject=function(){return Ehc(this)};var Ehc=function(a){if(null!=a)return{syntaxError:n(p(a,1))}};ps.messageId="b.SyntaxErrorResponse";
var R2=function(a){Z.call(this,a)};U(R2,Z);R2.prototype.getKindCase=function(){return pb(this,qs)};var qs=[1,2];R2.prototype.toObject=function(){var a=null!=this?{queryBuilderResponse:zhc(wl(this,rs,1,qs)),syntaxErrorResponse:Ehc(wl(this,ps,2,qs))}:void 0;return a};R2.messageId="b.QueryBuilderResponseOrError";
var S2=function(a){this.executor=a},Fhc=function(a,b){b=Am(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:R2}).then(EVa).then(function(c){var d;null!=(d=c.syntaxErrorResponse)?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(uVa)});return c})};S2.\u0275fac=function(a){return new (a||S2)(t(qI))};S2.\u0275prov=ec({token:S2,factory:S2.\u0275fac,providedIn:"root"});
var T2=function(a){var b=this;this.teamsService=a;this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new Iw;this.onEmptyQuery=new Iw;this.searchQuery$=new T.Subject;this.teamSuggestions$=this.searchQuery$.pipe(Je(300),Le(),Xe(function(c){return mM(b.teamsService,c)}),C(function(c){return IVa(c)}))};T2.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};T2.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};
T2.prototype.displayFn=function(a){return a?a.name:""};T2.prototype.ngAfterViewInit=function(){};T2.\u0275fac=function(a){return new (a||T2)(F(lM))};
T2.\u0275cmp=v({type:T2,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&Zf(wN,7);if(a&2){var c;Yf(c=ag())&&(b.autocompleteTrigger=c.first)}},inputs:{teamSelected:"teamSelected",placeholder:"placeholder",panelWidth:"panelWidth",disabled:"disabled"},outputs:{onTeamSelect:"onTeamSelect",onEmptyQuery:"onEmptyQuery"},decls:7,vars:10,consts:[[1,"team-id-select"],["id","team-id","matInput","","type","text","autocomplete","off","aria-label","Team selection",3,"placeholder","ngModel","disabled",
"matAutocomplete","click","input"],["searchInput",""],[3,"panelWidth","displayWith","optionSelected"],["auto","matAutocomplete"],["class","team-search-result",3,"value",4,"ngFor","ngForOf"],[1,"team-search-result",3,"value"],[4,"ngFor","ngForOf"],[1,"description",3,"matTooltip"],[1,"path-names",3,"matTooltip","click"],["class","path-names-separator",4,"ngIf"],[1,"path-names-separator"]],template:function(a,b){if(a&1){var c=x();G(0,"div",0)(1,"input",1,2);K("click",function(){z(c);var e=Hf(2);return A(b.search(e.value))})("input",
function(){z(c);var e=Hf(2);return A(b.search(e.value))});H();G(3,"mat-autocomplete",3,4);K("optionSelected",function(e){return b.updateSelectionOnChange(e)});O(5,HVa,6,8,"mat-option",5);Q(6,"async");H()()}if(a&2){var d=Hf(4);B(1);Ff("placeholder",b.placeholder);D("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",d);nf("aria-disabled",b.disabled);B(2);D("panelWidth",b.panelWidth)("displayWith",b.displayFn);B(2);D("ngForOf",R(6,8,b.teamSuggestions$))}},dependencies:[wx,sx,vN,wN,lB,
$E,Fg,by,hy,Fx,Lx],styles:["input[type=text][_ngcontent-%COMP%]{width:100%}.team-search-result[_ngcontent-%COMP%]{line-height:16px;border:1px solid;border-color:#dadce0;border-color:var(--divider);.path-names-separator-color:#202124;.path-names-separator-color:var(--text);.path-names-separator-font-size:.8125rem;.path-names-separator-font-weight:500}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;font-weight:500;overflow-wrap:break-word;white-space:pre-wrap}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]:first-of-type{margin-left:0}.team-search-result[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-size:.75rem;color:#5f6368;color:var(--muted);overflow:hidden;text-overflow:ellipsis}"],
changeDetection:0});var ts=function(a,b,c){this.pathIds=a;this.pathNames=b;this.id=a[a.length-1];this.name=b[b.length-1];this.description=c||"";this.teamPath=b.map(function(d,e){return new Ghc(a.slice(0,e+1),b.slice(0,e+1))})},Ghc=function(a,b){this.pathIds=a;this.pathNames=b;this.name=0<b.length?b[b.length-1]:"";this.pathNameText=b.join(" > ")};
var U2=function(a,b,c,d,e,f,h,k,q,w,y,E){BI.call(this);var I=this;this.analytics=a;this.userApi=b;this.customFieldsApi=c;this.savedSearchApi=d;this.hotlistApi=e;this.issueSearchResources=f;this.activeSession=h;this.elementRef=k;this.errorHandler=q;this.componentActions=w;this.teamsService=y;this.cdr=E;this.availableLabels=[];this.expressions=[];this.components={};this.teams={};this.hotlists={};this.savedSearches={};this.customFields={};this.userHotlists=[];this.userSavedSearches=[];this.teamUnderEdit=
this.componentUnderEdit=this.chipUnderEdit=null;this.trackByIndex=function(N){return N};this.sessionIsInternal=this.activeSession.isInternalSession();this.typeLabels=Hhc;this.globalTypeLabels=Ihc;ch(pVa(),function(N,L){"SAVED_SEARCH_ID"===L||"TEAM_ID"===L&&!I.sessionIsInternal||"PARENT_ID"===L&&!rH(I.activeSession,"enableWtdmMvpUi")||(N.name?I.availableLabels.push([L,N.name]):I.availableLabels.push([L,wua(L)]))},this);this.availableLabels.sort(function(N,L){return naa(N[1],L[1])});this.availableLabels.push(["SAVED_SEARCH_ID",
"Saved search"]);this.availableLabels.push(["CUSTOM_FIELD","Custom field"]);this.state="INIT"};U(U2,BI);U2.\u0275dir=BI.\u0275dir;U2.prototype.schedule=function(a){this.subscriptions.add(T.asyncScheduler.schedule(a))};U2.prototype.ngOnInit=function(){this.cdr.detectChanges()};
var Lhc=function(a,b){a.reset();b?Jhc(a,b):(a.expressions=Khc.map(function(c){return rVa(c)}),a.state="SUCCESS");a.userApi.getUserSavedSearches().then(function(c){a.userSavedSearches=c;c=r(a.userSavedSearches);for(var d=c.next();!d.done;d=c.next())d=d.value,a.savedSearches[d.searchId]=d;a.cdr.detectChanges()});a.userApi.getUserHotlists().then(function(c){a.userHotlists=c;c=r(a.userHotlists);for(var d=c.next();!d.done;d=c.next())d=d.value,a.hotlists[d.hotlistId]=d;a.cdr.detectChanges()});a.cdr.detectChanges()},
Jhc=function(a,b){Fhc(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",bo(a.analytics,"search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return Mhc(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=r(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state="NOT_REPRESENTABLE",bo(a.analytics,"search",
"adv-search-not-rep-error");a.cdr.detectChanges()})}).catch(function(c){a.state="SERVER_ERROR";a.errorHandler.errorHandler(null,c);a.cdr.detectChanges()})},Mhc=function(a,b){b.label&&"TEAM_ID"===b.label.field&&!a.sessionIsInternal&&(b.label.field="_TEXT_");return b.label&&"CUSTOM_FIELD"===b.label.field&&void 0!==b.label.customFieldId?Nhc(a,b.label.customFieldId).then(function(c){b.customField=c;return Ohc(a,b)}):Promise.resolve(Ohc(a,b))},Nhc=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):
a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},Ohc=function(a,b){b="ERR"===b.type?null:qVa(b);if(!b||b&&!b.isValid())return null;Phc(a,b);return b},Phc=function(a,b){if("COMPONENT_ID"===b.label.field){var c=r(b.values);for(b=c.next();!b.done;b=c.next())b=iC(b.value.value),a.components[b]||a.fetchComponent(b)}else if("TEAM_ID"===b.label.field&&a.sessionIsInternal)for(c=r(b.values),b=c.next();!b.done;b=c.next())b=b.value.value,a.teams[b]||Qhc(a,b);else if("SAVED_SEARCH_ID"===
b.label.field)for(c=r(b.values),b=c.next();!b.done;b=c.next())b=b.value,a.savedSearches[b.value]||a.savedSearchApi.get(b.value).then(function(d){a.savedSearches[d.searchId]=d});else if("HOTLIST_ID"===b.label.field)for(c=r(b.values),b=c.next();!b.done;b=c.next())b=b.value,a.hotlists[b.value]||a.hotlistApi.get(b.value).then(function(d){a.hotlists[d.hotlistId]=d})};U2.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.components[a]=c})};
var Qhc=function(a,b){mM(a.teamsService,b).pipe(C(function(c){return c.getTeamSuggestionsList()}),Ie(function(){return(0,T.of)([])}),Ye(a.destroyed$)).subscribe(function(c){0<c.length?(c=c[0],a.teams[b]={id:c.getId(),pathNames:c.getPathNamesList(),name:c.getName(),description:c.getDescription()}):a.teams[b]={id:b,pathNames:[b],name:b,description:""}})},Rhc=function(a){var b="AND"===a.expressionType?" ":" | ";return jib(a.expressions.map(function(c){return c.label?c.toString():""}),iaa).join(b)};
U2.prototype.getState=function(){return this.state};U2.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var KWa=function(a,b){var c=a.expressions[b],d=c.label;"CUSTOM_FIELD"===d.field?c.isPendingCustomField=!0:(a.expressions[b]=rVa(d.field),IWa(a,a.expressions[b]));a.cdr.detectChanges()},IWa=function(a,b){var c=b.getWidgetType();"component"===c||"savedsearch"===c||"hotlist"===c||"text"===c||"team"===c?ws(a,b):"date"===c&&(b.dateFrom||(b.dateFrom=phc(new Ji)),b.dateTo||(b.dateTo=phc(new Ji)))};U2.prototype.removeExpression=function(a){wa(this.expressions,a);this.cdr.detectChanges()};
var ws=function(a,b){var c={value:""};b.values.push(c);"COMPONENT_ID"===b.label.field?YVa(a,c):"TEAM_ID"===b.label.field?eWa(a,c):ys(a,c);a.cdr.detectChanges()},vs=function(a,b,c){wa(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()},ys=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},YVa=function(a,b){ys(a,b);a.componentUnderEdit=b.value?Fi(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},
eWa=function(a,b){ys(a,b);a.teamUnderEdit=b.value?Fi(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},xs=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},gWa=function(a,b){bo(a.analytics,go.SEARCH,"builder-autocomplete-select","team",isNaN(Number(b.id))?0:Number(b.id));a.chipUnderEdit.value=b.id;a.teams[b.id]=b;a.teamUnderEdit=null;xs(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
U2.prototype.getTypeLabel=function(a,b){var c,d;return(null==(c=this.typeLabels[a.label.field])?void 0:c[b])||(null==(d=this.typeLabels[a.getWidgetType()])?void 0:d[b])||this.typeLabels.DEFAULT[b]};U2.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||a:""};
var Ihc={AND:"Match all (AND)",OR:"Match any (OR)"},Hhc={DEFAULT:{AND:"All of",OR:"Any of",NOR:"Not all of",NAND:"None of",LT:"Before",GT:"After",LE:"On or before",GE:"On or after",DURATION:"Within (days)",NDURATION:"Not within (days)",RANGE:"Between",NRANGE:"Not between"},bool:{OR:"Is true",NAND:"Is false"},boolwithall:{OR:"Is true",NAND:"Is false",AND:"Include all"},text:{OR:"Matches any",NAND:"Doesn't match",AND:"Matches all"},date:{OR:"On"},number:{LT:"Less than",GT:"Greater than",LE:"Less or equal",
GE:"Greater or equal"}},Khc=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];U2.\u0275fac=function(a){return new (a||U2)(F(SM),F(PJ),F(yZ),F(ON),F(pL),F(S2),F(pH),F(nd),F(SK),F(AT),F(lM),F(uI,2))};
U2.\u0275cmp=v({type:U2,selectors:[["b-advanced-search"]],features:[Lf([uI]),gf],decls:1,vars:1,consts:[["class","bv2-adv-search",4,"ngIf"],[1,"bv2-adv-search"],["appearance","outline",4,"ngIf"],["class","bv2-adv-search-rule",4,"ngFor","ngForOf","ngForTrackBy"],[1,"bv2-adv-search-rule","bv2-adv-search-rule-new"],["mat-stroked-button","","type","button",1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",3,"matMenuTriggerFor"],[1,"mat-select-panel"],["newExpressionMenu","matMenu"],["mat-menu-item",
"","type","button",3,"click",4,"ngFor","ngForOf"],["appearance","outline"],[1,"bv2-adv-search-join-type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"bv2-adv-search-rule"],[1,"bv2-adv-search-rule-title"],[1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",3,"ngModel","ngModelChange","selectionChange"],["aria-label","Delete search rule",1,"bv2-remove-icon","keep-focus-ring","bv2-adv-search-rule-delete-btn",3,"click"],["class","bv2-adv-search-rule-content",
4,"ngIf"],["class","bv2-adv-search-custom-field-label",4,"ngIf"],["class","bv2-adv-search-custom-field-selection",4,"ngIf"],[1,"bv2-adv-search-rule-op","bv2-adv-search-rule-jfk-select",3,"ngModel","ngModelChange"],[1,"bv2-adv-search-rule-content"],["class","bv2-adv-search-enum-rule",4,"ngIf"],[4,"ngIf"],["class","bv2-adv-search-chip-container",4,"ngIf"],[1,"bv2-adv-search-enum-rule"],["class","bv2-adv-search-enum-item",4,"ngFor","ngForOf"],[1,"bv2-adv-search-enum-item"],[3,"checked","label","change"],
["type","text","aria-label","Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"ngModel","bContactAutocomplete","ngModelChange"],["type","text","aria-label","Add one or more values, separated by comma","placeholder","One or more values, comma-separated",3,"ngModel","ngModelChange"],["type","text","placeholder","One or more IDs, comma-separated - e.g., 1,2,3",3,"ngModel","ngModelChange"],["type","text","aria-label","Add the condition",3,"ngModel",
"ngModelChange"],[1,"bv2-adv-search-chip-container"],["class","bv2-adv-search-chip bv2-adv-search-chip-text",4,"ngFor","ngForOf"],["mat-stroked-button","","class","bv2-adv-search-chip-add-btn",3,"click",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-chip-text"],[1,"bv2-adv-search-chip-content"],["aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],["mat-stroked-button","",1,"bv2-adv-search-chip-add-btn",3,"click"],[4,"ngFor","ngForOf"],["class","bv2-adv-search-chip bv2-adv-search-component-chip",
4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-component-chip"],["class","bv2-adv-search-chip-content bv2-adv-search-chip-content-btn",3,"title","click",4,"ngIf"],["class","bv2-adv-search-chip-content",4,"ngIf"],["role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"title","click"],[3,"svgIcon"],["aria-label","Remove the value",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-btn",3,"title","click"],
[1,"bv2-adv-search-chip-content-text"],[1,"bv2-search-component-picker",3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["class","bv2-adv-search-chip bv2-adv-search-team-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-team-chip"],["role","switch","aria-label","Include subteams",1,"unstyled-button",3,"title","click"],[1,"bv2-search-team-picker",3,"teamSelected","onTeamSelect"],[3,"boundValue","isRequired","boundValueChange"],["type","text","maxlength","3",1,"bv2-duration-field",
3,"ngModel","ngModelChange"],["class","bv2-adv-search-chip bv2-adv-search-bookmark-item-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-bookmark-item-chip"],["appearance","outline","class","bv2-adv-search-bookmark-item-form-field",4,"ngIf"],["appearance","outline",1,"bv2-adv-search-bookmark-item-form-field"],["placeholder","Select hotlist",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModel","ngModelChange","selectionChange"],["class","bv2-adv-search-chip-content  bv2-adv-search-chip-content-btn",
3,"title","click",4,"ngIf"],["placeholder","Select search",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModel","ngModelChange","selectionChange"],[1,"bv2-adv-search-custom-field-label"],[1,"bv2-adv-search-custom-field-selection"],[3,"fieldSelected"],["mat-menu-item","","type","button",3,"click"]],template:function(a,b){a&1&&O(0,NWa,9,6,"div",0);a&2&&D("ngIf","SUCCESS"===b.getState())},dependencies:[wx,sx,XU,HV,Fg,by,ty,hy,bY,pB,XB,LE,QE,OE,TE,YS,lB,vQ,T2,EV,Jx,DM,
EM],styles:['[_nghost-%COMP%]     .mat-form-field-infix{width:unset;min-width:105px;border:0}[_nghost-%COMP%]     .mat-select-value{max-width:unset;color:#5f6368;color:var(--muted);font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;letter-spacing:0.0107142857em;font-variant-ligatures:none}[_nghost-%COMP%]     mat-select .mat-select-arrow-wrapper{transform:unset}[_nghost-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0;padding:0}[_nghost-%COMP%]     .bv2-custom-field-picker{width:unset}.mat-form-field[_ngcontent-%COMP%]{margin-right:5px;text-align:center}.bv2-adv-search-rule-type[_ngcontent-%COMP%]{min-width:105px}.bv2-adv-search-bookmark-item-chip[_ngcontent-%COMP%]{align-items:baseline}.bv2-adv-search-bookmark-item-form-field[_ngcontent-%COMP%]{text-align:left;width:100%}']});
var V2=function(){};V2.\u0275fac=function(a){return new (a||V2)};V2.\u0275mod=rc({type:V2});V2.\u0275inj=fc({imports:[[Mx,yN,PO,bH,wy]]});
var W2=function(){};W2.\u0275fac=function(a){return new (a||W2)};W2.\u0275mod=rc({type:W2});W2.\u0275inj=fc({imports:[[Mx,YU,IV,wy,kY,jG,YB,dF,$B,UE,ZS,wQ,MM,V2,GV]]});
var Shc=function(a){Z.call(this,a)};U(Shc,Z);g=Shc.prototype;g.getExperimentId=function(){return dj(this,1)};g.getState=function(){return X(this,2,0)};g.getTitle=function(){return V(this,4)};g.setTitle=function(a){return l(this,4,a)};g.getDescription=function(){return V(this,5)};g.setDescription=function(a){return l(this,5,a)};g.toObject=function(){return Thc(void 0,this)};
var Thc=function(a,b){if(null!=b){var c={experimentId:n(p(b,1)),state:n(p(b,2)),userGroup:n(p(b,3)),title:n(p(b,4)),description:n(p(b,5)),learnMoreLink:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}};
var Vhc=function(a){Z.call(this,a,-1,Uhc)};U(Vhc,Z);var Uhc=[1];Vhc.prototype.toObject=function(){var a=null!=this?{featuresList:Bb(rb(this,Shc,1),Thc)}:void 0;return a};Vhc.messageId="b.ListBeapFeaturesResponse";
var X2=function(a){this.executor=a};X2.prototype.fetch=function(){return this.executor.get({url:"action/experiments",responseConstructor:Vhc}).pipe(C(function(a){return rb(a,Shc,1)}))};X2.\u0275fac=function(a){return new (a||X2)(t(pI))};X2.\u0275prov=ec({token:X2,factory:X2.\u0275fac,providedIn:"root"});
var Y2=function(a){ZJ.call(this,{freshUntil:Infinity,ancientAfter:Infinity});this.beapApi=a;this.recordType="beapFeature";this.idForRecord=function(b){return""+b.getExperimentId()}};U(Y2,ZJ);Y2.prototype.fetchAll=function(){return this.beapApi.fetch().pipe(C(function(a){return{results:a}}))};Y2.\u0275fac=function(a){return new (a||Y2)(t(X2))};Y2.\u0275prov=ec({token:Y2,factory:Y2.\u0275fac,providedIn:"root"});
var Z2=function(a){this.beapFridge=a};Z2.prototype.getFeature=function(a){return Whc(this,"ALL").pipe(C(function(b){return b.find(function(c){return c.getExperimentId()===a})}))};var Whc=function(a,b){b=void 0===b?"ALL":b;var c="ALL"===b,d="TEAM_FOOD"===b?1:2;return FGb(a.beapFridge,{}).pipe(C(function(e){return e.results.filter(function(f){return c?!0:X(f,3,0)===d})}))};Z2.prototype.refresh=function(){HGb(this.beapFridge,{})};Z2.\u0275fac=function(a){return new (a||Z2)(t(Y2))};
Z2.\u0275prov=ec({token:Z2,factory:Z2.\u0275fac,providedIn:"root"});
var a3=function(){};a3.\u0275fac=function(a){return new (a||a3)};
a3.\u0275cmp=v({type:a3,selectors:[["b-feature-stage-label"]],inputs:{featureStage:"featureStage"},decls:3,vars:3,consts:[[3,"ngSwitch"],["class","badged teamfood",4,"ngSwitchCase"],["class","badged early-access",4,"ngSwitchCase"],[1,"badged","teamfood"],[1,"badged","early-access"]],template:function(a,b){a&1&&(xf(0,0),O(1,OWa,1,0,"div",1),O(2,PWa,1,0,"div",2),yf());a&2&&(D("ngSwitch",b.featureStage),B(1),D("ngSwitchCase","TEAM_FOOD"),B(1),D("ngSwitchCase","EARLY_ACCESS"))},dependencies:[yx,zx],styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});
var b3=function(a){var b=this;this.beapService=a;this.experimentId$=new T.ReplaySubject(1);this.featureState$=this.experimentId$.pipe(Xe(function(c){return b.beapService.getFeature(c)}));this.featureStage$=this.featureState$.pipe(C(function(c){if(!c)return"UNKNOWN";c=X(c,3,0);return 1===c?"TEAM_FOOD":2===c?"EARLY_ACCESS":"UNKNOWN"}))};b3.prototype.ngOnChanges=function(){this.experimentId$.next(this.experimentId)};b3.prototype.ngOnInit=function(){};b3.\u0275fac=function(a){return new (a||b3)(F(Z2))};
b3.\u0275cmp=v({type:b3,selectors:[["b-app-beap-state-indicator"]],inputs:{experimentId:"experimentId"},features:[Ac],decls:2,vars:3,consts:[[3,"featureStage"]],template:function(a,b){a&1&&(J(0,"b-feature-stage-label",0),Q(1,"async"));if(a&2){var c;D("featureStage",null!==(c=R(1,1,b.featureStage$))&&void 0!==c?c:void 0)}},dependencies:[a3,Fx],encapsulation:2});
var c3=function(){};c3.\u0275fac=function(a){return new (a||c3)};c3.\u0275mod=rc({type:c3});c3.\u0275inj=fc({imports:[[Mx]]});
var d3=function(){};d3.\u0275fac=function(a){return new (a||d3)};d3.\u0275mod=rc({type:d3});d3.\u0275inj=fc({imports:[[Mx,c3]]});
var e3=function(a){this.domSafe=a;this.buttonLabel="";this.alertMode=this.menuMode=!1},QWa=function(a){wP(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};e3.\u0275fac=function(a){return new (a||e3)(F(vP))};
e3.\u0275cmp=v({type:e3,selectors:[["b-whats-new-button"]],inputs:{buttonLabel:"buttonLabel",menuMode:"menuMode",alertMode:"alertMode"},decls:2,vars:2,consts:[["mat-icon-button","","class","gmat-button","aria-label","Open release notes in a new tab",3,"matTooltip","click",4,"ngIf"],["mat-menu-item","","aria-label","Open release notes in a new tab",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Open release notes in a new tab",1,"gmat-button",3,"matTooltip","click"],[3,"svgIcon"],["mat-menu-item",
"","aria-label","Open release notes in a new tab",3,"click"]],template:function(a,b){a&1&&(O(0,RWa,3,3,"button",0),O(1,SWa,2,1,"button",1));a&2&&(D("ngIf",!b.menuMode),B(1),D("ngIf",b.menuMode))},dependencies:[sx,LE,pB,OE,$E],styles:["[_nghost-%COMP%] { display: flex; }"]});
var f3=function(a,b,c){BI.call(this);this.session=a;this.appsEvents=b;this.prefsManager=c;this.density="COMFORTABLE";this.enableWhatsNewDialog=rH(a,"enableWhatsNewDialog");this.enableBeap=rH(a,"enableBeap")};U(f3,BI);f3.\u0275dir=BI.\u0275dir;g=f3.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(Ye(this.destroyed$)).subscribe(function(b){if(null==b?0:b.themePreferences)a.density=b.themePreferences.density})};g.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};
g.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};g.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};g.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};f3.\u0275fac=function(a){return new (a||f3)(F(pH),F(WK),F(zI))};
f3.\u0275cmp=v({type:f3,selectors:[["b-app-settings-menu"]],features:[gf],decls:28,vars:13,consts:[["mat-icon-button","","matTooltip","Settings","aria-label","Settings",1,"gmat-button",3,"disabled","matMenuTriggerFor"],["svgIcon","settings-outline",1,"icon-m"],["settingsMenu","matMenu"],[1,"b-menu-header"],["mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to comfortable",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],["mat-menu-item","","role",
"menuitemcheckbox","aria-label","set display density to cozy",3,"click"],["mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to compact",3,"click"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"internalOnly"],["mat-menu-item","","href","/settings/early-access",4,"ngIf"],[4,"ngIf"],["mat-menu-item","","href","/settings/early-access"],["featureStage","TEAM_FOOD","matTooltip","Teamfood"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,b){a&
1&&(G(0,"button",0),J(1,"mat-icon",1),H(),G(2,"mat-menu",null,2)(4,"div",3),P(5,"Display Density"),H(),G(6,"button",4),K("click",function(){return b.setDensity("COMFORTABLE")}),G(7,"span",5),J(8,"mat-icon",6),H(),P(9," Comfortable "),H(),G(10,"button",7),K("click",function(){return b.setDensity("COZY")}),G(11,"span",5),J(12,"mat-icon",6),H(),P(13," Cozy "),H(),G(14,"button",8),K("click",function(){return b.setDensity("COMPACT")}),G(15,"span",5),J(16,"mat-icon",6),H(),P(17," Compact "),H(),J(18,"mat-divider"),
G(19,"button",9),K("click",function(d){return b.browseComponents(d)}),P(20,"Browse components"),H(),G(21,"button",9),K("click",function(d){return b.manageHotlists(d)}),P(22,"Manage hotlists"),H(),O(23,TWa,2,0,"button",10),G(24,"button",9),K("click",function(d){b.appsEvents.topBarEvents.openSettings.next({newTab:d.ctrlKey||d.metaKey})}),P(25,"Settings"),H(),O(26,UWa,3,0,"a",11),O(27,VWa,3,1,"ng-container",12),H());if(a&2){var c=Hf(3);D("disabled",b.session.isAnonymous())("matMenuTriggerFor",c);B(6);
sf("b-menu-item-checked","COMFORTABLE"===b.density);nf("aria-checked","COMFORTABLE"===b.density);B(4);sf("b-menu-item-checked","COZY"===b.density);nf("aria-checked","COZY"===b.density);B(4);sf("b-menu-item-checked","COMPACT"===b.density);nf("aria-checked","COMPACT"===b.density);B(12);D("ngIf",b.enableBeap);B(1);D("ngIf",b.enableWhatsNewDialog)}},dependencies:[sx,QE,OE,TE,pB,$H,$E,LE,e3,sP,a3],encapsulation:2,changeDetection:0});
var g3=function(a){this.theme=a;this.isDark=!1;this.iconName="brightness-4"};g3.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();Xhc(this)};var Xhc=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"brightness-4"};g3.\u0275fac=function(a){return new (a||g3)(F(UO))};
g3.\u0275cmp=v({type:g3,selectors:[["theme-change-btn"]],decls:2,vars:1,consts:[["mat-icon-button","","matTooltip","Change theme","aria-label","Change the application's visual theme",3,"click"],[3,"svgIcon"]],template:function(a,b){a&1&&(G(0,"button",0),K("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&oE(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());IMb(c,!c.clientDarkmodeSubject.getValue());Xhc(b)}),
J(1,"mat-icon",1),H());a&2&&(B(1),D("svgIcon",b.iconName))},dependencies:[pB,LE,$E],encapsulation:2});
var h3=function(a,b,c,d,e,f,h){this.session=a;this.userFeedback=b;this.domSafe=c;this.docLinks=d;this.userPreferencesManager=e;this.analytics=f;this.router=h;this.isNewVersion=bj(this.session.getUserPreferences());this.url$=this.router.events.pipe(De(function(k){return k instanceof FI}),C(function(k){return k.url}),We(window.location.pathname));this.showNewVersionButton$=this.url$.pipe(C(function(k){return nna()?!1:!!/issues\/\d+/i.test(k)}));this.enableWhatsNewDialog=rH(a,"enableWhatsNewDialog");
this.majorReleaseNotesUpdated=rH(a,"majorReleaseNotesUpdated")};
h3.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return me(function(e){if(1==e.nextAddress)return c=b.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.value,ne(e,(0,T.firstValueFrom)(b.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";bo(b.analytics,"prefs","change",d);window.location.reload();oe(e)})};
h3.\u0275fac=function(a){return new (a||h3)(F(pH),F(WO),F(vP),F(tP),F(zI),F(SM),F(Hk))};
h3.\u0275cmp=v({type:h3,selectors:[["b-app-actions"]],decls:8,vars:4,consts:[[4,"ngIf"],["id","whatsNewButton",3,"alertMode",4,"ngIf"],["mat-icon-button","","class","gmat-button feedback-button","matTooltip","Send feedback","aria-label","send feedback",3,"click",4,"internalOnly"],["mat-icon-button","","matTooltip","Help","aria-label","help",1,"gmat-button",3,"click"],["svgIcon","help-outline"],["class","padded new-feature-link nowrap","href","",3,"click",4,"ngIf"],["href","",1,"padded","new-feature-link",
"nowrap",3,"click"],["id","whatsNewButton",3,"alertMode"],["mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"gmat-button","feedback-button",3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(O(0,YWa,3,2,"ng-container",0),Q(1,"async"),J(2,"theme-change-btn"),O(3,ZWa,1,1,"b-whats-new-button",1),O(4,$Wa,2,0,"button",2),G(5,"button",3),K("click",function(){var c=b.domSafe,d=c.openInNewTab;var e=b.docLinks;e=e.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide":
e.baseDocumentationUrl;d.call(c,e)}),J(6,"mat-icon",4),H(),J(7,"b-app-settings-menu"));a&2&&(D("ngIf",R(1,2,b.showNewVersionButton$)),B(3),D("ngIf",b.enableWhatsNewDialog))},dependencies:[sx,pB,$E,LE,e3,sP,g3,f3,Fx],styles:["[_nghost-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap;color:#5f6368;color:var(--icon)}.new-feature-link[_ngcontent-%COMP%]{color:#3c4043;color:var(--c800)}\n/*# sourceMappingURL=app_actions.css.map */"],changeDetection:0});
var i3=function(a){this.currentTracker=a;this.isTrackerExpanded=!1};i3.\u0275fac=function(a){return new (a||i3)(F(xM))};
i3.\u0275cmp=v({type:i3,selectors:[["tracker-switcher"]],inputs:{associatedTrackers:"associatedTrackers"},decls:7,vars:3,consts:[["mat-icon-button","","matTooltip","Tracker menu",1,"tracker-menu-button",3,"matMenuTriggerFor","menuOpened","menuClosed"],["svgIcon","arrow-dropdown"],["xPosition","before"],["trackerMenu","matMenu"],[1,"tracker-menu-label"],["mat-menu-item","","role","menuitemcheckbox",3,"value","click",4,"ngFor","ngForOf"],["mat-menu-item","","role","menuitemcheckbox",3,"value","click"],
["alt","Tracker Logo Image",1,"tracker-menu-item-logo",3,"src"],[1,"tracker-menu-item-name"]],template:function(a,b){a&1&&(G(0,"button",0),K("menuOpened",function(){return b.isTrackerExpanded=!0})("menuClosed",function(){return b.isTrackerExpanded=!1}),J(1,"mat-icon",1),H(),G(2,"mat-menu",2,3)(4,"span",4),P(5,"Select a tracker"),H(),O(6,aXa,4,4,"button",5),H());if(a&2){var c=Hf(3);D("matMenuTriggerFor",c);nf("aria-label",b.isTrackerExpanded?"Expanded tracker menu":"Collapsed tracker menu");B(6);D("ngForOf",
b.associatedTrackers)}},dependencies:[wx,pB,LE,QE,OE,TE,$E],styles:[".tracker-menu-button[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx)}mat-icon[_ngcontent-%COMP%]{line-height:0}.tracker-menu-label[_ngcontent-%COMP%]{display:inline-block;padding:8px}.mat-menu-item[_ngcontent-%COMP%]{max-width:none;height:auto;overflow:visible;padding:8px 25px}.mat-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin:0px}.tracker-menu-item-logo[_ngcontent-%COMP%]{height:40px;vertical-align:middle;width:40px;margin-right:12px}.tracker-menu-item-name[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx);font-size:13px;white-space:nowrap}\n/*# sourceMappingURL=tracker_switcher.css.map */"],
changeDetection:0});
var cXa=function(a){return[a]},dXa=function(){return[]},j3=function(a){this.activeSession=a;this.clickMenu=new Iw;this.showMenu=!1;this.clickLogo=new Iw;this.chips=[]};j3.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};j3.\u0275fac=function(a){return new (a||j3)(F(pH))};
j3.\u0275cmp=v({type:j3,selectors:[["app-logo"]],inputs:{imgSrc:"imgSrc",imgSrcDark:"imgSrcDark",href:"href",name:"name",chips:"chips"},outputs:{clickMenu:"clickMenu",clickLogo:"clickLogo"},ngContentSelectors:["*"],decls:8,vars:6,consts:[["mat-icon-button","","class","menu","aria-label","Expand/Collapse Navigation",3,"click",4,"ngIf"],[3,"click"],["alt","App Logo Image",1,"logo","light",3,"src"],["alt","App Logo Image",1,"logo","dark",3,"src"],["class","b-chip",3,"ngClass",4,"ngFor","ngForOf"],["mat-icon-button",
"","aria-label","Expand/Collapse Navigation",1,"menu",3,"click"],["svgIcon","menu-18px"],[1,"b-chip",3,"ngClass"]],template:function(a,b){a&1&&(Cf(),O(0,bXa,2,0,"button",0),G(1,"a",1),K("click",function(){return b.clickLogo.emit()}),J(2,"img",2)(3,"img",3),G(4,"h1"),P(5),H()(),Df(6),O(7,eXa,2,5,"output",4));a&2&&(D("ngIf",b.showMenu),B(1),nf("href",b.href?b.href:void 0,Kd),B(1),D("src",b.imgSrc,Kd),B(1),D("src",b.imgSrcDark||b.imgSrc,Kd),B(2),Jf(b.name),B(2),D("ngForOf",b.chips))},dependencies:[vx,
wx,sx,pB,LE],styles:['[_nghost-%COMP%]{box-sizing:border-box;height:56px;padding:0 16px;min-width:300px}[_nghost-%COMP%], a[_ngcontent-%COMP%]{display:flex;align-items:center}.menu[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx);margin-right:12px}.logo[_ngcontent-%COMP%]{width:30px;height:30px;padding:3px;margin-right:12px}h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;color:#3c4043;color:var(--gfx);font-size:22px;font-weight:normal;display:inline-block;margin:0;padding:0;margin-right:8px;white-space:nowrap}.dark-mode   [_nghost-%COMP%]     .logo{filter:brightness(1.1) contrast(1.3)}.logo.dark[_ngcontent-%COMP%]{display:none}.dark-mode   [_nghost-%COMP%]     .logo.light{display:none}.dark-mode   [_nghost-%COMP%]     .logo.dark{display:inline-block}\n/*# sourceMappingURL=app_logo.css.map */'],
changeDetection:0});
var Yhc=function(){return[]},k3=function(a){this.events=a;this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};k3.prototype.ngOnInit=function(){var a="QA"===this.environmentType?"INTERNAL"===this.frontendAccessMode||"PARTNER"===this.frontendAccessMode?"QA":"sandbox":"NIGHTLY"===this.environmentType?"nightly":"";a&&this.chips.push({name:a,color:"purple"})};k3.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};
k3.prototype.getAppName=function(){if(this.tracker)return this.tracker.name;switch(this.frontendAccessMode){case "INTERNAL":return"Buganizer";case "PARTNER":return"Partner IssueTracker";case "PUBLIC":return"IssueTracker";default:bh(this.frontendAccessMode,"unknown frontend access mode.")}};
ki.Object.defineProperties(k3.prototype,{useNewLogo:{configurable:!0,enumerable:!0,get:function(){return"INTERNAL"===this.frontendAccessMode}},imgSrc:{configurable:!0,enumerable:!0,get:function(){var a=this.useNewLogo?"https://www.gstatic.com/buganizer/img/v3/logo_light.svg":"https://www.gstatic.com/buganizer/img/v0/logo.svg",b,c;return(null==(b=this.tracker)?void 0:null==(c=b.branding)?void 0:c.logoUrl)||a}},imgSrcDark:{configurable:!0,enumerable:!0,get:function(){var a,b;return(null==(a=this.tracker)?
void 0:null==(b=a.branding)?void 0:b.logoUrl)||"https://www.gstatic.com/buganizer/img/v3/logo_dark.svg"}}});k3.\u0275fac=function(a){return new (a||k3)(F(WK))};
k3.\u0275cmp=v({type:k3,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",associatedTrackers:"associatedTrackers",href:"href"},features:[Ac],decls:2,vars:7,consts:[[3,"name","href","chips","imgSrc","imgSrcDark","clickMenu"],[3,"associatedTrackers",4,"ngIf"],[3,"associatedTrackers"]],template:function(a,b){a&1&&(G(0,"app-logo",0),K("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),O(1,fXa,1,1,"tracker-switcher",
1),H());if(a&2){var c;D("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark);B(1);D("ngIf",0<(null!==(c=b.associatedTrackers)&&void 0!==c?c:Mf(6,Yhc)).length)}},dependencies:[sx,j3,i3],encapsulation:2,changeDetection:0});
var l3=function(){this.isActive=!1;this.optionClicked=new Iw};l3.prototype.ngOnInit=function(){};l3.prototype.onClick=function(){this.optionClicked.emit(this.index)};l3.\u0275fac=function(a){return new (a||l3)};
l3.\u0275cmp=v({type:l3,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&K("click",function(){return b.onClick()});a&2&&sf("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(Cf(),G(0,"div",0),Df(1),H())},styles:["[_nghost-%COMP%]{cursor:pointer;display:flex;position:relative}.active[_nghost-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}[_nghost-%COMP%]:hover:not(.active){background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden;padding:8px 16px 8px 36px;text-overflow:ellipsis}.mat-ripple[_ngcontent-%COMP%]{pointer-events:none;position:absolute;height:100%;width:100%}\n/*# sourceMappingURL=app_search_auto_complete_option.css.map */"],
changeDetection:0});
var m3=function(a,b){this.ref=a;this.hostElement=b;this.items=[];this.header=null;this.itemSelected=new Iw;this.activeItemChanged=new Iw;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component team".split(" ")};m3.prototype.ngOnChanges=function(a){a.items&&(0<this.items.length?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};m3.prototype.ngAfterViewInit=function(){};var DXa=function(a){var b=M(3);KXa(a);b.itemSelected.emit(a)};
m3.prototype.setNextItemActive=function(){0<this.items.length&&null!=this.activeItemIndex&&(this.activeItemIndex=(this.activeItemIndex+1)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),Zhc(this))};
m3.prototype.setPreviousItemActive=function(){0<this.items.length&&null!=this.activeItemIndex&&(this.activeItemIndex=(this.activeItemIndex-1+this.items.length)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),Zhc(this))};var $hc=function(a){null!=a.activeItemIndex&&a.itemSelected.emit(a.items[a.activeItemIndex])};m3.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var aic=function(a){if(null!=a.activeItemIndex&&a.itemElements){var b,c;return null!=(c=null==(b=a.itemElements.get(a.activeItemIndex))?void 0:b.nativeElement.id)?c:void 0}},Zhc=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&FWb(b.nativeElement,a.hostElement.nativeElement)},KXa=function(a){Sn(go.SEARCH,"autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};m3.\u0275fac=function(a){return new (a||m3)(F(uI,2),F(nd))};
m3.\u0275cmp=v({type:m3,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&Zf(l3,5,nd);if(a&2){var c;Yf(c=ag())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},features:[Lf([uI]),Ac],decls:3,vars:2,consts:[["class","header gmat-caption",4,"ngIf"],"role;listbox;aria-label;Search autocomplete list;id;b-search-box-autocomplete".split(";"),["role","option",3,"index","isActive","optionClicked",
4,"ngFor","ngForOf"],[1,"header","gmat-caption"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["noHotlistSelected",""],["noSavedSearchSelected",""],["noComponentSelected",""],[3,"accessLevel"],["noTeamSelected",""],["noSelectedCustomField",""],["role","option",3,"index","isActive","optionClicked"],[1,"monospaced","item-description"],[1,"item-description"],[4,"ngFor","ngForOf"],["role","button",3,"title","click"]],template:function(a,b){a&1&&(O(0,xXa,6,5,"div",0),G(1,"div",1),O(2,LXa,8,10,"b-app-search-auto-complete-option",
2),H());a&2&&(D("ngIf",b.header&&b.header.type),B(2),D("ngForOf",b.items))},dependencies:[wx,sx,TS,l3,Gx],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;max-height:inherit;overflow-y:auto}.header[_ngcontent-%COMP%]{padding:4px 16px 4px 36px}.item-description[_ngcontent-%COMP%]{display:block;margin-top:5px}b-access-level-indicator[_ngcontent-%COMP%]{margin:0 8px}span[role=button][_ngcontent-%COMP%]{cursor:pointer}span[role=button][_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=app_search_auto_complete_list.css.map */"],
changeDetection:0});
var n3=function(){this.searchTriggered$=new T.Subject;this.queryState$=new T.BehaviorSubject({query:"",cursorPosition:void 0,setViaInteraction:!1})};n3.\u0275fac=function(a){return new (a||n3)};n3.\u0275prov=ec({token:n3,factory:n3.\u0275fac,providedIn:"root"});
var bic=["box"],cic=["initialFocus"],dic=["finalFocus"],o3=function(a,b){this.documentationLinks=a;this.appSearchState=b;this.placeholder="";this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new Iw;this.onAdvancedSearchClose=new Iw;this.onAdvancedSearchSubmit=new Iw;this.onSaveSearch=new Iw;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/guides/search-editor";this.destroyed$=new T.Subject;this.currentQuery$=
this.appSearchState.queryState$.pipe(C(function(c){return c.query}));this.autoCompleteItemSelected$=new T.Subject};
o3.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe($e(this.currentQuery$),Ye(this.destroyed$)).subscribe(function(b){var c=r(b);b=c.next().value;c=c.next().value;b=b.completionCfg;a.appSearchState.queryState$.next({query:c.slice(0,b.startIdx)+b.completionValue+c.slice(b.endIdx),cursorPosition:null!=b.cursorIdx?b.cursorIdx:null==b.startIdx?b.completionValue.length:b.startIdx+b.completionValue.length,setViaInteraction:!1});a.inputBox.nativeElement.focus()})};
o3.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(De(function(b){return!b.setViaInteraction}),Ye(this.destroyed$)).subscribe(function(b){var c=b.cursorPosition;a.inputBox.nativeElement.value=b.query;null!=c&&(b=a.inputBox.nativeElement,dWb(b)&&(b.selectionStart=c,b.selectionEnd=c))})};o3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};o3.prototype.submitSearch=function(){this.appSearchState.searchTriggered$.next()};
var eic=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();a.appSearchState.queryState$.next({query:b,cursorPosition:a.getCursorPosition(),setViaInteraction:!0})};
o3.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!p3(this))return;fic(this);break;case "ArrowUp":if(!p3(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!p3(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!p3(this)){eic(this,this.inputBox.nativeElement.value);return}$hc(this.acList);break;case "ArrowLeft":eic(this,this.inputBox.nativeElement.value);return;case "Enter":p3(this)?null!=this.acList.activeItemIndex?$hc(this.acList):
this.submitSearch():this.submitSearch();break;default:return}a.preventDefault();a.stopPropagation()};o3.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();gic(this)};o3.prototype.getCursorPosition=function(){var a=eWb(this.inputBox.nativeElement,!0)[0];if(a===eWb(this.inputBox.nativeElement,!1)[1])return a};
var fic=function(a){"auto_complete"===a.dropdownStatus&&(a.dropdownStatus="closed")},gic=function(a){"advanced_search"===a.dropdownStatus&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},p3=function(a){return"auto_complete"===a.dropdownStatus&&0<a.autoCompleteItems.length},hic=function(a){return"auto_complete"===a.dropdownStatus&&null!=a.autoCompleteHeader},iic=function(a){return"advanced_search"===a.dropdownStatus};
o3.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",gic(this))};var jic=function(a,b){b.shiftKey&&"Tab"===b.key&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},kic=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};o3.\u0275fac=function(a){return new (a||o3)(F(tP),F(n3))};
o3.\u0275cmp=v({type:o3,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(Zf(m3,7),Zf(bic,5),Zf(cic,7,nd),Zf(dic,7));if(a&2){var c;Yf(c=ag())&&(b.acList=c.first);Yf(c=ag())&&(b.inputBox=c.first);Yf(c=ag())&&(b.advancedSearchInitialFocus=c.first);Yf(c=ag())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",onAdvancedSearchClose:"onAdvancedSearchClose",
onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},ngContentSelectors:["*"],decls:28,vars:18,consts:[[1,"search-form-container",3,"clickOutside"],[1,"search-box-container"],["mat-icon-button","","aria-label","Search","matTooltip","Search",3,"click"],["svgIcon","search",1,"icon-m"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","6","aria-label","Search issues","role","combobox","aria-autocomplete","list","aria-haspopup",
"true","aria-owns","b-search-box-autocomplete",1,"search-box",3,"placeholder","keydown","input","click","focus"],["box",""],["mat-icon-button","","aria-label","Show search options","matTooltip","Show search options",3,"click"],["svgIcon","arrow-dropdown",1,"icon-m"],[1,"search-dropdown"],[3,"items","header","itemSelected"],[1,"advanced-search"],["align","right",1,"advanced-search-header"],["mat-icon-button","","aria-label","Close advanced search","matTooltip","Close advanced search",1,"gmat-button",
3,"keydown","click"],["initialFocus",""],["svgIcon","close",1,"icon-s"],["cdkScrollable","",1,"advanced-search-content"],[1,"advanced-search-footer"],["mat-flat-button","",1,"gmat-button","medium",3,"click"],["target","_blank",1,"keep-underline","search-help-link"],["svgIcon","pop-out",1,"icon-xs"],[1,"save-search-container"],["type","text","aria-label","Enter the name for saving this search.","placeholder","Save search as",3,"ngModel","ngModelChange","keydown.Tab","keydown.enter"],["finalFocus",
""],["mat-icon-button","","aria-label","Save search","matTooltip","Save search",1,"gmat-button",3,"disabled","click"],["svgIcon","saved-search-18px",1,"icon-s"]],template:function(a,b){if(a&1){var c=x();Cf();G(0,"div",0);K("clickOutside",function(){fic(b)});G(1,"div",1)(2,"button",2);K("click",function(){return b.submitSearch()});J(3,"mat-icon",3);H();G(4,"textarea",4,5);K("keydown",function(d){return b.handleKeydown(d)})("input",function(){z(c);var d=Hf(5);return A(eic(b,d.value))})("click",function(){z(c);
var d=Hf(5);return A(eic(b,d.value))})("focus",function(){b.dropdownStatus="auto_complete"});H();G(6,"button",6);K("click",function(){b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit()});J(7,"mat-icon",7);H()();G(8,"aside",8)(9,"b-app-search-auto-complete-list",9);K("itemSelected",function(d){return b.autoCompleteItemSelected$.next(d)});H();G(10,"div",10)(11,"div",11)(12,"button",12,13);K("keydown",function(d){return jic(b,d)})("click",function(){return gic(b)});J(14,"mat-icon",14);
H()();G(15,"div",15);Df(16);H();G(17,"div",16)(18,"button",17);K("click",function(){return b.submitAdvancedSearch()});P(19,"Search");H();G(20,"a",18);P(21,"Search help ");J(22,"mat-icon",19);H();G(23,"div",20)(24,"input",21,22);K("ngModelChange",function(d){return b.searchName=d})("keydown.Tab",function(){return kic(b)})("keydown.enter",function(){return b.saveSearch()});H();G(26,"button",23);K("click",function(){return b.saveSearch()});J(27,"mat-icon",24);H()()()()()()}a&2&&(sf("dropdown-opened",
p3(b)||hic(b)||iic(b)),B(1),sf("hidden",iic(b)),B(3),D("placeholder",b.placeholder),nf("aria-activedescendant",aic(b.acList))("aria-expanded",p3(b)||hic(b)),B(4),sf("advanced-search-open",iic(b)),B(1),sf("hidden",!(p3(b)||hic(b))),D("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(1),sf("hidden",!iic(b)),B(10),nf("href",b.searchHelpLink,Kd),B(4),D("ngModel",b.searchName),B(2),D("disabled",!b.searchName))},dependencies:[tA,pB,$E,LE,Fg,by,hy,xQ,OB,m3],styles:['[_nghost-%COMP%]{display:flex;align-items:center;flex-grow:1;position:relative;min-width:320px;height:40px}.search-form-container[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#f1f3f4;background-color:var(--main-search-bg);border-radius:8px;max-width:800px;min-width:320px;overflow:hidden;top:0;transition:all .1s ease-in-out;transition-property:box-shadow,height,max-height,overflow;width:100%}.search-box-container[_ngcontent-%COMP%]{display:flex;flex-grow:1;width:calc(100% - 8px * 2);min-height:40px;height:auto}.search-dropdown[_ngcontent-%COMP%]{max-height:0;overflow:hidden;top:40px;width:100%;transition:max-height .2s ease-in-out}.search-form-container.dropdown-opened[_ngcontent-%COMP%]   .search-dropdown[_ngcontent-%COMP%]{max-height:600px;padding-bottom:6px}.search-dropdown[_ngcontent-%COMP%]{padding-bottom:0}.search-form-container[_ngcontent-%COMP%]:focus-within, .search-form-container.dropdown-opened[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 2px 6px 2px rgba(0, 0, 0, 0.15);background-color:#fff;background-color:var(--surface-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   textarea[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   input[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:not(:focus-within):not(.dropdown-opened)   textarea[_ngcontent-%COMP%]{height:auto !important;overflow:hidden}.mat-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px}.search-box-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.search-box-container[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{margin-top:8px}textarea[_ngcontent-%COMP%]{border:0;background-color:initial;outline:none;resize:none;padding:0;cursor:auto;color:#202124;color:var(--text-high-contrast);margin:10px 0;margin-left:5px;height:20px;line-height:20px;width:100%;overflow:auto}textarea[_ngcontent-%COMP%]:focus{border:0;padding:0;outline:none}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent;border-radius:10px;border:0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:vertical{margin:5px 0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:horizontal{margin:0 5px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:rgba(0,0,0,.2)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.4)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:rgba(0,0,0,.5)}.advanced-search[_ngcontent-%COMP%]{padding:6px 6px 0 6px}.advanced-search-content[_ngcontent-%COMP%]{overflow:auto;max-height:532px}.advanced-search-footer[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:6px}.search-help-link[_ngcontent-%COMP%]{margin-left:10px}.save-search-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;padding:0 5px}.save-search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;outline:none}[_nghost-%COMP%]     .bv2-adv-search-rule{background-color:#fff;background-color:var(--surface-default);display:flex;border-radius:10px;width:initial}[_nghost-%COMP%]     .bv2-adv-search-rule-title{display:flex}[_nghost-%COMP%]     .bv2-adv-search-rule-content{flex-grow:1;padding-right:25px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-enum-item{min-width:130px;max-width:130px}[_nghost-%COMP%]     .bv2-adv-search-chip-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);outline:0}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select{border-radius:5px;letter-spacing:0;min-width:105px;padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select .goog-flat-menu-button-dropdown{border:0;height:initial;margin-top:initial;position:relative;right:initial;top:initial;width:initial}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled){border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#3c4043;color:var(--gfx);padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):hover, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):active, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):not(.mdc-ripple-upgraded):focus{padding-right:24px;border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default);box-shadow:none}[_nghost-%COMP%]     .goog-flat-menu-button.goog-flat-menu-button-open.jfk-select{background-color:#fff;background-color:var(--surface-default)}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override), [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);height:28px;margin:0;padding-left:10px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override):focus, [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override):focus{border-color:#3c4043;border-color:var(--gfx);outline:0}[_nghost-%COMP%]     .bv2-adv-search-chip-add-btn{margin-right:20px}[_nghost-%COMP%]     .bv2-adv-search-chip{display:inline-flex;align-items:center;border:none;background-color:#fff;background-color:var(--surface-default);height:32px;width:100%;margin-bottom:10px}[_nghost-%COMP%]     .bv2-adv-search-chip-container{display:flex;flex-direction:column;width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content{width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content input[type=text]:not(.override){width:calc(100% - 10px)}[_nghost-%COMP%]     .bv2-adv-search-chip-content .bv2-adv-search-chip-delete-btn{margin-left:10px}[_nghost-%COMP%]     .bv2-adv-search-chip-content-selectable .goog-flat-menu-button{height:32px;margin:0;width:100%;text-align:left}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn{display:inline-flex;align-items:center;font-family:"Google Sans",Roboto,Arial,sans-serif;height:32px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;box-sizing:border-box;color:#3c4043;color:var(--gfx)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:hover, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:active, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:focus{border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:after{margin-left:auto;content:"";width:16px;height:16px;background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/edit.svg") 0 -2px;margin-right:5px;opacity:.6}[_nghost-%COMP%]     .bv2-adv-search-chip-content-text{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1rem;padding-left:12px;vertical-align:middle}\n/*# sourceMappingURL=app_search_box.css.map */'],
changeDetection:0});
var q3=function(a){this.currentTracker=a;this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new Iw;this.searchBoxOnAdvancedSearchClose=new Iw;this.searchBoxOnAdvancedSearchSubmit=new Iw;this.searchBoxOnSaveSearch=new Iw};q3.\u0275fac=function(a){return new (a||q3)(F(xM))};
q3.\u0275cmp=v({type:q3,selectors:[["b-app-top-bar"]],inputs:{logoEnvironmentType:"logoEnvironmentType",logoFrontendAccessMode:"logoFrontendAccessMode",searchBoxPlaceholder:"searchBoxPlaceholder",searchBoxAutoCompleteItems:"searchBoxAutoCompleteItems",searchBoxAutoCompleteHeader:"searchBoxAutoCompleteHeader"},outputs:{searchBoxOnAdvancedSearchOpen:"searchBoxOnAdvancedSearchOpen",searchBoxOnAdvancedSearchClose:"searchBoxOnAdvancedSearchClose",searchBoxOnAdvancedSearchSubmit:"searchBoxOnAdvancedSearchSubmit",
searchBoxOnSaveSearch:"searchBoxOnSaveSearch"},ngContentSelectors:["*"],decls:6,vars:11,consts:[[3,"environmentType","frontendAccessMode","tracker","associatedTrackers"],[3,"placeholder","autoCompleteItems","autoCompleteHeader","onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch"]],template:function(a,b){a&1&&(Cf(),J(0,"b-app-logo",0),Q(1,"async"),Q(2,"async"),G(3,"b-app-search-box",1),K("onAdvancedSearchOpen",function(){return b.searchBoxOnAdvancedSearchOpen.emit()})("onAdvancedSearchClose",
function(){return b.searchBoxOnAdvancedSearchClose.emit()})("onAdvancedSearchSubmit",function(){return b.searchBoxOnAdvancedSearchSubmit.emit()})("onSaveSearch",function(c){return b.searchBoxOnSaveSearch.emit(c)}),Df(4),H(),J(5,"b-app-actions"));a&2&&(D("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",R(1,7,b.currentTracker.tracker$))("associatedTrackers",R(2,9,b.currentTracker.associatedTrackers$)),B(3),D("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",
b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader))},dependencies:[k3,h3,o3,Fx],styles:["[_nghost-%COMP%]{display:flex;align-items:center}b-app-search-box[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:center}\n/*# sourceMappingURL=app_top_bar.css.map */"],changeDetection:0});
var r3=function(){};r3.\u0275fac=function(a){return new (a||r3)};r3.\u0275mod=rc({type:r3});r3.\u0275inj=fc({imports:[[Mx,MB,jG,XN]]});
var lic=[i3],s3=function(){};[].concat(u(lic));[].concat(u(lic));s3.\u0275fac=function(a){return new (a||s3)};s3.\u0275mod=rc({type:s3});s3.\u0275inj=fc({imports:[[Mx,jG,dF,UE,bH]]});
var t3=function(){};t3.\u0275fac=function(a){return new (a||t3)};t3.\u0275mod=rc({type:t3});t3.\u0275inj=fc({imports:[[Mx,dF,jG,UE,bH]]});
var mic=[j3],u3=function(){};[].concat(u(mic));[].concat(u(mic));u3.\u0275fac=function(a){return new (a||u3)};u3.\u0275mod=rc({type:u3});u3.\u0275inj=fc({imports:[[Mx,jG,dF,bH]]});
var v3=function(){};v3.\u0275fac=function(a){return new (a||v3)};v3.\u0275mod=rc({type:v3});v3.\u0275inj=fc({providers:[UO]});
var w3=function(){};w3.\u0275fac=function(a){return new (a||w3)};w3.\u0275mod=rc({type:w3});w3.\u0275inj=fc({imports:[[Mx,jG,dF,bH,v3]]});
var x3=function(){};x3.\u0275fac=function(a){return new (a||x3)};x3.\u0275mod=rc({type:x3});x3.\u0275inj=fc({imports:[[Mx,UE,jG,eI,bH,dF,yA,wy,yQ,t3,zP,u3,dT,QB,c3,w3,r3,s3]]});
var y3=function(){};y3.\u0275fac=function(a){return new (a||y3)};y3.\u0275mod=rc({type:y3});y3.\u0275inj=fc({imports:[[Mx,jG,MB]]});
var z3=function(){};z3.\u0275fac=function(a){return new (a||z3)};z3.\u0275mod=rc({type:z3});z3.\u0275inj=fc({imports:[[Mx,wy,jG,$B,YB,MB,GV]]});
var A3=function(){this.cardTitle="";this.dropdownOptions=[];this.inheritedDisabled=this.isInherited=this.showInheritedToggle=this.showDeleteButton=this.showRequiredToggle=this.isSaveButtonDisabled=this.disabled=this.selected=!1;this.inheritedDisabledTooltipText="";this.placeholderForCardTitle="Enter the card title (Required)";this.ariaLabelForCardTitle="Card title";this.dropdownSelectionChanged=new Iw;this.selectedChange=new Iw;this.cardTitleChange=new Iw;this.onSaveButtonClicked=new Iw;this.onCancelButtonClicked=
new Iw;this.isInheritedChange=new Iw;this.isExpanded=!1};A3.prototype.expand=function(){this.isExpanded=!0};A3.prototype.collapse=function(){this.isExpanded=!1};A3.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};A3.\u0275fac=function(a){return new (a||A3)};
A3.\u0275cmp=v({type:A3,selectors:[["b-collapsible-card"]],inputs:{cardTitle:"cardTitle",dropdownOptions:"dropdownOptions",selectedOption:"selectedOption",selected:"selected",disabled:"disabled",isSaveButtonDisabled:"isSaveButtonDisabled",showRequiredToggle:"showRequiredToggle",showDeleteButton:"showDeleteButton",showInheritedToggle:"showInheritedToggle",isInherited:"isInherited",inheritedDisabled:"inheritedDisabled",inheritedDisabledTooltipText:"inheritedDisabledTooltipText",placeholderForCardTitle:"placeholderForCardTitle",
ariaLabelForCardTitle:"ariaLabelForCardTitle"},outputs:{dropdownSelectionChanged:"dropdownSelectionChanged",selectedChange:"selectedChange",cardTitleChange:"cardTitleChange",onSaveButtonClicked:"onSaveButtonClicked",onCancelButtonClicked:"onCancelButtonClicked",isInheritedChange:"isInheritedChange"},ngContentSelectors:["*"],decls:11,vars:14,consts:[[1,"carded"],[1,"flex-kids-x","flex-cross-axis-centered","card-header"],[1,"collapsible-card-checkbox",3,"disabled","checked","aria-label","change"],[4,
"ngIf","ngIfElse"],["mat-icon-button","",3,"ngClass","click"],["svgIcon","chevron-left",4,"ngIf"],["svgIcon","arrow-down",4,"ngIf"],["expandedCardHeader",""],["class","expanded-card-container",4,"ngIf"],["class","expanded-card-actions",4,"ngIf"],[1,"card-title","heading-s"],["svgIcon","chevron-left"],["svgIcon","arrow-down"],["appearance","fill",1,"card-title"],["matInput","","type","text","required","","aria-required","true","maxlength","40","autocomplete","off",1,"heading-s",3,"placeholder","disabled",
"ngModel","ngModelChange"],["class","type-dropdown","appearance","outline",4,"ngIf"],["appearance","outline",1,"type-dropdown"],[3,"disabled","value","valueChange","selectionChange"],[4,"ngIf"],["class","ee-config-option",3,"value",4,"ngFor","ngForOf"],[1,"icon-s",3,"svgIcon"],[1,"ee-config-option",3,"value"],["class","icon-s",3,"svgIcon",4,"ngIf"],[1,"expanded-card-container"],[1,"expanded-card-actions"],["mat-raised-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-button",
"","color","primary",1,"gmat-button","cancel-button",3,"disabled","click"],["mat-icon-button","","aria-label","Delete","class","delete-button",3,"disabled",4,"ngIf"],[3,"vertical",4,"ngIf"],["labelPosition","before",3,"disabled",4,"ngIf"],["class","inherited-toggle","labelPosition","before",3,"checked","disabled","matTooltip","matTooltipDisabled","change",4,"ngIf"],["mat-icon-button","","aria-label","Delete",1,"delete-button",3,"disabled"],["svgIcon","delete",1,"icon-m"],[3,"vertical"],["labelPosition",
"before",3,"disabled"],["labelPosition","before",1,"inherited-toggle",3,"checked","disabled","matTooltip","matTooltipDisabled","change"]],template:function(a,b){a&1&&(Cf(),G(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),K("change",function(d){b.selected=d.checked;b.expand();b.selectedChange.emit(b.selected)}),H(),O(3,MXa,3,3,"ng-container",3),G(4,"button",4),K("click",function(){b.isExpanded?b.collapse():b.expand()}),O(5,NXa,1,0,"mat-icon",5),O(6,OXa,1,0,"mat-icon",6),H(),O(7,TXa,3,7,"ng-template",null,
7,gg),H(),O(9,UXa,2,0,"div",8),O(10,ZXa,9,6,"div",9),H());if(a&2){var c=Hf(8);nf("aria-expanded",b.isExpanded);B(2);sf("expanded-checkbox",b.isExpanded);D("disabled",b.disabled)("checked",b.selected)("aria-label",b.cardTitle);B(1);D("ngIf",!b.isExpanded)("ngIfElse",c);B(1);D("ngClass",b.isExpanded?"collapse-toggle":"expand-toggle");nf("aria-label",b.isExpanded?"Collapse editor":"Expand editor");B(1);D("ngIf",b.isExpanded);B(1);D("ngIf",!b.isExpanded);B(3);D("ngIf",b.isExpanded);B(1);D("ngIf",b.isExpanded)}},
dependencies:[vx,wx,sx,Fg,by,sy,ty,hy,LO,pB,FT,LE,XB,UB,YS,WS,lB,$H,ZB,$E],styles:['.card-title[_ngcontent-%COMP%]{margin-left:10px;width:440px}.expand-toggle[_ngcontent-%COMP%]{margin-left:auto}.collapse-toggle[_ngcontent-%COMP%]{align-self:baseline}.expanded-card-container[_ngcontent-%COMP%]{padding:18px}.expanded-card-actions[_ngcontent-%COMP%]{display:flex;align-items:center;border-top:1px solid;border-color:#9aa0a6;border-color:var(--c500);padding-top:16px}.expanded-card-actions[_ngcontent-%COMP%]   .cancel-button[_ngcontent-%COMP%]{width:80px;margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   .delete-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-slide-toggle[_ngcontent-%COMP%]{margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{height:40px}.expanded-card-actions[_ngcontent-%COMP%]   .inherited-toggle[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .mat-select-value, .ee-config-option[_ngcontent-%COMP%]{font-family:"Google Sans Display",Roboto,Arial,sans-serif;font-weight:500;font-size:14px;line-height:16px;color:#5f6368;color:var(--text-muted)}.type-dropdown[_ngcontent-%COMP%]{margin-left:auto;margin-right:8px}mat-select-trigger[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:10px}mat-select-trigger[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.expanded-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{margin-top:-10px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}']});
var B3=function(){};B3.\u0275fac=function(a){return new (a||B3)};B3.\u0275mod=rc({type:B3});B3.\u0275inj=fc({imports:[[Mx,wy,PO,jG,HT,dF,ZS,eI,$B,bH]]});
var C3=function(a){Z.call(this,a,-1,nic)};U(C3,Z);C3.prototype.getFieldIdList=function(){return rb(this,el,1)};C3.prototype.setFieldIdList=function(a){return zb(this,1,a)};var nic=[1];C3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Bb(this.getFieldIdList(),nJ)}:void 0;return a};C3.messageId="b.ReorderFieldsRequest";
var D3=function(a){Z.call(this,a,-1,oic)};U(D3,Z);D3.prototype.getFieldIdList=function(){return rb(this,el,1)};D3.prototype.setFieldIdList=function(a){return zb(this,1,a)};var oic=[1];D3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Bb(this.getFieldIdList(),nJ)}:void 0;return a};D3.messageId="b.ReorderFieldsResponse";
var E3=function(a){this.executor=a};E3.prototype.updateCustomFieldState=function(a,b,c){var d=new el;d.setCustomFieldId(b);var e=new oJ;Ab(e,1,d);e.setStateOnIssues(c);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:e,responseConstructor:oJ})};E3.prototype.reorder=function(a,b){b=(new C3).setFieldIdList(b);return this.executor.post({url:"action/components/"+a+"/reorder",body:b,responseConstructor:D3})};E3.\u0275fac=function(a){return new (a||E3)(t(pI))};
E3.\u0275prov=ec({token:E3,factory:E3.\u0275fac,providedIn:"root"});
var pic=["SILENT","MINOR","MAJOR"];
var qic=["fieldStateMenu"],cYa=function(a){return{type:a}},F3=function(a,b,c,d,e,f,h,k,q,w,y){BI.call(this);var E=this;this.customFieldsApi=a;this.checkBeforeExit=b;this.butterBar=c;this.analytics=d;this.routeParams=e;this.componentActions=f;this.fieldConfigService=h;this.documentationLinks=k;this.paths=q;this.confirmationDialog=w;this.appEvents=y;this.FieldType=vXb;this.ListFieldType=oYb;this.getSingleEditFieldType=wXb;this.getListFieldType=pYb;this.secondaryTypes=["Single","Multiple"];this.componentIdsToNames=
{};this.isLoading=!1;this.editableField=null;this.allowedValues=[];this.originalEditableFieldValue_=null;this.msgFieldStateTip="Whether the field is visible in this component";this.typeChoices=Object.values(aAb).filter(function(I){return!I.includes("REPEATED")});this.significanceChoices=pic;Object.keys(NEb).slice(0).filter(function(I){return"UNSPECIFIED"!==I});this.componentId_=Ki(this.routeParams.componentId);this.subscriptions.add(cZ(b,function(){return E.hasUnsavedChanges()},!0))};U(F3,BI);
F3.\u0275dir=BI.\u0275dir;F3.prototype.ngOnInit=function(){ric(this)};F3.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=this.parentComponent.componentPathInfo.allCustomField,c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
F3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||F4b())this.editableField=Fi(this.customFields[a]),this.originalEditableFieldValue_=Fi(this.editableField),this.serverError=null,this.setType(this.editableField.type),gYa(this,this.editableField.allowedValue)};
var sYa=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Nn("Deleting a custom field is permanent and will remove display of this custom field on all issues in this component and child components. Are you sure you want to delete this field?"),onConfirm:function(){a.doDelete(c)}})};
F3.prototype.doDelete=function(a){var b=this;PK(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId_,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId_);bo(b.analytics,"customField","delete");PK(b.butterBar,"Deleted field: "+a.name,2E3);ric(b)})};
F3.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId_);ric(a);bo(a.analytics,"customField",d)},c=function(e){a.serverError=ym(e);a.isLoading=!1};["REPEATED_ENUM","ENUM"].includes(this.editableField.type)?this.editableField.allowedValue=this.allowedValues.map(function(e){return e.value}):this.editableField.allowedValue=null;if(this.editableField.customFieldId){var d="update";this.customFieldsApi.update(this.componentId_,this.editableField.customFieldId,
this.editableField).then(b).catch(c)}else d="create",this.editableField.componentId=this.componentId_,this.customFieldsApi.create(this.componentId_,this.editableField).then(b).catch(c)};
F3.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId_,a.customFieldId,b).pipe(Ye(d.destroyed$)).subscribe(function(){a:{switch(b){case 1:var h="Inherit ("+(d.fieldsEnabledOnParentComponent.get(a.customFieldId)?"Enabled":"Disabled")+")";break a;case 2:h="Disabled";break a;case 3:h="Enabled";break a}h=void 0}bo(d.analytics,"customField","updateFieldConfig",h);d.componentActions.getUncached(d.componentId_).then(function(){return ric(d,
!0)}).then(function(){setTimeout(function(){var k,q;null==(k=d.fieldStateMenus)||null==(q=k.get(c))||q.focus()})}).then(function(){return e(void 0)})},function(h){d.serverError=ym(h);d.isLoading=!1;f(h)})})};F3.prototype.cancel=function(){this.originalEditableFieldValue_=this.editableField=null};
var jYa=function(a,b){var c=a.editableField.type;a.editableField.typedDefaultValue=new lJ({customFieldId:a.editableField.customFieldId,textValue:"TEXT"===c?b:void 0,dateValue:"DATE"===c?b:void 0,enumValue:"ENUM"===c?b:void 0,numericValue:"NUMERIC"===c?b:void 0,repeatedTextValue:"REPEATED_TEXT"===c?{values:b}:void 0,repeatedDateValue:"REPEATED_DATE"===c?{values:b}:void 0,repeatedEnumValue:"REPEATED_ENUM"===c?{values:b}:void 0,repeatedNumericValue:"REPEATED_NUMERIC"===c?{values:b}:void 0})};
F3.prototype.setType=function(a,b){var c=this.editableField.type;if(void 0===b?0:b)switch(a){case "TEXT":this.editableField.type="REPEATED_TEXT";break;case "DATE":this.editableField.type="REPEATED_DATE";break;case "ENUM":this.editableField.type="REPEATED_ENUM";break;case "NUMERIC":this.editableField.type="REPEATED_NUMERIC"}else this.editableField.type=a;a!=c&&(this.editableField.typedDefaultValue=null)};
var gYa=function(a,b){b=null===b?null:b.map(function(c){return c.toString()});a.editableField.allowedValue=b;a.allowedValues=b?b.map(function(c){return{value:c,displayText:c}}):[]};F3.prototype.hasUnsavedChanges=function(){return this.editableField&&!Ei(this.editableField,this.originalEditableFieldValue_)?!0:!1};
var ric=function(a,b){b=void 0===b?!1:b;b||(a.isLoading=!0);return a.componentActions.get(a.componentId_).then(function(c){var d,e=(null==(d=c.componentPathInfo)?void 0:d.allCustomField)||[];d=[];a.componentIdsToNames={};var f,h=(null==(f=c.componentPathInfo)?void 0:f.componentPathId)||[];for(f=0;f<h.length;f++)d.push(c.componentPathInfo.componentPathName[f]),a.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=d.join(" > ");a.editableField=null;a.originalEditableFieldValue_=null;b||(a.isLoading=
!1);c=function(k,q){return au(k.name,q.name)};a.customFields=e.filter(function(k){return a.componentId_===k.componentId}).sort(c);a.inheritedCustomFields=e.filter(function(k){return a.componentId_!==k.componentId}).sort(c);a.appEvents.customFieldsModified.next(e)})},yYa=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};F3.prototype.trackClick=function(a){bo(this.analytics,"editComponent","click",a)};
var kYa=function(a){var b,c;return null==(b=a.editableField)?void 0:null==(c=b.typedDefaultValue)?void 0:c.getValue()};F3.prototype.getListFieldValues=function(){var a,b,c,d;return null!=(d=null==(c=null==(a=this.editableField)?void 0:null==(b=a.typedDefaultValue)?void 0:b.getValue())?void 0:c.values)?d:null};F3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
F3.\u0275fac=function(a){return new (a||F3)(F(yZ),F(dZ),F(OK),F(SM),F(bS),F(AT),F(E3),F(tP),F(dL),F(aN),F(WK))};
F3.\u0275cmp=v({type:F3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&Zf(qic,5);if(a&2){var c;Yf(c=ag())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},features:[gf,Ac],decls:4,vars:3,consts:[[1,"edit-resource-panel","edit-component-field-parent"],["class","edit-custom-field-panel",4,"ngIf"],["class","custom-fields-loader",4,"ngIf"],[4,"ngIf"],[1,"edit-custom-field-panel"],["class","bv2-validation-error-banner",
4,"ngIf"],["name","editForm",1,"edit-custom-field-form"],[1,"edit-field"],["for","field-name",1,"help-label"],["name","fieldName","type","text","required","","id","field-name",3,"bFocus","ngModel","disabled","ngModelChange"],["for","field-description",1,"help-label"],["name","fieldDescription","id","field-description",3,"ngModel","disabled","ngModelChange"],[1,"edit-custom-field-table"],[1,"field-label-with-help","bv2-component-custom-field-label"],["id","field-type-label",1,"help-label",3,"onedevHovercardTrigger"],
["typeHelp",""],["role","dialog","aria-label","Type help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["mat-button","","mat-stroked-button","","aria-labelledby","field-type-label",1,"bv2-enum-field","gmat-button",3,"matMenuTriggerFor","disabled"],["name","arrow-dropdown","size","small"],["enumMenu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",4,"ngFor","ngForOf"],["secondaryMenu","matMenu"],["matMenuContent",""],["class","edit-field",4,"ngIf"],
["class","bv2-component-custom-field-label","id","field-default-label",4,"ngIf"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable","valueChange",4,"ngIf"],["class","bv2-component-custom-field-label","id","field-repeated-default-label",4,"ngIf"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate","valuesChange",
4,"ngIf"],["id","field-required-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-required-label",3,"name","type","tooltip","value","valueChange"],["id","field-significance-label","tabindex","0","aria-label","Field Significance - Press alt+right arrow to learn more.",1,"help-label",3,"onedevHovercardTrigger"],["significanceHelp",""],[1,"onedev-hovercard-content"],["aria-label","See email settings for more details.","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],
["mat-button","","mat-stroked-button","","type","button","aria-labelledby","field-significance-label",1,"keep-focus-ring","bv2-enum-field","gmat-button",3,"matMenuTriggerFor"],["significanceMenu","matMenu"],["mat-menu-item","","type","button",3,"click",4,"ngFor","ngForOf"],["format","fill",1,"",3,"disabled","onAction"],["format","hairline",3,"onAction"],[1,"bv2-validation-error-banner"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],
["mat-menu-item","",3,"click"],["id","field-enums-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-enums-label",3,"defaultLineCount","type","values","listFieldDisabled","preventDuplicates","isDefaultOrAllowedValues","truncate","valuesChange"],["id","field-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable","valueChange"],["id","field-repeated-default-label",
1,"bv2-component-custom-field-label"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate","valuesChange"],["mat-menu-item","","type","button",3,"click"],[1,"custom-fields-loader"],[3,"large"],[1,"custom-fields-table"],[3,"ngClass",4,"ngFor","ngForOf"],["class","edit-button-row",4,"ngIf"],[3,"ngClass"],[3,"customFieldValue"],["class","action-buttons",4,"ngIf"],[1,"action-buttons"],[3,
"click"],["colspan","9",1,"custom-fields-inherited-parent"],["colspan","9"],[1,"ancestor-component-note"],[1,"header-label"],[3,"onedevHovercardTrigger","href","click"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"fieldName","fieldState","enabledOnParent","disabled","matTooltip","fieldStateChange",4,"ngIf"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],[3,"fieldName","fieldState","enabledOnParent","disabled","matTooltip","fieldStateChange"],["fieldStateMenu",""],["routerLink",
"./","fragment","fieldOrdering",1,"keep-underline"],[1,"edit-button-row"],["format","fill",3,"onAction"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,pYa,68,32,"div",1),O(2,qYa,2,1,"div",2),O(3,EYa,26,7,"div",3),H());a&2&&(B(1),D("ngIf",b.editableField&&!b.isLoading),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[vx,wx,sx,iy,Fg,by,cy,sy,hy,fy,vV,aV,uH,yO,q_,pN,qN,tN,rN,US,$E,QE,OE,TE,NE,pB,l_,JV,mN,QI,zM,AM,CM],styles:["button[_ngcontent-%COMP%]{margin-right:3px}button.bv2-enum-field[_ngcontent-%COMP%]{padding:0px 12px;margin-bottom:32px;height:32px;line-height:32px}b-spinner[_ngcontent-%COMP%]{position:absolute}"]});
var G3=function(){};G3.\u0275fac=function(a){return new (a||G3)};G3.\u0275mod=rc({type:G3});G3.\u0275inj=fc({imports:[[Mx,wy,wV,bV,dI,zO,r_,$N,eT,bH,UE,jG,ZS,m_,KV,MM,YN,WI]]});
var H3=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new Iw;this.addRow=new Iw;this.optionsChange=new Iw};H3.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};H3.prototype.drop=function(a){jp(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};H3.\u0275fac=function(a){return new (a||H3)};
H3.\u0275cmp=v({type:H3,selectors:[["b-config-grid"]],inputs:{options:"options",disabled:"disabled"},outputs:{removeAtIndex:"removeAtIndex",addRow:"addRow",optionsChange:"optionsChange"},decls:11,vars:7,consts:[[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"padded-sides","heading-xs","config-title-container","flex-kids-x"],["aria-label","Average days. All estimated effort types map to an average number of days.",1,"config-title"],["svgIcon",
"help-outline","tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],["cdkDropList","",1,"options-container",3,"cdkDropListDropped"],["cdkDrag","",4,"ngFor","ngForOf"],["mat-button","","class","gmat-button add-row-button",3,"click",4,"ngIf"],["cdkDrag",""],[1,"flex-kids-x","flex-cross-axis-centered","option-row"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[3,"appearance"],["matInput","","aria-label",
"Dropdown value","autocomplete","off","maxlength","40",1,"input-text",3,"value","placeholder","disabled","change"],["displayInput","matInput"],["matInput","","aria-label","Average days","autocomplete","off","type","number",1,"input-text",3,"value","placeholder","disabled","change"],["valueInput","matInput"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["svgIcon","close",1,"icon-s","delete-icon"],["mat-button","",1,"gmat-button","add-row-button",3,"click"]],template:function(a,
b){a&1&&(G(0,"div",0)(1,"div",1)(2,"span",2),P(3," Dropdown value "),H()(),G(4,"div",3)(5,"span",4),P(6," Average days "),H(),J(7,"mat-icon",5),H()(),G(8,"div",6),K("cdkDropListDropped",function(c){return b.drop(c)}),O(9,GYa,12,13,"div",7),H(),O(10,HYa,2,0,"button",8));a&2&&(B(2),sf("muted",b.disabled),B(3),sf("muted",b.disabled),B(2),D("matTooltip","All estimated effort types map to an average number of days."),B(2),D("ngForOf",b.options),B(1),D("ngIf",!b.disabled))},dependencies:[wx,sx,XB,ZB,pB,
LE,$E,sV,tV,mV],styles:[".delete-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.add-row-button[_ngcontent-%COMP%]{font-size:16px;color:#5f6368;color:var(--text-muted);font-style:normal;font-weight:400;font-family:Roboto,Arial,sans-serif}.options-container[_ngcontent-%COMP%]{margin-left:-32px}.option-row[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.option-row[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:move;visibility:hidden;margin-top:8px;margin-left:8px}.option-row[_ngcontent-%COMP%]:hover   .drag-handle[_ngcontent-%COMP%]{visibility:visible;color:#dadce0;color:var(--c300)}\n/*# sourceMappingURL=config_grid.css.map */"]});
var I3=function(){this.disabled=!1;this.valueChange=new Iw};I3.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};I3.\u0275fac=function(a){return new (a||I3)};
I3.\u0275cmp=v({type:I3,selectors:[["b-numeric-config"]],inputs:{disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},decls:14,vars:8,consts:[[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"type-m","margin-y","disabled-time-val"],[1,"config-title-container","flex-kids-x"],["id","config-label","aria-label","Average days. All estimated effort types map to an average number of days.",1,"config-title"],["svgIcon","help-outline",
"tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],[3,"appearance"],["matInput","","type","number","aria-labelledby","config-label",1,"input-text",3,"disabled","value","change"],["timeInput","matInput"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"span",2),P(3," Time "),H(),G(4,"span",3),P(5,"1"),H()(),G(6,"div",1)(7,"div",4)(8,"span",5),P(9," Average days "),H(),J(10,"mat-icon",6),H(),G(11,"mat-form-field",
7)(12,"input",8,9),K("change",function(d){return b.onValueChange(d)}),H()()()());if(a&2){var c=Hf(13);B(2);sf("muted",b.disabled);B(6);sf("muted",b.disabled);B(2);D("matTooltip","All estimated effort types map to an average number of days.");B(1);D("appearance",c.focused?"standard":"none");B(1);D("disabled",b.disabled)("value",b.value)}},dependencies:[XB,ZB,LE,$E],styles:[".disabled-time-val[_ngcontent-%COMP%]{color:#bdc1c6;color:var(--text-disabled);font-size:16px;line-height:24px;font-weight:400;width:168px}\n/*# sourceMappingURL=numeric_config.css.map */"]});
var K3=function(a){this.activeSession=a;this.disabled=!1;this.updateEffortSpec=new Iw;this.configurationOptions=[sic,tic,J3];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=bFb;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=rH(this.activeSession,"enableAggregationRules")};
K3.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&ul(this.effortSpec,4,vl)&&(this.originalSelectedEffortConfig=J3)};K3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=this.effortSpec.clone(),this.setValues(this.effortSpec))};
K3.prototype.setValues=function(a){if(ul(a,4,vl)){this.selectedEffortConfig=J3;var b,c,d;this.numericSpecMultiplier=null!=(d=null==(b=this.effortSpec)?void 0:null==(c=wl(b,nl,4,vl))?void 0:xl(c,1))?d:1}ul(a,5,vl)&&(this.selectedEffortConfig=void 0,this.enumSpecOptions=yl(a).getOptionsList().map(function(f){return{label:f.getLabel(),value:f.getValue()}}));var e;this.inherit=null!=(e=a.getInherit())?e:!1;this.name=""===a.getName()?"Estimated effort":a.getName();if(ul(a,5,vl)||ul(a,4,vl))this.estimatedEffortFieldEnabled=
!0;X(a,6,0)!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=X(a,6,0))};var uic=function(a){var b,c,d;if((null==(b=a.effortSpec)?0:ul(b,5,vl))&&!a.selectedEffortConfig||(null==(c=a.selectedEffortConfig)?void 0:c.displayText)===sic.displayText||(null==(d=a.selectedEffortConfig)?void 0:d.displayText)===tic.displayText)return"enum";var e;return(null==(e=a.selectedEffortConfig)?void 0:e.displayText)===J3.displayText?"numeric":"empty"};
K3.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};K3.prototype.isSaveButtonDisabled=function(){var a;if(!(a=void 0===this.selectedEffortConfig&&void 0===this.effortSpec&&this.estimatedEffortFieldEnabled&&!this.inherit||""===this.name)){a:{a=r(this.enumSpecOptions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,!b.label||null===b.value){a=!1;break a}a=!0}a=!a}return a};
var vic=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};K3.\u0275fac=function(a){return new (a||K3)(F(pH))};
K3.\u0275cmp=v({type:K3,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},features:[Ac],decls:8,vars:13,consts:[["placeholderForCardTitle","Enter the estimated effort field title (required)","ariaLabelForCardTitle","Estimated effort field title",3,"cardTitle","dropdownOptions","selectedOption","disabled","selected","isSaveButtonDisabled","showInheritedToggle","isInherited",
"cardTitleChange","dropdownSelectionChanged","onSaveButtonClicked","selectedChange","onCancelButtonClicked","isInheritedChange"],[1,"content",3,"ngSwitch"],[4,"ngSwitchCase"],["class","margin-top",4,"ngIf"],["enumConfig",""],[4,"ngTemplateOutlet"],[3,"disabled","value","valueChange"],[1,"margin-top"],["id","aggregation-rule-label",1,"aggregation-rule-label","config-label","heading-xs","margined"],"mat-icon-button;;matTooltip;Learn more about the aggregation rules;href;http://go/wtdm-home#aggregation;target;_blank".split(";"),
["svgIcon","help-outline",1,"icon-s","gfx-muted"],["appearance","outline",1,"static-label","margined"],["aria-labelledby","aggregation-rule-label","panelClass","multi-line-select",3,"value","valueChange"],[1,"multi-line",3,"value"],[1,"title"],[1,"help-text"],[3,"options","disabled","optionsChange","addRow","removeAtIndex"]],template:function(a,b){a&1&&(G(0,"b-collapsible-card",0),K("cardTitleChange",function(c){return b.name=c})("dropdownSelectionChanged",function(c){b.selectedEffortConfig=c;c.displayText===
sic.displayText?(b.enumSpecOptions=[].concat(u(wic)),b.name="Story points"):c.displayText===tic.displayText?(b.enumSpecOptions=[].concat(u(xic)),b.name="T-shirt sizes"):c.displayText===J3.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0})("onSaveButtonClicked",function(){var c=new ml;if(b.estimatedEffortFieldEnabled){c.setName(b.name).setInherit(b.inherit);b.enableAggregationRules&&ql(c,6,b.selectedAggregationRule);b.originalEffortSpec&&0!==b.originalEffortSpec.getCustomFieldId()&&
c.setCustomFieldId(b.originalEffortSpec.getCustomFieldId());var d;if((null==(d=b.selectedEffortConfig)?void 0:d.displayText)===J3.displayText)pqa(c,qqa(new nl,b.numericSpecMultiplier));else if(0<b.enumSpecOptions.length){d=[];for(var e=r(b.enumSpecOptions),f=e.next();!f.done;f=e.next())f=f.value,f.label&&null!==f.value&&d.push((new pl).setLabel(f.label).setValue(f.value));rqa(c,(new ol).setOptionsList(d))}}else c.setName("").setInherit(!1);b.updateEffortSpec.emit(c)})("selectedChange",function(c){b.estimatedEffortFieldEnabled=
c;b.estimatedEffortFieldEnabled||vic(b)})("onCancelButtonClicked",function(){b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,vic(b))})("isInheritedChange",function(c){(c=c.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:(new ml).setName("Estimated effort")),b.effortSpec=b.parentEffortSpec,b.effortSpec||vic(b)):b.effortSpec&&(b.setValues(new ml),vic(b));b.inherit=c}),G(1,"div",
1),O(2,JYa,2,1,"ng-container",2),O(3,KYa,2,2,"ng-container",2),O(4,LYa,1,0,"ng-container",2),H(),O(5,MYa,23,12,"div",3),H(),O(6,NYa,1,2,"ng-template",null,4,gg));a&2&&(D("cardTitle",b.name)("dropdownOptions",b.configurationOptions)("selectedOption",b.selectedEffortConfig)("disabled",b.disabled||b.inherit)("selected",b.estimatedEffortFieldEnabled)("isSaveButtonDisabled",b.isSaveButtonDisabled())("showInheritedToggle",!0)("isInherited",b.inherit),B(1),D("ngSwitch",uic(b)),B(1),D("ngSwitchCase","enum"),
B(1),D("ngSwitchCase","numeric"),B(1),D("ngSwitchCase","empty"),B(1),D("ngIf",b.enableAggregationRules&&b.estimatedEffortFieldEnabled))},dependencies:function(){return[sx,Cx,yx,zx,XB,qB,LE,A3,$E,YS,WS,lB,H3,I3,L3]},styles:["[_nghost-%COMP%]     .content .config-title-container{width:168px}[_nghost-%COMP%]     .content .config-title{font-size:14px;line-height:16px}[_nghost-%COMP%]     .content .config-title-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .content mat-form-field{height:34px;width:168px}[_nghost-%COMP%]     .content mat-form-field .mat-form-field-flex{padding-top:1px}[_nghost-%COMP%]     .content mat-form-field .mat-form-field-infix{padding:0 0 .5em}[_nghost-%COMP%]     .content .input-text{font-weight:400;font-size:16px}.aggregation-rule-label[_ngcontent-%COMP%]{margin-right:2px}\n/*# sourceMappingURL=estimated_effort_config.css.map */"]});
var wic=[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"5",value:5},{label:"8",value:8},{label:"13",value:13},{label:"21",value:21},{label:"34",value:34}],xic=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],sic={displayText:"Story points",icon:"story-point-24px"},tic={displayText:"T-shirt sizes",icon:"t-shirt-24px"},J3={displayText:"Time",icon:"time-24px"},L3=function(){};
L3.prototype.transform=function(a){switch(a){case 2:return"Max Point";default:return"Simple Sum"}};L3.\u0275fac=function(a){return new (a||L3)};L3.\u0275pipe=tc({name:"aggregationRuleText",type:L3,pure:!0});
var M3=function(){this.updateComponent=new Iw};M3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.effortSpecJspb=rl(this.effortSpec));a.parentEffortSpec&&this.parentEffortSpec&&(this.parentEffortSpecJspb=rl(this.parentEffortSpec))};M3.\u0275fac=function(a){return new (a||M3)};
M3.\u0275cmp=v({type:M3,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec"},outputs:{updateComponent:"updateComponent"},features:[Ac],decls:4,vars:2,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"effortSpec","parentEffortSpec","updateEffortSpec"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1),P(2,"Once activated, standard fields appear in the right panel of all issues."),H(),G(3,"b-estimated-effort-config",2),K("updateEffortSpec",
function(c){b.updateComponent.emit(c)}),H()());a&2&&(B(3),D("effortSpec",b.effortSpecJspb)("parentEffortSpec",b.parentEffortSpecJspb))},dependencies:[K3],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});
var N3=function(){};N3.\u0275fac=function(a){return new (a||N3)};N3.\u0275mod=rc({type:N3});N3.\u0275inj=fc({imports:[[Mx,$B,jG,dF,PO,B3,bH,ZS,uV]]});
var O3=function(){};O3.\u0275fac=function(a){return new (a||O3)};O3.\u0275mod=rc({type:O3});O3.\u0275inj=fc({imports:[[Mx,B3,N3]]});
var yic={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};
var P3=function(a,b,c,d,e,f,h,k,q,w){BI.call(this);var y=this;this.data=a;this.dialogRef=b;this.pathBuilder=c;this.teamsService=d;this.componentActions=e;this.userPreferencesManager=f;this.snackBar=h;this.analytics=k;this.errorHandler=q;this.componentFridge=w;this.teamSuggestionIds=[];this.header="";this.teamOptions=[];this.teamAction="CHANGE";this.WarningType=yic;this.warningType=a.warningType;this.componentId=a.componentId;this.parentComponentId=a.parentComponentId;this.teamSuggestionIds=a.teamSuggestionIds;
this.selectedTeam=new zic(this.teamSuggestionIds[0]||"0",[]);this.componentSetting=this.pathBuilder.editComponent(this.componentId,"basic");this.suggestedTeams$=YJb(this.teamsService,this.teamSuggestionIds).pipe(C(function(E){var I=[];E=Yi(E,1,hM);for(var N=r(y.teamSuggestionIds),L=N.next();!L.done;L=N.next())L=L.value,E.has(L)&&I.push(new zic(L,jb(E.get(L),6)));return I}),We([]));this.myTeams$=mM(this.teamsService,"").pipe(C(function(E){var I=[];E=E.getTeamSuggestionsList();E=r(E);for(var N=E.next();!N.done;N=
E.next())N=N.value,I.push(new zic(N.getId(),N.getPathNamesList()));return I}));(0,T.combineLatest)([this.suggestedTeams$,this.myTeams$]).pipe(C(function(E){var I=r(E);E=I.next().value;I=I.next().value;return[].concat(u(E),u(I))}),C(bBb(function(E){return E.teamId})),Ye(this.destroyed$)).subscribe(function(E){y.teamOptions=E;y.selectedTeam=E[0]})};U(P3,BI);P3.\u0275dir=BI.\u0275dir;
P3.prototype.ngOnInit=function(){"MISSING"===this.warningType?this.header="Add team to the component":"DELETED"===this.warningType&&(this.header="Change team mapping for this component")};
P3.prototype.confirm=function(){var a=this;if("CHANGE"===this.teamAction)0<this.parentComponentId?this.componentActions.get(this.parentComponentId).then(function(c){var d;Aic(a,(null==(d=c.team)?void 0:d.id)||"0",a.selectedTeam.teamId)}):Aic(this,"0",this.selectedTeam.teamId);else{var b=Fi(this.userPreferencesManager.teamWarningPreferencesSubject$.value);b.componentTeamWarnings.push({componentId:this.componentId,dismissMillis:(new Date).getTime()});RCb(this.userPreferencesManager,b).pipe(Ye(this.destroyed$)).subscribe(function(){bo(a.analytics,
go.TEAM_WARNING,"dismiss","componentId",a.componentId);var c;null==(c=a.dialogRef)||c.close()},function(){})}};var Aic=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);bo(a.analytics,go.TEAM_WARNING,"updateTeam");a.snackBar.open("Team mapping changed","",{duration:4E3});var e;null==(e=a.dialogRef)||e.close(a.selectedTeam.teamId)}).catch(function(d){a.errorHandler.errorHandler(null,d)})};
P3.prototype.selectOption=function(a){this.selectedTeam=a};P3.prototype.trackClick=function(a){bo(this.analytics,go.TEAM_WARNING,"click",a)};P3.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};P3.\u0275fac=function(a){return new (a||P3)(F(FB),F(AB),F(cY),F(lM),F(AT),F(zI),F(LK),F(SM),F(SK),F(bK))};
P3.\u0275cmp=v({type:P3,selectors:[["b-team-warning-dialog"]],features:[gf],decls:11,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["aria-label","Quick team actions",3,"ngModel","ngModelChange",4,"ngIf"],["class","suggested-teams",4,"ngIf"],["mat-button","","mat-dialog-close","",1,"gmat-button","medium"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button",3,"click"],["mat-dialog-content",""],["target","_blank",3,"href","click"],["target","_blank",3,"href"],["aria-label",
"Quick team actions",3,"ngModel","ngModelChange"],["value","NONE"],["value","CHANGE"],[1,"suggested-teams"],[3,"disabled","value","options","includeEmptyOption","optionTemplate","valueChange"],["optionTemplate",""],["mat-icon-button","","target","_blank","matTooltip","Go to Moma Team page.",1,"gmat-button","small",3,"click"],["svgIcon","pop-out",1,"icon-s"],[4,"ngIf","ngIfElse"],["emptyOption",""],[1,"suggested-team-option"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),O(2,PYa,5,1,"div",1),
O(3,QYa,5,1,"div",1),O(4,RYa,7,1,"mat-radio-group",2),O(5,VYa,6,6,"div",3),G(6,"mat-dialog-actions")(7,"button",4),P(8," Cancel "),H(),G(9,"button",5),K("click",function(){return b.confirm()}),P(10," Confirm "),H()());a&2&&(B(1),Jf(b.header),B(1),D("ngIf",b.warningType===b.WarningType.MISSING),B(1),D("ngIf",b.warningType===b.WarningType.DELETED),B(1),D("ngIf",b.warningType===b.WarningType.MISSING),B(1),D("ngIf",0<b.teamOptions.length))},dependencies:[sx,by,hy,pB,qB,IB,JB,KB,LB,LE,eY,gY,$E,cQ],styles:["mat-radio-button[_ngcontent-%COMP%]{margin-top:10px}.suggested-teams[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center}[_nghost-%COMP%]     onedev-single-select button{margin-top:5px;border-color:#bdc1c6}  span.suggested-team-option{display:inline-block;width:490px}"]});
var zic=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};
var Q3=function(a,b){BI.call(this);this.matDialogService=a;this.analytics=b;this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new Iw};U(Q3,BI);Q3.\u0275dir=BI.\u0275dir;Q3.prototype.ngOnInit=function(){"MISSING"===this.warningType?(this.warningMessage="Team mapping is missing",this.buttonName="Add"):"DELETED"===this.warningType&&(this.warningMessage="This team no longer exists",this.buttonName="Change")};
Q3.prototype.openDialog=function(){var a=this;bo(this.analytics,go.TEAM_WARNING,"open");this.matDialogService.open(P3,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.getTeamId())})}})._afterClosed.pipe(Ye(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};Q3.\u0275fac=function(a){return new (a||Q3)(F(HB),F(SM))};
Q3.\u0275cmp=v({type:Q3,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},features:[gf],decls:4,vars:2,consts:[["messageType","caution","format","app"],[4,"ngIf"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(G(0,"b-callout",0)(1,"b-callout-body"),P(2),H(),O(3,WYa,3,1,"b-callout-actions",1),H());a&
2&&(B(2),If(" ",b.warningMessage," "),B(1),D("ngIf",!b.messageOnly))},dependencies:[yO,jI,kI,sx],encapsulation:2});
var R3=function(a){var b=this;this.teamsService=a;this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new Iw;this.inherit=!1;this.selectedTeam$=new T.Subject;this.teamIdChanged$=new T.ReplaySubject(1);this.placeholder$=this.teamIdChanged$.pipe(C(function(c){return"0"===c?!b.isAdmin||!b.isTopLevel&&b.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),We(""));this.teamFromId$=this.teamIdChanged$.pipe(Xe(function(c){return"0"===
c?(0,T.of)(new ts([c],[""],"")):b.teamsService.getTeam(c).pipe(C(function(d){return new ts([],jb(d,6),d.getDescription())}),Ie(function(){return(0,T.of)(new ts([c],[c],""))}))}));this.displayedTeam$=(0,T.merge)(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(Xe(function(c){return"0"===c?(0,T.of)("MISSING"):b.teamsService.getTeam(c).pipe(C(function(d){return d.getDeleted()?"DELETED":"VALID"}))}))};
R3.prototype.updateSelectionOnChange=function(a){Sn(go.MANAGE_COMPONENT,"autocomplete-select","team",isNaN(Number(a.id))?0:Number(a.id));this.selectedTeam$.next(a);this.model.id=a.id;this.modelChange.emit(this.model)};R3.prototype.ngOnChanges=function(a){a.model&&(this.inherit=this.model.inherit,this.teamIdChanged$.next(this.model.id))};R3.prototype.ngOnInit=function(){Object.assign({},this.model);this.inherit=this.model.inherit;this.teamIdChanged$.next(this.model.id)};
var Bs=function(a){return a.model.id&&"0"!==a.model.id};R3.prototype.getMomaTeamLink=function(){return Bs(this)?"https://moma.corp.google.com/team/"+this.model.id:null};R3.\u0275fac=function(a){return new (a||R3)(F(lM))};
R3.\u0275cmp=v({type:R3,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},features:[Ac],decls:13,vars:13,consts:[[4,"ngIf"],["class","edit-field",4,"ngIf"],[1,"edit-field","component-team-id-select"],["for","component-team-id"],["id","component-team-id","panelWidth","479px",3,"placeholder","disabled","teamSelected","onTeamSelect",
"onEmptyQuery"],[4,"ngIf","ngIfElse"],["externalLink",""],["class","team-warning",4,"ngIf"],[1,"team-warning"],[3,"warningType","messageOnly"],[1,"edit-field"],[3,"disabled","checked","change"],["mat-icon-button","","class","gmat-button small","aria-label","Go to Team page.","matTooltip","Go to Team page.",3,"routerLink","target","click",4,"ngIf"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"gmat-button","small",3,"routerLink","target","click"],["svgIcon",
"pop-out",1,"icon-s"],["mat-icon-button","","class","gmat-button small","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",3,"click",4,"ngIf"],["mat-icon-button","","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"gmat-button","small",3,"click"]],template:function(a,b){a&1&&(G(0,"div"),O(1,YYa,2,1,"ng-container",0),Q(2,"async"),O(3,ZYa,3,2,"div",1),G(4,"div",2)(5,"label",3),P(6,"Team selection"),H(),G(7,"b-team-picker",
4),K("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model)}),Q(8,"async"),Q(9,"async"),H(),O(10,aZa,2,1,"ng-container",5),H()(),O(11,cZa,1,1,"ng-template",null,6,gg));if(a&2){var c=Hf(12);B(1);D("ngIf",R(2,7,b.warningType$));B(2);D("ngIf",!b.isTopLevel);B(4);D("placeholder",R(8,9,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",R(9,11,b.displayedTeam$));B(3);D("ngIf",b.useInternalLink)("ngIfElse",
c)}},dependencies:[sx,LO,$E,T2,Q3,LE,qB,QI,Fx],styles:[".component-team-id-select[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:95px}.component-team-id-select[_ngcontent-%COMP%]   #component-team-id[_ngcontent-%COMP%]{display:inline-block;width:479px}.team-warning[_ngcontent-%COMP%]{width:240px}"],changeDetection:0});
var S3=function(){};S3.\u0275fac=function(a){return new (a||S3)};S3.\u0275mod=rc({type:S3});S3.\u0275inj=fc({imports:[[zO,AO,Mx,wy,jG,MB,dF,nY,JK,bH,rQ]]});
var T3=function(){};T3.\u0275fac=function(a){return new (a||T3)};T3.\u0275mod=rc({type:T3});T3.\u0275inj=fc({imports:[[Mx,yN,PO,bH,V2,S3,wy,dF,jG,WI]]});
var Bic=function(){return"mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}"},U3=function(a){this.documentationLinks=a};U3.\u0275fac=function(a){return new (a||U3)(F(tP))};
U3.\u0275cmp=v({type:U3,selectors:[["b-issue-component-retention-dialog"]],decls:12,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a){a&1&&(G(0,"h1",0),P(1,"Apply component retention settings?"),H(),G(2,"div",
1)(3,"p"),P(4," This issue is currently retained indefinitely. If you select this option, this issue will be scheduled for deletion based on the component retention settings. "),H(),G(5,"a",2),P(6,"Learn more"),H()(),G(7,"div",3)(8,"button",4),P(9," Cancel "),H(),G(10,"button",5),P(11," OK "),H()());a&2&&(B(5),D("href",tt(),Kd),B(3),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},dependencies:[IB,JB,KB,LB,pB],encapsulation:2});
var V3=function(a){this.documentationLinks=a;this.indefiniteRetentionAcknowledged=!1};V3.\u0275fac=function(a){return new (a||V3)(F(tP))};
V3.\u0275cmp=v({type:V3,selectors:[["b-issue-indefinite-retention-dialog"]],decls:27,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["cdkFocusInitial","","label","I acknowledge",3,"checked","change"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close","disabled"]],template:function(a,b){a&1&&(G(0,
"h1",0),P(1,"Retain issue indefinitely?"),H(),G(2,"div",1)(3,"p"),P(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),H(),G(5,"p")(6,"b"),P(7,"Please note indefinite retention is not appropriate in many circumstances."),H(),J(8,"br"),P(9," Before selecting this option, you should make sure at least one of the following is true: "),H(),G(10,"ul")(11,"li"),P(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
H(),G(13,"li"),P(14," You have a process in place to manually delete this issue within an approved period of time. "),H(),G(15,"li"),P(16," Legal and Privacy have approved this non-standard retention period. "),H()(),J(17,"p"),G(18,"p")(19,"a",2),P(20,"Learn more"),H()(),G(21,"b-checkbox",3),K("change",function(c){return b.indefiniteRetentionAcknowledged=c}),H()(),G(22,"div",4)(23,"button",5),P(24," Cancel "),H(),G(25,"button",6),P(26," OK "),H()());a&2&&(B(19),D("href",tt(),Kd),B(2),D("checked",
b.indefiniteRetentionAcknowledged),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[IB,JB,KB,LB,pB,vQ],styles:[".mat-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var W3=function(a){this.documentationLinks=a;this.REMOVAL_URL=dZa()};W3.\u0275fac=function(a){return new (a||W3)(F(tP))};
W3.\u0275cmp=v({type:W3,selectors:[["b-issue-flag-as-spam-dialog"]],decls:18,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",1,"keep-underline",3,"href"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Report spam?"),H(),G(2,"div",1)(3,
"p"),P(4," This will remove the issue from search results but will not delete it from the database. "),G(5,"a",2),P(6,"Learn more"),H()(),J(7,"p"),G(8,"p"),P(9," To delete PII or other sensitive content, "),G(10,"a",2),P(11,"file a support request"),H(),P(12,". "),H()(),G(13,"div",3)(14,"button",4),P(15," Cancel "),H(),G(16,"button",5),P(17," Report spam "),H()());a&2&&(B(5),a=b.documentationLinks,a=a.session.isExternalSession()?a.baseDocumentationUrl+"#terms_of_service":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/public-access#spam",
D("href",a,Kd),B(5),D("href",b.REMOVAL_URL,Kd),B(4),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},dependencies:[IB,JB,KB,LB,pB],encapsulation:2});var X3=function(a,b){this.dialogRef=b;this.newTitle=a.title};X3.prototype.keydown=function(a){"Enter"===a.key&&this.dialogRef.close(this.newTitle)};X3.\u0275fac=function(a){return new (a||X3)(F(FB),F(AB))};
X3.\u0275cmp=v({type:X3,selectors:[["b-issue-edit-title-dialog"]],decls:12,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","","autocomplete","off",3,"ngModel","ngModelChange","keydown"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Edit issue title"),H(),G(2,"div",
1)(3,"mat-form-field")(4,"mat-label"),P(5,"Enter a new issue title:"),H(),G(6,"input",2),K("ngModelChange",function(c){return b.newTitle=c})("keydown",function(c){return b.keydown(c)}),H()()(),G(7,"div",3)(8,"button",4),P(9," Cancel "),H(),G(10,"button",5),P(11," OK "),H()());a&2&&(B(6),D("ngModel",b.newTitle),B(4),D("mat-dialog-close",b.newTitle))},dependencies:[IB,JB,KB,LB,pB,XB,UB,ZB,Fg,by,hy],styles:["mat-form-field[_ngcontent-%COMP%] { width: 100%; }"]});
var Y3=function(a,b){this.documentationLinks=b;this.commentNumber=a.commentNumber;this.issueId=a.issueId;this.deletionReasons=a.deletionReasons};Y3.\u0275fac=function(a){return new (a||Y3)(F(FB),F(tP))};
Y3.\u0275cmp=v({type:Y3,selectors:[["b-issue-delete-comment-dialog"]],decls:14,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"],[3,"value","disabled"],[4,"ngIf"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"div",1)(3,"label"),P(4,"Please select the reason for deleting this comment."),H(),G(5,"a",2),P(6," \u00a0Learn more "),H(),G(7,"mat-radio-group",3),K("ngModelChange",function(c){return b.selectedReason=c}),O(8,fZa,3,4,"mat-radio-button",4),H()(),G(9,"div",5)(10,"button",6),P(11," Cancel "),H(),G(12,"button",7),P(13," Delete "),H()());a&2&&(B(1),Kf("Delete Comment #",b.commentNumber," of Issue ",b.issueId,
""),B(4),D("href",fNb(b.documentationLinks),Kd),B(2),D("ngModel",b.selectedReason),B(1),D("ngForOf",b.deletionReasons),B(4),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[wx,sx,IB,JB,KB,LB,pB,by,hy,eY,gY],styles:[Bic(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var Z3=function(a,b){this.documentationLinks=b;this.deletionReasons=a.deletionReasons;this.attachmentId=a.attachmentId};Z3.\u0275fac=function(a){return new (a||Z3)(F(FB),F(tP))};
Z3.\u0275cmp=v({type:Z3,selectors:[["b-issue-delete-attachment-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"],[3,"value","disabled"],[4,"ngIf"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"div",1)(3,"span"),P(4," Please select the reason for deleting this attachment. "),G(5,"a",2),P(6," \u00a0Learn more "),H()(),G(7,"mat-radio-group",3),K("ngModelChange",function(c){return b.selectedReason=c}),O(8,hZa,3,4,"mat-radio-button",4),H()(),G(9,"div",5)(10,"button",6),P(11," Cancel "),H(),G(12,"button",7),P(13," Delete "),H()());a&2&&(B(1),If("Delete attachment ",b.attachmentId,""),B(4),D("href",
fNb(b.documentationLinks),Kd),B(2),D("ngModel",b.selectedReason),B(1),D("ngForOf",b.deletionReasons),B(4),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[wx,sx,IB,JB,KB,LB,pB,by,hy,eY,gY],styles:[Bic(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var a4=function(){};a4.\u0275fac=function(a){return new (a||a4)};a4.\u0275mod=rc({type:a4});a4.\u0275inj=fc({imports:[[Mx,MB,jG,wQ,$B,wy,YB,dF,nY]]});
var b4=function(){};b4.\u0275fac=function(a){return new (a||b4)};b4.\u0275mod=rc({type:b4});b4.\u0275inj=fc({imports:[[Mx,wy,jG,$B,YB,MB]]});
var c4=function(a,b,c){this.data=a;this.dialogRef=b;this.liveAnnouncer=c;this.originalFields=[];this.fields=[];this.fieldOrdering="FIELD_ORDERING_UNSPECIFIED";this.grabbed=this.hasChanges=!1;this.originalFields=a.fields.concat();this.fields=a.fields.concat();this.fieldOrdering=a.orderingCustomized},Cic=function(a){a.fields.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};c4.prototype.drop=function(a){jp(this.fields,a.previousIndex,a.currentIndex);this.detectChanges()};
var iZa=function(a,b){return 0<b?(jp(a.fields,b,b-1),a.detectChanges(),!0):!1},jZa=function(a,b){return b<a.fields.length-1?(jp(a.fields,b,b+1),a.detectChanges(),!0):!1};c4.prototype.trackByFn=function(){return-1};c4.prototype.onFocus=function(a){this.liveAnnouncer.announce(this.fields[a].name+" focused at position "+(a+1)+" of "+this.fields.length+". Press space to grab the item.")};
c4.prototype.onKeyDown=function(a,b){switch(a.key){case " ":a.preventDefault();Dic(this,b);break;case "Tab":this.grabbed&&Dic(this,b);break;case "ArrowUp":Eic(this,a);break;case "ArrowDown":Eic(this,a)}};
var Dic=function(a,b){a.grabbed?(a.grabbed=!1,a.grabbedIndex=void 0,a.liveAnnouncer.announce(a.fields[b].name+" dropped at position "+(b+1)+" of "+a.fields.length+".")):(a.grabbed=!0,a.grabbedIndex=b,a.liveAnnouncer.announce(a.fields[b].name+" grabbed at position "+(b+1)+" of "+a.fields.length+". Press up and down arrow to move the item."))},Eic=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&void 0!==a.grabbedIndex){if("ArrowUp"===b.key){if(iZa(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else jZa(a,a.grabbedIndex)&&(d=c.nextElementSibling,a.grabbedIndex++);d&&(d.focus(),a.liveAnnouncer.announce(a.fields[a.grabbedIndex].name+" moved to position "+(a.grabbedIndex+1)+" of "+a.fields.length+". Press space to drop the item."))}}};c4.prototype.detectChanges=function(){this.hasChanges=!Ei(this.fields,this.originalFields)};c4.\u0275fac=function(a){return new (a||c4)(F(FB),F(AB),F(Qz))};
c4.\u0275cmp=v({type:c4,selectors:[["b-field-reorder-dialog"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],["mat-dialog-title","",1,"margin-none"],["mat-icon-button","","aria-label","Sorts the fields alphabetically","matTooltip","Sort alphabetically",3,"click"],["svgIcon","sort_by_alpha_24px"],["mat-dialog-content",""],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","","tabindex","0",3,"keydown","focus",4,"ngFor","ngForOf","ngForTrackBy"],
["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action","save",3,"disabled","click"],["cdkDrag","","tabindex","0",3,"keydown","focus"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[1,"arrows"],["mat-icon-button","","aria-label","Move the field up",3,"click"],["svgIcon","arrow-up"],["mat-icon-button","","aria-label","Move the field down",3,"click"],["svgIcon",
"arrow-down"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"h1",2),P(3," Reorder custom fields "),H(),G(4,"button",3),K("click",function(){return Cic(b)}),J(5,"mat-icon",4),H()()(),G(6,"div",5)(7,"ol",6),K("cdkDropListDropped",function(c){return b.drop(c)}),O(8,kZa,9,7,"li",7),H()(),G(9,"div",8)(10,"button",9),K("click",function(){return b.dialogRef.close()}),P(11," Cancel "),H(),G(12,"button",10),K("click",function(){return b.dialogRef.close(b.fields)}),P(13," Save "),H()());a&2&&(B(8),
D("ngForOf",b.fields)("ngForTrackBy",b.trackByFn),B(4),D("disabled","CUSTOMIZED"===b.fieldOrdering&&!b.hasChanges))},dependencies:[wx,pB,JB,KB,LB,sV,tV,mV,$E,LE],styles:["ol[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);font-size:.8125rem;padding:10px;display:flex;align-items:center}li[_ngcontent-%COMP%]   .arrows[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:5px;opacity:.2}li[_ngcontent-%COMP%]   .arrows[_ngcontent-%COMP%]{margin-left:auto}li[aria-grabbed=true][_ngcontent-%COMP%]:focus   span[_ngcontent-%COMP%]{font-style:italic}li[_ngcontent-%COMP%]:focus{border-radius:3px;box-shadow:0 0 0 3px rgba(0,0,0,.1)}li[_ngcontent-%COMP%]:focus   .drag-handle[_ngcontent-%COMP%]{opacity:1}li[_ngcontent-%COMP%]:focus   .arrows[_ngcontent-%COMP%]{visibility:visible}li[_ngcontent-%COMP%]:focus   .arrows.invisible[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]:hover   .drag-handle[_ngcontent-%COMP%]{opacity:1}li[_ngcontent-%COMP%]:hover   .arrows[_ngcontent-%COMP%]{visibility:visible}li[_ngcontent-%COMP%]:hover   .arrows.invisible[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]:last-of-type{border-bottom:none;margin-bottom:3px}li[_ngcontent-%COMP%]:first-of-type{margin-top:3px}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.3}.cdk-drag-preview[_ngcontent-%COMP%]{opacity:.3;border-bottom:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform 250ms cubic-bezier(0, 0, 0.2, 1)}"]});
var d4=new jd("CDK_TABLE");new jd("text-column-options");
var e4=function(a){this.template=a};e4.\u0275fac=function(a){return new (a||e4)(F(Vf))};e4.\u0275dir=v({type:e4,selectors:[["","cdkCellDef",""]]});var f4=function(a){this.template=a};f4.\u0275fac=function(a){return new (a||f4)(F(Vf))};f4.\u0275dir=v({type:f4,selectors:[["","cdkHeaderCellDef",""]]});var g4=function(a){this.template=a};g4.\u0275fac=function(a){return new (a||g4)(F(Vf))};g4.\u0275dir=v({type:g4,selectors:[["","cdkFooterCellDef",""]]});
var Fic=lZa(function(){}),h4=function(a){var b=Fic.call(this)||this;b._table=a;b._stickyEnd=!1;return b};U(h4,Fic);h4.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};h4.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
ki.Object.defineProperties(h4.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}},stickyEnd:{configurable:!0,enumerable:!0,get:function(){return this._stickyEnd},set:function(a){var b=this._stickyEnd;this._stickyEnd=Rg(a);this._hasStickyChanged=b!==this._stickyEnd}}});h4.\u0275fac=function(a){return new (a||h4)(F(d4,8))};
h4.\u0275dir=v({type:h4,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&($f(c,e4,5),$f(c,f4,5),$f(c,g4,5));if(a&2){var d;Yf(d=ag())&&(b.cell=d.first);Yf(d=ag())&&(b.headerCell=d.first);Yf(d=ag())&&(b.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Lf([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h4}]),gf]});
var Gic=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,u(a._columnCssClassName))},i4=function(a,b){Gic.call(this,a,b)};U(i4,Gic);i4.\u0275fac=function(a){return new (a||i4)(F(h4),F(nd))};i4.\u0275dir=v({type:i4,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[gf]});
var j4=function(a,b){Gic.call(this,a,b);var c;1===(null==(c=a._table)?void 0:c._elementRef.nativeElement.nodeType)&&(a=a._table._elementRef.nativeElement.getAttribute("role"),b.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell"))};U(j4,Gic);j4.\u0275fac=function(a){return new (a||j4)(F(h4),F(nd))};j4.\u0275dir=v({type:j4,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[gf]});
var Hic=function(){this.tasks=[];this.endTasks=[]},Iic=new jd("_COALESCED_STYLE_SCHEDULER"),k4=function(a){this._ngZone=a;this._currentSchedule=null;this._destroyed=new T.Subject};k4.prototype.schedule=function(a){this._createScheduleIfNeeded();this._currentSchedule.tasks.push(a)};k4.prototype.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};
k4.prototype._createScheduleIfNeeded=function(){var a=this;this._currentSchedule||(this._currentSchedule=new Hic,this._getScheduleObservable().pipe(Ye(this._destroyed)).subscribe(function(){for(;a._currentSchedule.tasks.length||a._currentSchedule.endTasks.length;){var b=a._currentSchedule;a._currentSchedule=new Hic;for(var c=r(b.tasks),d=c.next();!d.done;d=c.next())d=d.value,d();b=r(b.endTasks);for(d=b.next();!d.done;d=b.next())c=d.value,c()}a._currentSchedule=null}))};
k4.prototype._getScheduleObservable=function(){return this._ngZone.isStable?(0,T.from)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Me())};k4.\u0275fac=function(a){return new (a||k4)(t(ef))};k4.\u0275prov=ec({token:k4,factory:k4.\u0275fac});
var l4=function(a,b){this.template=a;this._differs=b};l4.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};l4.\u0275fac=function(a){return new (a||l4)(F(Vf),F(qx))};l4.\u0275dir=v({type:l4,features:[Ac]});var Jic=function(){l4.apply(this,arguments)};U(Jic,l4);Jic.\u0275dir=l4.\u0275dir;Jic.\u0275fac=l4.\u0275fac;
var Kic=lZa(Jic),m4=function(a,b,c){a=Kic.call(this,a,b)||this;a._table=c;return a};U(m4,Kic);m4.prototype.ngOnChanges=function(a){Kic.prototype.ngOnChanges.call(this,a)};m4.\u0275fac=function(a){return new (a||m4)(F(Vf),F(qx),F(d4,8))};m4.\u0275dir=v({type:m4,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[gf,Ac]});var Lic=function(){l4.apply(this,arguments)};U(Lic,l4);Lic.\u0275dir=l4.\u0275dir;
Lic.\u0275fac=l4.\u0275fac;var Mic=lZa(Lic),n4=function(a,b,c){a=Mic.call(this,a,b)||this;a._table=c;return a};U(n4,Mic);n4.prototype.ngOnChanges=function(a){Mic.prototype.ngOnChanges.call(this,a)};n4.\u0275fac=function(a){return new (a||n4)(F(Vf),F(qx),F(d4,8))};n4.\u0275dir=v({type:n4,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[gf,Ac]});var o4=function(a,b,c){l4.call(this,a,b);this._table=c};U(o4,l4);
o4.\u0275fac=function(a){return new (a||o4)(F(Vf),F(qx),F(d4,8))};o4.\u0275dir=v({type:o4,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[gf]});var q4=function(a){this._viewContainer=a;p4=this};q4.prototype.ngOnDestroy=function(){p4===this&&(p4=null)};var p4=null;q4.\u0275fac=function(a){return new (a||q4)(F(Wf))};q4.\u0275dir=v({type:q4,selectors:[["","cdkCellOutlet",""]]});var r4=function(){};
r4.\u0275fac=function(a){return new (a||r4)};r4.\u0275cmp=v({type:r4,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&zf(0,0)},dependencies:[q4],encapsulation:2});var s4=function(){};s4.\u0275fac=function(a){return new (a||s4)};
s4.\u0275cmp=v({type:s4,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&zf(0,0)},dependencies:[q4],encapsulation:2});var t4=function(a){this.templateRef=a;this._contentClassName="cdk-no-data-row"};t4.\u0275fac=function(a){return new (a||t4)(F(Vf))};t4.\u0275dir=v({type:t4,selectors:[["ng-template","cdkNoDataRow",""]]});
var Nic=new jd("CDK_SPL");
var Oic=["top","bottom","left","right"],Pic=function(a,b,c,d,e,f,h){e=void 0===e?!0:e;f=void 0===f?!0:f;this._isNativeHtmlTable=a;this._stickCellCss=b;this.direction=c;this._coalescedStyleScheduler=d;this._isBrowser=e;this._needsPositionStickyOnElement=f;this._positionListener=h;this._cachedCellWidths=[];this._borderCellCss={top:b+"-border-elem-top",bottom:b+"-border-elem-bottom",left:b+"-border-elem-left",right:b+"-border-elem-right"}},Qic=function(a,b,c){var d=[];b=r(b);for(var e=b.next();!e.done;e=
b.next())if(e=e.value,e.nodeType===e.ELEMENT_NODE){d.push(e);for(var f=0;f<e.children.length;f++)d.push(e.children[f])}a._coalescedStyleScheduler.schedule(function(){for(var h=r(d),k=h.next();!k.done;k=h.next())a._removeStickyStyle(k.value,c)})},Ric=function(a,b,c,d,e){e=void 0===e?!0:e;if(b.length&&a._isBrowser&&(c.some(function(I){return I})||d.some(function(I){return I}))){var f=b[0],h=f.children.length,k=a._getCellWidths(f,e),q=a._getStickyStartColumnPositions(k,c),w=a._getStickyEndColumnPositions(k,
d),y=c.lastIndexOf(!0),E=d.indexOf(!0);a._coalescedStyleScheduler.schedule(function(){var I="rtl"===a.direction,N=I?"right":"left";I=I?"left":"right";for(var L=r(b),S=L.next();!S.done;S=L.next()){S=S.value;for(var Y=0;Y<h;Y++){var ka=S.children[Y];c[Y]&&a._addStickyStyle(ka,N,q[Y],Y===y);d[Y]&&a._addStickyStyle(ka,I,w[Y],Y===E)}}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===y?[]:k.slice(0,y+1).map(function(ha,ya){return c[ya]?ha:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===
E?[]:k.slice(E).map(function(ha,ya){return d[ya+E]?ha:null}).reverse()}))})}else a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:[]}),a._positionListener.stickyEndColumnsUpdated({sizes:[]}))},Sic=function(a,b,c,d){if(a._isBrowser){var e="bottom"===d?b.slice().reverse():b,f="bottom"===d?c.slice().reverse():c,h=[],k=[],q=[];for(c=b=0;b<e.length;b++)if(f[b]){h[b]=c;var w=e[b];q[b]=a._isNativeHtmlTable?Array.from(w.children):[w];w=w.getBoundingClientRect().height;c+=w;k[b]=w}var y=
f.lastIndexOf(!0);a._coalescedStyleScheduler.schedule(function(){for(var E=0;E<e.length;E++)if(f[E])for(var I=h[E],N=E===y,L=r(q[E]),S=L.next();!S.done;S=L.next())a._addStickyStyle(S.value,d,I,N);if("top"===d){var Y;null==(Y=a._positionListener)||Y.stickyHeaderRowsUpdated({sizes:k,offsets:h,elements:q})}else{var ka;null==(ka=a._positionListener)||ka.stickyFooterRowsUpdated({sizes:k,offsets:h,elements:q})}})}},Tic=function(a,b,c){if(a._isNativeHtmlTable){var d=b.querySelector("tfoot");a._coalescedStyleScheduler.schedule(function(){c.some(function(e){return!e})?
a._removeStickyStyle(d,["bottom"]):a._addStickyStyle(d,"bottom",0,!1)})}};g=Pic.prototype;g._removeStickyStyle=function(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);Oic.some(function(e){return-1===b.indexOf(e)&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))};
g._addStickyStyle=function(a,b,c,d){a.classList.add(this._stickCellCss);d&&a.classList.add(this._borderCellCss[b]);a.style[b]=c+"px";a.style.zIndex=this._getCalculatedZIndex(a);this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")};g._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=r(Oic),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
g._getCellWidths=function(a,b){if(void 0!==b&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(a[c].getBoundingClientRect().width);return this._cachedCellWidths=b};g._getStickyStartColumnPositions=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++)b[e]&&(c[e]=d,d+=a[e]);return c};g._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;0<e;e--)b[e]&&(c[e]=d,d+=a[e]);return c};
var Uic=[[["caption"]],[["colgroup"],["col"]]],u4=function(a,b){this.viewContainer=a;this.elementRef=b};u4.\u0275fac=function(a){return new (a||u4)(F(Wf),F(nd))};u4.\u0275dir=v({type:u4,selectors:[["","rowOutlet",""]]});var v4=function(a,b){this.viewContainer=a;this.elementRef=b};v4.\u0275fac=function(a){return new (a||v4)(F(Wf),F(nd))};v4.\u0275dir=v({type:v4,selectors:[["","headerRowOutlet",""]]});var w4=function(a,b){this.viewContainer=a;this.elementRef=b};
w4.\u0275fac=function(a){return new (a||w4)(F(Wf),F(nd))};w4.\u0275dir=v({type:w4,selectors:[["","footerRowOutlet",""]]});var x4=function(a,b){this.viewContainer=a;this.elementRef=b};x4.\u0275fac=function(a){return new (a||x4)(F(Wf),F(nd))};x4.\u0275dir=v({type:x4,selectors:[["","noDataRowOutlet",""]]});
var y4=function(a,b,c,d,e,f,h,k,q,w,y,E){this._differs=a;this._changeDetectorRef=b;this._elementRef=c;this._dir=e;this._platform=h;this._viewRepeater=k;this._coalescedStyleScheduler=q;this._viewportRuler=w;this._stickyPositioningListener=y;this._ngZone=E;this._onDestroy=new T.Subject;this._columnDefsByName=new Map;this._customColumnDefs=new Set;this._customRowDefs=new Set;this._customHeaderRowDefs=new Set;this._customFooterRowDefs=new Set;this._forceRecalculateCellWidths=this._stickyColumnStylesNeedReset=
this._footerRowDefChanged=this._headerRowDefChanged=!0;this._cachedRenderRowsMap=new Map;this.stickyCssClass="cdk-table-sticky";this.needsPositionStickyOnElement=!0;this._fixedLayout=this._multiTemplateDataRows=this._isShowingNoDataRow=!1;this.contentChanged=new Iw;d||this._elementRef.nativeElement.setAttribute("role","table");this._document=f;this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName};
y4.prototype.ngOnInit=function(){var a=this;this._setupStickyStyler();this._isNativeHtmlTable&&this._applyNativeTableSections();this._dataDiffer=this._differs.find([]).create(function(b,c){return a.trackBy?a.trackBy(c.dataIndex,c.data):c});this._viewportRuler.change().pipe(Ye(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};
y4.prototype.ngAfterContentChecked=function(){this._cacheRowDefs();this._cacheColumnDefs();var a=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||a;this._forceRecalculateCellWidths=a;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1);this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1);this.dataSource&&0<this._rowDefs.length&&
!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&z4(this);this._checkStickyStates()};
y4.prototype.ngOnDestroy=function(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(a){a.clear()});this._headerRowDefs=[];this._footerRowDefs=[];this._defaultRowDef=null;this._onDestroy.next();this._onDestroy.complete();ila(this.dataSource)&&this.dataSource.disconnect(this)};
y4.prototype.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;xpb(b,c,function(d,e,f){return a._getEmbeddedViewArgs(d.item,f)},function(d){1===d.operation&&d.context&&a._renderCellTemplateForItem(d.record.item.rowDef,d.context)});this._updateRowIndexContext();Mmb(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();this._ngZone&&Jw()?this._ngZone.onStable.pipe(Me(),
Ye(this._onDestroy)).subscribe(function(){z4(a)}):z4(this)}else this._updateNoDataRow();this.contentChanged.next()};
var Vic=function(a){var b=a._getRenderedRows(a._headerRowOutlet),c=a._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=b.length?"":"none");c=a._headerRowDefs.map(function(d){return d.sticky});Qic(a._stickyStyler,b,["top"]);Sic(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},Wic=function(a){var b=a._getRenderedRows(a._footerRowOutlet),c=a._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=b.length?"":"none");c=a._footerRowDefs.map(function(d){return d.sticky});
Qic(a._stickyStyler,b,["bottom"]);Sic(a._stickyStyler,b,c,"bottom");Tic(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},z4=function(a){var b=a._getRenderedRows(a._headerRowOutlet),c=a._getRenderedRows(a._rowOutlet),d=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable&&!a._fixedLayout||a._stickyColumnStylesNeedReset)Qic(a._stickyStyler,[].concat(u(b),u(c),u(d)),["left","right"]),a._stickyColumnStylesNeedReset=!1;b.forEach(function(e,
f){a._addStickyColumnStyles([e],a._headerRowDefs[f])});a._rowDefs.forEach(function(e){for(var f=[],h=0;h<c.length;h++)a._renderRows[h].rowDef===e&&f.push(c[h]);a._addStickyColumnStyles(f,e)});d.forEach(function(e,f){a._addStickyColumnStyles([e],a._footerRowDefs[f])});Array.from(a._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})};g=y4.prototype;
g._getAllRenderRows=function(){var a=[],b=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var c=0;c<this._data.length;c++){var d=this._data[c],e=this._getRenderRowsForData(d,c,b.get(d));this._cachedRenderRowsMap.has(d)||this._cachedRenderRowsMap.set(d,new WeakMap);for(d=0;d<e.length;d++){var f=e[d],h=this._cachedRenderRowsMap.get(f.data);h.has(f.rowDef)?h.get(f.rowDef).push(f):h.set(f.rowDef,[f]);a.push(f)}}return a};
g._getRenderRowsForData=function(a,b,c){return this._getRowDefs(a,b).map(function(d){var e=c&&c.has(d)?c.get(d):[];return e.length?(d=e.shift(),d.dataIndex=b,d):{data:a,rowDef:d,dataIndex:b}})};g._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();Cs(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
g._cacheRowDefs=function(){this._headerRowDefs=Cs(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=Cs(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=Cs(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
g._renderUpdatedColumns=function(){var a=function(d,e){return d||!!e._columnsDiffer.diff(e.columns)},b=this._rowDefs.reduce(a,!1);b&&this._forceRenderDataRows();var c=this._headerRowDefs.reduce(a,!1);c&&this._forceRenderHeaderRows();(a=this._footerRowDefs.reduce(a,!1))&&this._forceRenderFooterRows();return b||c||a};
g._switchDataSource=function(a){this._data=[];ila(this.dataSource)&&this.dataSource.disconnect(this);this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null);a||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear());this._dataSource=a};
g._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;ila(this.dataSource)?b=this.dataSource.connect(this):(0,T.isObservable)(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=(0,T.of)(this.dataSource));this._renderChangeSubscription=b.pipe(Ye(this._onDestroy)).subscribe(function(c){a._data=c||[];a.renderRows()})}};
g._forceRenderHeaderRows=function(){var a=this;0<this._headerRowOutlet.viewContainer.length&&this._headerRowOutlet.viewContainer.clear();this._headerRowDefs.forEach(function(b,c){return a._renderRow(a._headerRowOutlet,b,c)});Vic(this)};g._forceRenderFooterRows=function(){var a=this;0<this._footerRowOutlet.viewContainer.length&&this._footerRowOutlet.viewContainer.clear();this._footerRowDefs.forEach(function(b,c){return a._renderRow(a._footerRowOutlet,b,c)});Wic(this)};
g._addStickyColumnStyles=function(a,b){var c=this,d=Array.from(b.columns||[]).map(function(e){return c._columnDefsByName.get(e)});b=d.map(function(e){return e.sticky});d=d.map(function(e){return e.stickyEnd});Ric(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};g._getRenderedRows=function(a){for(var b=[],c=0;c<a.viewContainer.length;c++){var d=a.viewContainer.get(c);b.push(d.rootNodes[0])}return b};
g._getRowDefs=function(a,b){if(1==this._rowDefs.length)return[this._rowDefs[0]];var c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(function(e){return!e.when||e.when(b,a)});else{var d=this._rowDefs.find(function(e){return e.when&&e.when(b,a)})||this._defaultRowDef;d&&c.push(d)}return c};g._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
g._renderRow=function(a,b,c,d){d=void 0===d?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};g._renderCellTemplateForItem=function(a,b){a=r(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,p4&&p4._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
g._updateRowIndexContext=function(){for(var a=this._rowOutlet.viewContainer,b=0,c=a.length;b<c;b++){var d=a.get(b).context;d.count=c;d.first=0===b;d.last=b===c-1;d.even=0===b%2;d.odd=!d.even;this.multiTemplateDataRows?(d.dataIndex=this._renderRows[b].dataIndex,d.renderIndex=b):d.index=this._renderRows[b].dataIndex}};
g._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof m4?c.headerCell.template:a instanceof n4?c.footerCell.template:c.cell.template}):[]};
g._applyNativeTableSections=function(){for(var a=this._document.createDocumentFragment(),b=r([{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}]),c=b.next();!c.done;c=b.next()){var d=c.value;c=this._document.createElement(d.tag);c.setAttribute("role","rowgroup");d=r(d.outlets);for(var e=d.next();!e.done;e=d.next())c.appendChild(e.value.elementRef.nativeElement);a.appendChild(c)}this._elementRef.nativeElement.appendChild(a)};
g._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();this.renderRows()};g._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&Vic(this);this._footerRowDefs.reduce(a,!1)&&Wic(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,z4(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new Pic(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,T.of)()).pipe(Ye(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;z4(a)})};g._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
g._updateNoDataRow=function(){var a=this._customNoDataRow||this._noDataRow;if(a){var b=0===this._rowOutlet.viewContainer.length;if(b!==this._isShowingNoDataRow){var c=this._noDataRowOutlet.viewContainer;b?(a=c.createEmbeddedView(a.templateRef),c=a.rootNodes[0],1===a.rootNodes.length&&(null==c?void 0:c.nodeType)===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add("cdk-no-data-row"))):c.clear();this._isShowingNoDataRow=b}}};
ki.Object.defineProperties(y4.prototype,{trackBy:{configurable:!0,enumerable:!0,get:function(){return this._trackByFn},set:function(a){this._trackByFn=a}},dataSource:{configurable:!0,enumerable:!0,get:function(){return this._dataSource},set:function(a){this._dataSource!==a&&this._switchDataSource(a)}},multiTemplateDataRows:{configurable:!0,enumerable:!0,get:function(){return this._multiTemplateDataRows},set:function(a){this._multiTemplateDataRows=Rg(a);this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),z4(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=Rg(a);this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});y4.\u0275fac=function(a){return new (a||y4)(F(qx),F(lx),F(nd),Xc("role"),F(hA,8),F(ii),F(yy),F(ypb),F(Iic),F(wA),F(Nic,12),F(ef,8))};
y4.\u0275cmp=v({type:y4,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&($f(c,t4,5),$f(c,h4,5),$f(c,o4,5),$f(c,m4,5),$f(c,n4,5));if(a&2){var d;Yf(d=ag())&&(b._noDataRow=d.first);Yf(d=ag())&&(b._contentColumnDefs=d);Yf(d=ag())&&(b._contentRowDefs=d);Yf(d=ag())&&(b._contentHeaderRowDefs=d);Yf(d=ag())&&(b._contentFooterRowDefs=d)}},viewQuery:function(a,b){a&1&&(Zf(u4,7),Zf(v4,7),Zf(w4,7),Zf(x4,7));if(a&2){var c;Yf(c=ag())&&(b._rowOutlet=c.first);Yf(c=ag())&&(b._headerRowOutlet=
c.first);Yf(c=ag())&&(b._footerRowOutlet=c.first);Yf(c=ag())&&(b._noDataRowOutlet=c.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&sf("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Lf([{provide:d4,useExisting:y4},{provide:ypb,useClass:wpb},{provide:Iic,useClass:k4},{provide:Nic,
useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a){a&1&&(Cf(Uic),Df(0),Df(1,1),zf(2,0)(3,1)(4,2)(5,3))},dependencies:[u4,v4,w4,x4],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});
var A4=function(){};A4.\u0275fac=function(a){return new (a||A4)};A4.\u0275mod=rc({type:A4});A4.\u0275inj=fc({imports:[[yA]]});
var B4=function(){e4.apply(this,arguments)};U(B4,e4);B4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(B4)))(b||B4)}}();B4.\u0275dir=v({type:B4,selectors:[["","matCellDef",""]],features:[Lf([{provide:e4,useExisting:B4}]),gf]});var C4=function(){f4.apply(this,arguments)};U(C4,f4);C4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(C4)))(b||C4)}}();C4.\u0275dir=v({type:C4,selectors:[["","matHeaderCellDef",""]],features:[Lf([{provide:f4,useExisting:C4}]),gf]});
var D4=function(){return h4.apply(this,arguments)||this};U(D4,h4);D4.prototype._updateColumnCssClassName=function(){h4.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};ki.Object.defineProperties(D4.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});D4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(D4)))(b||D4)}}();
D4.\u0275dir=v({type:D4,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Lf([{provide:h4,useExisting:D4},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:D4}]),gf]});var E4=function(){i4.apply(this,arguments)};U(E4,i4);E4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(E4)))(b||E4)}}();E4.\u0275dir=v({type:E4,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[gf]});
var F4=function(){j4.apply(this,arguments)};U(F4,j4);F4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(F4)))(b||F4)}}();F4.\u0275dir=v({type:F4,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[gf]});
var G4=function(){return m4.apply(this,arguments)||this};U(G4,m4);G4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(G4)))(b||G4)}}();G4.\u0275dir=v({type:G4,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Lf([{provide:m4,useExisting:G4}]),gf]});var H4=function(){o4.apply(this,arguments)};U(H4,o4);H4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(H4)))(b||H4)}}();
H4.\u0275dir=v({type:H4,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Lf([{provide:o4,useExisting:H4}]),gf]});var I4=function(){};U(I4,r4);I4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(I4)))(b||I4)}}();
I4.\u0275cmp=v({type:I4,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Lf([{provide:r4,useExisting:I4}]),gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&zf(0,0)},dependencies:[q4],encapsulation:2});var J4=function(){};U(J4,s4);J4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(J4)))(b||J4)}}();
J4.\u0275cmp=v({type:J4,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Lf([{provide:s4,useExisting:J4}]),gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&zf(0,0)},dependencies:[q4],encapsulation:2});
var Xic=[[["caption"]],[["colgroup"],["col"]]],K4=function(){y4.apply(this,arguments);this.stickyCssClass="mat-table-sticky";this.needsPositionStickyOnElement=!1};U(K4,y4);K4.\u0275fac=function(){var a;return function(b){return(a||(a=cd(K4)))(b||K4)}}();
K4.\u0275cmp=v({type:K4,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(a,b){a&2&&sf("mat-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Lf([{provide:ypb,useClass:wpb},{provide:y4,useExisting:K4},{provide:d4,useExisting:K4},{provide:Iic,useClass:k4},{provide:Nic,useValue:null}]),gf],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",
""]],template:function(a){a&1&&(Cf(Xic),Df(0),Df(1,1),zf(2,0)(3,1)(4,2)(5,3))},dependencies:[u4,v4,w4,x4],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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],
encapsulation:2});
var L4=function(a,b,c,d,e){this.matDialog=a;this.confirmationDialog=b;this.fieldConfigService=c;this.analytics=d;this.butterBar=e;this.fields=[];this.isAdmin=!1;this.onReload=new Iw;this.displayedColumn=["index","name","type","required","customFieldId"]},zZa=function(a){return a.matDialog.open(c4,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})._afterClosed.subscribe(function(b){b&&Yic(a,b)})},AZa=function(a){a.confirmationDialog.open({title:"Reset ordering?",
content:Nn("Resetting the ordering of the custom fields will return them to the position defined by its parent component. This action may also reset the ordering of fields in all other sub-components."),onConfirm:function(){a.reset()}})},Yic=function(a,b){bo(a.analytics,go.FIELD_ORDERING,"reorderFields");var c=b.map(function(d){return(new el).setCustomFieldId(d.customFieldId)});a.componentId?(PK(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){PK(a.butterBar,
"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){QK(a.butterBar,"Saving ordering failed, please refresh the page.",5E3)})):QK(a.butterBar,"Saving ordering failed due to the undefined component id.")};
L4.prototype.reset=function(){var a=this;bo(this.analytics,go.FIELD_ORDERING,"resetFields");this.componentId?(PK(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:vL}).subscribe(function(){PK(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){QK(a.butterBar,"Reset failed.")})):QK(this.butterBar,"Reset failed due to the undefined component id.")};
L4.\u0275fac=function(a){return new (a||L4)(F(HB),F(aN),F(E3),F(SM),F(OK))};
L4.\u0275cmp=v({type:L4,selectors:[["b-field-reorder"]],inputs:{fields:"fields",componentId:"componentId",fieldOrdering:"fieldOrdering",isAdmin:"isAdmin"},outputs:{onReload:"onReload"},decls:22,vars:5,consts:[[1,"field-reorder-panel"],[1,"field-order-table"],["mat-table","",3,"dataSource"],["matColumnDef","index"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","required"],["matColumnDef","customFieldId"],["mat-header-row",
"",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-data-row",4,"ngIf"],["class","edit-button-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"no-data-row"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button","medium",3,"disabled","click"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"table",2),xf(3,3),O(4,mZa,2,0,"th",4),O(5,nZa,2,1,"td",5),yf(),xf(6,6),O(7,oZa,2,0,"th",4),O(8,pZa,
2,1,"td",5),yf(),xf(9,7),O(10,qZa,2,0,"th",4),O(11,rZa,3,3,"td",5),yf(),xf(12,8),O(13,sZa,2,0,"th",4),O(14,tZa,2,1,"td",5),yf(),xf(15,9),O(16,uZa,2,0,"th",4),O(17,vZa,2,1,"td",5),yf(),O(18,wZa,1,0,"tr",10),O(19,xZa,1,0,"tr",11),H(),O(20,yZa,2,0,"div",12),H(),O(21,BZa,6,2,"div",13),H());a&2&&(B(2),D("dataSource",b.fields),B(16),D("matHeaderRowDef",b.displayedColumn),B(1),D("matRowDefColumns",b.displayedColumn),B(1),D("ngIf",0===b.fields.length),B(1),D("ngIf",b.isAdmin))},dependencies:[sx,pB,K4,C4,
G4,D4,B4,H4,E4,F4,I4,J4,KS],styles:["th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:8px;text-align:left;font-size:.8125rem;border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider)}th[_ngcontent-%COMP%]{font-weight:bold;color:#202124;color:var(--text-high-contrast)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider)}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type{padding-left:8px}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type{padding-right:8px}.no-data-row[_ngcontent-%COMP%]{padding:12px}button[_ngcontent-%COMP%]{margin-right:12px}"]});
var M4=function(){};M4.\u0275fac=function(a){return new (a||M4)};M4.\u0275mod=rc({type:M4});M4.\u0275inj=fc({providers:[aN],imports:[[Mx,jG,MB]]});
var N4=function(){};N4.\u0275fac=function(a){return new (a||N4)};N4.\u0275mod=rc({type:N4});N4.\u0275inj=fc({imports:[[A4,VA],VA]});
var O4=function(){};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275mod=rc({type:O4});O4.\u0275inj=fc({imports:[[Mx,jG,zO,MB,N4,uV,bH,dI,dF,M4,LS]]});
var P4=function(a){this.analytics=a;this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},DZa=function(a,b){switch(a.packageName){case "wiki":return"https://wiki.corp.google.com/twiki/bin/view/"+encodeURIComponent(a.filename);default:var c="https://cs.corp.google.com/"+encodeURIComponent(a.packageName)+"/"+a.filename+"?q="+Zic+a.issueId+$ic;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
P4.prototype.trackClick=function(a){bo(this.analytics,"codeMentions","clickCodeSearchLink",a)};P4.\u0275fac=function(a){return new (a||P4)(F(SM))};
P4.\u0275cmp=v({type:P4,selectors:[["b-file-mention"]],inputs:{issueId:"issueId",packageName:"packageName",filename:"filename",lineNumbers:"lineNumbers",changeNumber:"changeNumber"},decls:5,vars:4,consts:[[1,"bv2-file-mention"],["target","_blank",1,"bv2-file-mention-filename",3,"href","click"],[4,"ngIf"],[1,"bv2-file-mention-line-number-list"],["class","bv2-file-mention-line-number",4,"ngFor","ngForOf"],[1,"bv2-file-mention-line-number"],["target","_blank",3,"href","click"]],template:function(a,b){a&
1&&(G(0,"div",0)(1,"a",1),K("click",function(){return b.trackClick("fileName")}),P(2),H(),O(3,CZa,2,1,"span",2),O(4,FZa,5,1,"span",2),H());a&2&&(B(1),D("href",DZa(b,b.lineNumbers),Kd),B(1),If(" ",b.filename," "),B(1),D("ngIf",!(10>=b.lineNumbers.length&&"wiki"!=b.packageName)),B(1),D("ngIf",10>=b.lineNumbers.length&&"wiki"!=b.packageName))},dependencies:[wx,sx],encapsulation:2});var Zic=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),$ic=encodeURIComponent("(\\b|$)");
var Q4=function(){};Q4.\u0275fac=function(a){return new (a||Q4)};Q4.\u0275mod=rc({type:Q4});Q4.\u0275inj=fc({imports:[[Mx]]});
var R4=function(){this.isReady=!1};R4.\u0275fac=function(a){return new (a||R4)};R4.\u0275cmp=v({type:R4,selectors:[["onedev-async-data-placeholder"]],inputs:{isReady:"isReady"},ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","loading-indicator",4,"ngIf"],[4,"ngIf"],[1,"loading-indicator"]],template:function(a,b){a&1&&(Cf(),O(0,GZa,1,0,"div",0),O(1,HZa,2,0,"ng-container",1));a&2&&(D("ngIf",!b.isReady),B(1),D("ngIf",b.isReady))},dependencies:[sx],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.loading-indicator[_ngcontent-%COMP%]{-webkit-animation:opacity-gradient .5s linear 0s infinite alternate;animation:opacity-gradient .5s linear 0s infinite alternate;background-image:-webkit-gradient(linear,left top,right top,from(#f1f3f4),to(#dadce0));background-image:-webkit-linear-gradient(left,#f1f3f4,#dadce0);background-image:linear-gradient(90deg,#f1f3f4,#dadce0);border-radius:3px;height:10px;width:80px;display:inline-block}@-webkit-keyframes opacity-gradient{0%{opacity:0}to{opacity:1}}@keyframes opacity-gradient{0%{opacity:0}to{opacity:1}}"]});
var S4=function(){this.warning=""};S4.\u0275fac=function(a){return new (a||S4)};
S4.\u0275cmp=v({type:S4,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&sf("is-present",b.warning)},inputs:{warning:"warning"},decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip"],["d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"]],template:function(a,b){a&1&&O(0,IZa,2,1,"svg",0);a&2&&
D("ngIf",b.warning)},dependencies:[sx,$E],styles:[".is-present[_nghost-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:16px;line-height:16px;width:16px}svg[_ngcontent-%COMP%]{color:var(--icon-warn,#e37400);fill:currentColor;width:16px;height:16px}"]});
var ajc=["*",[["","actions",""]]],bjc=[[["onedev-field-label"]],[["onedev-field-value"]]],cjc=0,T4=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+cjc;cjc++};T4.\u0275fac=function(a){return new (a||T4)};
T4.\u0275cmp=v({type:T4,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&nf("id",b.id)},inputs:{thinking:"thinking",labelTooltip:"labelTooltip",warning:"warning"},ngContentSelectors:["*"],decls:4,vars:3,consts:[[3,"isReady"],[1,"label",3,"matTooltip"],[3,"warning"]],template:function(a,b){a&1&&(Cf(),G(0,"onedev-async-data-placeholder",0)(1,"span",1),Df(2),H(),J(3,"onedev-warning-icon",2),H());a&2&&(D("isReady",!b.thinking),B(1),D("matTooltip",b.labelTooltip),B(2),D("warning",
b.warning))},dependencies:[R4,$E,S4],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var U4=function(){this.thinking=!1};U4.\u0275fac=function(a){return new (a||U4)};
U4.\u0275cmp=v({type:U4,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(Cf(ajc),G(0,"onedev-async-data-placeholder",0),Df(1),Df(2,1),H());a&2&&D("isReady",!b.thinking)},dependencies:[R4],encapsulation:2});var V4=function(){this.labelPosition="left"};V4.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
V4.\u0275fac=function(a){return new (a||V4)};
V4.\u0275cmp=v({type:V4,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&($f(c,bQ,5),$f(c,T4,7));if(a&2){var d;Yf(d=ag())&&(b.field=d.first);Yf(d=ag())&&(b.label=d.first)}},inputs:{labelPosition:"labelPosition"},ngContentSelectors:["onedev-field-label","onedev-field-value"],decls:3,vars:4,consts:[[1,"wrapper"]],template:function(a,b){a&1&&(Cf(bjc),G(0,"div",0),Df(1),Df(2,1),H());a&2&&sf("active",null==b.field?null:b.field.isActive())("top-label","top"===b.labelPosition)},styles:[".wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:2px}.wrapper.top-label[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%]     onedev-field-label{margin-right:5px}[_nghost-%COMP%]     onedev-field-value{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;min-height:29px}[_nghost-%COMP%]     onedev-field-value>*{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;width:100%}[_nghost-%COMP%]     onedev-field-value onedev-async-data-placeholder{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start}[_nghost-%COMP%]     onedev-field-value [actions]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     onedev-field-value:not(.content-overflow){overflow:hidden;text-overflow:ellipsis}.active[_ngcontent-%COMP%]     onedev-field-label{color:var(--primary-default,#1a73e8)}"]});
var djc=["popOverContent"],W4=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.closedWithAction=new Iw;this.isOpen=!1;this.destroyed$=new T.ReplaySubject(1);this.backdropClickSubscription=T.Subscription.EMPTY};W4.prototype.ngOnInit=function(){};W4.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
W4.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(Ye(this.destroyed$)).subscribe(function(){LZa(a)}))};W4.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var KZa=function(a){a.closedWithAction.emit(0);a.close()},LZa=function(a){a.closedWithAction.emit(1);a.close()};g=W4.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":LZa(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)KZa(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(KZa(this),a.stopPropagation(),a.preventDefault())}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:8+this.anchor.offsetWidth});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=new MA(this.contentTemplateRef,this.viewContainerRef),b;null==(b=this.overlayRef)||b.attach(a);var c;null==(c=this.overlayRef)||c.updatePosition()};g.getPositionStrategy=function(){var a=GA(FA(JA(this.overlay.position(),this.anchor),!1),!1);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return DA(a,ejc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};W4.\u0275fac=function(a){return new (a||W4)(F(RA),F(Wf))};
W4.\u0275cmp=v({type:W4,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&Zf(djc,7);if(a&2){var c;Yf(c=ag())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop"},outputs:{closedWithAction:"closedWithAction"},exportAs:["onedevPopOverEditPanel"],decls:2,vars:0,consts:[["popOverContent",""],["cdkTrapFocus","",1,"content","gmat-elevation-z2",3,"cdkTrapFocusAutoCapture",
"keydown"],[1,"edit-field"],[4,"ngTemplateOutlet"],[1,"actions"],["mat-button","","color","primary",1,"save",3,"click"],["mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&O(0,MZa,8,2,"ng-template",null,0,gg)},dependencies:[Cx,Fy,pB],styles:[".content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;background-color:var(--surface-default,#fff);border-radius:4px;overflow:auto;padding:4px}.actions[_ngcontent-%COMP%]{margin-top:4px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:24px;line-height:24px;min-width:auto;padding-left:8px;padding-right:8px;font-size:13px}"]});
var ejc=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"top"}];
var fjc=["popOver"],OZa=function(a){return{$implicit:a}},X4=function(a){this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.valueChange=new Iw;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};U(X4,bQ);g=X4.prototype;g.ngOnInit=function(){};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};
g.valueChanged=function(){return TZa(this.editingValue)!==this.value};g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue=null!=this.value?String(this.value):"",this.popOver.open())};g.stopEditing=function(a){this.editing=!1;0===a&&(this.onChange(this.editingValue),this.value=a=TZa(this.editingValue),this.valueChange.emit(a))};g.writeValue=function(a){var b=TZa(a);if(null!=a||this.val!==b)this.val=b,this.editingValue=null!=a?a:""};
g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};ki.Object.defineProperties(X4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(null!=a?String(a):null)}}});X4.\u0275fac=function(a){return new (a||X4)(Xc("required"))};
X4.\u0275cmp=v({type:X4,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&Zf(fjc,7);if(a&2){var c;Yf(c=ag())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:"labelledById",openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate"},outputs:{valueChange:"valueChange"},features:[Lf([{provide:ux,useExisting:ac(function(){return X4}),multi:!0},{provide:bQ,useExisting:ac(function(){return X4}),multi:!0}]),gf],decls:11,
vars:6,consts:[[3,"disabled","click","focus","blur"],["anchor",""],[4,"ngIf","ngIfElse"],["standardValueDisplay",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"anchor","editorTemplate","closedWithAction"],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],
["type","number",3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(G(0,"button",0,1),K("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),G(2,"span"),O(3,PZa,2,4,"ng-container",2),O(4,QZa,1,1,"ng-template",null,3,gg),H(),O(6,RZa,2,0,"svg",4),H(),G(7,"onedev-pop-over-edit-panel",5,6),K("closedWithAction",function(f){return b.stopEditing(f)}),H(),O(9,SZa,1,1,"ng-template",null,7,gg));if(a&2){var c=Hf(1),
d=Hf(5),e=Hf(10);D("disabled",b.disabled);B(3);D("ngIf",b.valueTemplate)("ngIfElse",d);B(3);D("ngIf",!b.disabled&&b.displayEditIcon);B(1);D("anchor",c)("editorTemplate",e)}},dependencies:[sx,Cx,Fg,jy,by,hy,W4],styles:["button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor}input[type=number][_ngcontent-%COMP%]{padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px}input[type=number][_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}"]});
var YZa=function(){return[]},Y4=function(){this.thinking=!1;this.effortChange=new Iw;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
Y4.prototype.ngOnChanges=function(){if("DROPDOWN"===this.getFieldType()){var a;this.effortSpec&&null!=(a=yl(this.effortSpec))&&a.getOptionsList()&&this.effort&&V(this.effort,2)?(a=gjc(this),a="incompatible"===a?(new pl).setLabel(V(this.effort,2)):a):a=void 0;this.selectedOption=a}else if("NUMERIC"===this.getFieldType()){var b,c;this.selectedNumericEstimate=(null==(b=this.effort)?0:V(b,2))?Number(null==(c=this.effort)?void 0:V(c,2)):void 0}this.fieldName=this.getFieldName();this.fieldType=this.getFieldType();
this.isCompatibleValue=hjc(this)};Y4.prototype.selectOption=function(a){this.selectedOption=a;if(null==a)this.effort=void 0;else{var b,c,d=new sl,e=null!=(c=null==(b=this.effortSpec)?void 0:b.getId())?c:0;b=Sk(d,1,e);a=a.getLabel();this.effort=tl(b,2,a)}this.isCompatibleValue=hjc(this);this.effortChange.emit(this.effort)};Y4.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.getName():this.effort?"Estimate "+dj(this.effort,1):"Estimate"};
Y4.prototype.getFieldType=function(){var a;if(null==(a=this.effortSpec)?0:ul(a,4,vl))return"NUMERIC";var b;return(null==(b=this.effortSpec)?0:ul(b,5,vl))?"DROPDOWN":"UNKNOWN"};
var hjc=function(a){if(!a.effort)return!0;var b,c;if((null==(b=a.effortSpec)?void 0:b.getId())!==(null==(c=a.effort)?void 0:dj(c,1))||"DROPDOWN"===a.fieldType&&"incompatible"===gjc(a))return!1;var d,e;return"NUMERIC"===a.getFieldType()&&isNaN(Number(null!=(e=null==(d=a.effort)?void 0:V(d,2))?e:""))?!1:!0},gjc=function(a){var b;if(null==(b=a.effort)?0:V(b,2)){var c,d,e,f;return null!=(f=null==(c=a.effortSpec)?void 0:null==(d=yl(c))?void 0:null==(e=d.getOptionsList())?void 0:e.find(function(h){var k;
return h.getLabel()===(null==(k=a.effort)?void 0:V(k,2))}))?f:"incompatible"}};Y4.\u0275fac=function(a){return new (a||Y4)};
Y4.\u0275cmp=v({type:Y4,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec"},outputs:{effortChange:"effortChange"},features:[Ac],decls:3,vars:1,consts:[[4,"ngIf"],["rawNumericValueTemplate",""],[3,"thinking","warning","labelTooltip"],[3,"thinking"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"flex-kids-x",3,"value","valueTemplate","valueChange"],[3,"value","options","includeEmptyOption","optionTemplate","valueChange"],["optionTemplate",
""],[4,"ngIf","ngIfElse"],["emptyOption",""],["regularNumeric",""]],template:function(a,b){a&1&&(O(0,a_a,8,8,"onedev-edit-field",0),O(1,d_a,3,2,"ng-template",null,1,gg));a&2&&D("ngIf",b.effortSpec)},dependencies:[sx,yx,zx,Ax,T4,U4,V4,cQ,X4],styles:["onedev-numeric-field[_ngcontent-%COMP%], onedev-single-select[_ngcontent-%COMP%]{flex:1;width:100%}\n/*# sourceMappingURL=estimated_effort_row.css.map */"]});
var Z4=function(){};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275mod=rc({type:Z4});Z4.\u0275inj=fc({imports:[[Mx]]});
var a5=function(){};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275mod=rc({type:a5});a5.\u0275inj=fc({imports:[[Mx,bH]]});
var b5=function(){};b5.\u0275fac=function(a){return new (a||b5)};b5.\u0275mod=rc({type:b5});b5.\u0275inj=fc({imports:[[Z4,Mx,bH,a5]]});
var c5=function(){};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275mod=rc({type:c5});c5.\u0275inj=fc({imports:[[Mx,Rz,UA,QA,jG]]});
var d5=function(){};d5.\u0275fac=function(a){return new (a||d5)};d5.\u0275mod=rc({type:d5});d5.\u0275inj=fc({imports:[[Mx,wy,c5]]});
var e5=function(){};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275mod=rc({type:e5});e5.\u0275inj=fc({imports:[[Mx,bH,dF,b5,rQ,d5]]});
var f5=function(a,b,c){BI.call(this);this.activeSession=a;this.clipboard=b;this.butterBar=c;this.componentId=0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.HOTKEYS=xI};U(f5,BI);f5.\u0275dir=BI.\u0275dir;f5.prototype.ngOnInit=function(){};f5.prototype.openIssueIdPicker=function(){this.disabled||this.trigger.open()};var Ds=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=f5.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return tH(this.activeSession,this.isExternalIssue)+this.issueId};g.getShortIssueUrl=function(){return tH(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId};g.getUrlAndTitle=function(){return tH(this.activeSession,this.isExternalIssue)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(sH(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};
g.getTodoComment=function(){return"TODO("+this.getShortIssueUrl()+"): "+this.issueTitle};f5.\u0275fac=function(a){return new (a||f5)(F(pH),F(kT),F(OK))};
f5.\u0275cmp=v({type:f5,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&Zf(YP,7);if(a&2){var c;Yf(c=ag())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled"},features:[gf],decls:31,vars:13,consts:[["matTooltip","Copy issue ID","disableRipple","true",1,"unstyled","square-right","issue-id",3,"click"],["matTooltip","Show links for this issue","onedevPopupPanelTrigger","","disableRipple",
"true",1,"unstyled","square-left",3,"onedevPopupPanelTriggerFor","hotkey","onHotkey","click"],["trigger","onedevPopupPanelTrigger"],["svgIcon","arrow-dropdown",1,"icon-xs"],["role","region"],["contentPanel","onedevPopupPanel"],[1,"issue-id-picker-popup"],[1,"id-details-row"],[3,"htmlFor"],["type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"focus"],["issueIdField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"gmat-button","copy",3,
"click"],["svgIcon","copy",1,"icon-s"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"focus"],["issueUrlField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"focus"],["urlAndTitleField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,"gmat-button","copy",3,"click"],["class",
"id-details-row",4,"ngIf"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",1,"value",3,"focus"],["issueEmailField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"focus"],["todoCommentField",""],["mat-icon-button","","tabindex",
"-1","aria-label","Copy comment","matTooltip","Copy comment",1,"gmat-button","copy",3,"click"]],template:function(a,b){if(a&1){var c=x();G(0,"button",0);K("click",function(){b.clipboard.copy(b.issueId);PK(b.butterBar,"Issue ID copied",2E3)});P(1);H();G(2,"button",1,2);K("onHotkey",function(){return b.openIssueIdPicker()})("click",function(){return b.openIssueIdPicker()});J(4,"mat-icon",3);H();G(5,"onedev-popup-panel",4,5)(7,"div",6)(8,"div",7)(9,"label",8);P(10,"Issue ID");H();G(11,"input",9,10);
K("focus",function(){z(c);var k=Hf(12);return A(k.select())});H();G(13,"button",11);K("click",function(){z(c);var k=Hf(12);return A(Ds(b,k))});J(14,"mat-icon",12);H()();G(15,"div",7)(16,"label",8);P(17,"Issue URL");H();G(18,"input",13,14);K("focus",function(){z(c);var k=Hf(19);return A(k.select())});H();G(20,"button",15);K("click",function(){z(c);var k=Hf(19);return A(Ds(b,k))});J(21,"mat-icon",12);H()();G(22,"div",7)(23,"label",8);P(24,"URL and title");H();G(25,"input",16,17);K("focus",function(){z(c);
var k=Hf(26);return A(k.select())});H();G(27,"button",18);K("click",function(){z(c);var k=Hf(26);return A(Ds(b,k))});J(28,"mat-icon",12);H()();O(29,e_a,7,2,"div",19);O(30,f_a,7,2,"div",19);H()()}if(a&2){var d=Hf(6),e=Hf(12),f=Hf(19),h=Hf(26);nf("aria-label","Copy issue number "+b.issueId);B(1);Jf(b.issueId);B(1);D("onedevPopupPanelTriggerFor",d)("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID);nf("aria-label","Show links for the issue "+b.issueId);B(7);D("htmlFor",e.id);B(2);nf("value",b.issueId);B(5);D("htmlFor",
f.id);B(2);nf("value",b.getIssueUrl());B(5);D("htmlFor",h.id);B(2);nf("value",b.getUrlAndTitle());B(4);D("ngIf",b.isSessionInternal());B(1);D("ngIf",b.isSessionInternal())}},dependencies:[sx,hJ,pB,LE,$E,XP,YP],styles:["[_nghost-%COMP%]{border-radius:4px;font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;display:inline-block;user-select:none;white-space:nowrap;line-height:22px}button[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.issue-id[_ngcontent-%COMP%]{padding:0 3px}button[_ngcontent-%COMP%]{cursor:pointer;border-radius:4px}button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}button.square-left[_ngcontent-%COMP%]{border-left:1px solid;border-color:#fff;border-color:var(--background)}mat-icon[_ngcontent-%COMP%]{margin-top:-2px;color:#3c4043;color:var(--gfx)}  .onedev-popup-panel .issue-id-picker-popup{padding:10px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row{display:flex;flex-direction:row;align-items:center;width:475px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row label{flex-basis:110px;font-family:Roboto,Arial,sans-serif;font-size:13px;color:#5f6368;color:var(--text-muted)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value{flex-grow:1;font-family:Roboto,Arial,sans-serif;display:inline-block;width:345px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;outline:none;padding:5px;margin-left:5px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy{cursor:pointer;color:#1a73e8;color:var(--link)}"],
changeDetection:0});
var g5=function(){};g5.\u0275fac=function(a){return new (a||g5)};g5.\u0275mod=rc({type:g5});g5.\u0275inj=fc({imports:[[Mx,iJ,jG,dF,bH,pQ]]});
var h5=function(a){ZJ.call(this);this.observableSlosService=a;this.recordType="slo";this.idForRecord=function(b){return b.getSloId()}};U(h5,ZJ);g=h5.prototype;g.fetchOne=function(a){return this.observableSlosService.get(a)};g.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};g.search=function(a){return this.observableSlosService.search(a)};g.create=function(a){return this.observableSlosService.create(a)};g.update=function(a){return this.observableSlosService.update(a)};
h5.\u0275fac=function(a){return new (a||h5)(t(uY))};h5.\u0275prov=ec({token:h5,factory:h5.\u0275fac,providedIn:"root"});
var i5=function(a,b,c,d){BI.call(this);var e=this;this.userPreferencesManager=a;this.sloStatusHelpersService=b;this.paths=c;this.sloFridge=d;this.onSnoozeChange=new Iw;this.providedSloId$=new T.ReplaySubject(1);this.slo$=this.providedSloId$.pipe(Xe(function(f){return e.sloFridge.watchOne(f)}));this.shouldShowSnoozeButton=this.isAccordionExpanded=!1};U(i5,BI);i5.\u0275dir=BI.\u0275dir;
i5.prototype.ngOnInit=function(){var a=this;ijc(this);this.userPreferencesManager.layoutPreferences$.pipe(Ye(this.destroyed$),C(function(b){a.isAccordionExpanded=!!b.expandIssueSlo}))};i5.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);ijc(this)};
var ijc=function(a){a.hasSlo=!!a.sloStatus&&iQb(a.sloStatus);a.shouldShowSnoozeButton=a.isEditable&&a.hasSlo;a.sloId&&"0"!==a.sloId?a.editSloLink=a.paths.editSlo(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=a.paths.manageComponent(a.componentId):a.componentSloLink=void 0;a.sloSnoozeUntil?a.sloSnoozeUntilUnderEdit=a.sloSnoozeUntil.clone():a.sloSnoozeUntilUnderEdit=void 0},jjc=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;OCb(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(Ye(a.destroyed$)).subscribe();
Sn(go.ISSUE_SLO,"toggle",a.isAccordionExpanded?"open":"close")};i5.prototype.trackOpenSlo=function(){Sn(go.EDIT_SLO,"open","fromIssueSloBox")};i5.\u0275fac=function(a){return new (a||i5)(F(zI),F(eS),F(dL),F(h5))};
i5.\u0275cmp=v({type:i5,selectors:[["b-issue-slo-box"]],viewQuery:function(a,b){a&1&&Zf(Q_,5);if(a&2){var c;Yf(c=ag())&&(b.snoozeDateTimePicker=c.first)}},inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp"},outputs:{onSnoozeChange:"onSnoozeChange"},features:[gf,Ac],decls:26,vars:30,consts:[[1,"issue-slo-box-title",3,"click"],[1,"accordion-icon"],[3,"hidden"],[3,"name","size"],
[1,"slo-body"],[1,"slo-status"],[3,"sloStatus","sloSnoozeUntil","includeSloMetric","includeObjective"],[3,"sloStatus","sloSnoozeUntil","includeNoSlo"],["mat-icon-button","",1,"expand-button","small","gmat-button",3,"color","matTooltip","click"],[1,"slo-actions",3,"hidden"],["class","slo-action",4,"ngIf"],[3,"snoozeUntil","snoozeUntilChange","snoozeUntilCommit"],[1,"slo-action"],["class","bv2-metadata-link bv2-metadata-tool",3,"click",4,"ngIf"],[1,"slo-start"],[1,"bv2-metadata-link",3,"click"],[4,
"ngIf"],["href","http://go/buganizer/guides/defer-slos","target","_blank"],["mode","date",3,"timestamp"],["class","slo-link",3,"click",4,"ngIf"],[1,"slo-link",3,"click"],[1,"bv2-metadata-link","bv2-metadata-tool",3,"click"]],template:function(a,b){a&1&&(G(0,"span",0),K("click",function(){return jjc(b)}),G(1,"label"),P(2,"SLO Status"),H(),G(3,"span",1)(4,"span",2),J(5,"b-icon",3),H(),G(6,"span",2),J(7,"b-icon",3),H()()(),G(8,"div",4)(9,"div",5)(10,"div",2),J(11,"b-aggregated-slo-status-indicator",
6),H(),G(12,"div",2),J(13,"b-slo-status-summary",7),H(),G(14,"button",8),K("click",function(){return jjc(b)}),G(15,"span",1)(16,"span",2),J(17,"b-icon",3),H(),G(18,"span",2),J(19,"b-icon",3),H()()()(),G(20,"div",9),O(21,j_a,8,4,"div",10),G(22,"snooze-date-time-picker",11),K("snoozeUntilChange",function(c){return b.sloSnoozeUntilUnderEdit=c})("snoozeUntilCommit",function(){b.onSnoozeChange.next(b.sloSnoozeUntilUnderEdit||null)}),H(),O(23,l_a,4,3,"div",10),G(24,"div",12),O(25,m_a,2,1,"a",13),H()()());
a&2&&(B(4),D("hidden",b.isAccordionExpanded),B(1),D("name","arrow-down")("size","small"),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("name","arrow-up")("size","small"),B(3),D("hidden",b.isAccordionExpanded),B(1),D("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeSloMetric",!0)("includeObjective",!0),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeNoSlo",!0),B(1),D("color","")("matTooltip","Toggle the detailed SLO status"),
nf("aria-label","Toggle the detailed SLO status")("aria-expanded",b.isAccordionExpanded),B(2),D("hidden",b.isAccordionExpanded),B(1),D("name","arrow-down")("size","small"),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("name","arrow-up")("size","small"),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("ngIf",b.shouldShowSnoozeButton),B(1),D("snoozeUntil",b.sloSnoozeUntilUnderEdit),B(1),D("ngIf",b.editSloLink),B(2),D("ngIf",!b.editSloLink&&b.componentSloLink))},dependencies:[sx,$E,pB,JY,LP,xY,Q_,uH,
Fx],styles:["[_nghost-%COMP%]{display:flex;align-items:baseline;margin:8px 19px 8px 19px}[_nghost-%COMP%]:focus{outline:0}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{border:1px solid transparent;border-radius:5px;padding:4px 9px;margin:-5px -10px;border-color:#d2e3fc;border-color:var(--primary-c100)}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{border:2px solid transparent;border-radius:5px;padding:3px 8px;margin:-5px -10px;border-color:#1a73e8;border-color:var(--primary)}[_nghost-%COMP%]:focus   .issue-slo-box-title[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .issue-slo-box-title[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.issue-slo-box-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-weight:500;flex:0 0 23%;min-width:70px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.issue-slo-box-title[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:none}.slo-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.slo-status[_ngcontent-%COMP%]{display:flex}.slo-actions[_ngcontent-%COMP%]   .slo-start[_ngcontent-%COMP%]{display:inline-block}.slo-actions[_ngcontent-%COMP%]   .slo-start[_ngcontent-%COMP%]   b-icon[_ngcontent-%COMP%]{margin-left:4px;vertical-align:top}.expand-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:-6px}.expand-button[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:block}.d-cozy[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:4px 14px 4px 19px}.d-compact[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:2px 14px 2px 19px}"]});
var j5=function(){};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275mod=rc({type:j5});j5.\u0275inj=fc({imports:[[Mx,bH,jG,JZ,eQ,HZ,R_,dI,zO]]});
var kjc=function(){return{width:400}},k5=function(a,b,c,d,e,f,h,k){this.bLocation=c;this.paths=d;this.analytics=e;this.componentActions=h;this.cdr=k;this.includeArchived=!1;this.createComponentPath=ct.COMPONENT_CREATE;a.setTitle("Browse Components");a=p_a(this);b.componentId&&q_a(this,Ki(b.componentId),a);this.isInternalSession=f.isInternalSession()};k5.prototype.viewComponent=function(a,b){b=void 0===b?null:b;a&&(b&&bo(this.analytics,"listComponents",b),this.bLocation.url(this.paths.manageComponent(a.componentId)))};
var p_a=function(a){return a.componentActions.getChildren(0,a.includeArchived).then(function(b){a.topLevelComponents=b;a.cdr.detectChanges();return b})},q_a=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=laa(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-1),f={0:c},h=r(e),k=h.next();!k.done;k=h.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return Fo(f).then(function(q){for(var w=q[0],y=0,E={},I=r(e),N=I.next();!N.done;E=
{$jscomp$loop$prop$parentId$1543$1698:E.$jscomp$loop$prop$parentId$1543$1698},N=I.next()){E.$jscomp$loop$prop$parentId$1543$1698=N.value;N=void 0;var L=null!=(N=w.find(function(S){return function(Y){return Y.componentId==S.$jscomp$loop$prop$parentId$1543$1698}}(E)))?N:null;L&&(L.children=q[E.$jscomp$loop$prop$parentId$1543$1698],L.showChildren=!0,w=L.children,y=L.componentId)}d.archived&&!a.includeArchived&&(b=y);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};
k5.\u0275fac=function(a){return new (a||k5)(F(hO),F(bS),F(cL),F(dL),F(SM),F(pH),F(AT),F(uI,2))};
k5.\u0275cmp=v({type:k5,selectors:[["b-list-components-page"]],features:[Lf([uI])],decls:13,vars:8,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["mat-button","","class","gmat-button",3,"href",4,"ngIf"],["mat-button","","panelClass","overflow-visible-inline-dialog-panel",1,"gmat-button",3,"xapInlineDialogClick","overlaySize"],["componentPickerTemplate",""],["id","bv2-issue-showarchived-button",4,"ngIf"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],[1,"top-tree",
3,"components","includeArchived","init"],["mat-button","",1,"gmat-button",3,"href"],[1,"component-picker-dialog"],["ariaLabel","Choose a component to navigate to that component.",3,"includeArchived","placeholder","shouldFocus","isRequired","selectedComponentChange"],["id","bv2-issue-showarchived-button"],["label","Show archived",3,"model","tooltip","modelChange"],[1,"bv2-view-loading"],["size","small"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1,"Browse Components"),H(),G(2,"div",1)(3,"div",2),
O(4,n_a,2,1,"a",3),G(5,"button",4),P(6," Search Components "),H(),O(7,o_a,3,4,"ng-template",null,5,gg),O(9,r_a,2,2,"div",6),H()(),G(10,"div",7),O(11,s_a,2,0,"div",8),G(12,"component-tree-list",9),K("init",function(d){return b.componentTree=d}),H()());if(a&2){var c=Hf(8);B(4);D("ngIf",b.isInternalSession);B(1);D("xapInlineDialogClick",c)("overlaySize",Mf(7,kjc));B(4);D("ngIf",b.isInternalSession);B(2);D("ngIf",!b.topLevelComponents);B(1);D("components",b.topLevelComponents)("includeArchived",b.includeArchived)}},
dependencies:[sx,mN,CN,BN,GN,IT,pB,qB,CT,EV],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     .bv2-component-picker{width:100%}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});
var l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=rc({type:l5});l5.\u0275inj=fc({imports:[[Mx,YN,WN,aO,cO,yN,JT,jG,ET,GV]]});
var m5=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};m5.\u0275fac=function(a){return new (a||m5)};
m5.\u0275cmp=v({type:m5,selectors:[["b-package-mentions-listing"]],inputs:{issueId:"issueId",packageMentionSet:"packageMentionSet",displayPackageName:"displayPackageName"},decls:4,vars:2,consts:[[1,"bv2-package-mention-set"],["class","bv2-package-mention-set-package-name",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"bv2-package-mention-set-package-name"],[3,"issueId","packageName","filename","lineNumbers","changeNumber"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,t_a,2,1,"p",1),G(2,"ul"),O(3,u_a,2,5,"li",
2),H()());a&2&&(B(1),D("ngIf",b.displayPackageName),B(2),D("ngForOf",b.packageMentionSet.fileMentionSet))},dependencies:[wx,sx,P4],encapsulation:2});
var n5=function(){};n5.\u0275fac=function(a){return new (a||n5)};n5.\u0275mod=rc({type:n5});n5.\u0275inj=fc({imports:[[Mx,Q4]]});
var o5=function(){};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275mod=rc({type:o5});o5.\u0275inj=fc({imports:[[Mx,wy,jG,MB,$B,YU,YB]]});
var ljc=function(a){Z.call(this,a)};U(ljc,Z);g=ljc.prototype;g.getResourcePath=function(){return V(this,1)};g.setResourcePath=function(a){return l(this,1,a)};g.hasResourcePath=function(){return cj(this,1)};g.getSeverity=function(){return X(this,2,0)};g.setSeverity=function(a){return l(this,2,a)};g.getJudgementReason=function(){return V(this,3)};g.setJudgementReason=function(a){return l(this,3,a)};
g.toObject=function(){var a=null!=this?{resourcePath:n(p(this,1)),severity:n(p(this,2)),judgementReason:n(p(this,3))}:void 0;return a};ljc.messageId="b.CreateContentJudgementRequest";
var njc=function(a){Z.call(this,a,-1,mjc)};U(njc,Z);var mjc=[1];njc.prototype.toObject=function(){var a=null!=this?{contentJudgementsList:Bb(rb(this,Dl,1),rJ)}:void 0;return a};njc.messageId="b.ListContentJudgementsResponse";
var p5=function(a){Z.call(this,a)};U(p5,Z);p5.prototype.getContentJudgement=function(){return m(this,Dl,1)};p5.prototype.setContentJudgement=function(a){return Ab(this,1,a)};p5.prototype.toObject=function(){var a=null!=this?{contentJudgement:rJ(void 0,this.getContentJudgement())}:void 0;return a};p5.messageId="b.UpdateContentJudgementRequest";
var q5=function(a){this.executor=a};q5.prototype.create=function(a,b,c){a=(new ljc).setResourcePath(a).setSeverity(b).setJudgementReason(c);return this.executor.post({url:"action/content_judgements",body:a,responseConstructor:Dl})};q5.prototype.update=function(a){var b=kj(a,1);a=(new p5).setContentJudgement(a);return this.executor.post({url:"action/content_judgements/"+b,body:a,responseConstructor:Dl})};
q5.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:njc})};q5.\u0275fac=function(a){return new (a||q5)(t(pI))};q5.\u0275prov=ec({token:q5,factory:q5.\u0275fac,providedIn:"root"});
var r5=function(a,b,c,d,e){var f=this;this.dialogRef=a;this.documentationLinks=b;this.contentJudgements=c;this.activeSession=d;this.data=e;this.piiSeverity=dFb;this.loaded=!1;this.minimumSeverity=0;this.severity=1;this.processContentJudgements=function(h){var k=0;h=r(rb(h,Dl,1));for(var q=h.next();!q.done;q=h.next())q=q.value,V(q,5)===f.activeSession.getUserEmail()?ojc(f,q):q.getSeverity()>k&&(k=q.getSeverity());f.minimumSeverity=k;f.minimumSeverity>f.severity&&(f.severity=f.minimumSeverity);f.loaded=
!0};this.severity=e.severity;e.resourcePath?c.list(e.resourcePath).subscribe(this.processContentJudgements):(ojc(this,e.contentJudgement),this.loaded=!0)};r5.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var ojc=function(a,b){if(a.judgement=b)a.severity=b.getSeverity()},pjc=function(a){var b=a.data.resourceType||"comment and/or attachment(s)";a.data.resourcePath&&(a.data.resourcePath.includes("comment")?b="comment":a.data.resourcePath.includes("attachment")&&(b="attachment"));if(!a.data.hasAclToCreate)return"You do not have permission to create new judgements for this\n          "+b+". This is the current restriction level of the\n          "+b+".";b="Each restriction level allows access to particular users and has a designated content retention period. Customize levels on the component settings page.";
1<a.minimumSeverity&&(b+=" You can only select a restriction level equal or greater than the severity already given by other users.");return b};r5.prototype.getContentJudgement=function(){var a=new Dl;if(this.judgement){var b=kj(this.judgement,1);l(a,1,b);a.setResourcePath(this.judgement.getResourcePath())}a.setJudgementReason("None specified");a.setSeverity(this.severity);return a};
r5.prototype.onSaveClick=function(){var a=this;if(this.data.resourcePath){if(null==this.judgement){this.contentJudgements.create(this.data.resourcePath,this.severity,"None specified").subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});return}if(this.judgement.getSeverity()!==this.severity||"None specified"!==this.judgement.getJudgementReason()){this.contentJudgements.update(this.getContentJudgement()).subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});
return}}this.dialogRef.close({contentJudgement:this.getContentJudgement()})};r5.prototype.onNoClick=function(){this.dialogRef.close(null)};r5.\u0275fac=function(a){return new (a||r5)(F(AB),F(tP),F(q5),F(pH),F(FB))};
r5.\u0275cmp=v({type:r5,selectors:[["b-content-judgement-dialog"]],decls:28,vars:10,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["id","restriction-radio-group-label"],["target","_blank","ref","noopener noreferrer nofollow","aria-label","Learn more about restricted access",1,"keep-focus-ring"],["aria-labelledby","restriction-radio-group-label",3,"ngModel","ngModelChange"],[1,"restriction-radio","restriction-none",3,"value","disabled"],[1,"restriction-radio",
"restriction-pii",3,"value","disabled"],[1,"restriction-radio","restriction-spii",3,"value","disabled"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","content-judgement-dialog-cancel",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","content-judgement-dialog-confirm",3,"disabled","click"]],template:function(a,b){a&1&&(G(0,"h1",0),J(1,"mat-icon",1),G(2,"div"),P(3," Set restriction "),H()(),G(4,"div",2)(5,"span")(6,"label",3),P(7),
G(8,"a",4),P(9," Learn More "),H()(),G(10,"mat-radio-group",5),K("ngModelChange",function(c){return b.severity=c}),G(11,"mat-radio-button",6),P(12," No restriction "),G(13,"div"),P(14,' Users with "View issues" can access. '),H()(),G(15,"mat-radio-button",7),P(16," Restricted "),G(17,"div"),P(18,' Users with "View restricted content" can access. '),H()(),G(19,"mat-radio-button",8),P(20," Restricted+ "),G(21,"div"),P(22,' Users with "View restricted+ content" can access. '),H()()()()(),G(23,"div",
9)(24,"button",10),K("click",function(){return b.onNoClick()}),P(25," Cancel "),H(),G(26,"button",11),K("click",function(){return b.onSaveClick()}),P(27," Set "),H()());a&2&&(B(7),If(" ",pjc(b)," "),B(1),nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Kd),B(2),D("ngModel",b.severity),B(1),D("value",b.piiSeverity.NONE_DETECTED)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.NONE_DETECTED),B(4),D("value",b.piiSeverity.PII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.PII),
B(4),D("value",b.piiSeverity.SPII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.SPII),B(7),D("disabled",!b.canInteract()))},dependencies:[pB,JB,KB,LB,LE,eY,gY,by,hy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}.restriction-radio[_ngcontent-%COMP%]{display:block;margin:10px;padding:4px;line-height:1.5em}.restriction-radio[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.optional[_ngcontent-%COMP%]{line-height:2em;margin-top:20px}.optional[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:.5em 0;text-transform:uppercase;font-weight:600;font-size:.8em;line-height:1.5em}.annotations[_ngcontent-%COMP%]{margin-top:4px;display:grid;grid-template-columns:repeat(2, 50%)}.annotation[_ngcontent-%COMP%]{margin:0 10px;padding:4px;line-height:1.5em}\n/*# sourceMappingURL=content_judgement_dialog.css.map */"]});
var s5=function(a,b){this.documentationLinks=a;this.dateFormatter=b;this.retentionModel=eAb;this.label="Restricted";this.contentType="item"};s5.prototype.getRetentionPeriod=function(){if(!this.retentionState||!this.retentionState.retentionPeriod)return"";var a=Ora(this.retentionState.retentionPeriod);return a?po(Math.floor(1E3*a.getSeconds()/864E5)):""};
var w_a=function(a){var b=new Date(864E13);if(!a.retentionState||!a.retentionState.scheduledDeletionTime)return b;a=oo(zm(a.retentionState.scheduledDeletionTime));return new Date(a||b)},qjc=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?12096E5>oo(zm(a.retentionState.scheduledDeletionTime))-Date.now():!1};s5.\u0275fac=function(a){return new (a||s5)(F(tP),F(KP))};
s5.\u0275cmp=v({type:s5,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},decls:8,vars:5,consts:[[1,"bubble",3,"panelTemplate"],[1,"chip","nowrap"],[1,"icon-s",3,"svgIcon"],["popup",""],["infiniteRetention",""],[1,"popup"],["target","_blank","rel","noopener noreferrer nofollow"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngIf","ngIfElse"],[3,"ngSwitchCase"]],template:function(a,b){a&1&&(G(0,"xap-bubble",0)(1,"div",
1),J(2,"mat-icon",2),P(3),H(),O(4,A_a,8,3,"ng-template",null,3,gg),O(6,B_a,3,1,"ng-template",null,4,gg),H());if(a&2){var c=Hf(5);D("panelTemplate",c);B(1);sf("warning",qjc(b));B(1);D("svgIcon",qjc(b)?"delete-alert":"delete-clock");B(1);If(" ",b.label," ")}},dependencies:[sx,yx,zx,LE,SS,Ix],styles:[".chip[_ngcontent-%COMP%]{display:inline-block;border-radius:1em;font-size:13px;font-weight:400;line-height:1.8em;padding:0 .6em;margin:0 .6em;background-color:#e8eaed;background-color:var(--chip-bg);color:#202124;color:var(--text-high-contrast)}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:text-top}.chip.warning[_ngcontent-%COMP%]{background-color:#fcad70;background-color:var(--expiring-bg);color:rgba(0,0,0,.7);color:var(--expiring-text)}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:1.5em !important}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}\n/*# sourceMappingURL=restricted_chip.css.map */"],
changeDetection:0});
var t5=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c};t5.prototype.onNoClick=function(){this.dialogRef.close(!1)};t5.\u0275fac=function(a){return new (a||t5)(F(AB),F(tP),F(FB))};
t5.\u0275cmp=v({type:t5,selectors:[["b-restricted-confirmation-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about restricted access".split(";"),["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","restricted-confirmation-dialog-cancel",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action","restricted-confirmation-dialog-confirm",
3,"mat-dialog-close"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"div",1)(3,"p"),P(4),G(5,"a",2),P(6," Learn More "),H()()(),G(7,"div",3)(8,"button",4),K("click",function(){return b.onNoClick()}),P(9," Cancel "),H(),G(10,"button",5),P(11," Confirm "),H()());a&2&&(B(1),Jf(b.data.title),B(3),If(" ",b.data.content," "),B(1),nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Kd),B(5),D("mat-dialog-close",!0))},dependencies:[pB,IB,JB,KB,LB],encapsulation:2});
var u5=function(a,b){this.dialog=a;this.documentationLinks=b;this.disabled=!1;this.onConfirm=new Iw};u5.prototype.openDialog=function(){var a=this;this.dialog.open(t5,{width:"500px",data:{title:"Access Restricted Content",content:"You are about to access a comment marked as restricted.\n                    Access will be logged and audited. You must delete any\n                    data used locally when finished with business use."}})._afterClosed.subscribe(function(b){b&&a.onConfirm.emit()})};
u5.\u0275fac=function(a){return new (a||u5)(F(HB),F(tP))};
u5.\u0275cmp=v({type:u5,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},decls:5,vars:2,consts:[["mat-stroked-button","","color","primary",1,"gmat-button","small","restricted-comment-load",3,"disabled","click"],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about restricted access".split(";")],template:function(a,b){a&1&&(G(0,"span")(1,"button",0),K("click",function(){return b.openDialog()}),P(2," Show Restricted Content "),
H(),G(3,"a",1),P(4," Learn More "),H()());a&2&&(B(1),D("disabled",b.disabled),B(2),nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Kd))},dependencies:[pB],styles:[".mat-stroked-button[_ngcontent-%COMP%]{margin-right:1em}\n/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});
var v5=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c;this.acknowledgeToMatchIssueRetention=!1;this.resource=c.resource;this.piiRetention=c.piiRetention};v5.prototype.canInteract=function(){return 2!==this.piiRetention||this.acknowledgeToMatchIssueRetention};v5.prototype.onSaveClick=function(){this.dialogRef.close(1)};v5.prototype.onNoClick=function(){this.dialogRef.close(0)};v5.\u0275fac=function(a){return new (a||v5)(F(AB),F(tP),F(FB))};
v5.\u0275cmp=v({type:v5,selectors:[["b-update-retention-dialog"]],decls:19,vars:7,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],[4,"ngIf"],["mat-dialog-content",""],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about component retention".split(";"),[3,"ngModel","ngModelChange",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","update-retention-dialog-cancel",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",
1,"gmat-button","dialog-primary-action","medium","update-retention-dialog-confirm",3,"disabled","click"],[3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(G(0,"h1",0),J(1,"mat-icon",1),G(2,"div"),O(3,C_a,2,1,"span",2),O(4,D_a,2,0,"span",2),H()(),G(5,"div",3),O(6,E_a,8,1,"span",2),O(7,F_a,3,2,"span",2),G(8,"span")(9,"a",4),P(10," Learn More "),H()()(),G(11,"div")(12,"span"),O(13,G_a,2,1,"mat-checkbox",5),H()(),G(14,"div",6)(15,"button",7),K("click",function(){return b.onNoClick()}),P(16,
" Cancel "),H(),G(17,"button",8),K("click",function(){return b.onSaveClick()}),P(18," Save "),H()());a&2&&(B(3),D("ngIf",2===b.piiRetention),B(1),D("ngIf",2!==b.piiRetention),B(2),D("ngIf",2===b.piiRetention),B(1),D("ngIf",2!==b.piiRetention),B(2),nf("href",tt(),Kd),B(4),D("ngIf",2===b.piiRetention),B(4),D("disabled",!b.canInteract()))},dependencies:[sx,pB,JB,KB,LB,LE,LO,by,hy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}\n/*# sourceMappingURL=update_retention_dialog.css.map */"]});
var w5=function(){};w5.\u0275fac=function(a){return new (a||w5)};w5.\u0275mod=rc({type:w5});w5.\u0275inj=fc({imports:[[Mx,UE,jG,MB,eI,YB,UP,bH,N4,dF,nY,PO,wy,cT]]});
var x5=function(a,b,c,d,e,f){BI.call(this);var h=this;this.analytics=b;this.location=c;this.prefsManager=e;this.domSafe=f;this.prefsManager.preferences$.pipe(Ye(this.destroyed$)).subscribe(function(k){h.prefs=k});a.topBarEvents.browseComponents.pipe(Ye(this.destroyed$)).subscribe(function(k){k=k.newTab;rjc(h,d.listComponents(),k)});a.topBarEvents.manageHotlists.pipe(Ye(this.destroyed$)).subscribe(function(k){rjc(h,d.listHotlists(),k.newTab)});a.topBarEvents.manageSlos.pipe(Ye(this.destroyed$)).subscribe(function(k){k=
k.newTab;rjc(h,d.listSlos(),k)});a.topBarEvents.setDensity.pipe(Ye(this.destroyed$)).subscribe(function(k){h.setDensity(k)});a.topBarEvents.openSettings.pipe(Ye(this.destroyed$)).subscribe(function(k){var q=k.newTab;rjc(h,kta(k.settingsTabName),q)})};U(x5,BI);x5.\u0275dir=BI.\u0275dir;var rjc=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.url(b)};
x5.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(Me(),Ye(this.destroyed$)).subscribe(),bo(this.analytics,"preferences","setDisplayDensity",a))};x5.\u0275fac=function(a){return new (a||x5)(t(WK),t(SM),t(cL),t(dL),t(zI),t(vP))};x5.\u0275prov=ec({token:x5,factory:x5.\u0275fac,providedIn:"root"});
var y5=function(a,b,c,d,e,f,h,k,q,w,y){BI.call(this);var E=this;this.activeSession=a;this.currentSearch=b;this.searchAcData=c;this.savedSearchApi=d;this.butterBar=e;this.bLocation=f;this.paths=h;this.analytics=k;this.appSearchState=q;this.appEvents=y;this.items=[];this.acHeader=null;this.placeholder=this.currentQuery="";this.frontendAccessMode=this.activeSession.frontendAccessMode;this.environmentType=this.activeSession.getEnvironmentType();this.searchAcData.acRefreshed$.pipe(Ye(this.destroyed$)).subscribe(function(){E.items=
E.searchAcData.items;E.acHeader=E.searchAcData.acHeader})};U(y5,BI);y5.\u0275dir=BI.\u0275dir;
y5.prototype.ngOnInit=function(){var a=this;switch(this.frontendAccessMode){case "INTERNAL":this.placeholder="Search Buganizer";break;case "PARTNER":this.placeholder="Search Partner IssueTracker";break;case "PUBLIC":this.placeholder="Search IssueTracker";break;default:this.placeholder="Search"}this.appSearchState.queryState$.next({query:this.currentSearch.currentSearch,cursorPosition:void 0,setViaInteraction:!1});this.subscriptions.add(TLb(this.currentSearch,function(c){a.appSearchState.queryState$.next({query:c,
cursorPosition:void 0,setViaInteraction:!1})}));this.appSearchState.queryState$.pipe(Ye(this.destroyed$)).subscribe(function(c){var d=a.searchAcData,e=c.cursorPosition;d.query=c.query;d.cursorIdx=e;if(null==d.cursorIdx)d.currentSearchContext=null;else{var f=d.query,h=d.cursorIdx;if(0>h||h>f.length)throw Error("ze");e=new T5b(f,h);if(f){var k=f.slice(0,h);for(var q=!1,w=-1,y=-1;-1<(w=k.indexOf('"',w+1));)q=!q,y=w;k=q?y:-1;if(-1<k)e.value={val:f.slice(k,h),idx:k};else if(k=f.slice(h),q=k.search("\\s"),
(k=IQa(f.slice(0,h)+(-1<q?k.slice(0,q):k),X5b))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},Mi(k.val,"customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){q=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(q);h=Math.max(h-q,0);w=k;if("("===f.charAt(0)){b:{w=[];y=/[()]/g;for(var E;null!=(E=y.exec(f));){var I=w[w.length-1];if(I&&I!==E[0]){if(w.pop(),!w.length){w=
E.index>=h;break b}}else w.push(E[0])}w=!0}w=w?2:0}else w=U5b.includes(w.val)&&-1===f.search("^\\d")?1:0;switch(w){case 2:f=U5b.includes(k.val)?cq(f,h,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):cq(f,h,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(f.val)&&(f.val="",f.idx=h);e.value=f;break;case 1:e.value=cq(f,h,"[()|]","[()|,\\s]");break;case 0:e.value=cq(f,h,"[\\s()|]");-1<f.slice(0,h).search("[\\s()|]")&&(k=null);break;default:bh(w,"unknown ValueType.")}e.value.idx+=q;e.label=k}else e.value=
cq(f,h,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,h=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:h,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(C(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe($e(b),Ye(this.destroyed$)).subscribe(function(c){c=r(c);c.next();c=c.next().value;a.submitSearch(c)})};y5.prototype.ngAfterViewInit=function(){Lhc(this.advancedSearchCtrl,this.currentSearch.currentSearch)};
y5.prototype.submitSearch=function(a){var b=this.currentSearch,c=pa(b.searchHandlerStack);void 0===c?b.$log.warn("No search function installed."):c(a)};var sjc=function(a){if(a.advancedSearchCtrl)return"SUCCESS"!==a.advancedSearchCtrl.getState()?a.currentQuery:Rhc(a.advancedSearchCtrl).trim()};y5.prototype.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(sjc(this)!==this.currentQuery||"SUCCESS"!==this.advancedSearchCtrl.getState())&&Lhc(this.advancedSearchCtrl,this.currentQuery)};
y5.prototype.onAdvancedSearchClose=function(){if(this.advancedSearchCtrl){var a=sjc(this);void 0!==a&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1})}};y5.prototype.submitAdvancedSearch=function(){if(this.advancedSearchCtrl){var a=sjc(this);void 0!==a&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next(),bo(this.analytics,"search","done-builder"))}};
y5.prototype.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=sjc(this);void 0!==c&&(PK(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;PK(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.url(b.paths.viewSavedSearch(d));bo(b.analytics,"savedSearches","create")}).catch(function(d){QK(b.butterBar,ym(d))}))}};
y5.\u0275fac=function(a){return new (a||y5)(F(pH),F(QN),F(C_),F(ON),F(OK),F(cL),F(dL),F(SM),F(n3),F(x5),F(WK))};
y5.\u0275cmp=v({type:y5,selectors:[["b-top-bar-outlet"]],viewQuery:function(a,b){a&1&&Zf(U2,5);if(a&2){var c;Yf(c=ag())&&(b.advancedSearchCtrl=c.first)}},features:[gf],decls:5,vars:8,consts:[[3,"logoFrontendAccessMode","logoEnvironmentType","searchBoxPlaceholder","searchBoxAutoCompleteItems","searchBoxAutoCompleteHeader","searchBoxOnAdvancedSearchOpen","searchBoxOnAdvancedSearchClose","searchBoxOnAdvancedSearchSubmit","searchBoxOnSaveSearch"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-validation-error-banner",
4,"ngIf"],[1,"bv2-view-loading"],[1,"bv2-validation-error-banner"],["class","warning-container",4,"ngIf"],[4,"ngIf"],[1,"warning-container"],["svgIcon","alert"]],template:function(a,b){a&1&&(G(0,"b-app-top-bar",0),K("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",function(c){return b.saveSearch(c)}),
J(1,"b-advanced-search"),O(2,H_a,4,0,"div",1),O(3,K_a,3,2,"div",2),O(4,L_a,2,0,"div",2),H());a&2&&(D("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",b.placeholder)("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader),B(2),D("ngIf","INIT"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),D("ngIf","NOT_REPRESENTABLE"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())||"SYNTAX_ERROR"===
(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),D("ngIf","SERVER_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())))},dependencies:[sx,U2,q3,mN,LE],styles:["b-app-top-bar[_ngcontent-%COMP%]{position:relative;z-index:900}.warning-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.warning-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx);height:30px;width:30px;flex-shrink:0}.warning-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:inline-block;margin-left:12px}"]});
var z5=function(){};z5.\u0275fac=function(a){return new (a||z5)};z5.\u0275mod=rc({type:z5});z5.\u0275inj=fc({imports:[[Mx,W2,x3,YN,dF]]});
var A5=function(a,b){this.dialogRef=a;this.data=b;this.userToDisplay=Ll;this.updateDiffs=b.updateDiffs};A5.prototype.close=function(){this.dialogRef.close()};A5.\u0275fac=function(a){return new (a||A5)(F(AB),F(FB))};
A5.\u0275cmp=v({type:A5,selectors:[["b-update-history-modal"]],decls:6,vars:1,consts:[["mat-dialog-content","",1,"update-history-modal"],["tabindex","0",1,"update-history-list"],["class","bv2-event",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"click"],[1,"bv2-event"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user"],[1,"bv2-event-user-name",3,"email"],[1,"bv2-event-info"],["mode","datetime",
1,"bv2-event-timestamp",3,"timestamp"],[1,"bv2-event-details"],["class","bv2-diff-detail",4,"ngFor","ngForOf"],[1,"bv2-diff-detail"],[4,"ngIf"],[1,"bv2-diff-arrow"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"ul",1),O(2,U_a,10,4,"li",2),H()(),G(3,"div",3)(4,"button",4),K("click",function(){return b.close()}),P(5," Close "),H()());a&2&&(B(2),D("ngForOf",b.updateDiffs))},dependencies:[wx,sx,pB,KB,LB,sS,qS,LP],styles:[".update-history-modal[_ngcontent-%COMP%]{word-break:break-word}.update-history-modal[_ngcontent-%COMP%]   .update-history-list[_ngcontent-%COMP%]{max-height:500px;overflow-y:auto;padding:0}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]{padding:0 0 10px}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider)}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:last-child{border-bottom:none}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:auto}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   .bv2-diff-detail[_ngcontent-%COMP%]{margin-right:0}"]});
var B5=function(){};B5.\u0275fac=function(a){return new (a||B5)};B5.\u0275mod=rc({type:B5});B5.\u0275inj=fc({imports:[[Mx,jG,MB,IS,eQ]]});
var tjc=Ht(["https://www.gstatic.com/buganizer/gfx/","/",""]),C5=Ht(["https://www.gstatic.com/buganizer/img/v2/",""]),ujc=yh(tjc,"2022-01-24-3a954102","all-icons.svg"),vjc=yh(C5,"empty_blocker_light.png"),wjc=yh(C5,"empty_blocker_dark.png"),xjc=yh(C5,"empty_child_light.png"),yjc=yh(C5,"empty_child_dark.png"),zjc=yh(C5,"robot_sleeping.png"),Ajc=yh(C5,"tea_light.png"),Bjc=yh(C5,"tea_dark.png"),Cjc=yh(C5,"welcome_graphic_light.png"),Djc=yh(C5,"welcome_graphic_dark.png");
var D5=function(a,b){BI.call(this);this.$window=a;this.currentTracker=b;this.faviconUrl=this.defaultFaviconUrl=Zi("enableNewIssueDetailsPage")?xh("https://www.gstatic.com/buganizer/img/v4/favicon.png"):xh("https://www.gstatic.com/buganizer/img/v0/favicon.ico")};U(D5,BI);D5.\u0275dir=BI.\u0275dir;
var Ejc=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=null==b?void 0:b.href;a.faviconUrl=c?xh(c):a.defaultFaviconUrl;a.currentTracker.tracker$.pipe(C(function(d){var e;if(null==d?0:null==(e=d.branding)?0:e.logoUrl){var f;d=xh(null==d?void 0:null==(f=d.branding)?void 0:f.logoUrl)}else d=a.faviconUrl;return d}),Ye(a.destroyed$)).subscribe(function(d){if(b&&b.href!==d.toString()){if(d instanceof Hy||d instanceof th)b.href=Sja(d);else{if(-1===Ynb.indexOf("icon"))throw Error("bb`icon");
b.href=sh(d)}b.rel="icon"}})};D5.\u0275fac=function(a){return new (a||D5)(t(wM),t(xM))};D5.\u0275prov=ec({token:D5,factory:D5.\u0275fac,providedIn:"root"});
var Fjc=/^\s*[^:/?#]+:/i,E5=function(a){var b=this;this.bLocation=a;this.linkClickHandler=function(c){if(!(c.ctrlKey||c.metaKey||c.shiftKey||2===c.which||2===c.button||c.defaultPrevented)){var d;a:{for(d=c.target;d;){if("A"===d.tagName)break a;d=d.parentElement}d=void 0}!d||d.hasAttribute("target")&&"_self"!==d.getAttribute("target")||(d=d.getAttribute("href"))&&!Fjc.test(d)&&(c.preventDefault(),b.bLocation.url(d))}}};E5.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};
E5.\u0275fac=function(a){return new (a||E5)(t(cL))};E5.\u0275prov=ec({token:E5,factory:E5.\u0275fac,providedIn:"root"});
var Gjc=[],Hjc=!1,F5=function(a,b,c,d,e,f,h,k){BI.call(this);this.hatsService=a;this.iconRegistry=b;this.session=c;this.appHistory=d;this.routePerformance=e;this.linkClickHandler=f;this.issueLru=h;this.faviconService=k};U(F5,BI);F5.\u0275dir=BI.\u0275dir;F5.prototype.tearDown=function(){BI.prototype.ngOnDestroy.call(this);document.removeEventListener("click",this.linkClickHandler.linkClickHandler)};F5.\u0275fac=function(a){return new (a||F5)(t(s_),t(KE),t(pH),t(W_),t(Z_),t(E5),t(SN),t(D5))};
F5.\u0275prov=ec({token:F5,factory:F5.\u0275fac,providedIn:"root"});
var Ijc={provide:Ilb,useFactory:function(a){return function(){Pk("app initializer starting");Hjc||(a.iconRegistry._addSvgIconSetConfig("",new JE(ujc)),Hjc=!0);if("INTERNAL"===a.session.frontendAccessMode){Zp(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(Me(),Ye(a.destroyed$)).subscribe();var b=a.session.getUserPreferences();bj(b)&&Zp(a.hatsService,"h2NXrGH9G0g6pPHSLo10QFmN4LZt").pipe(Me(),Ye(a.destroyed$)).subscribe();b=r(Gjc);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;
rH(a.session,c.flagName)&&Zp(a.hatsService,d).pipe(Me(),Ye(a.destroyed$)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();b=a.issueLru;Iwa(b.viewed,bMb());Iwa(b.edited,$Lb());b.appEvents.issueViewed.pipe(Ye(b.stop$)).subscribe(b.addViewed);b.appEvents.issueEdited.pipe(Ye(b.stop$)).subscribe(b.addEdited);Ejc(a.faviconService)}},deps:[F5],multi:!0};
var G5=function(a,b){this.paths=a;this.bLocation=b};G5.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=this.paths.editIssue(a.issueId)+(b?"#"+b:"");this.bLocation.url(a)};G5.\u0275fac=function(a){return new (a||G5)(t(dL),t(cL))};G5.\u0275prov=ec({token:G5,factory:G5.\u0275fac,providedIn:"root"});var Jjc={provide:FW,useExisting:G5};
var Kjc=function(){var a;switch(null==(a=self.location)?void 0:a.hostname){case "cider.corp.google.com":case "cider-v.corp.google.com":case "critique.corp.google.com":case "critique-legacy.corp.google.com":case "critique-ng.corp.google.com":return 1;case "cider-staging.corp.google.com":case "cider-v-staging.corp.google.com":case "cider-next.corp.google.com":case "critique-staging.corp.google.com":case "critique-legacy-staging.corp.google.com":case "critique-ng-staging.corp.google.com":return 2;case "cider-test.corp.google.com":case "cider-v-test.corp.google.com":case "critique-qa.corp.google.com":case "critique-legacy-qa.corp.google.com":case "critique-ng-qa.corp.google.com":return 3;
default:return 4}}();
var H5=function(a){DC.call(this);this.errorHandlerFn_=a};Zt(H5,DC);H5.prototype.wrap=function(a){return Ljc(this,a)};var I5=function(a,b){return(b?"__wrapper_":"__protected_")+Ea(a)+"__"},Ljc=function(a,b){var c=I5(a,!0);b[c]||((b[c]=Mjc(a,b))[I5(a,!1)]=b);return b[c]},Mjc=function(a,b){var c=function(){if(a.isDisposed())return b.apply(this,arguments);try{return b.apply(this,arguments)}catch(d){a.handleError_(d)}};c[I5(a,!1)]=b;return c};
H5.prototype.handleError_=function(a){if(!(a&&"object"===typeof a&&"string"===typeof a.message&&0==a.message.indexOf("Error in protected function: ")||"string"===typeof a&&0==a.indexOf("Error in protected function: ")))throw this.errorHandlerFn_(a),new Njc(a);};
var Ojc=function(a,b){var c=ba.window,d=c[b];c[b]=function(e,f){"string"===typeof e&&(e=Wt(Yhb,e));if(!e)throw Error("Qe`"+b);arguments[0]=e=Ljc(a,e);if(d.apply)return d.apply(this,arguments);var h=e;if(2<arguments.length){var k=Array.prototype.slice.call(arguments,2);h=function(){e.apply(this,k)}}return d(h,f)};c[b][I5(a,!1)]=d};H5.prototype.disposeInternal=function(){var a=ba.window;var b=a.setTimeout;b=b[I5(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[I5(this,!1)]||b;a.setInterval=b;H5.superClass_.disposeInternal.call(this)};
var Njc=function(a){aa.call(this,"Error in protected function: "+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&"string"===typeof a&&(this.stack=a)};Zt(Njc,aa);
var J5=function(a,b,c){Oo.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=Pjc;this.handlerUrl_=a;if(!c)if(this.errorHandler_=null,cu&&!iu("10"))zrb(Vt(this.handleException,this));else{this.errorHandler_=new H5(Vt(this.handleException,this));Ojc(this.errorHandler_,"setTimeout");Ojc(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ba.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=
0;d<c.length;d++){var e=c[d];c[d]in b&&Ojc(a,e)}a=this.errorHandler_;yrb=!0;b=Vt(a.wrap,a);for(c=0;c<GC.length;c++)GC[c](b);HC.push(a)}};Zt(J5,Oo);var Qjc=function(a,b){FC.call(this,"w");this.error=a;this.context=b};Zt(Qjc,FC);var Pjc=function(a,b,c,d){if(d instanceof Map){var e={};d=r(d);for(var f=d.next();!f.done;f=d.next()){var h=r(f.value);f=h.next().value;h=h.next().value;e[f]=h}}else e=d;vi(a,null,b,c,e)};
J5.prototype.handleException=function(a,b){a=a.error||a;b=b?gh(b):{};a instanceof Error&&Ija(b,a.__closure__error__context__984382||{});var c=Brb(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(k){}var d=c.message.substring(0,1900);if(!(a instanceof aa)||a.reportErrorToServer){a=c.stack;try{var e=KD(this.handlerUrl_,"script",c.fileName,"error",d,"line",c.lineNumber);eh(this.additionalArguments_)||(e=lta(e,this.additionalArguments_));d={};d.trace=a;if(b)for(var f in b)d["context."+
f]=b[f];var h=Gtb(d);this.xhrSender_(e,"POST",h,this.extraHeaders_)}catch(k){}}try{this.dispatchEvent(new Qjc(c,b))}catch(k){}};J5.prototype.disposeInternal=function(){ui(this.errorHandler_);J5.superClass_.disposeInternal.call(this)};
var K5=function(){this.jsBuild="443116923";this.buildLabel="buganizer.frontend_20220420.06_p0"};K5.\u0275fac=function(a){return new (a||K5)};K5.\u0275prov=ec({token:K5,factory:K5.\u0275fac,providedIn:"root"});var L5=function(){};L5.prototype.reportingEnabled=function(){return 4!==Kjc};L5.\u0275fac=function(a){return new (a||L5)};L5.\u0275prov=ec({token:L5,factory:L5.\u0275fac,providedIn:"root"});
var M5=function(a,b){var c=this;this.appContext=b;this.context={};this.reportingExtensions=[];this.jsDebugErrorReporter=new J5("/jserror",function(d,e){e.js_build=a.jsBuild;e.buildLabel=a.buildLabel;e["build-label"]=a.buildLabel;d=r(c.reportingExtensions);for(var f=d.next();!f.done;f=d.next())f.value.enhanceContext(e)},!0)};
M5.prototype.reportError=function(a){console.error("ErrorReporter: ",(null==a?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""));this.jsDebugErrorReporter.handleException(a);a=r(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};M5.\u0275fac=function(a){return new (a||M5)(t(K5),t(L5))};M5.\u0275prov=ec({token:M5,factory:M5.\u0275fac,providedIn:"root"});
var N5=function(a){this._console=console;this.reporter=a};U(N5,Td);N5.prototype.handleError=function(a){this.reporter.reportError(a)};N5.\u0275fac=function(a){return new (a||N5)(t(M5))};N5.\u0275prov=ec({token:N5,factory:N5.\u0275fac,providedIn:"root"});var O5=function(a){this.activeSession=a};U(O5,L5);O5.prototype.reportingEnabled=function(){return rH(this.activeSession,"reportErrors")};O5.\u0275fac=function(a){return new (a||O5)(t(pH))};O5.\u0275prov=ec({token:O5,factory:O5.\u0275fac,providedIn:"root"});
var Rjc={provide:Td,useClass:N5},Sjc={provide:L5,useClass:O5},Tjc={provide:K5,useValue:{jsBuild:"443116923",buildLabel:"buganizer.frontend_20220420.06_p0"}};
var P5=function(){};P5.\u0275fac=function(a){return new (a||P5)};P5.\u0275cmp=v({type:P5,selectors:[["b-empty"]],decls:0,vars:0,template:function(){},encapsulation:2});var Q5=function(){};Q5.\u0275fac=function(a){return new (a||Q5)};Q5.\u0275mod=rc({type:Q5});Q5.\u0275inj=fc({});
var Ujc=function(){};U(Ujc,QDb);g=Ujc.prototype;g.shouldDetach=function(){return!1};g.store=function(){};g.shouldAttach=function(){return!1};g.retrieve=function(){return null};g.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&Ei(a.params,b.params)};
var R5=function(a){this.router=a};
R5.prototype.canActivate=function(a,b){if(b.url.includes("#ISSUE_HistoryHeader")){var c=r(b.url.split("#ISSUE_HistoryHeader"));a=c.next().value;c=c.next().value;return this.router.createUrlTree([a],{fragment:c&&!isNaN(Number(c))?"comment"+c:void 0})}if(a.queryParamMap.has("showInsights")&&"1"===a.queryParamMap.get("showInsights")){b=r(b.url.split("?")).next().value;var d={};return this.router.createUrlTree([b],{queryParams:Object.assign({},ota(a.queryParamMap),(d.showInsights="deployments",d)),fragment:null!=
(c=a.fragment)?c:void 0})}return!0};R5.\u0275fac=function(a){return new (a||R5)(t(Hk))};R5.\u0275prov=ec({token:R5,factory:R5.\u0275fac,providedIn:"root"});
var Vjc=/^(\d+)$/,S5=function(a){this.butterBar=a;this.paramNamesToCheck=new Set(Object.values(ICb))};S5.prototype.validate=function(a){for(var b=r(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=iC(d);if(!Vjc.test(d)||isNaN(e)||!Number.isInteger(e))return QK(this.butterBar,"The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};S5.\u0275fac=function(a){return new (a||S5)(t(OK))};
S5.\u0275prov=ec({token:S5,factory:S5.\u0275fac,providedIn:"root"});
var T5=function(a){this.routeParamsValidator=a};T5.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};T5.\u0275fac=function(a){return new (a||T5)(t(S5))};T5.\u0275prov=ec({token:T5,factory:T5.\u0275fac,providedIn:"root"});
var U5=function(a){this.router=a};U5.prototype.canActivate=function(){return this.router.createUrlTree([V_a()])};U5.\u0275fac=function(a){return new (a||U5)(t(Hk))};U5.\u0275prov=ec({token:U5,factory:U5.\u0275fac,providedIn:"root"});
var Wjc=["bookmarkGroupName"],Xjc=function(a){return{"bv2-edit-resource-readonly":a}},V5=function(a,b,c,d,e,f,h,k,q,w){BI.call(this);var y=this;this.location=a;this.appHistory=b;this.snackBar=c;this.bookmarkGroupsApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=w;this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new ey({name:new gy("",Xx),description:new gy("")});h.setTitle("Create Bookmark Group");this.subscriptions.add(cZ(q,function(){return!(!y.name()&&!y.description())},
!1))};U(V5,BI);V5.\u0275dir=BI.\u0275dir;g=V5.prototype;g.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving bookmark group...","dismiss",{duration:0}),this.isSaving=!0,this.bookmarkGroupsApi.create({name:this.name(),description:this.description()}).then(function(b){a.isSaving=!1;a.snackBar.open('Bookmark group "'+b.name+'" saved.',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:b.bookmarkGroupId});bo(a.analytics,"sidebarHotlists","createdBookmarkGroup");a.location.replaceUrl(a.paths.editBookmarkGroup(b.bookmarkGroupId));
a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,b)}))};g.validate=function(){if(""===this.name())return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){X_(this.appHistory)};g.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};g.name=function(){var a,b=null==(a=this.bookmarkGroupUnderEdit.get("name"))?void 0:a.value;return b?b:""};
g.description=function(){var a,b=null==(a=this.bookmarkGroupUnderEdit.get("description"))?void 0:a.value;return b?b:""};V5.\u0275fac=function(a){return new (a||V5)(F(cL),F(W_),F(LK),F(ZM),F(dL),F(SM),F(hO),F(SK),F(dZ),F(WK))};
V5.\u0275cmp=v({type:V5,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&Zf(Wjc,5);if(a&2){var c;Yf(c=ag())&&(b.bookmarkGroupName=c.first)}},features:[gf],decls:27,vars:11,consts:[[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","bookmark-group-name",1,"required"],
["type","text","autofocus","autofocus","id","bookmark-group-name","required","","aria-required","true","formControlName","name",3,"disabled"],["bookmarkGroupName",""],["for","bookmark-group-description"],["id","bookmark-group-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-stroked-button","","color","primary",1,"gmat-button",3,"click"]],template:function(a,
b){a&1&&(G(0,"div",0)(1,"div",1)(2,"button",2),K("click",function(){return b.back()}),J(3,"mat-icon",3),H(),G(4,"h2"),P(5,"Create a new bookmark group"),H()()(),G(6,"div",4)(7,"div",5)(8,"form",6),J(9,"b-error-banner",7),G(10,"div",8)(11,"label",9),P(12,"Name"),H(),J(13,"input",10,11),H(),G(15,"div",8)(16,"label",12),P(17,"Description"),H(),G(18,"textarea",13),P(19,"        "),H()(),G(20,"p",14),P(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. "),
H(),G(22,"div",15)(23,"button",16),K("click",function(){return b.save()}),P(24," Save "),H(),G(25,"button",17),K("click",function(){return b.revertChanges()}),P(26," Revert changes "),H()()()()());a&2&&(B(8),D("formGroup",b.bookmarkGroupUnderEdit),B(1),D("error",b.error),B(1),D("ngClass",Nf(7,Xjc,b.isSaving)),B(3),D("disabled",b.isSaving),B(2),D("ngClass",Nf(9,Xjc,b.isSaving)),B(3),D("disabled",b.isSaving),B(5),D("disabled",b.isSaving))},dependencies:[vx,pB,$E,LE,iy,Fg,by,cy,sy,oy,py,kZ],encapsulation:2});
var Yjc=["form"],W5=function(a,b,c,d,e,f,h,k,q,w){BI.call(this);this.butterBar=a;this.paths=b;this.analytics=c;this.appHistory=d;this.bLocation=e;this.activeSession=f;this.documentationLinks=h;this.componentActions=w;this.parentComponentInternal=null;this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=this.isSaving=!1;this.component={componentId:0,parentComponentId:0,name:"",description:"",archived:!1,customFieldId:null,accessLimit:{accessLevel:"ACCESS_LEVEL_UNSPECIFIED"},emailAlias:"dummyemail@google.com",
componentPathInfo:{componentPathId:null,componentPathName:null,allCustomField:null},userHasEditAccess:void 0,commentEditState:void 0,slo:{inherit:!0,source:"BUGSCOPE",id:"0"},bugscopeSloId:"0"};this.sessionIsExternal=f.isExternalSession();k.parentId&&this.loadParentComponent_(Ki(k.parentId));q.setTitle("Create component")};U(W5,BI);W5.\u0275dir=BI.\u0275dir;g=W5.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate_()&&(PK(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){PK(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());bo(a.analytics,"component","create");a.commentEditsEnabled?bo(a.analytics,"component","comment edits enabled",
"create"):bo(a.analytics,"component","comment edits disabled","create");setTimeout(function(){a.isSaving=!1;a.bLocation.replaceUrl(a.paths.manageComponent(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){QK(a.butterBar,ym(b),0);a.isSaving=!1}))};g.back=function(){X_(this.appHistory)};
g.validate_=function(){if(this.createComponentForm.form.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.componentIsValid){if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid."}return!1};g.loadParentComponent_=function(a){var b=this;this.componentActions.getUncached(a,!0).then(function(c){b.parentComponent=c})};
g.setCommentEditState=function(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};g.onComponentSelect=function(a){this.parentComponent=a;Zjc(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;Zjc(this)};var Zjc=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled="ENABLED"===a.component.commentEditState):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};
ki.Object.defineProperties(W5.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;Zjc(this)}}});W5.\u0275fac=function(a){return new (a||W5)(F(OK),F(dL),F(SM),F(W_),F(cL),F(pH),F(tP),F(bS),F(hO),F(AT))};
W5.\u0275cmp=v({type:W5,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&Zf(Yjc,5);if(a&2){var c;Yf(c=ag())&&(b.createComponentForm=c.first)}},features:[gf],decls:55,vars:31,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","b-aria-label","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"edit-resource-panel"],["novalidate","",1,"create-component-form"],["form","ngForm"],[3,"error"],
[1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","id","component-name","placeholder","Component name","name","componentName","aria-label","Component name",3,"bFocus","ngModel","disabled","required","ngModelChange"],["for","component-description"],["id","component-description","placeholder","Component description","name","componentDescription","aria-label","Component description",3,"ngModel","disabled","ngModelChange"],["for","parent-component",1,"required"],
["id","parent-component","ariaLabel","Parent component",3,"selectedComponent","placeholder","isRequired","checkAdminAccess","selectedComponentChange","accessCheckComplete"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabel","Editable comments",3,"checked","change"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["for","retention-settings",1,"required"],["target","_blank",
1,"keep-underline","keep-focus-ring",3,"href"],["id","retention-settings"],[3,"issueRetentionDisabled","isExternal","initialModel","modelChange","validChange"],[1,"advanced-settings-info"],[1,"bv2-component-button-bar"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"b-button",2),K("onAction",function(){return b.back()}),J(3,"b-icon",3),H()()(),G(4,"div",4)(5,"h2",5),P(6,"Create component"),H(),G(7,"div",
6)(8,"form",7,8),J(10,"b-error-banner",9),G(11,"div",10)(12,"label",11)(13,"span",12),P(14,"Name"),H()(),G(15,"input",13),K("ngModelChange",function(c){return b.component.name=c}),H()(),G(16,"div",10)(17,"label",14)(18,"span",12),P(19,"Description"),H()(),G(20,"textarea",15),K("ngModelChange",function(c){return b.component.description=c}),P(21,"        "),H()(),G(22,"div",10)(23,"label",16)(24,"span",12),P(25,"Parent Component"),H()(),G(26,"b-team-component-picker",17),K("selectedComponentChange",
function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)})("accessCheckComplete",function(c){return b.accessCheckComplete(c)}),H()(),G(27,"div",18)(28,"div",19)(29,"b-checkbox",20),K("change",function(c){b.commentEditsEnabled=c;return b.setCommentEditState()}),H()(),G(30,"div")(31,"strong",21),P(32,"Editable Comments"),H(),G(33,"div",22),P(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. "),O(35,X_a,2,1,"a",
23),H()()(),G(36,"div",10)(37,"label",24)(38,"span",12),P(39,"Retention Settings"),H()(),G(40,"div",21)(41,"p"),P(42,"Please choose a period of time to retain the data stored in this component."),J(43,"br"),G(44,"a",25),P(45," Learn more "),H()()(),G(46,"div",26)(47,"b-retention-settings-form",27),K("modelChange",function(c){return b.component.retentionSettings=c})("validChange",function(c){return b.retentionIsValid=c}),H()()(),G(48,"p",28),P(49," Advanced settings such as custom field and access controls may be defined once the component is created. "),
H(),G(50,"div",29)(51,"b-button",30),K("onAction",function(){return b.create()}),P(52," Save "),H(),G(53,"b-button",31),K("onAction",function(){return b.back()}),P(54," Discard "),H()()()()());a&2&&(B(8),sf("show-errors",b.error),B(2),D("error",b.error),B(1),sf("bv2-edit-resource-readonly",b.isSaving),B(4),D("bFocus",!0)("ngModel",b.component.name)("disabled",b.isSaving)("required",!0),B(1),sf("bv2-edit-resource-readonly",b.isSaving),B(4),D("ngModel",b.component.description)("disabled",b.isSaving),
B(2),sf("bv2-edit-resource-readonly",b.isSaving),B(4),D("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(1),sf("bv2-edit-resource-readonly",b.isSaving),B(2),D("checked",b.commentEditsEnabled),B(6),D("ngIf",!b.sessionIsExternal),B(9),D("href",tt(),Kd),B(2),sf("bv2-edit-resource-readonly",b.isSaving),B(1),D("issueRetentionDisabled",b.isSaving)("isExternal",rX(b.parentComponent))("initialModel",b.component.retentionSettings),B(4),D("disabled",
b.isSaving||!b.componentIsValid),B(2),D("disabled",b.isSaving))},dependencies:[yO,sx,kZ,l_,iy,Fg,by,cy,sy,hy,fy,uH,vQ,A_,EV],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});
var $jc=["hotlistName"],akc=function(a){return{"bv2-edit-resource-readonly":a}},X5=function(a,b,c,d,e,f,h,k,q,w){BI.call(this);var y=this;this.location=a;this.appHistory=b;this.snackBar=c;this.hotlistApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=w;this.error="";this.isSaving=!1;this.hotlistUnderEdit=new ey({name:new gy("",Xx),description:new gy("")});h.setTitle("Create Hotlist");this.subscriptions.add(cZ(q,function(){return!(!y.name()&&!y.description())},!1))};U(X5,BI);
X5.\u0275dir=BI.\u0275dir;g=X5.prototype;g.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving hotlist...","dismiss",{duration:0}),this.isSaving=!0,this.hotlistApi.createHotlist(this.name(),this.description()).then(function(b){a.isSaving=!1;a.snackBar.open('Hotlist "'+b.name+'" saved.',"dismiss",{duration:6E3});a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId});bo(a.analytics,"hotlist","create");a.location.replaceUrl(a.paths.editHotlist(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,
b)}))};g.validate=function(){if(""===this.name())return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){X_(this.appHistory)};g.revertChanges=function(){this.hotlistUnderEdit.reset()};g.name=function(){var a,b=null==(a=this.hotlistUnderEdit.get("name"))?void 0:a.value;return b?b:""};g.description=function(){var a,b=null==(a=this.hotlistUnderEdit.get("description"))?void 0:a.value;return b?b:""};
X5.\u0275fac=function(a){return new (a||X5)(F(cL),F(W_),F(LK),F(pL),F(dL),F(SM),F(hO),F(SK),F(dZ),F(WK))};
X5.\u0275cmp=v({type:X5,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&Zf($jc,5);if(a&2){var c;Yf(c=ag())&&(b.hotlistName=c.first)}},features:[gf],decls:27,vars:11,consts:[[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","hotlist-name",1,"required"],["type","text",
"autofocus","autofocus","id","hotlist-name","required","","aria-required","true","formControlName","name",3,"disabled"],["hotlistName",""],["for","hotlist-description"],["id","hotlist-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-stroked-button","","color","primary",1,"gmat-button",3,"click"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"button",
2),K("click",function(){return b.back()}),J(3,"mat-icon",3),H(),G(4,"h2"),P(5,"Create a new hotlist"),H()()(),G(6,"div",4)(7,"div",5)(8,"form",6),J(9,"b-error-banner",7),G(10,"div",8)(11,"label",9),P(12,"Name"),H(),J(13,"input",10,11),H(),G(15,"div",8)(16,"label",12),P(17,"Description"),H(),G(18,"textarea",13),P(19,"        "),H()(),G(20,"p",14),P(21," Advanced settings such as access controls may be defined once the hotlist is created. "),H(),G(22,"div",15)(23,"button",16),K("click",function(){return b.save()}),
P(24," Save "),H(),G(25,"button",17),K("click",function(){return b.revertChanges()}),P(26," Revert changes "),H()()()()());a&2&&(B(8),D("formGroup",b.hotlistUnderEdit),B(1),D("error",b.error),B(1),D("ngClass",Nf(7,akc,b.isSaving)),B(3),D("disabled",b.isSaving),B(2),D("ngClass",Nf(9,akc,b.isSaving)),B(3),D("disabled",b.isSaving),B(5),D("disabled",b.isSaving))},dependencies:[vx,pB,$E,LE,iy,Fg,by,cy,sy,oy,py,kZ],encapsulation:2});
var bkc=["popOver"],Z_a=function(a){return{$implicit:a}},Y5=function(a){this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.valueChange=new Iw;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};U(Y5,bQ);g=Y5.prototype;g.ngOnInit=function(){};g.valueChanged=function(){return this.editingValue!==this.value};
g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue=this.value,this.popOver.open())};g.stopEditing=function(a){this.editing=!1;0===a&&(this.onChange(this.editingValue),this.value=this.editingValue,this.valueChange.emit(this.value))};g.writeValue=function(a){null!=a&&(this.val=a,this.editing||(this.editingValue=a))};g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};
g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};ki.Object.defineProperties(Y5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});Y5.\u0275fac=function(a){return new (a||Y5)(Xc("required"))};
Y5.\u0275cmp=v({type:Y5,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&Zf(bkc,7);if(a&2){var c;Yf(c=ag())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",hasBackdrop:"hasBackdrop"},outputs:{valueChange:"valueChange"},features:[Lf([{provide:ux,useExisting:ac(function(){return Y5}),
multi:!0},{provide:bQ,useExisting:ac(function(){return Y5}),multi:!0}]),gf],decls:11,vars:8,consts:[[3,"click","focus","blur"],["anchor",""],[4,"ngIf","ngIfElse"],["standardValueDisplay",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"centered",4,"ngIf"],[3,"anchor","editorTemplate","newlineWithEnterKey","hasBackdrop","closedWithAction"],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg",
"viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],[1,"textarea-wrapper"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"ngModel","cdkAutosizeMaxRows","ngModelChange",4,"ngIf","ngIfElse"],["singleLineTemplate",""],["spellcheck","false","autocomplete","off","cdkTextareaAutosize",
"","cdkAutosizeMinRows","1",3,"ngModel","cdkAutosizeMaxRows","ngModelChange"],["spellcheck","false","autocomplete","off",3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(G(0,"button",0,1),K("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),G(2,"span"),O(3,$_a,2,4,"ng-container",2),O(4,a0a,1,1,"ng-template",null,3,gg),H(),O(6,b0a,2,2,"svg",4),H(),G(7,"onedev-pop-over-edit-panel",5,6),K("closedWithAction",
function(f){return b.stopEditing(f)}),H(),O(9,e0a,4,2,"ng-template",null,7,gg));if(a&2){var c=Hf(1),d=Hf(5),e=Hf(10);nf("aria-labelledby",b.labelledById);B(3);D("ngIf",b.valueTemplate)("ngIfElse",d);B(3);D("ngIf",!b.disabled);B(1);D("anchor",c)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)}},dependencies:[sx,Cx,Fg,by,hy,OB,W4],styles:["button[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;font-weight:400;letter-spacing:.185714px;line-height:normal;background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start;text-align:left;white-space:pre-line}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor;margin-top:1px}.edit-icon.centered[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;margin-top:0}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;font-weight:400;letter-spacing:.185714px;line-height:normal;padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px;-moz-box-sizing:content-box;box-sizing:content-box;width:calc(100% - 10px)}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}"]});
var ckc=Dh("indicatorRotate",[Gh("collapsed, void",Fh({transform:"rotate(0deg)"})),Gh("expanded",Fh({transform:"rotate(180deg)"})),Hh("expanded <=> collapsed, void => collapsed",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),dkc=Dh("bodyExpansion",[Gh("collapsed, void",Fh({height:"0px",visibility:"hidden"})),Gh("expanded",Fh({height:"*",visibility:"visible"})),Hh("expanded <=> collapsed, void => collapsed",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]);
var ekc=new jd("CdkAccordion");
var fkc=0,Z5=function(a,b,c){var d=this;this.accordion=a;this._changeDetectorRef=b;this._expansionDispatcher=c;this._openCloseAllSubscription=T.Subscription.EMPTY;this.closed=new Iw;this.opened=new Iw;this.destroyed=new Iw;this.expandedChange=new Iw;this.id="cdk-accordion-child-"+fkc++;this._disabled=this._expanded=!1;this._removeUniqueSelectionListener=function(){};this._removeUniqueSelectionListener=c.listen(function(e,f){d.accordion&&!d.accordion.multi&&d.accordion.id===f&&d.id!==e&&(d.expanded=
!1)});this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())};g=Z5.prototype;g.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};g.toggle=function(){this.disabled||(this.expanded=!this.expanded)};g.close=function(){this.disabled||(this.expanded=!1)};g.open=function(){this.disabled||(this.expanded=!0)};
g._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
ki.Object.defineProperties(Z5.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(a){a=Rg(a);this._expanded!==a&&(this._expanded=a,this.expandedChange.emit(a),a?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Rg(a)}}});
Z5.\u0275fac=function(a){return new (a||Z5)(F(ekc,12),F(lx),F(vA))};Z5.\u0275dir=v({type:Z5,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Lf([{provide:ekc,useValue:void 0}])]});
var $5=function(){};$5.\u0275fac=function(a){return new (a||$5)};$5.\u0275mod=rc({type:$5});$5.\u0275inj=fc({});
var gkc=new jd("MAT_ACCORDION");
var hkc=new jd("MAT_EXPANSION_PANEL");
var a6=function(a,b){this._template=a;this._expansionPanel=b};a6.\u0275fac=function(a){return new (a||a6)(F(Vf),F(hkc,8))};a6.\u0275dir=v({type:a6,selectors:[["ng-template","matExpansionPanelContent",""]]});
var ikc=["body"],jkc=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],kkc=0,lkc=new jd("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),b6=function(a,b,c,d,e,f,h){Z5.call(this,a,b,c);var k=this;this._viewContainerRef=d;this._animationMode=f;this._hideToggle=!1;this.afterExpand=new Iw;this.afterCollapse=new Iw;this._inputChanges=new T.Subject;this._headerId="mat-expansion-panel-header-"+kkc++;this._bodyAnimationDone=new T.Subject;this.accordion=a;this._document=e;this._bodyAnimationDone.pipe(Le(function(q,
w){return q.fromState===w.fromState&&q.toState===w.toState})).subscribe(function(q){"void"!==q.fromState&&("expanded"===q.toState?k.afterExpand.emit():"collapsed"===q.toState&&k.afterCollapse.emit())});h&&(this.hideToggle=h.hideToggle)};U(b6,Z5);b6.\u0275dir=Z5.\u0275dir;g=b6.prototype;g._hasSpacing=function(){return this.accordion?this.expanded&&"default"===this.accordion.displayMode:!1};g._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};
g.toggle=function(){this.expanded=!this.expanded};g.close=function(){this.expanded=!1};g.open=function(){this.expanded=!0};g.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(We(null),De(function(){return a.expanded&&!a._portal}),Me()).subscribe(function(){a._portal=new MA(a._lazyContent._template,a._viewContainerRef)})};g.ngOnChanges=function(a){this._inputChanges.next(a)};
g.ngOnDestroy=function(){Z5.prototype.ngOnDestroy.call(this);this._bodyAnimationDone.complete();this._inputChanges.complete()};g._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
ki.Object.defineProperties(b6.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=Rg(a)}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});b6.\u0275fac=function(a){return new (a||b6)(F(gkc,12),F(lx),F(vA),F(Wf),F(ii),F(Wv,8),F(lkc,8))};
b6.\u0275cmp=v({type:b6,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&$f(c,a6,5);if(a&2){var d;Yf(d=ag())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&Zf(ikc,5);if(a&2){var c;Yf(c=ag())&&(b._body=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(a,b){a&2&&sf("mat-expanded",b.expanded)("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",
hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Lf([{provide:gkc,useValue:void 0},{provide:hkc,useExisting:b6}]),gf,Ac],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],
template:function(a,b){a&1&&(Cf(jkc),Df(0),G(1,"div",0,1),K("@bodyExpansion.done",function(c){return b._bodyAnimationDone.next(c)}),G(3,"div",2),Df(4,1),O(5,f0a,0,0,"ng-template",3),H(),Df(6,2),H());a&2&&(B(1),D("@bodyExpansion",b._getExpandedState())("id",b.id),nf("aria-labelledby",b._headerId),B(4),D("cdkPortalOutlet",b._portal))},dependencies:[PA],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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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:[dkc]},changeDetection:0});
var mkc=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],nkc=oi(function(){}),c6=function(a,b,c,d,e,f,h){var k=nkc.call(this)||this;k.panel=a;k._element=b;k._focusMonitor=c;k._changeDetectorRef=d;k._animationMode=f;k._parentChangeSubscription=T.Subscription.EMPTY;var q=a.accordion?a.accordion._stateChanges.pipe(De(function(w){return!(!w.hideToggle&&!w.togglePosition)})):T.EMPTY;k.tabIndex=parseInt(h||"")||0;k._parentChangeSubscription=(0,T.merge)(a.opened,a.closed,q,a._inputChanges.pipe(De(function(w){return!!(w.hideToggle||
w.disabled||w.togglePosition)}))).subscribe(function(){return k._changeDetectorRef.markForCheck()});a.closed.pipe(De(function(){return a._containsFocus()})).subscribe(function(){return Jz(c,b,"program")});e&&(k.expandedHeight=e.expandedHeight,k.collapsedHeight=e.collapsedHeight);return k};U(c6,nkc);g=c6.prototype;g._toggle=function(){this.disabled||this.panel.toggle()};g._isExpanded=function(){return this.panel.expanded};g._getExpandedState=function(){return this.panel._getExpandedState()};
g._getPanelId=function(){return this.panel.id};g._getTogglePosition=function(){return this.panel.togglePosition};g._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};g._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};g._keydown=function(a){switch(a.keyCode){case 32:case 13:gi(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};
g.focus=function(a,b){a?Jz(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};g.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};ki.Object.defineProperties(c6.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});
c6.\u0275fac=function(a){return new (a||c6)(F(b6,1),F(nd),F(Iz),F(lx),F(lkc,8),F(Wv,8),Xc("tabindex"))};
c6.\u0275cmp=v({type:c6,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&K("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(nf("id",b.panel._headerId)("tabindex",b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),rf("height",b._getHeaderHeight()),sf("mat-expanded",b.panel.expanded)("mat-expansion-toggle-indicator-after",
"after"===b.panel.togglePosition)("mat-expansion-toggle-indicator-before","before"===b.panel.togglePosition)("_mat-animation-noopable","NoopAnimations"===b._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[gf],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(a,b){a&1&&(Cf(mkc),
G(0,"span",0),Df(1),Df(2,1),Df(3,2),H(),O(4,g0a,1,1,"span",1));a&2&&(B(4),D("ngIf",b._showToggle()))},dependencies:[sx],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:[ckc]},changeDetection:0});var d6=function(){};d6.\u0275fac=function(a){return new (a||d6)};d6.\u0275dir=v({type:d6,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});
var e6=function(){};e6.\u0275fac=function(a){return new (a||e6)};e6.\u0275mod=rc({type:e6});e6.\u0275inj=fc({imports:[[Mx,VA,$5,QA]]});
var okc=["descriptionConfirmDialog"],i0a=function(a,b){return{partner:a,"public":b}},V0a=function(a){return{required:a}},$0a=function(a){return{"bv2-upload-ongoing":a}},pkc=function(a){return{submitted:a}},f6=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta,Aa,xa,Xa,eb,yc){BI.call(this);var Ua=this;this.ngZone=a;this.$log=b;this.$route=c;this.paths=d;this.redirectUrl=e;this.userAccess=f;this.accessPolicy=h;this.bLocation=k;this.appHistory=q;this.issueTemplate=w;this.issueTypeDialog=
y;this.componentActions=E;this.activeSession=I;this.draftStore=N;this.pageTitle=L;this.analytics=S;this.issueApi=Y;this.userApi=ka;this.hotlistApi=ha;this.butterBar=ya;this.errorHandler=Ha;this.matDialogService=Ja;this.appEvents=Ka;this.userPreferencesManager=fb;this.cdr=Aa;this.confirmationDialogService=xa;this.issueRelationshipsFridge=Xa;this.issueFridge=eb;this.clearcut=yc;this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.userEmail=this.activeSession.getUserEmail();
this.enableWtdmMvpUi=rH(this.activeSession,"enableWtdmMvpUi");this.sessionIsExternal=this.activeSession.isExternalSession();this.hotlistMap={};this.hotlists=[];this.templateComment="";this.appliedTemplate=null;this.componentPickerTouched=this.isLoadingComponent=!1;this.availablePredefinedTemplates=[];this.preferredTemplateId=this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.isNavigatingAway=this.isSaving=this.submitRequested=this.showRecentIssuesInline=!1;this.selectedHotlists=
[];this.componentHasExpandedAccessEnabled=this.canViewIssuesInComponent=this.canEditIssuesInComponent=this.createAclLoading=this.canCreateNewIssuesInComponent=this.newIssueStarted=!1;this.customFieldMap={};this.customFieldAllowedValuesMap={};this.verifierText=this.reporterText=this.assigneeText=null;this.ccsText=[];this.magicBoxHeader="Recent Issues";this.selectedComponent=null;this.useCodefont=!1;this.selectedHotlistIds=[[]];this.isFormatInRoute=!1;this.isChildIssueIdsValid=this.isParentIssueIdsValid=
this.isBlockingIssueIdValid=this.isBlockedByIssueIdValid=!0;this.startTime=new Date;this.toIssueSeverity=$Ab;this.FieldType=vXb;this.initialized=!1;this.getSingleEditFieldType=wXb;this.getListFieldType=pYb;this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){Ua.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){Ua.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){Ua.fetchUserHotlists()}));
this.enableCreateIssueWithTemplate=rH(I,"enableCreateIssueWithTemplate");this.frontendIsInternalOrPartner=I.isInternalSession()||qH(I);this.priorityChoices=ta.priorities.map(function(bb){return{value:bb,displayText:bb}});this.severityChoices=ta.severities.map(function(bb){return{value:bb,displayText:bb}});this.issueTypeChoices=ta.editIssueTypes.map(function(bb){return{value:bb,displayText:vH(bb),altText:ta.issueTypesShortDescriptions.get(bb)}});this.urlTemplate=new Q6b(Ma,b);this.piiWarningMessage=
I.isInternalSession()?"Please be sure you don't include sensitive information/data (PII, SPII, and other sensitive user data) in unrestricted issues (either in text or through attachments). If you do need to include sensitive information, please be sure to link to a secure doc (e.g. a drive file with proper sharing settings) and share only with those that have a business need for access. Please see http://go/buganizerpuppy.":void 0;this.descriptionBoxId="bv2-description";this.componentRequestedInUrl=
Ma.component;this.templateIssueRequestedInUrl=Ma.template_issue;Ma.template&&(a=Ki(Ma.template),void 0!==a&&(this.preferredTemplateId=a));Ma.parentIssueId&&(a=Ma.parentIssueId,this.parentIssueIds=Array.isArray(a)?a:[a]);Ma.childrenIssueIds&&(a=Ma.childrenIssueIds,this.childrenIssueIds=Array.isArray(a)?a:[a]);Ma.afterIssueId&&(a=Ma.afterIssueId,this.afterIssueId=Array.isArray(a)?a[0]:a);this.issue=Fi(qkc);c1a(this.issue,this);this.audience=2;Ma.description?this.comment=new aS(Ma.description,!0):(a=
this.draftStore.$window.sessionStorage.getItem(vo(0))||"",this.comment=new aS(a));a=rkc(Ma);this.isFormatInRoute=null!=a;a&&(this.comment.formattingMode=a);this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.subscriptions.add(fb.preferences$.subscribe(function(bb){var Sa;Ua.useCodefont=null!=(Sa=bb.useCodefont)?Sa:Ua.useCodefont}));this.hasAdvancedFieldsInUrlTemplate=S6b(this.urlTemplate)||!!this.parentIssueIds||!!this.childrenIssueIds;this.subscriptions.add(gJ(hb,{title:"Create Issue Page",
hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var bb;null==(bb=Ua.hotlistPicker)||bb.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){Ua.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,skc(this,Ki(this.componentRequestedInUrl))):(X6b(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&(this.newIssueStarted=!0,tkc(this));this.originalIssueCopy=Fi(this.issue);Ma.description&&
(this.originalIssueCopy.comment=this.comment.value,this.issue.comment=this.comment.value);this.isFormatInRoute&&(this.issue.formattingMode=$m[this.comment.formattingMode],this.originalIssueCopy.formattingMode=this.issue.formattingMode);this.pageTitle.setTitle("New issue");this.createRestrictedResourcesComponentWhitelist=jb(I.config,13);this.subscriptions.add(cZ(Lb,function(){return Ua.hasUnsavedChanges()},!1))};U(f6,BI);f6.\u0275dir=BI.\u0275dir;g=f6.prototype;
g.ngOnDestroy=function(){BI.prototype.ngOnDestroy.call(this);ukc(this)};g.ngOnInit=function(){this.initialized=!0};g.unloadPageHandler=function(){ukc(this)};g.refreshView=function(){var a=this;this.initialized&&this.ngZone.run(function(){a.cdr.detectChanges()})};g.back=function(){X_(this.appHistory)};
var zkc=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,vkc(a),a.audience=rX(a.selectedComponent)?2:1,a.createRestrictedResourcesComponentWhitelist.includes(a.selectedComponent.componentId)?(a.judgementForNewContent=new Dl,a.judgementForNewContent.setSeverity(2),a.judgementForNewContent.setJudgementReason("None Specified")):a.judgementForNewContent=
void 0):(fh(a.issue,"componentId"),a.audience=2);a.submitRequested=!1;wkc(a);a.selectedComponentProcessedPromise=Promise.all([xkc(a),ykc(a)]).then(function(){});return a.selectedComponentProcessedPromise},Akc=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},j0a=function(a){return P1b(a.selectedComponent)?"External Google partners may be able to see this issue.":sX(a.selectedComponent)?
"Public users with Google Accounts may be able to see this issue.":""},tkc=function(a){var b=Ki(a.templateIssueRequestedInUrl);a.availableExistingIssueTemplate=new Bkc(b,"issue","Issue "+b,!1);a.selectedTemplate=a.availableExistingIssueTemplate},xkc=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(a.selectedTemplate=null);return a.selectedComponent?a.issueTemplate.templatesApi.query(a.selectedComponent.componentId).then(function(b){a.availablePredefinedTemplates=
b.map(function(e){var f=e.name;Vi(Ui(f))&&(f=e.default?"(default template)":"(unnamed template)");return new Bkc(e.templateId,"predefined",f,e.default)});if(a.preferredTemplateId&&!a.selectedTemplate){var c=a.preferredTemplateId;if(b=a.availablePredefinedTemplates.find(function(e){return e.id===c}))a.selectedTemplate=b,a.preferredTemplateId=null}if(!a.selectedTemplate){b=r(a.availablePredefinedTemplates);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.isDefault){a.selectedTemplate=d;break}}0<
a.availablePredefinedTemplates.length&&!a.selectedTemplate&&(a.selectedTemplate=a.availablePredefinedTemplates[0]);a.refreshView()}).catch(function(){QK(a.butterBar,"Unable to load templates for this component")}):Promise.resolve(void 0)},ykc=function(a){if(!a.selectedComponent)return a.canCreateNewIssuesInComponent=!1,a.canEditIssuesInComponent=!1,Promise.resolve(void 0);var b=a.selectedComponent.componentId,c="components/"+b+"/issueDefaults";a.createAclLoading=!0;a.canCreateNewIssuesInComponent=
!1;a.canEditIssuesInComponent=!1;a.canViewIssuesInComponent=!1;a.componentHasExpandedAccessEnabled=!1;var d=DK(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;a.refreshView()}),e=DK(a.userAccess,"writer",c).then(function(f){a.canEditIssuesInComponent=f;a.refreshView()});c=DK(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;a.refreshView()});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=
f;a.refreshView()});return Promise.all([d,e,c,b]).then(function(){Ckc(a);a.refreshView()}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})};
f6.prototype.getIssueTemplate=function(){var a=this;if(this.selectedTemplate){var b=function(c){var d=Fi(qkc);Object.assign(d,c.snapshot);a.selectedComponent&&(d.componentId=a.selectedComponent.componentId);delete d.issueId;var e=Fi(d);Akc(a);d1a(a,a.issue);var f=Fi(a.issue);if(a.appliedTemplate)for(var h=r(Object.entries(a.appliedTemplate)),k=h.next();!k.done;k=h.next()){var q=r(k.value);k=q.next().value;q=q.next().value;if(Array.isArray(q)&&Array.isArray(f[k])){q=r(q);for(var w=q.next();!w.done;w=
q.next())Xma(f[k],w.value)}else Ei(q,f[k])&&delete f[k]}a.appliedTemplate=e;f=r(Object.entries(f));for(h=f.next();!h.done;h=f.next())k=r(h.value),h=k.next().value,k=k.next().value,q=qkc[h],"customField"===h||Ei(k,q)||(Array.isArray(k)?d[h]=d[h]?Wma(k.concat(d[h])):k:""!==k&&(d[h]=k));e=e.comment||"";a.comment.value!==a.templateComment&&(aQb(a.comment)||""===e||a.comment.value===e||(a.templateComment=e,Dkc(a,a.comment.value)),d.comment=a.comment.value);a.templateComment=e;d.reporterUser=Tl(a.userEmail);
a.issue=d;c1a(a.issue,a);Ckc(a);Akc(a);d1a(a,a.issue);a.comment.value=a.issue.comment||"";X6b(a.urlTemplate,a.issue,a.customFieldMap);c1a(a.issue,a);a.originalIssueCopy=Fi(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=Fi(a.issue.hotlistId);a.refreshView()});Ekc(a);return a.selectedComponent?null:c.snapshot.componentId};"predefined"===this.selectedTemplate.type&&this.selectedComponent?this.issueTemplate.templatesApi.getIssueTemplate(this.selectedComponent.componentId,
this.selectedTemplate.id).then(b).then(function(){a.refreshView()}):"issue"===this.selectedTemplate.type&&(hIb(this.issueTemplate,this.selectedTemplate.id).then(b).then(function(c){c&&(skc(a,c),a.refreshView())}),(0,T.firstValueFrom)(this.issueFridge.watch(String(this.selectedTemplate.id))).then(function(c){var d;null!=(d=a.parentIssueIds)&&d.length||(a.parentIssueIds=null==c?void 0:c.parentIssueIds)}));this.selectedTemplate.id!==this.preferredTemplateId&&bo(this.analytics,go.CREATE_ISSUE,"changeTemplate");
wkc(this)}};f6.prototype.isValid=function(){return!(0!==l0a(this).length||0!==m0a(this).length)&&!(!this.isBlockedByIssueIdValid||!this.isBlockingIssueIdValid||!this.isParentIssueIdsValid)&&!Gs(this.comment)};
var l0a=function(a){var b=a.issue;a=a.canEditIssuesInComponent?["componentId","priority","type","title"]:["componentId","title"];a=a.filter(function(c){return!b[c]});return a.map(function(c){return"componentId"===c?"component":c})},m0a=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&(new lJ(b)).isEmpty()}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},Is=function(a,b){return b.split(a.ISSUE_ID_LIST_DELIMITER).map(function(c){return c.trim()}).map(function(c){return c.startsWith("b/")?
c.slice(2):c}).filter(function(c){return c}).map(Number).filter(function(c){return!isNaN(c)})},G0a=function(a){return a.split(",").map(function(b){return b.trim()})},Hs=function(a){return a?a.join(", "):""},Ekc=function(a){if(zja(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;null==(b=a.advancedFieldsZippy)||b.open()}};g=f6.prototype;
g.getCustomFieldType=function(a){var b,c;return null!=(c=null==(b=this.customFieldMap[a.customFieldId])?void 0:b.type)?c:""};g.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};g.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};g.getCustomFieldValue=function(a){return(new lJ(a)).getValue()};g.getDateValue=function(a){return a};
g.setCustomFieldValue=function(a,b){var c=this.getCustomFieldType(a),d=this.issue.customField.map(function(e){if(e.customFieldId===a.customFieldId)switch(c){case "TEXT":e.textValue=b;break;case "DATE":e.dateValue=b;break;case "ENUM":e.enumValue=b;break;case "NUMERIC":e.numericValue=b;break;case "REPEATED_TEXT":e.repeatedTextValue={values:b};break;case "REPEATED_DATE":e.repeatedDateValue={values:b};break;case "REPEATED_ENUM":e.repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":e.repeatedNumericValue=
{values:b}}return e});bo(this.analytics,go.CREATE_ISSUE,"changeCustomField",c);this.issue=Object.assign({},this.issue,{customField:d})};g.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};g.getListFieldValues=function(a){var b,c;return null!=(c=null==(b=(new lJ(a)).getValue())?void 0:b.values)?c:null};
g.saveCommentDraft=function(){var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(vo(0),a);this.issue=Object.assign({},this.issue,{comment:a})};
g.handleHotlistPickerSave=function(a){var b=[];a=r(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;(d=d.next().value)&&b.push(Ki(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();bo(this.analytics,go.CREATE_ISSUE,"changeHotlists")};g.removeHotlist=function(a){var b;wa(null!=(b=this.issue.hotlistId)?b:null,a);this.updateSelectedHotlists()};
g.setTitle=function(a){this.issue=Object.assign({},this.issue,{title:a})};g.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:a8a(a)});var b;bo(this.analytics,go.CREATE_ISSUE,"changePriority",null!=(b=this.issue.priority)?b:void 0)};var C0a=function(a,b){a.issue=Object.assign({},a.issue,{type:ZAb(b)});var c;bo(a.analytics,go.CREATE_ISSUE,"changeType",null!=(c=a.issue.type)?c:void 0)};
f6.prototype.updateSelectedHotlists=function(){var a=this;this.selectedHotlistIds=[this.issue.hotlistId];this.selectedHotlists=this.hotlists.filter(function(b){return a.issue.hotlistId.includes(b.hotlistId)});Ga(this.selectedHotlists,function(b,c){return au(b.name,c.name)})};
var Fkc=function(a,b){var c,d,e,f,h,k,q,w,y,E,I;return me(function(N){switch(N.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){N.jumpTo(2);break}e=[];return 1===d.length?ne(N,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):ne(N,BJb(a.issueRelationshipsFridge,c,d),5);case 5:h=N.yieldResult;e=h.notAdded;f=h.errors;N.jumpTo(4);break;case 6:k=N.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&QK(a.butterBar,"Unable to add "+e+" as parent(s). "+
f);case 2:q=a.childrenIssueIds;if(null==(w=q)||!w.length){N.jumpTo(7);break}return ne(N,a.issueRelationshipsFridge.assignParentToIssues(c,q.map(function(L){return{issueId:L}})),8);case 8:y=N.yieldResult,E=y.notAdded,I=y.errors,E.length&&QK(a.butterBar,"Unable to add "+E+" as children. "+I);case 7:return N.return(b)}})},Z0a=function(a,b){var c=a.issue;a.submitRequested=!0;if(a.isValid()){c.comment=a.comment.value;c.formattingMode=$m[a.comment.formattingMode];var d={snapshot:c,attachments:bQb(a.comment)};
a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(d.templateId=a.selectedTemplate.id);a.judgementForNewContent&&1!==a.judgementForNewContent.getSeverity()&&(d.contentJudgement=vqa(a.judgementForNewContent));a.canEditIssuesInComponent||(d.snapshot={title:d.snapshot.title,componentId:d.snapshot.componentId,comment:d.snapshot.comment,formattingMode:d.snapshot.formattingMode,cc:!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||a.enableCreateIssueWithTemplate?[]:[a.userEmail]});
d.snapshot=dh(d.snapshot,function(h){return"string"!==typeof h||!Vi(h)});d.snapshot.customField&&(d.snapshot.customField=d.snapshot.customField.filter(function(h){return!(new lJ(h)).isEmpty()}));d1a(a,d.snapshot);d.snapshot.assigneeUser&&(d.snapshot.status="ASSIGNED");var e=function(){a.isSaving=!0;a.newIssueStarted=!1;PK(a.butterBar,"Creating...",0);a.issueApi.createIssue(d).then(function(h){return Fkc(a,h)}).then(function(h){a.draftStore.$window.sessionStorage.removeItem(vo(0));a.originalIssueCopy=
Fi(a.issue);bo(a.analytics,go.CREATE_ISSUE,"create",2===a.comment.formattingMode?"markdown":"non markdown");Gkc(a);if(b){var k;bo(a.analytics,go.CREATE_ISSUE,"fileAndRedirect","component",null!=(k=c.componentId)?k:void 0);a.butterBar.dismiss();a.isNavigatingAway=!0;a.isSaving=!1;DK(a.userAccess,"reader","issues/"+h.issueId).then(function(y){a.componentPickerTouched=!1;y?d7b(a.redirectUrl,a.paths.editIssue(h.issueId),String(h.issueId)):(PK(a.butterBar,"New issue created: "+h.issueId+" (view access not granted)",
0),d7b(a.redirectUrl,a.paths.listIssues()));a.refreshView()}).catch(function(y){a.errorHandler.errorHandler(null,y);a.isNavigatingAway=!1})}else{a.componentPickerTouched=!1;var q;bo(a.analytics,go.CREATE_ISSUE,"fileAndNew","component",null!=(q=c.componentId)?q:void 0);k={};fIb(a.butterBar,Qn("New issue created: ",Pn("A",(k.href=a.paths.editIssue(h.issueId),k),String(h.issueId))),0);c.title="";a.comment=new aS(a.templateComment);c.comment=a.comment.value;a.isSaving=!1;a.submitRequested=!1;var w;k=
r(null!=(w=a.magicBoxes)?w:[]);for(w=k.next();!w.done;w=k.next())w.value.refresh();a.newIssueStarted=!0;a.originalIssueCopy=Fi(a.issue)}a.refreshView()}).catch(function(h){403===h.status&&xm(h)?TK(a.errorHandler,ym(h)):a.errorHandler.errorHandler(null,h);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1})};Hkc(a).then(function(h){return h?Ikc(a):Promise.resolve(!1)}).then(function(h){h&&e()})}else{var f=document.querySelector(".bv2-view");f&&(f.scrollTop=0)}},Hkc=function(a){var b=Jj();!a.canEditIssuesInComponent&&
!a.frontendIsInternalOrPartner&&a.selectedComponent&&a.selectedComponent.accessLimit&&"INTERNAL"!==a.selectedComponent.accessLimit.accessLevel?a.confirmationDialogService.open({title:"",content:My("Submitting this bug report means your email address will be shared with the team that works on this product."),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Ikc=function(a){var b=Jj();!a.canEditIssuesInComponent||"VULNERABILITY"!==a.issue.type&&
"PRIVACY_ISSUE"!==a.issue.type?b.resolve(!0):MR(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},skc=function(a,b){a.isLoadingComponent=!0;a.componentActions.getUncached(b).then(function(c){zkc(a,c);a.refreshView()}).catch(function(){QK(a.butterBar,"Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};
f6.prototype.hasUnsavedChanges=function(){var a=e1a(this.issue),b=e1a(this.originalIssueCopy);return!Ei(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var y0a=function(a){a.showRecentIssuesInline=!a.showRecentIssuesInline;bo(a.analytics,go.CREATE_ISSUE,"toggleRecentIssuesInline",a.showRecentIssuesInline.toString())},Dkc=function(a,b){a.matDialogService.open(a.descriptionConfirmDialog,{data:b})._afterClosed.pipe(Oe()).subscribe(function(c){c?(a.comment.value=a.templateComment,a.issue.comment=a.templateComment,a.originalIssueCopy.comment=a.templateComment):(a.originalIssueCopy.comment=a.templateComment,a.templateComment="")})},wkc=function(a){a.selectedComponent&&
a.bLocation.search("component",a.selectedComponent.componentId);a.selectedTemplate&&("predefined"===a.selectedTemplate.type?(a.bLocation.search("template",a.selectedTemplate.id),a.bLocation.search("template_issue",null)):"issue"===a.selectedTemplate.type&&(a.bLocation.search("template_issue",a.selectedTemplate.id),a.bLocation.search("template",null)))},Es=function(a){return a.sessionIsExternal?!1:P1b(a.selectedComponent)},Fs=function(a){return"PUBLIC"===a.activeSession.frontendAccessMode?!1:sX(a.selectedComponent)},
vkc=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){for(var b=a.selectedComponent.componentPathInfo.allCustomField,c={},d=r(b),e=d.next();!e.done;e=d.next())e=e.value,c[e.customFieldId]=e;a.customFieldMap=c;a.customFieldAllowedValuesMap=Jkc(b);Kkc(a)}},Kkc=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(e){return a.customFieldMap[e.customFieldId]&&a.customFieldMap[e.customFieldId].enabledOnIssues});
for(var b=a.issue.customField.map(function(e){return e.customFieldId}),c=r(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,!b.includes(d.customFieldId)&&d.enabledOnIssues&&a.issue.customField.push(d.typedDefaultValue||new lJ({customFieldId:d.customFieldId}));a.originalIssueCopy.customField=a.issue.customField}},Ckc=function(a){if(a.canViewIssuesInComponent||a.componentHasExpandedAccessEnabled)void 0!==a.ccsText?a.ccsText.includes(a.userEmail)||(a.ccsText=[a.userEmail].concat(u(a.ccsText))):
a.ccsText=[a.userEmail]};g=f6.prototype;g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.refreshView()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&wa(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
g.createHotlist=function(a){var b=this;bo(this.analytics,"baseIssue","createHotlist");PK(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){PK(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);b.refreshView()}).catch(a.errorCallback)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId;return this.hotlistMap[c]?Promise.resolve(this.hotlistMap[c]):this.hotlistApi.get(c).then(function(d){b.addHotlist(d);a.successCallback(d);b.refreshView();return d},function(){var d=b.hotlistMap[c];fh(b.hotlistMap,c);wa(b.hotlists,d);a.errorCallback()})};g.loadHotlists=function(a){var b=this;a=a.map(function(c){return b.loadHotlist({hotlistId:c,successCallback:function(){},errorCallback:function(){}})});return Promise.all(a).then(function(){b.refreshView()})};
var rkc=function(a){var b;switch((null==(b=a.format)?void 0:b.toLowerCase())||""){case "plain":return 1;case "markdown":return 2}};f6.prototype.showNewContentJudgementDialog=function(){var a=this,b,c,d=null!=(c=null==(b=this.judgementForNewContent)?void 0:b.getSeverity())?c:1;this.showContentJudgementDialog({severity:d,contentJudgement:this.judgementForNewContent,hasAclToCreate:!0}).pipe(Ye(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};
f6.prototype.showContentJudgementDialog=function(a){return this.matDialogService.open(r5,{width:"500px",data:a})._afterClosed};
var ukc=function(a){a.componentPickerTouched&&(bo(a.analytics,go.CREATE_ISSUE,"exit-after-component-picker-interaction","new-ui"),a.componentPickerTouched=!1);bo(a.analytics,go.CREATE_ISSUE,"creation-abandon","new-ui")},Gkc=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(0<b){var c=Math.min(b,108E5);qKb(a.analytics,"createIssue",c,"new-ui");bo(a.analytics,go.CREATE_ISSUE,"createIssue","time-to-create-new-ui",c);c=a.clearcut;c.userLatency.record(b,"createIssue-fromNewIssuePage",c.frontendAccessMode,
c.environmentType)}a.startTime=new Date};ki.Object.defineProperties(f6.prototype,{selectedTemplate:{configurable:!0,enumerable:!0,get:function(){return this.selectedTemplateInternal},set:function(a){var b=this;if(this.selectedTemplateInternal!==a){this.selectedTemplateInternal=a;var c;null==(c=this.selectedComponentProcessedPromise)||c.then(function(){b.getIssueTemplate()})}}}});
f6.\u0275fac=function(a){return new (a||f6)(F(ef),F(RK),F(QKb),F(dL),F(Y_),F(CK),F(iO),F(cL),F(W_),F(VK),F(LR),F(AT),F(pH),F(KR),F(hO),F(SM),F(wK),F(PJ),F(pL),F(OK),F(SK),F(HB),F(WK),F(bS),F(fJ),F(zI),F(dZ),F(ZH),F(uI,2),F(aN),F(eM),F(yL),F(SO))};
f6.\u0275cmp=v({type:f6,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(Zf(wX,5),Zf(pX,5),Zf(okc,5),Zf(b6,5),Zf(t_,5));if(a&2){var c;Yf(c=ag())&&(b.hotlistPicker=c.first);Yf(c=ag())&&(b.commentBox=c.first);Yf(c=ag())&&(b.descriptionConfirmDialog=c.first);Yf(c=ag())&&(b.advancedFieldsZippy=c.first);Yf(c=ag())&&(b.magicBoxes=c)}},hostBindings:function(a,b){a&1&&K("unload",function(){return b.unloadPageHandler()},!1,qd)},features:[Lf([uI]),gf],decls:30,vars:17,consts:[[1,"a11y-only"],
[1,"kd-appbar","bv2-create-issue-scroll-header"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate",4,"ngIf"],["cdkScrollable","",1,"bv2-view"],[1,"bv2-new-issue-main-content"],["novalidate","","name","createIssueForm",3,"ngClass"],["class","bv2-create-component-external-warning",3,"ngClass",4,"ngIf"],["class","bv2-validation-error-banner",
"role","alert",4,"ngIf"],["class","bv2-create-issue-hotlists",4,"ngIf"],[1,"bv2-create-issue-row"],[1,"bv2-create-field"],[1,"bv2-top-field-label"],["for","bv2-component",1,"required"],[1,"bv2-create-issue-component"],[3,"selectedComponent","shouldFocus","isRequired","selectedComponentChange","touched"],["class","bv2-create-field bv2-right-button",4,"ngIf"],["class","bv2-validation-error-banner",4,"ngIf"],[4,"ngIf"],[1,"bv2-new-issue-right-sidebar"],[3,"componentId","issueTitle","issue","customFieldMap",
"headerChange"],["descriptionConfirmDialog",""],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate"],[1,"bv2-create-component-external-warning",3,"ngClass"],[3,"name","size"],[3,"href"],["role","alert",1,"bv2-validation-error-banner"],["class","bv2-validation-error",4,"ngIf"],[1,"bv2-validation-error"],[1,"bv2-create-issue-hotlists"],["class","bv2-hotlist-chips",4,"ngFor","ngForOf"],[1,"bv2-hotlist-chips"],[3,"hotlist","removeHotlist"],[1,"bv2-create-field","bv2-right-button"],["for",
"bv2-template-chooser"],["mat-button","","color","primary","id","bv2-template-chooser","aria-label","Template","type","button",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["templateMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"bv2-validation-error-banner"],["class","bv2-recent-issues-inline-container",4,"ngIf"],["for","bv2-title",1,"required"],[1,"bv2-create-issue-title"],
["type","text","name","title","aria-label","Issue Title","id","bv2-title","name","title","required","","aria-required","true","autocomplete","off",3,"ngModel","bFocus","ngModelChange"],["class","bv2-create-field bv2-create-issue-assignee",4,"ngIf"],["class","bv2-create-field bv2-create-issue-cc",4,"ngIf"],[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"supportsPreview","comment","loadFormatFromPrefs","disabled","judgementForNewContent","componentId","placeholder","idForAriaLabel","audience",
"ngClass","commentChange","onChange","onSubmit","onRestrict"],[3,"initialValue"],[1,"float-clear"],[1,"bv2-create-issue-zippy"],["class","mat-elevation-z0",4,"ngIf"],[1,"bv2-issue-create-button-bar"],["format","fill","id","bv2-issue-create-button",3,"disabled","onAction"],["format","fill","id","bv2-issue-create-start-button",3,"disabled","onAction"],["format","hairline","id","bv2-issue-discard-button",3,"disabled","onAction"],[1,"bv2-recent-issues-inline-container"],[1,"bv2-recent-issues-toggle-container"],
["tabindex","0",1,"bv2-recent-issues-toggle",3,"click","keydown.enter","keydown.space"],["class","bv2-recent-issues-inline",4,"ngIf"],[1,"bv2-recent-issues-inline"],[3,"componentId","hideHeader","showInline","issueTitle","issue","customFieldMap","headerChange"],["for","bv2-priority",1,"required"],["mat-button","","type","button","color","primary",3,"matMenuTriggerFor"],["priorityMenu","matMenu"],["mat-menu-item","","type","button",3,"click"],["mat-menu-item","","type","button",3,"click",4,"ngFor",
"ngForOf"],["for","bv2-type",1,"required"],["typeMenu","matMenu"],["mat-menu-item","","type","button",3,"title","click",4,"ngFor","ngForOf"],["mat-menu-item","","type","button",3,"title","click"],[1,"bv2-create-field","bv2-create-issue-assignee"],["for","bv2-assignee"],[1,"overflow-hidden"],["id","bv2-assignee","type","text","name","assignee","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModel","bContactAutocomplete","ngModelChange"],[1,"bv2-create-field","bv2-create-issue-cc"],["for",
"bv2-cc"],["id","bv2-cc","type","text","name","cc","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModel","bContactAutocomplete","ngModelChange"],[1,"mat-elevation-z0"],[1,"required-text"],[1,"bv2-new-issue-metadata"],["aria-label","Set severity",1,"bv2-create-adv-field"],["for","bv2-severity","title","Set severity, which reflects how much the issue affects the use of the product"],["mat-button","","type","button","color","primary","id","bv2-severity",3,"matMenuTriggerFor"],["severityMenu",
"matMenu"],[1,"bv2-create-adv-field"],["for","bv2-found-in","title","Set version(s) of the product affected by this issue (comma-separated list)"],["id","bv2-found-in","name","foundIn","type","text","autocomplete","off",3,"ngModel","ngModelChange"],["aria-label","Set in prod",1,"bv2-create-adv-field"],["for","bv2-in-prod","title","Set if this issue occurs in production"],["id","bv2-in-prod","name","inProd","aria-label","Set in prod",3,"ngModel","ngModelChange"],["for","bv2-reporter","title","Set the reporter of this issue."],
["id","bv2-reporter","name","reporter","type","text","autocomplete","off",3,"ngModel","bContactAutocomplete","ngModelChange"],["for","bv2-verifier","title","Set the verifier of this issue."],["id","bv2-verifier","name","verifier","type","text","autocomplete","off",3,"ngModel","bContactAutocomplete","ngModelChange"],["for","bv2-targeted-to","title","Set the version(s) of the product in which the issue should be fixed (comma-separated list)"],["id","bv2-targeted-to","name","targetedTo","type","text",
"autocomplete","off",3,"ngModel","ngModelChange"],["for","bv2-blocked-by","title","Set issue(s) blocking this issue (comma-separated list)"],["id","bv2-blocked-by","name","blockedByInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["for","bv2-blocking","title","Set issue(s) blocked by this issue (comma-separated list)"],["id","bv2-blocking","name","blockingInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],
["class","bv2-create-adv-field",4,"ngIf"],["class","bv2-create-adv-field",4,"ngFor","ngForOf"],["for","bv2-parents","title","Set parent issue(s) of this issue (comma-separated list)"],["id","bv2-parents","name","parentsInputField","type","text","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["for","bv2-children","title","Set children issue(s) of this issue (comma-separated list)"],["id","bv2-children","name","childrenInputField","type","text","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],
[3,"id","ngClass","title"],[3,"id","value","valueChange",4,"ngIf"],[3,"value","options","includeEmptyOption","valueChange",4,"ngIf"],[3,"id","value","valueChange"],[3,"boundValue","isRequired","bv2Id","bv2AriaLabelledby","boundValueChange"],[3,"value","options","includeEmptyOption","valueChange"],["name","customInput","tabindex","0",3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange"],["mat-dialog-title",""],[1,"bv2-create-issue-default-description"],["mat-button","",3,"mat-dialog-close"],
["mat-button","","mat-dialog-close",""]],template:function(a,b){a&1&&(G(0,"h2",0),P(1,"Create issue"),H(),G(2,"div",1)(3,"div",2)(4,"button",3),K("click",function(){return b.back()}),J(5,"mat-icon",4),H(),G(6,"h2"),P(7,"Create Issue"),H(),O(8,h0a,1,2,"b-hotlist-picker",5),H()(),G(9,"div",6)(10,"div")(11,"div",7)(12,"form",8),O(13,k0a,6,8,"div",9),O(14,q0a,4,3,"div",10),O(15,s0a,2,1,"div",11),G(16,"div",12)(17,"div",13)(18,"div",14)(19,"label",15),P(20,"Component"),H()(),G(21,"div",16)(22,"b-team-component-picker",
17),K("selectedComponentChange",function(d){return zkc(b,null!==d&&void 0!==d?d:null)})("touched",function(){return b.componentPickerTouched=!0}),H()()(),O(23,v0a,11,5,"div",18),H(),O(24,w0a,3,0,"div",19),O(25,a1a,33,25,"div",20),H()(),G(26,"div",21)(27,"b-magic-box",22),K("headerChange",function(d){return b.magicBoxHeader=d}),H()()()(),O(28,b1a,11,2,"ng-template",null,23,gg));if(a&2){var c;B(8);D("ngIf",b.canEditIssuesInComponent);B(4);D("ngClass",Nf(15,pkc,b.submitRequested));B(1);D("ngIf",Es(b)||
Fs(b));B(1);D("ngIf",b.submitRequested&&!b.isValid());B(1);D("ngIf",0<b.selectedHotlists.length);B(7);D("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);B(1);D("ngIf",0<b.availablePredefinedTemplates.length||null!=b.availableExistingIssueTemplate);B(1);D("ngIf",!b.isLoadingComponent&&(null!=b.componentRequestedInUrl||null!=b.selectedComponent)&&!b.canCreateNewIssuesInComponent&&!b.createAclLoading&&b.selectedComponent);
B(1);D("ngIf",b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent);B(2);D("componentId",null!==(c=b.issue.componentId)&&void 0!==c?c:void 0)("issueTitle",b.issue.title)("issue",b.issue)("customFieldMap",b.customFieldMap)}},dependencies:[yO,pX,TW,XU,cQ,X4,l_,iy,Fg,by,cy,sy,uy,hy,fy,dY,wX,uH,bY,vV,t_,pB,IB,JB,KB,LB,b6,c6,d6,LE,tA,QE,OE,TE,FT,$E,Y5,EV,vx,wx,sx,zM],styles:[".feedback-button[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto}.feedback-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.feedback-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bv2-top-field-label[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.mat-menu-item[_ngcontent-%COMP%]:active, .mat-menu-item[_ngcontent-%COMP%]:focus, .mat-menu-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var Jkc=function(a){var b={};a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.allowedValue&&(b[c.customFieldId]=c.allowedValue.map(function(d){return{value:d,displayText:d}}));return b},qkc={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},Bkc=function(a,b,c,d){this.id=a;this.type=b;this.name=c;this.isDefault=d};
var Lkc=["form"],g6=function(a,b,c,d,e,f,h,k){this.bLocation=a;this.sloApi=b;this.errorHandler=c;this.paths=d;this.analytics=e;this.butterBar=f;this.appHistory=k;this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error="";this.sloUnderEdit=new sY;h.setTitle("Create SLO")};g6.prototype.ngAfterViewInit=function(){};
g6.prototype.save=function(){var a=this;if(!this.validate())return Promise.reject("Correct the errors in the form");PK(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){PK(a.butterBar,"SLO "+b.getName()+" saved.",2E3);bo(a.analytics,"SLO","create");a.bLocation.replaceUrl(a.paths.editSlo(b.getSloId()))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};g6.prototype.back=function(){X_(this.appHistory)};
g6.prototype.revertChanges=function(){this.sloUnderEdit.setName("");this.sloUnderEdit.setDescription("");zb(this.sloUnderEdit,6,[])};var Mkc=function(a){return""!==a.sloUnderEdit.getName()||""!==a.sloUnderEdit.getDescription()||0<Ts(a.sloUnderEdit).length};g6.prototype.updateCollection=function(a){zb(this.sloUnderEdit,6,a)};
g6.prototype.validate=function(){if(this.createSloForm.invalid||!this.elementPickerIsValid)return this.error="Error: You must fill out all required fields and ensure the rules are valid.",!1;this.error="";return!0};g6.\u0275fac=function(a){return new (a||g6)(F(cL),F(vY),F(SK),F(dL),F(SM),F(OK),F(hO),F(W_))};
g6.\u0275cmp=v({type:g6,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&Zf(Lkc,5);if(a&2){var c;Yf(c=ag())&&(b.createSloForm=c.first)}},decls:30,vars:17,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"vertical-centered"],[1,"edit-resource-panel"],["name","createSloForm"],["form","ngForm"],[3,"error"],[1,"edit-field"],
["for","slo-name",1,"required"],["type","text","id","slo-name","name","name",3,"required","bFocus","ngModel","disabled","ngModelChange"],["for","slo-description"],["id","slo-description","name","description",3,"ngModel","disabled","ngModelChange"],[3,"isDisabled","collection","onCollectionUpdate","onValidation"],[1,"advanced-settings-info"],[1,"edit-button-row"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",
1)(2,"b-button",2),K("onAction",function(){return b.back()}),J(3,"b-icon",3),H()()(),G(4,"div",4)(5,"h2",5)(6,"span",6),P(7,"Create a new SLO"),H()(),G(8,"div",7)(9,"form",8,9),J(11,"b-error-banner",10),G(12,"div",11)(13,"label",12),P(14,"Name"),H(),G(15,"input",13),K("ngModelChange",function(c){return b.sloUnderEdit.setName(c)}),H()(),G(16,"div",11)(17,"label",14),P(18,"Description"),H(),G(19,"textarea",15),K("ngModelChange",function(c){return b.sloUnderEdit.setDescription(c)}),P(20,"        "),
H()(),G(21,"div",11)(22,"slo-elements-picker",16),K("onCollectionUpdate",function(c){return b.updateCollection(c)})("onValidation",function(c){return b.elementPickerIsValid=c}),H()(),G(23,"p",17),P(24," Access controls may be defined once the slo is created. "),H(),G(25,"div",18)(26,"b-button",19),K("onAction",function(){return b.save()}),P(27," Save "),H(),G(28,"b-button",20),K("onAction",function(){return b.revertChanges()}),P(29," Revert changes "),H()()()()());a&2&&(B(9),sf("show-errors",b.error),
B(2),D("error",b.error),B(1),sf("bv2-edit-resource-readonly",b.isSaving),B(3),D("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.getName())("disabled",b.isSaving),B(1),sf("bv2-edit-resource-readonly",b.isSaving),B(3),D("ngModel",b.sloUnderEdit.getDescription())("disabled",b.isSaving),B(3),D("isDisabled",!1)("collection",Ts(b.sloUnderEdit)),B(4),D("disabled",b.isSaving||(null==b.createSloForm?null:b.createSloForm.pending)||(null==b.createSloForm?null:b.createSloForm.invalid)||!b.elementPickerIsValid),
B(2),D("disabled",!Mkc(b)))},dependencies:[yO,kZ,l_,iy,Fg,by,cy,sy,hy,fy,uH,I_],encapsulation:2});
var h6=function(){this.nextPanelId_=1};h6.\u0275fac=function(a){return new (a||h6)};h6.\u0275prov=ec({token:h6,factory:h6.\u0275fac,providedIn:"root"});
var i6=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha){BI.call(this);this.cdr=a;this.paths=b;this.bLocation=c;this.$log=d;this.analytics=e;this.issueApi=f;this.userApi=h;this.bookmarkGroupsApi=k;this.hotlistApi=q;this.butterBar=w;this.pageTitle=y;this.dashboards=E;this.routeParams=I;this.currentSearch=L;this.userAccess=S;this.errorHandler=Y;this.statusMessages=ka;this.appEvents=ha;this.hotlistFridge=ya;this.issueFridge=Ha;this.ANALYTICS_CATEGORY="dashboard";this.panels=[];this.hotlistChoices=
[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.userEmail=N.getUserEmail();this.groupId=I.groupId||null};U(i6,BI);i6.\u0275dir=BI.\u0275dir;
i6.prototype.ngOnInit=function(){var a=this;this.userApi.getFavorite("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){Nkc(a,b);a.bookmarkGroup=b;a.cdr.detectChanges()}).catch(function(b){a.$log.warn("error loading bookmark group: ",b)});this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.dashboardPanels.moveDown.subscribe(function(b){Okc(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){Okc(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){Okc(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){Okc(a,b,function(){return a.panels.length-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.remove.subscribe(function(b){a.removePanel(b)}));
this.currentSearch.clear()};var j1a=function(a,b){var c=b.selectedIssues;if(a=Pkc(a,b.panelId))a.selectedIssues=null!=c?c:[]},i1a=function(a,b,c){b.focusedRowIndex=c;if(null!=c)for(a=r(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},Pkc=function(a,b){return a.panels.find(function(c){return c.panelId===b})},Qkc=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return-1!==a?a:void 0};g=i6.prototype;
g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Ei(d,c)||(d&&wa(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;bo(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");PK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);PK(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback;a=a.errorCallback;PK(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.loadHotlists=function(a){var b=this,c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;ua(d.hotlists);for(var e=r(d.hotlistId||[]),f=e.next();!f.done;f=e.next())f=f.value,this.hotlistMap[f]?d.hotlists.push(this.hotlistMap[f]):c.get(f)?c.get(f).push(d):c.set(f,[d])}a={};c=r(c);for(d=c.next();!d.done;a={$jscomp$loop$prop$issueRows$1700:a.$jscomp$loop$prop$issueRows$1700},d=c.next())e=r(d.value),d=e.next().value,e=e.next().value,a.$jscomp$loop$prop$issueRows$1700=e,this.hotlistApi.get(d).then(function(h){return function(k){b.hotlistFridge.announce(k);
for(var q=r(h.$jscomp$loop$prop$issueRows$1700),w=q.next();!w.done;w=q.next())w.value.hotlists.push(k);b.addHotlist(k);b.cdr.detectChanges()}}(a)).catch(function(h){403!==h.status&&b.errorHandler.errorHandler(null,h)})};
g.sendBulkEditRequest=function(a){var b=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){for(var c=!!a[0].actions[0].value,d=r(this.panels),e=d.next();!e.done;e=d.next()){e=r(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=c}this.cdr.detectChanges();PK(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(c?"read":"unread")+"...",0);return AL(this.issueFridge,a[0].issueIds,c).then(function(k){PK(b.butterBar,"Issues marked "+
(c?"read":"unread")+".");for(var q=r(b.panels),w=q.next();!w.done;w=q.next()){w=r(w.value.selectedIssues);for(var y=w.next();!y.done;y=w.next()){var E=void 0;y.value.lastViewedTime=null!=(E=k)?E:null}}}).catch(function(k){for(var q=r(b.panels),w=q.next();!w.done;w=q.next()){w=r(w.value.selectedIssues);for(var y=w.next();!y.done;y=w.next())y=y.value,y.isRead=!!y.lastViewedTime&&y.lastViewedTime>=y.majorModifiedTime}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=
RPb(a).map(function(k){return k.fieldName});bo(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};PK(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h).then(function(k){for(var q=r([].concat(u(b.searchPanels),u(b.hotlistPanels))),w=q.next();!w.done;w=q.next()){w=w.value;var y=k;if(w.searchResults){w.searchResults=w.searchResults.clone();for(var E=0,I=r(w.searchResults.issues),N=I.next();!N.done;N=I.next()){N=N.value;if(y.affectedIssues[N.issueId]){var L=
y.affectedIssues[N.issueId];L=vKb(L,y.componentMap[Number(pa(L.snapshot).componentId)]);L.selected=N.selected;w.searchResults.issues[E]=L;w.resultsLoaded.emit([w.searchResults.issues[E]])}E++}}}k.errors&&k.errors.length?(q=Ni(k.errors,"issueId"),QK(b.butterBar,"Failed to update issue(s) "+q.join(", ")+"."),bo(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=VPb(b.statusMessages,h))?PK(b.butterBar,k):PK(b.butterBar,"Saved "+SPb(a).length+" issue(s).")}).catch(function(k){b.errorHandler.errorHandler(null,
k)})};g.loadBookmarkGroup=function(){var a=this;return this.bookmarkGroupsApi.get(this.groupId).then(function(b){DK(a.userAccess,"admin","bookmarkGroups/"+b.bookmarkGroupId).then(function(c){a.isAdmin=c;a.cdr.detectChanges()});a.pageTitle.setTitle(b.name);return b},function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)})};var Nkc=function(a,b){a.panels=(b.item||[]).map(function(c,d){return Rkc(a,c,0===d?0:void 0)})};
i6.prototype.removePanel=function(a){var b=this,c=Pkc(this,a);if(null!=c){PK(this.butterBar,"Saving changes...",0);a=Fi(this.bookmarkGroup);var d;a.item=(null!=(d=a.item)?d:[]).filter(function(e){return!Skc(b,c,e)});Tkc(this,a)}};
var Okc=function(a,b,c){b=Qkc(a,b);if(void 0!==b){var d=a.panels[b];c=c(b);if(c>=a.panels.length||0>c)a.$log.warn("Trying to move panel "+d.panelId+" to "+c);else{b=Fi(a.bookmarkGroup);var e,f,h=null==(e=a.bookmarkGroup)?void 0:null==(f=e.item)?void 0:f.findIndex(function(k){return Skc(a,d,k)});void 0!==h&&(qaa(b.item,h,c),Tkc(a,b))}}},Tkc=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;Ukc(a,a.bookmarkGroup.item);PK(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},Skc=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId==b.resourceId;case "SAVED_SEARCH":return c.savedSearchId==b.resourceId;default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},Vkc=function(a,b){return a.panels.find(function(c){return Skc(a,c,b)})},Rkc=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";e=b.hotlistId;break;case "SAVED_SEARCH":d="SAVED_SEARCH";e=
b.savedSearchId;break;default:a.$log.warn("Unsupported item: "+b)}a=a.dashboards;b=a.nextPanelId_;a.nextPanelId_++;return{panelId:b,resourceId:e,type:d,focusedRowIndex:null!=c?c:null,selectedIssues:[]}},Ukc=function(a,b){a.panels=(null!=b?b:[]).map(function(c){var d;return null!=(d=Vkc(a,c))?d:Rkc(a,c)})};
i6.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.saveFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId,userLogin:this.userEmail}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)}):this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)})};
i6.prototype.editBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};i6.\u0275fac=function(a){return new (a||i6)(F(uI),F(dL),F(cL),F(RK),F(SM),F(wK),F(PJ),F(ZM),F(pL),F(OK),F(hO),F(h6),F(bS),F(pH),F(QN),F(CK),F(SK),F(OR),F(WK),F(sL),F(yL))};
i6.\u0275cmp=v({type:i6,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(Zf(g_,5),Zf(WZ,5));if(a&2){var c;Yf(c=ag())&&(b.searchPanels=c);Yf(c=ag())&&(b.hotlistPanels=c)}},features:[Lf([uI]),gf],decls:9,vars:5,consts:[[1,"a11y-only"],[1,"kd-dashboard-bar","kd-appbar","kd-buttonbar"],[1,"bv2-dashboard-header"],[3,"hotlistChoices","panels","onSave","onCreateHotlist","onLoadHotlist"],["role","main","tabindex","0",1,"bv2-view",3,"bFocus"],[4,"ngIf"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"bv2-dashboard-title"],
[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-dashboard-title-text"],["aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"ngSwitch"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first",
"last","focusedRowIndexChange","selectionChange","resultsLoaded",4,"ngSwitchCase"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded",4,"ngSwitchCase"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded"]],
template:function(a,b){a&1&&(G(0,"h2",0),P(1,"Dashboard"),H(),G(2,"div",1)(3,"div",2),P(4,"Bookmark groups dashboard"),H(),G(5,"b-dashboard-controls",3),K("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),H()(),G(6,"div",4),O(7,h1a,8,3,"div",5),O(8,m1a,3,3,"div",6),H());a&2&&(B(5),D("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(1),D("bFocus",!0),B(1),D("ngIf",
b.bookmarkGroup),B(1),D("ngForOf",b.panels))},dependencies:[ZX,kN,g_,WZ,wx,sx,yx,zx,l_,$E],encapsulation:2});var j6=function(){};j6.\u0275fac=function(a){return new (a||j6)};j6.\u0275mod=rc({type:j6});j6.\u0275inj=fc({imports:[[$X,WN,h_,XZ,Mx,m_,bH]]});
var Wkc=["editBookmarkGroupItemsContainer"],Xkc=["bookmarkGroupName"],Js=function(a){return{"bv2-edit-resource-readonly":a}},N1a=function(a){return{displayText:"Admins",values:a}},M1a=function(a){return[a]},k6=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya){BI.call(this);var Ha=this;this.routeParams=a;this.location=b;this.butterBar=c;this.accessPolicyApi=d;this.userApi=e;this.bookmarkGroupsApi=f;this.hotlistApi=h;this.paths=k;this.appHistory=q;this.pageTitle=w;this.accessPolicyConverter=y;this.userAccess=
E;this.errorHandler=N;this.appEvents=S;this.snackBar=Y;this.confirmationDialog=ka;this.cdr=ha;this.documentationLinks=ya;this.selectedTabIndex=0;this.isAdmin=this.isArchiving=this.isUpdating=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.error="";this.selectedHotlistIds=[[]];this.userHotlists=[];this.userSavedSearches=null;this.savedSearchChoices=[];this.currentUserEmail=L.getUserEmail();this.accessPolicyUnderEdit=LT();this.flattenedAccessPolicy=LT();a=this.loadBookmarkGroup(this.routeParams.groupId);
b=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);Ykc(this);Zkc(this);Promise.all([a,b]).then(function(){var Ja;null==(Ja=Ha.bookmarkGroupNameInput)||Ja.nativeElement.focus()});this.subscriptions.add(cZ(I,function(){return Ha.hasUnsavedChanges()},!1));I=function(){Ykc(Ha)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(I));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(I));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){Zkc(Ha)}))};
U(k6,BI);k6.\u0275dir=BI.\u0275dir;g=k6.prototype;g.ngOnInit=function(){"access"===this.location.hash()&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};g.back=function(){X_(this.appHistory)};g.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};g.isSaving=function(){return this.isUpdating||this.isArchiving};
g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!Ei(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};g.hasUnsavedAccessPolicyChanges=function(){return!Ei(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};
g.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=Fi(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[$kc(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];l6(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};
g.saveMetadata=function(){this.validate()&&(Ll(this.bookmarkGroupUnderEdit.ownerUser)!==Ll(this.bookmarkGroup.ownerUser)?this.openConfirmationDialog("Change bookmark group owner",Nn("Are you sure you want to transfer ownership of this bookmark\n              group to "+Ll(this.bookmarkGroupUnderEdit.ownerUser)+"?\n              You will no longer have permissions to edit it."),this.doSaveMetadata):this.doSaveMetadata())};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("2:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change bookmark group admins",Nn("Are you sure you want to remove yourself from the admins?\n                  You may lose the permission to edit the access settings"),function(){a.doSaveAccessPolicy()})};
g.validate=function(){if(""===this.bookmarkGroupUnderEdit.name)return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.archive=function(){var a=this;this.openConfirmationDialog("Archive bookmark group",Nn("Do you want to archive this bookmark group?"),function(){alc(a,"archive")})};g.unarchive=function(){var a=this;this.openConfirmationDialog("Unarchive bookmark group",Nn("Do you want to unarchive this bookmark group?"),function(){alc(a,"unarchive")})};
g.doSaveMetadata=function(){var a=this,b=this.bookmarkGroupUnderEdit,c=this.bookmarkGroup.bookmarkGroupId;this.snackBar.open("Saving bookmark group ID "+c,"dismiss",{duration:0});this.isUpdating=!0;this.bookmarkGroupsApi.update(b).then(function(d){a.snackBar.open("Bookmark group ID "+c+" was saved as "+a.bookmarkGroupUnderEdit.name,"dismiss",{duration:2E3});blc(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=NT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);QK(this.butterBar,b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("BOOKMARK_GROUP",this.bookmarkGroup.bookmarkGroupId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=MT(c);a.accessPolicyUnderEdit=Fi(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var alc=function(a,b){var c=Fi(a.bookmarkGroup);"archive"===b?(a.snackBar.open('Archiving bookmark group "'+a.bookmarkGroup.name+' ..."',"dismiss",{duration:0}),c.archived=!0):(a.snackBar.open('Unarchiving bookmark group "'+a.bookmarkGroup.name+' ..."',"dismiss",{duration:0}),c.archived=!1);a.isArchiving=!0;a.bookmarkGroupsApi.update(c).then(function(d){"archive"===b?a.snackBar.open('Archived bookmark group "'+a.bookmarkGroup.name+'"."',"dismiss",{duration:2E3}):a.snackBar.open('Unarchived bookmark group "'+
a.bookmarkGroup.name+'"."',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});blc(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
k6.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){blc(b,c);b.selectedHotlistIds=[$kc(b.bookmarkGroup.item)];l6(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var blc=function(a,b){a.bookmarkGroup=b;a.bookmarkGroup.item||(a.bookmarkGroup.item=[]);a.bookmarkGroupUnderEdit=Fi(a.bookmarkGroup)};
k6.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=MT(c);b.accessPolicyUnderEdit=Fi(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};k6.prototype.loadUserAccess=function(a){var b=this;return DK(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var Ykc=function(a){a.userApi.getUserHotlists().then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},Zkc=function(a){a.userSavedSearches=null;a.userApi.getUserSavedSearches().then(function(b){a.userSavedSearches=b;l6(a);a.cdr.detectChanges()})},l6=function(a){if(a.userSavedSearches&&null!=a.bookmarkGroupUnderEdit){var b=clc(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return-1==b.indexOf(c.searchId)})}},
q1a=function(a,b){var c=Number(b);za(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});dlc(a,c);var d;null==(d=a.editBookmarkGroupItemsContainer)||d.nativeElement.focus()},s1a=function(a,b){za(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});l6(a);var c;null==(c=a.editBookmarkGroupItemsContainer)||c.nativeElement.focus()},F1a=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return a.paths.viewHotlist(b.hotlistId);
default:bh(b.resourceType)}},A1a=function(a,b){for(var c={},d=r(Object.entries(b.newSelectionMap)),e=d.next();!e.done;c={$jscomp$loop$prop$id$1703:c.$jscomp$loop$prop$id$1703},e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c.$jscomp$loop$prop$id$1703=Ki(e);f&&!b.oldSelectionMap[c.$jscomp$loop$prop$id$1703]?(D1a(a,c.$jscomp$loop$prop$id$1703),e=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1703}}(c)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[c.$jscomp$loop$prop$id$1703]&&!f&&(dlc(a,c.$jscomp$loop$prop$id$1703),za(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1703}}(c)))}},D1a=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},dlc=function(a,b){wa(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},w1a=function(a,b){-1===clc(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)&&
a.bookmarkGroupUnderEdit.item.push({name:b.name,resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){l6(a)})},clc=function(a){return a?Ni(a,"savedSearchId"):[]},$kc=function(a){return a?Ni(a,"hotlistId"):[]},B1a=function(a,b){var c=b.name;a.snackBar.open("Creating hotlist "+c+"...","dismiss",{duration:0});a.hotlistApi.createHotlist(c).then(function(d){a.snackBar.open("Hotlist "+c+" created successfully.");a.userHotlists.push(d);b.successCallback(d);a.appEvents.hotlistChanged.next()}).catch(b.errorCallback)},
C1a=function(a,b){var c=b.hotlistId;a.snackBar.open("Loading hotlist "+c);return a.hotlistApi.get(c).then(function(d){a.userHotlists.push(d);b.successCallback(d);return d},b.errorCallback)};k6.prototype.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:bh(a.resourceType)}};
k6.prototype.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};k6.\u0275fac=function(a){return new (a||k6)(F(bS),F(cL),F(OK),F(iO),F(PJ),F(ZM),F(pL),F(dL),F(W_),F(hO),F(KT),F(CK),F(dZ),F(SK),F(pH),F(WK),F(LK),F(aN),F(uI,2),F(tP))};
k6.\u0275cmp=v({type:k6,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(Zf(Wkc,5),Zf(Xkc,5),Zf(cX,5,nd));if(a&2){var c;Yf(c=ag())&&(b.editBookmarkGroupItemsContainer=c.first);Yf(c=ag())&&(b.bookmarkGroupNameInput=c.first);Yf(c=ag())&&(b.tabs=c)}},features:[Lf([uI]),gf],decls:9,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["mat-button",
"","color","primary",3,"disabled","click",4,"ngIf"],[1,"bv2-view"],[4,"ngIf"],["mat-button","","color","primary",3,"disabled","click"],[1,"edit-resource-header"],["class","resource-archived",4,"ngIf"],[1,"edit-resource-header-link","normal-link",3,"href"],["mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","bookmark-group-name",1,"required"],[1,"edit-field-header"],["type",
"text","id","bookmark-group-name","required","","aria-required","true",3,"ngModel","disabled","ngModelChange"],["bookmarkGroupName",""],["for","bookmark-group-description"],["id","bookmark-group-description",3,"ngModel","disabled","ngModelChange"],[4,"ngIf","ngIfElse"],["bookmarkItems",""],["class","edit-button-row",4,"ngIf"],["id","access","label","Access Control"],[1,"edit-field-note"],[3,"users","usersChange","isValid"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange",
"isValid"],[1,"edit-field"],["target","_blank",3,"href"],[1,"resource-archived"],["for","edit-bookmark-group-items-container"],["role","region","aria-label","Selected items","id","edit-bookmark-group-items-container",1,"keep-focus-ring","edit-bookmark-group-items-container"],["editBookmarkGroupItemsContainer",""],["class","bv2-bookmark-item-chip",4,"ngFor","ngForOf"],[1,"edit-bookmark-group-edit-items-pane"],[1,"edit-bookmark-group-hotlist-picker"],["for","hotlist-picker-button"],[3,"selectedHotlistIds",
"choices","checkEditAcl","onApply","onCreate","onLoad"],[1,"edit-bookmark-group-hotlist-search"],["for","hotlist-search-input-box"],[3,"showGroups","allowStarring","itemSelect"],["class","edit-bookmark-group-saved-search-picker",4,"ngIf"],[1,"bv2-bookmark-item-chip"],["class","bv2-saved-search-chip b-chip yellow split",4,"ngIf"],["class","edit-bookmark-group-none-select",4,"ngIf"],[3,"id","removeHotlist"],[1,"bv2-saved-search-chip","b-chip","yellow","split"],[1,"left","interactive",3,"href","matTooltip"],
["role","button","tabindex","0",1,"right","interactive",3,"matTooltip","click","keydown.enter","keydown.space"],[1,"edit-bookmark-group-none-select"],[1,"edit-bookmark-group-saved-search-picker"],["for","add-from-saved-searches-button"],["id","add-from-saved-searches-button","mat-button","","aria-describedby","select-from-saved-searches-button",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["id","select-from-saved-searches-button"],["svgIcon","arrow-dropdown","color","primary"],["savedSearchMenu",
"matMenu"],["matMenuContent",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"edit-field","bv2-edit-resource-readonly"],[1,"edit-bookmark-group-view-items"],[4,"ngFor","ngForOf"],[3,"href"],[1,"edit-button-row"],["mat-flat-button","","color","primary",3,"disabled","click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),K("click",function(){return b.back()}),J(4,"mat-icon",
4),H(),O(5,n1a,2,1,"button",5),O(6,o1a,2,1,"button",5),H()()(),G(7,"div",6),O(8,O1a,48,40,"ng-container",7),H());a&2&&(B(5),D("ngIf",b.isAdmin&&!b.isArchived()),B(1),D("ngIf",b.isAdmin&&b.isArchived()),B(2),D("ngIf",!b.isLoading&&b.bookmarkGroup.bookmarkGroupId))},dependencies:[vx,wx,sx,$E,pB,eX,cX,kZ,lY,wX,zN,LE,Fg,by,sy,hy,QE,OE,TE,NE,YY],styles:[".edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-items-container[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);min-height:20px;padding:4px 6px;width:600px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-items-container[_ngcontent-%COMP%]   span.edit-bookmark-group-none-select[_ngcontent-%COMP%]{line-height:20px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);margin-top:-10px;width:600px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-picker[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-search[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-saved-search-picker[_ngcontent-%COMP%]{padding:10px;display:block}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);min-height:20px;padding:4px 6px 4px 8px;width:586px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:0}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:2px}.edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%], .edit-bookmark-group-items-container[_ngcontent-%COMP%]{box-sizing:border-box}.edit-button-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:8px}\n/*# sourceMappingURL=edit_bookmark_group.css.map */"]});
var elc=new jd("DevopsGraphLogger",{providedIn:"root",factory:function(){return Qk}}),flc=new jd("DEV_GRAPH",{providedIn:"root",factory:function(){var a;return me(function(b){switch(b.nextAddress){case 1:return Lt(b,2),ne(b,hAb(),4);case 4:a=b.yieldResult;Mt(b,3);break;case 2:return Nt(b),b.return();case 3:return Lt(b,5),ne(b,a.loadGraph(),7);case 7:Mt(b,6);break;case 5:return Nt(b),b.return();case 6:return b.return(google.corp.devops.tools.graph)}})}});
var glc=function(a){return["PROD","NIGHTLY"].includes(a)?"production":"autopush"},m6=function(a,b,c,d){var e=this;this.session=a;this.theme=b;this.logger=c;this.graphBuilder=d;this.open$=new T.Subject;this.close$=new T.Subject;this.getContainer=function(){return document.getElementById("graph-sidebar-host")};this.onGraphClose=function(){var f=e.getContainer();null!=f&&(f.classList.remove("open"),e.close$.next())};this.onGraphOpen=function(){var f=e.getContainer();null!=f&&(f.classList.add("open"),
e.open$.next())};this.init()};
m6.prototype.init=function(){var a=this,b,c,d,e,f;return me(function(h){if(1==h.nextAddress)return b=a.getContainer(),!b||a.graphService&&a.graphController?h.return():ne(h,a.graphBuilder,2);c=h.yieldResult;d=glc(a.session.getEnvironmentType());if(e=c.createService({environment:d}))f=a.theme.clientDarkmodeSubject.getValue(),a.graphService=e,a.graphController=e.createController({element:b,onClose:a.onGraphClose,onOpen:a.onGraphOpen,theme:f?"dark":void 0}),a.theme.clientDarkmode$.subscribe(function(k){var q;null==
(q=a.graphController)||q.setTheme(k?"dark":"light")});oe(h)})};var hlc=function(a,b){var c;return me(function(d){switch(d.nextAddress){case 1:return Lt(d,2),ne(d,a.init(),4);case 4:return null==a.graphService?d.return(new Set):ne(d,a.graphService.getAvailableIssueContexts(b),6);case 6:return d.return(d.yieldResult);case 5:Mt(d,0);break;case 2:return c=Nt(d),a.logger(c),d.return(new Set)}})};
m6.prototype.openSidebar=function(a,b){var c=this,d;return me(function(e){switch(e.nextAddress){case 1:return ne(e,c.init(),2);case 2:if(!c.graphController)return e.return();Lt(e,3);return ne(e,c.graphController.openIssueContext(a,b),5);case 5:Mt(e,0);break;case 3:d=Nt(e),c.logger(d),oe(e)}})};
m6.prototype.close=function(){var a=this,b;return me(function(c){switch(c.nextAddress){case 1:return ne(c,a.init(),2);case 2:if(!a.graphController)return c.return();Lt(c,3);return ne(c,a.graphController.close(),5);case 5:Mt(c,0);break;case 3:b=Nt(c),a.logger(b),oe(c)}})};m6.\u0275fac=function(a){return new (a||m6)(t(pH),t(UO),t(elc),t(flc))};m6.\u0275prov=ec({token:m6,factory:m6.\u0275fac,providedIn:"root"});
var ilc={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},n6=function(a,b){this.data=a;this.paths=b;this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=ilc};n6.\u0275fac=function(a){return new (a||n6)(F(FB),F(dL))};
n6.\u0275cmp=v({type:n6,selectors:[["b-issue-archive-dialog"]],decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["href","http://go/b-issue-archive","target","_blank"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"matDialogClose"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium",3,"matDialogClose"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Archive with all descendant issues?"),H(),
G(2,"div",1),P(3),J(4,"br")(5,"br"),G(6,"a",2),P(7,"View all descendant issues"),H(),J(8,"br"),G(9,"a",3),P(10,"Learn more"),H()(),G(11,"div",4)(12,"button",5),P(13,"Cancel"),H(),G(14,"button",5),P(15," Just this one "),H(),G(16,"button",6),P(17," Archive all "),H()());a&2&&(B(3),If(" This issue has ",b.numberOfDescendants," descendant issues. Archiving only this issue may make it difficult to find them later. Do you want to archive this issue with all descendant issues? "),B(3),Ff("href",b.descendantIssuesUrl,
Kd),B(6),D("matDialogClose",b.ActionType.CANCEL),B(2),D("matDialogClose",b.ActionType.ARCHIVE_ONE),B(2),D("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[pB,IB,JB,KB,LB],encapsulation:2});var o6=function(a,b,c,d,e,f,h,k,q){this.issueApi=a;this.dialog=b;this.confirmationDialogService=c;this.issueRelationshipsFridge=d;this.issueFridge=e;this.eventsForIssueFridge=f;this.paths=h;this.butterBar=k;this.editIssueService=q};
o6.prototype.submitArchivalState=function(a,b){var c=this;return me(function(d){if(1==d.nextAddress)return b?ne(d,c.archive(a),5):ne(d,c.editIssueService.unarchive(a),0);et(c.issueFridge,a);et(c.eventsForIssueFridge,a);oe(d)})};
o6.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,w,y,E;return me(function(I){if(1==I.nextAddress)return ne(I,Promise.all([b.getDescendants(a),(0,T.firstValueFrom)(b.issueFridge.watch(a))]),2);c=I.yieldResult;d=r(c);e=d.next().value;f=d.next().value;h=e;k=f;q=h;w=q.childToParents;y=q.completeResult;E=[].concat(u(w.keys()));w.set(a,k.parentIssueIds||[]);return 0===E.length?I.return(jlc(b,a,w)):y?I.return(klc(b,a,E,w)):I.return(llc(b,a,w))})};
var klc=function(a,b,c,d){var e,f,h;return me(function(k){if(1==k.nextAddress)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},ne(k,(0,T.firstValueFrom)(a.dialog.open(n6,f)._afterClosed),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(mlc(a,[b].concat(u(c)),d));case "ARCHIVE_ONE":return k.return(jlc(a,b,d));case "CANCEL":return k.return();default:return k.return(bh(h))}})},mlc=function(a,b,c){var d=[{issueIds:b.map(Number),actions:[{fieldName:"isArchived",
value:"true"}]}];nlc(a,c);PK(a.butterBar,"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){PK(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){QK(a.butterBar,e);olc(a,c)})},jlc=function(a,b,c){nlc(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){PK(a.butterBar,"Archived successfully.")}).catch(function(d){QK(a.butterBar,d);olc(a,c)})},llc=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues\uff1f",
content:Qn(Nn("This issue has more than 1000 descendant issues. Archiving only\n                      this issue may make it difficult to find them later. Go to\n                      issue list page and archive issues there."),Pn("BR",{}),Pn("BR",{}),Pn("A",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Pn("BR",{}),Pn("A",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")),cancelButtonText:"Cancel",confirmButtonText:"Just this one",onConfirm:function(){jlc(a,
b,c).then(d)},onDismiss:d})})},nlc=function(a,b){b=r(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;d=r(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},olc=function(a,b){b=[].concat(u(b.values())).flat();b=r(b);for(var c=b.next();!c.done;c=b.next())et(a.issueRelationshipsFridge,c.value)};
o6.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,w,y,E,I,N;return me(function(L){if(1==L.nextAddress)return ne(L,(0,T.firstValueFrom)(yJb(b.issueRelationshipsFridge,a)),2);c=L.yieldResult;d=c.results;e=!0;f=new Map;h=r(d);for(k=h.next();!k.done;k=h.next()){q=k.value;w=r(q.relatedChildren);for(y=w.next();!y.done;y=w.next())E=y.value,I=void 0,N=null!=(I=f.get(E.targetIssueId))?I:[],N.push(q.issueId),f.set(E.targetIssueId,N);q.totalChildCount===q.relatedChildren.length||(e=!1)}return L.return({childToParents:f,
completeResult:e})})};o6.\u0275fac=function(a){return new (a||o6)(t(wK),t(HB),t(aN),t(eM),t(yL),t(NL),t(dL),t(OK),t(nS))};o6.\u0275prov=ec({token:o6,factory:o6.\u0275fac,providedIn:"root"});
var p6=function(a,b,c,d,e,f,h,k,q){BI.call(this);var w=this;this.issueDetailsBrain=a;this.issuePagination=b;this.issueFridge=c;this.componentFridge=d;this.issueInteractionsTracking=e;this.bLocation=f;this.paths=h;this.refreshMonitor=k;this.butterBar=q;this.internalSearchResults$=new T.BehaviorSubject(null);this.searchResults$=this.internalSearchResults$.pipe(Le(),Xe(function(y){return y?y.changed$:(0,T.of)(null)}));this.issueIds$=this.searchResults$.pipe(C(function(y){var E;return null!=(E=null==
y?void 0:y.issues.map(function(I){return I.id}).map(Rn))?E:[]}),Le(Ei));this.issues$=this.issueIds$.pipe(Xe(function(y){return(0,T.combineLatest)(y.map(function(E){return w.issueFridge.watch(E,{trustUncertainMemory:!0})}))}),Xe(function(y){return(0,T.combineLatest)(y.map(function(E){return w.componentFridge.watch(String(null==E?void 0:E.snapshot[0].componentId),{trustUncertainMemory:!0}).pipe(C(function(I){return{issue:E,component:I}}))}))}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=
this.searchResults$.pipe(C(function(y){var E;return null!=(E=null==y?void 0:y.totalText)?E:""}));this.backNavigationLabel$=this.searchResults$.pipe(C(function(y){return(null==y?0:y.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=(0,T.combineLatest)([this.searchResults$,this.issueId$]).pipe(C(function(y){var E=r(y);y=E.next().value;E=E.next().value;var I;return null!=(I=null==y?void 0:UM(y,Number(E)))?I:-1}));this.hasPreviousIssue$=(0,T.combineLatest)([this.searchResults$,
this.issueId$]).pipe(C(function(y){var E=r(y);y=E.next().value;E=E.next().value;var I;if(I=E)null==y?y=0:(E=UM(y,Number(E)),y=null==E||-1===E?!1:E>y.startIndex||1<y.params.page),I=y;return!!I}));this.hasNextIssue$=(0,T.combineLatest)([this.searchResults$,this.issueId$]).pipe(C(function(y){var E=r(y);y=E.next().value;E=E.next().value;var I;if(I=E)null==y?y=0:(E=UM(y,Number(E)),y=null==E||-1===E?!1:E<y.endIndex||y.params.page<y.numPages),I=y;return!!I}));this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){plc(w)}));
this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(y){w.issueId=y;plc(w)}));this.subscriptions.add(this.issues$.subscribe(function(y){var E=w.internalSearchResults$.value;E&&xKb(E,y.filter(function(I){var N=I.component;return I.issue&&N}))}))};U(p6,BI);p6.\u0275dir=BI.\u0275dir;
var Ns=function(a){var b,c,d=null!=(c=null==(b=a.internalSearchResults$.value)?void 0:b.params.returnUrl)?c:"";a.issueInteractionsTracking.trackNavigation(""===d?"home":"up");a.bLocation.hash("");a.bLocation.url(d)},Ps=function(a){var b=Pj(a.hasNextIssue$),c=Pj(a.issueIndex$);b&&c&&qlc(a,c+1)},Os=function(a){var b=Pj(a.hasPreviousIssue$),c=Pj(a.issueIndex$);b&&c&&qlc(a,c-1)},plc=function(a){var b,c,d,e;me(function(f){if(1==f.nextAddress)return b=function(){},ne(f,FKb(a.issuePagination).catch(b),2);
c=f.yieldResult;a.internalSearchResults$.next(null!=(d=c)?d:null);if(!c||!a.issueId)return f.return();e=UM(c,Number(a.issueId));return-1===e?f.jumpTo(0):ne(f,GKb(a.issuePagination,e).catch(b),0)})},qlc=function(a,b){GKb(a.issuePagination,b).then(function(c){a.bLocation.url(a.paths.editIssue(c))},function(){QK(a.butterBar,"Can't find issue id for index '"+b+"'")})};p6.\u0275fac=function(a){return new (a||p6)(t(mO),t(VM),t(yL),t(bK),t(hS),t(cL),t(dL),t(uL),t(OK))};
p6.\u0275prov=ec({token:p6,factory:p6.\u0275fac,providedIn:"root"});
var Ks=function(a){Z.call(this,a,-1,rlc)};U(Ks,Z);Ks.prototype.getFilename=function(){return V(this,1)};Ks.prototype.setFilename=function(a){l(this,1,a)};var rlc=[2];Ks.prototype.toObject=function(){return slc(void 0,this)};var slc=function(a,b){if(null!=b){var c={filename:n(p(b,1)),lineNumberList:n(jb(b,2)),changeNumber:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Ls=function(a){Z.call(this,a,-1,tlc)};U(Ls,Z);var tlc=[2];Ls.prototype.toObject=function(){return ulc(void 0,this)};var ulc=function(a,b){if(null!=b){var c={packageName:n(p(b,1)),fileMentionSetList:Bb(rb(b,Ks,2),slc,a)};a&&(c.$jspbMessageInstance=b);return c}};
var wlc=function(a){Z.call(this,a,-1,vlc)};U(wlc,Z);var vlc=[3];wlc.prototype.toObject=function(){var a=null!=this?{totalMentions:n(p(this,1)),truncated:n(Ro(this,2)),packageMentionSetList:Bb(rb(this,Ls,3),ulc)}:void 0;return a};wlc.messageId="b.MentionSearchResult";
var q6=function(a){this.executor=a};q6.\u0275fac=function(a){return new (a||q6)(t(qI))};q6.\u0275prov=ec({token:q6,factory:q6.\u0275fac,providedIn:"root"});
var r6=function(a,b,c){this.mentionsApi=a;this.refreshMonitor=b;this.analytics=c},xlc=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=NIb(a.refreshMonitor,(0,T.defer)(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:wlc}).then(S1a).then(function(d){return{mentions:d,loadingState:"OK",link:c}}).catch(function(){return{loadingState:"ERROR",link:c}})}).pipe(We({loadingState:"LOADING",link:c}))).pipe(Ue({refCount:!0,
bufferSize:1})));return a.cachedEntry};r6.prototype.mentionsLoadingStateTooltipText=function(a){switch(a.loadingState){case "LOADING":return"Loading...";case "OK":var b;return"This issue is referenced by "+(null==(b=a.mentions)?void 0:b.totalMentions)+" TODO(s) from Squeegee";default:return"Could not be read at this time."}};
r6.prototype.displayPackageNames=function(a){var b;a=null==(b=a.mentions)?void 0:b.packageMentionSet;var c;return 1<(null==a?void 0:a.length)||"piper"!==(null==a?void 0:null==(c=a[0])?void 0:c.packageName)};r6.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};r6.prototype.trackSqueegeeClick=function(){bo(this.analytics,"codeMentions","clickSqueegeeLink")};r6.\u0275fac=function(a){return new (a||r6)(t(q6),t(uL),t(SM))};r6.\u0275prov=ec({token:r6,factory:r6.\u0275fac,providedIn:"root"});
var s6=function(){};s6.prototype.watch=function(a,b){b=void 0===b?document.documentElement:b;return(0,T.concat)((0,T.defer)(function(){return(0,T.of)(document.getElementById(a))}),MKa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(C(function(){return document.getElementById(a)}))).pipe(De($k),Me())};s6.\u0275fac=function(a){return new (a||s6)};s6.\u0275prov=ec({token:s6,factory:s6.\u0275fac,providedIn:"root"});
var t6=function(a){this.idWatch=a},ylc=function(a,b){var c=b.scrollableContainerId,d=void 0===b.scrollPadding?0:b.scrollPadding;return a.idWatch.watch(b.elementId,b.parentElement).pipe(Me(),C(function(e){e.scrollIntoView();if(e=document.getElementById(c))e.scrollTop-=d}))};t6.\u0275fac=function(a){return new (a||t6)(t(s6))};t6.\u0275prov=ec({token:t6,factory:t6.\u0275fac,providedIn:"root"});
var u6=function(a,b,c,d){this.dynamicScrollIntoView=a;this.paths=b;this.routeParams=c;this.baseIssueReferenceResolver=d;this.destroyed$=new T.ReplaySubject(1);var e;this.issueId=Number(null!=(e=this.routeParams.issueId)?e:"0")};
u6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(ylc(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Ye(this.destroyed$)).subscribe(),history&&history.pushState(null,"",this.paths.editIssue(this.issueId)+"#"+a.elementId))};u6.prototype.ngOnDestroy=function(){this.destroyed$.next()};
u6.\u0275fac=function(a){return new (a||u6)(t(t6),t(dL),t(bS),t(G5))};u6.\u0275prov=ec({token:u6,factory:u6.\u0275fac});
var v6=function(a,b,c,d,e,f,h,k){BI.call(this);var q=this;this.activeSession=a;this.analytics=b;this.butterBar=c;this.userApi=d;this.hotlistApi=e;this.errorHandler=f;this.appEvents=h;this.hotlistFridge=k;this.hotlistMap={};this.hotlists=[];this.selectedHotlistIds=[[]];this.selectableHotlistsChanged$=new T.ReplaySubject(1);this.subscriptions.add(MIb(this.hotlistFridge).subscribe(function(w){w=r(w);for(var y=w.next();!y.done;y=w.next())q.addHotlist(zlc(y.value));q.selectableHotlistsChanged$.next()}))};
U(v6,BI);v6.prototype.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&wa(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a);Alc(this,a)};var Alc=function(a,b){null!=a.issue&&null!=a.issue.hotlistId&&(b.selected=(a.issue.hotlistId||[]).includes(b.hotlistId))},Blc=function(a){a.selectedHotlistIds=[[].concat(u(a.issue.hotlistId||[]))];for(var b=r(a.hotlists),c=b.next();!c.done;c=b.next())Alc(a,c.value)};
v6.prototype.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback,e=a.errorCallback;bo(this.analytics,"baseIssue","createHotlist");PK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(f){f=zlc(f);PK(b.butterBar,"Hotlist "+c+" created successfully");b.addHotlist(f);b.appEvents.hotlistCreated.next();d(f);b.selectableHotlistsChanged$.next()}).catch(function(){e();b.selectableHotlistsChanged$.next()})};
v6.prototype.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback,e=a.errorCallback;if(this.hotlistMap[c])return Alc(this,this.hotlistMap[c]),Promise.resolve(this.hotlistMap[c]);this.hotlistMap[c]={hotlistId:c};return this.hotlistApi.get(c).then(function(f){f=zlc(f);b.addHotlist(f);d(f);b.selectableHotlistsChanged$.next();return f},function(){var f=b.hotlistMap[c];fh(b.hotlistMap,c);wa(b.hotlists,f);e();b.selectableHotlistsChanged$.next()})};
v6.\u0275fac=function(a){return new (a||v6)(F(pH),F(SM),F(OK),F(PJ),F(pL),F(SK),F(WK),F(sL))};v6.\u0275dir=v({type:v6,features:[gf]});var zlc=function(a){a=Fi(a);a.selected=!1;return a};
var ihb=function(a,b){var c=b.permissions,d=b.retentionState,e=b.isComponentAdmin;if(b.isInternal){if("INDEFINITE"===b.retentionOverride)return{type:"action",label:"Revert to component retention...",title:e?"Revert to component retention...":"You must be a component administrator to perform this action.",disabled:!c.admin,action:function(){a.showComponentRetentionDialog()}};if(!d||d.scheduledDeletionTime)return{type:"action",label:"Retain issue indefinitely...",title:e?"Retain issue indefinitely...":
"You must be a component administrator to perform this action.",disabled:!c.admin,action:function(){a.showIndefiniteRetentionDialog()}}}},hhb=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},jhb=function(a,b){var c=!b.isArchived,d=c?"Archive issue":"Unarchive issue";return{type:"action",label:d,title:d+' (requires "issue writer" access)',icon:"archive_24px",disabled:!b.permissions.writer,
action:function(){a.submitArchivalState(c)}}},Clc=function(a,b){if(b.isInternal&&!b.isDeleted&&"EXTERNAL_PUBLIC"===b.accessLevel)return{type:"action",label:"Mark as spam...",title:'Mark as spam... (requires "issue admin" access)',icon:"flag",disabled:!b.permissions.admin,action:function(){a.showFlagAsSpamDialog()}}};
var Dlc=function(a){Z.call(this,a)};U(Dlc,Z);Dlc.prototype.toObject=function(){var a=null!=this?{warningHeader:n(p(this,1)),warning:n(p(this,2)),isAllowed:n(Ro(this,3)),isExternalMove:n(Ro(this,4))}:void 0;return a};Dlc.messageId="b.CompareComponentAccessResponse";
var w6=function(a){this.executor=a};w6.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:Dlc}).then(Bra)};w6.\u0275fac=function(a){return new (a||w6)(t(qI))};w6.\u0275prov=ec({token:w6,factory:w6.\u0275fac,providedIn:"root"});
var x6=function(a,b,c,d,e,f){this.issueInteractionsTracking=a;this.issueFridge=b;this.butterBar=c;this.compareComponentAccess=d;this.matDialogService=e;this.editIssueService=f},M5a=function(a,b,c){var d,e,f,h,k;return me(function(q){switch(q.nextAddress){case 1:return b=String(b),iS(a.issueInteractionsTracking,b,{label:"changeComponent"}),c?ne(q,(0,T.firstValueFrom)(a.issueFridge.watch(b)),2):q.return();case 2:d=q.yieldResult;if(!d)return QK(a.butterBar,"Could not load issue "+b),q.return();e=d.snapshot[0].componentId;
f=c.componentId;return e===f?q.return():ne(q,a.compareComponentAccess.check(String(e),String(f),b),3);case 3:h=q.yieldResult;if(!h.warning){q.jumpTo(4);break}return ne(q,Elc(a,h),5);case 5:if(k=q.yieldResult,!k)return q.return();case 4:return q.return(a.editIssueService.updateComponent(b,f,h.isExternalMove))}})},Elc=function(a,b){return new Promise(function(c){a.matDialogService.open(vT,{width:"580px",data:{response:b,callbacks:{allow:function(){c(!0)},cancel:function(){c(!1)}}}})._afterClosed.subscribe(function(){c(!1)})})};
x6.\u0275fac=function(a){return new (a||x6)(t(hS),t(yL),t(OK),t(w6),t(HB),t(nS))};x6.\u0275prov=ec({token:x6,factory:x6.\u0275fac,providedIn:"root"});
var y6=function(a,b,c,d,e,f,h){this.errorHandler=a;this.eventsForIssueFridge=b;this.issueFetchResponseFridge=c;this.issueCommentsService=d;this.issueInteractionsTracking=e;this.butterBar=f;this.editIssueService=h},Flc=function(a,b){var c=b.issueId,d=b.newCommentId,e=b.newComment,f=b.newCommentFormattingMode,h,k;me(function(q){switch(q.nextAddress){case 1:h=a.editIssueService.savingState(c);if(!e.trim())return QK(a.butterBar,"New comment cannot be empty."),q.return();kS(h,"commentEdit");PK(a.butterBar,
"Saving comment edit...",0);iS(a.issueInteractionsTracking,c,{label:1===d?"description":"comment"});Lt(q,2,3);return ne(q,a.issueCommentsService.update(c,d,e,f),5);case 5:PK(a.butterBar,"Comment edit successful.",4E3),1===d?DL(a.issueFetchResponseFridge,c):aK(a.eventsForIssueFridge,c,function(w){w.events=Eta(w.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:bl(f,$m)})}),et(a.eventsForIssueFridge,c);case 3:Ot(q);lS(h,"commentEdit");Pt(q,0);break;case 2:k=Nt(q),UK(a.errorHandler,
k),q.jumpTo(3)}})};y6.\u0275fac=function(a){return new (a||y6)(t(SK),t(NL),t(BL),t(rO),t(hS),t(OK),t(nS))};y6.\u0275prov=ec({token:y6,factory:y6.\u0275fac,providedIn:"root"});
var Glc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};
var z6=function(a){this.matDialog=a};z6.prototype.show=function(a,b,c){a={width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:a,audience:b,id:null!=c.unlinkifiedComment?c.commentNumber:1,text:c.unlinkifiedComment||"",formattingMode:Osa(c.formattingMode)}};this.dialog=this.matDialog.open(A6,a);return(0,T.firstValueFrom)(this.dialog._afterClosed)};z6.\u0275fac=function(a){return new (a||z6)(t(HB))};z6.\u0275prov=ec({token:z6,factory:z6.\u0275fac,providedIn:"root"});
var A6=function(a,b,c,d,e){BI.call(this);var f=this;this.activeSession=a;this.origComment=b;this.dialogService=c;this.dialogRef=d;this.MARKDOWN=2;this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.newComment=Object.assign({},this.origComment);this.subscriptions.add(cZ(e,function(){return!Ei(f.newComment,f.origComment)},!1))};U(A6,BI);A6.\u0275dir=BI.\u0275dir;
A6.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Ye(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&Hlc(a)});this.dialogRef.backdropClick().pipe(Ye(this.destroyed$)).subscribe(function(){Hlc(a)})};var Hlc=function(a){if(Ei(a.newComment,a.origComment)){var b;null==(b=a.dialogService.dialog)||b.close()}};A6.\u0275fac=function(a){return new (a||A6)(F(pH),F(FB),F(z6),F(AB),F(dZ))};
A6.\u0275cmp=v({type:A6,selectors:[["ng-component"]],features:[gf],decls:17,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"content","issueId","audience","contentChange","onSubmit"],[1,"inline-block",3,"initialValue","change"],[3,"comment","issueId","audience","formattingMode",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button",3,"mat-dialog-close",
"disabled"],[3,"comment","issueId","audience","formattingMode"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1),H(),G(2,"section",1)(3,"p",2),P(4," Editing comments will not permanently remove old ones from database history. "),J(5,"br"),P(6," For deletion of PII or other sensitive content, please "),G(7,"a",3),P(8," file a support request."),H()(),G(9,"b-comment-draft",4),K("contentChange",function(c){return b.newComment.text=c})("onSubmit",function(){if(!Ei(b.newComment,b.origComment)){var c;null==
(c=b.dialogService.dialog)||c.close(b.newComment)}}),H(),G(10,"b-markdown-toggle",5),K("change",function(c){return b.newComment.formattingMode=c}),H(),O(11,T1a,1,4,"b-live-preview",6),H(),G(12,"footer",7)(13,"button",8),P(14," Cancel "),H(),G(15,"button",9),P(16," Save "),H()());a&2&&(B(1),Kf("Editing Comment #",b.origComment.id," of Issue ",b.origComment.issueId,""),B(6),D("href",b.contentRemovalRequestLink,Kd),B(2),D("content",b.newComment.text)("issueId",b.origComment.issueId)("audience",b.origComment.audience),
B(1),sf("margin-bottom",(null==b.newComment?null:b.newComment.formattingMode)!==b.MARKDOWN),D("initialValue",b.origComment.formattingMode),B(1),D("ngIf",(null==b.newComment?null:b.newComment.formattingMode)===b.MARKDOWN),B(2),D("mat-dialog-close",void 0),B(2),D("mat-dialog-close",b.newComment)("disabled",!!Ei(b.newComment,b.origComment)))},dependencies:[IB,JB,KB,LB,sx,pB,TW,SW,nX],encapsulation:2,changeDetection:0});
var B6=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya){this.editIssueService=a;this.butterBar=b;this.issuePermissionService=c;this.issueCommentService=d;this.editCommentDialogService=e;this.issueFridge=f;this.matDialogService=h;this.paths=k;this.analytics=q;this.domSafe=w;this.confirmationDialogService=y;this.issueComments=E;this.errorHandler=I;this.issueFetchResponseFridge=N;this.eventsForIssueFridge=L;this.componentFridge=S;this.commentFormatter=Y;this.confirmNoAccessService=ka;this.activeSession=
ha;this.appEvents=ya;this.LEGACY_EDIT_ISSUE={showContentJudgementDialog:this.showContentJudgementDialog.bind(this)}},kt=function(a,b,c){var d,e,f,h;return me(function(k){if(1==k.nextAddress){b=String(b);d=a.editIssueService.savingState(b);if(d.get("commentEdit"))return k.return();a.butterBar.dismiss();f=null!=(e=a.issuePermissionService.audience())?e:2;return ne(k,a.editCommentDialogService.show(Number(b),f,c),2)}h=k.yieldResult;if(null==h)return k.return();Flc(a.issueCommentService,{issueId:b,newCommentId:h.id,
newComment:h.text,newCommentFormattingMode:h.formattingMode});oe(k)})},Jlc=function(a,b,c){var d,e,f;return me(function(h){if(1==h.nextAddress)return c?ne(h,Ilc(a,b),2):h.return();if(3!=h.nextAddress)return d={title:"Choose target issue",defaultChoices:h.yieldResult,allowMultipleIds:!1,currentResourceId:Number(b),currentResourceType:"issue"},ne(h,(0,T.firstValueFrom)(a.matDialogService.open(LX,{data:d})._afterClosed),3);e=h.yieldResult;if(null==(f=e)?0:f.length){var k=e[0],q=a.paths.editIssue(k.resourceId,
{template_issue:b,template_comment:c});bo(a.analytics,go.EDIT_ISSUE,"copyComment",k.relations.join(",")||"NONE");a.domSafe.openInNewTab(q)}oe(h)})},Ilc=function(a,b){var c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y;return me(function(ka){if(1==ka.nextAddress)return ne(ka,(0,T.firstValueFrom)(a.issueFridge.watch(b)),2);if(3!=ka.nextAddress){c=ka.yieldResult;if(!c)return ka.return([]);e=null!=(d=c.snapshot[0].duplicateIssueId)?d:[];h=null!=(f=c.snapshot[0].blockingIssueId)?f:[];q=null!=(k=c.snapshot[0].blockedByIssueId)?
k:[];return ne(ka,(0,T.firstValueFrom)($J(a.issueFridge,Cj([].concat(u(e),u(h),u(q)),Bj))),3)}w=ka.yieldResult;y=new Map(w.map(function(ha){return[ha.issueId,ha]}));E=function(ha){return y.get(ha)};I=q.map(E).filter($k).map(Klc("BLOCKED_BY"));N=h.map(E).filter($k).map(Klc("BLOCKING"));L=e.map(E).filter($k).map(Klc("DUPLICATE"));S=[].concat(u(I),u(N),u(L));Y=U1a(S);return ka.return(Y)})},Mlc=function(a,b,c){var d;return me(function(e){return 1==e.nextAddress?c?ne(e,OKb(a.confirmationDialogService,
{title:"Restore comment # "+c+"?",content:Nn("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?ne(e,Llc(a,b,c),0):e.return()})},Llc=function(a,b,c){var d,e;return me(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();PK(a.butterBar,"Restoring comment...",0);Lt(f,2,3);kS(d,"commentUndelete");return ne(f,a.issueComments.undelete(b,c),5);case 5:PK(a.butterBar,"Comment restored successfully.");case 3:Ot(f);
lS(d,"commentUndelete");DL(a.issueFetchResponseFridge,b);et(a.eventsForIssueFridge,b);Pt(f,0);break;case 2:e=Nt(f),PK(a.butterBar,"Comment restoration failed."),UK(a.errorHandler,e),f.jumpTo(3)}})},Plc=function(a,b,c,d){var e,f,h,k;return me(function(q){if(1==q.nextAddress){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?q.return():ne(q,Nlc(a,b),2)}return 3!=q.nextAddress?(f=q.yieldResult,a.butterBar.dismiss(),ne(q,(0,T.firstValueFrom)(a.matDialogService.open(Y3,
{width:"560px",data:{commentNumber:c,issueId:Number(b),deletionReasons:f}})._afterClosed),3)):(h=q.yieldResult)?ne(q,Olc(a,b,c,h.value,null!=(k=d)?k:""),0):q.jumpTo(0)})},Olc=function(a,b,c,d,e){var f,h;return me(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Lt(k,2,3);PK(a.butterBar,"Deleting comment...",0);kS(f,"commentDelete");return ne(k,a.issueComments.delete(b,c,d,e),5);case 5:PK(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),
et(a.eventsForIssueFridge,b);case 3:Ot(k);lS(f,"commentDelete");DL(a.issueFetchResponseFridge,b);Pt(k,0);break;case 2:h=Nt(k),PK(a.butterBar,"Comment deletion failed."),UK(a.errorHandler,h),k.jumpTo(3)}})},Nlc=function(a,b){var c,d,e,f,h,k,q,w,y;return me(function(E){switch(E.nextAddress){case 1:return ne(E,(0,T.firstValueFrom)(a.issueFridge.watch(b,{trustUncertainMemory:!0})),2);case 2:c=E.yieldResult;e=(null==(d=c)?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;E.jumpTo(3);break}return ne(E,
(0,T.firstValueFrom)(a.componentFridge.watch(e)),4);case 4:f=E.yieldResult;case 3:return h=f,k=new Glc("Other","USER_REQUEST"),"DISABLED"===(null==(q=h)?void 0:q.commentEditState)&&(k.enabled=!1,k.disabledReason="comment editing must be enabled"),w=new Glc("Spam or Abuse","ABUSE"),"EXTERNAL_PUBLIC"!==a.issuePermissionService.accessLevel()&&(w.enabled=!1,w.disabledReason="available on Public components"),y=new Glc("Personally Identifiable Information","PII"),E.return([y,w,k])}})},Qlc=function(a,b,
c){var d,e;return me(function(f){if(1==f.nextAddress)return d=nO(a.issuePermissionService,Pl(c.userPerformingActionUser)),bo(a.analytics,go.RESTRICTED_CONTENT,"updateContentJudgement","comment"),ne(f,a.showContentJudgementDialog({severity:Al(Bl(c.commentContentVerdict)),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict={piiVerdict:{severity:zl(e.contentJudgement.getSeverity())}},DL(a.issueFetchResponseFridge,
b),et(a.eventsForIssueFridge,b),AL(a.issueFridge,[b],!0);oe(f)})};B6.prototype.showContentJudgementDialog=function(a){return(0,T.firstValueFrom)(this.matDialogService.open(r5,{width:"500px",data:a})._afterClosed)};
var Rlc=function(a,b,c){var d;return me(function(e){if(1==e.nextAddress)return ne(e,(0,T.firstValueFrom)(a.matDialogService.open(v5,{width:"500px",data:{resource:b,piiRetention:c}})._afterClosed),2);d=e.yieldResult;return e.return(1===d)})},Slc=function(a,b,c,d){var e;me(function(f){if(1==f.nextAddress){if(null==d)return f.return();bo(a.analytics,go.RESTRICTED_CONTENT,"updateContentJudgement","attachment");return ne(f,a.showContentJudgementDialog({severity:Al(Bl(d.contentVerdict)),resourcePath:"issues/"+
b+"/attachments/"+d.attachmentId,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:zl(e.contentJudgement.getSeverity())}},DL(a.issueFetchResponseFridge,b),et(a.eventsForIssueFridge,b),AL(a.issueFridge,[b],!0);oe(f)})};
B6.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q,w;me(function(y){if(1==y.nextAddress){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return y.return();e=T;f=e.firstValueFrom;h=c.matDialogService;k=h.open;q=Z3;return ne(y,Nlc(c,a),3)}return 2!=y.nextAddress?ne(y,f.call(e,k.call(h,q,{width:"560px",data:{deletionReasons:y.yieldResult,attachmentId:b.attachmentId}})._afterClosed),2):(w=y.yieldResult)?ne(y,DQb(c.editIssueService,a,b,w.value),
0):y.jumpTo(0)})};
var Tlc=function(a,b){var c=b.issueId,d=b.componentId,e=b.comment,f,h,k;return me(function(q){if(1==q.nextAddress){if("INTERNAL"!==a.issuePermissionService.accessLevel()||a.issuePermissionService.showImplicitAccessIndicator())return q.return(!0);Lt(q,2);return ne(q,(0,T.firstValueFrom)(U0b(a.commentFormatter,{comment:e.value,issueId:c,audience:null!=(f=a.issuePermissionService.audience())?f:2,formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"})),4)}if(2!=q.nextAddress)return h=q.yieldResult,
q.return(YPb(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=Nt(q);UK(a.errorHandler,k);return q.return(!1)})},Ulc=function(a){var b;return me(function(c){return(b=a.issuePermissionService.accessLevel())&&"INTERNAL"===b||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||qH(a.activeSession)?c.return(!0):c.return(OKb(a.confirmationDialogService,{title:"",content:Nn("Commenting on this bug report means your email address will be shared with the team that works on this product.")}))})};
B6.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,h,k;return me(function(q){if(1==q.nextAddress){c=b.editIssueService.issueCommentDraft(a).comment();d=b.editIssueService.savingState(a);e=b.editIssueService.editableIssue(a);if(!b.issuePermissionService.hasAclToComment()||!cQb(c)||d.get("comment"))return q.return();kS(d,"comment");f=function(){lS(d,"comment")};return ne(q,Tlc(b,{issueId:a,componentId:String(e.componentId),comment:c}),2)}if(3!=q.nextAddress)return h=q.yieldResult,h?ne(q,Ulc(b),
3):(f(),q.return());k=q.yieldResult;if(!k)return f(),q.return();bo(b.analytics,go.EDIT_ISSUE,"addComment",2===c.formattingMode?"markdown":"non markdown");return q.return(b.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(a).finally(function(){f();b.appEvents.commentSubmitted.next(Number(a));b.appEvents.scrollToCommentBox.next()}))})};
B6.\u0275fac=function(a){return new (a||B6)(t(nS),t(OK),t(oO),t(y6),t(z6),t(yL),t(HB),t(dL),t(SM),t(vP),t(aN),t(rO),t(SK),t(BL),t(NL),t(bK),t(RW),t(ZR),t(pH),t(WK))};B6.\u0275prov=ec({token:B6,factory:B6.\u0275fac,providedIn:"root"});var Klc=function(a){return function(b){var c,d;return{resourceId:b.issueId,displayText:null!=(c=b.snapshot[0].title)?c:"",status:null!=(d=b.snapshot[0].status)?d:null,relations:[a]}}};
var C6=function(a,b,c){this.editIssueService=a;this.matDialogService=b;this.analytics=c},Z1a=function(a,b){var c,d,e,f,h,k,q;return me(function(w){if(1==w.nextAddress)return b=String(b),bo(a.analytics,go.ISSUE_PICKER,"click","duplicate"),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResourceId:Number(b),currentResourceType:"issue",componentId:c.componentId,allowMultipleIds:!1},f=(new Date).getTime(),ne(w,(0,T.firstValueFrom)(a.matDialogService.open(LX,
{data:e})._afterClosed),2);h=w.yieldResult;if(null==(k=h)||!k.length)return c.status=d,w.return();q=(new Date).getTime()-f;bo(a.analytics,go.ISSUE_PICKER,"apply","duplicate",q);rKb(a.analytics,q,"duplicate");bo(a.analytics,go.EDIT_ISSUE,"setCanonicalIssue");return w.return(xQb(a.editIssueService,b,String(h.map(function(y){return y.resourceId})[0])))})};C6.\u0275fac=function(a){return new (a||C6)(t(nS),t(HB),t(SM))};C6.\u0275prov=ec({token:C6,factory:C6.\u0275fac,providedIn:"root"});
var D6=function(a,b,c,d,e,f){BI.call(this);var h=this;this.devopsGraph=a;this.paramsService=b;this.analytics=c;this.butterBar=d;this.router=e;this.route=f;this.id$=uM(this.paramsService,"issueId").pipe(Le());this.contexts$=this.id$.pipe(Xe(function(k){return me(function(q){return null!=h.devopsGraph.getContainer()&&k?q.return(hlc(h.devopsGraph,Number(k)).then(function(w){return{issueId:k,availablePanels:w}})):q.return(void 0)})}),Ue({refCount:!1,bufferSize:1}));this.availablePanels$=this.contexts$.pipe(C(function(k){return k?
k.availablePanels:new Set}));this.shouldShowInsightsGraphMenu$=this.contexts$.pipe(C(function(k){return!!k&&0<k.availablePanels.size&&$i()&&null!=h.devopsGraph.getContainer()}));this.shouldShowInsightsGraphButton$=this.contexts$.pipe(C(function(k){return!!k&&0<k.availablePanels.size&&$i()&&null!=h.devopsGraph.getContainer()&&k.availablePanels.has("deployments")}));this.openSidebar.bind(this);this.subscriptions.add(this.contexts$.subscribe(function(k){if(k){k=k.availablePanels;h.track("ingress-view-"+
(0<k.size?"enabled":"disabled"));k.has("deployments")&&h.track("ingress-view-deployments-enabled");k.has("incidents")&&h.track("ingress-view-incidents-enabled");var q=h.paramsService.params.showInsights;q&&("default"===q?0<k.size?h.openSidebar():QK(h.butterBar,"Could not open Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."):k.has(q)?h.openSidebar(q):QK(h.butterBar,"Could not open "+q+" Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."))}else h.devopsGraph.close()}));
this.subscriptions.add(this.devopsGraph.close$.subscribe(function(){Vlc(h,null)}))};U(D6,BI);D6.\u0275dir=BI.\u0275dir;D6.prototype.openSidebar=function(a){var b=this,c,d,e,f,h;return me(function(k){c=Pj(b.contexts$);if(!c)return k.return();d=c;e=d.issueId;f=d.availablePanels;Vlc(b,null!=(h=a)?h:"default");("incidents"===a||!a&&1===f.size&&f.has("incidents"))&&OM.setBooleanAt("g3g.incidentSidebarOpened")(!0);return k.return(b.devopsGraph.openSidebar(Number(e),{panel:a}))})};
D6.prototype.track=function(a){bo(this.analytics,"sidebar",a)};var Vlc=function(a,b){a.router.navigate([],{relativeTo:a.route,queryParams:{showInsights:b},queryParamsHandling:"merge",replaceUrl:!0,preserveFragment:!0})};D6.\u0275fac=function(a){return new (a||D6)(t(m6),t(tM),t(SM),t(OK),t(Hk),t(fk))};D6.\u0275prov=ec({token:D6,factory:D6.\u0275fac,providedIn:"root"});
var t2a=function(a,b){return{"bv2-has-canonical":a,"bv2-archived":b}},Wlc={parent:"me"},Xlc={voted:!1,starred:!1,notificationSubscription:"UNKNOWN_SUBSCRIPTION",lastViewedTimeMicros:void 0},E6=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta,Aa,xa,Xa,eb,yc,Ua,bb,Sa,ub,cb,xb,Hb,cc,zc,qe,fd,Cd,Wg,tK,Nl){v6.call(this,w,ka,ha,e,f,Ka,Lb,Ua);var gc=this;this.cdr=a;this.bLocation=b;this.routerEvents=c;this.issueApi=d;this.codeMentions=h;this.issueService=k;this.paths=q;this.hotkeys=
y;this.componentActions=E;this.bCacheFactory=I;this.userPreferencesManager=N;this.$log=L;this.checkBeforeExit=S;this.routeParams=Y;this.draftStore=ya;this.constants=Ha;this.pageTitle=Ja;this.domSafe=Ma;this.attachmentsMember=hb;this.matDialogService=fb;this.devopsGraph=ta;this.routePerformance=Aa;this.refreshMonitor=xa;this.issueDetailsBrain=Xa;this.permissionsFridge=eb;this.issueFetchResponseFridge=yc;this.eventsForIssueFridge=bb;this.componentFridge=Sa;this.issueRelationshipService=ub;this.element=
cb;this.issueFridge=xb;this.issueArchiveService=Hb;this.editIssueService=cc;this.issueInteractionsTracking=zc;this.currentSearchResults=qe;this.issuePermissionService=fd;this.issueRelationshipsFridge=Cd;this.issueMarkAsDuplicateDialogService=Wg;this.issueInsightsSidebarService=tK;this.issueCommentDialogsService=Nl;this.enableG3cWidgetIntegration=rH(this.activeSession,"enableG3cWidgetIntegration");this.enableG3cFeatureHighlighting=rH(this.activeSession,"enableG3cFeatureHighlighting");this.enableWtdmMvpUi=
rH(this.activeSession,"enableWtdmMvpUi");this.codeMentionsEnabled=rH(this.activeSession,"enableCodeMentionsUi");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.newComponent=this.currentComponent=null;this.componentPathInfo$=(0,T.combineLatest)([this.issueDetailsBrain.componentId$,this.issueDetailsBrain.componentPathInfo$]).pipe(C(function(dc){var re=r(dc);dc=re.next().value;re=re.next().value;null!=re?dc=re:dc=dc?{componentPathId:[Number(dc)],
componentPathName:["Component "+dc],allCustomField:[]}:void 0;return dc}));this.frontendIsInternalOrPartner=this.sessionIsInternal||qH(this.activeSession);this.frontendIsInternal=this.sessionIsInternal;this.relatedIssuesCache=this.bCacheFactory.get("edit-issue-controller-related-issues")||this.bCacheFactory.create("edit-issue-controller-related-issues",{capacity:25});this.preferences={showFullHistory:!1,useCodefont:!1,autoCcOnComment:!1};this.editComponent=!1;this.rightSidebarWidth=330;this.rightSidebarMinWidth=
245;this.unStarTooltip=this.starTooltip="";this.voteCount=0;this.issueId=iC(this.routeParams.issueId);this.issueIdString=String(this.issueId);this.issueCommentDraft=this.editIssueService.issueCommentDraft(this.issueIdString);this.ariaIssueTitle="";this.savingState=this.editIssueService.savingState(String(this.issueId));this.quickActions=this.editIssueService.issueQuickActions(String(this.issueId));this.issueStatusQuickAction$=this.quickActions.issueStatusQuickAction$;this.commentLimitReached=!1;this.canonicalIssueId$=
this.issueDetailsBrain.canonicalIssueId$;this.canonicalIssue$=this.issueDetailsBrain.canonicalIssue$;this.codeMentionsState$=rH(this.activeSession,"enableCodeMentionsUi")?xlc(this.codeMentions,this.issueId):void 0;this.duplicateIssues=[];this.blockingIssues=[];this.blockedByIssues=[];this.parentIssues=[];this.parentIssueIds=[];this.parentChildRelationships$=this.issueRelationshipsFridge.watch(this.issueId);this.childIssuesCount$=this.parentChildRelationships$.pipe(C(function(dc){var re;return null!=
(re=null==dc?void 0:dc.totalChildCount)?re:0}));this.childIssues$=this.parentChildRelationships$.pipe(Xe(function(dc){var re;return(0,T.combineLatest)(null!=(re=null==dc?void 0:dc.relatedChildren.map(function(Ci){return gc.issueFridge.watch(Ci.targetIssueId)}))?re:[])}),C(function(dc){return dc.filter($k)}),C(function(dc){return dc.map(function(re){return Ylc(re)})}));this.insightsFeatureTooltipPositions=[krb];this.relatedIssuesTrayOpen=null;this.events=[];this.blockingIssuesSearchUrl=this.paths.listIssues({q:"blockingid:"+
this.issueId});this.blockedIssuesSearchUrl=this.paths.listIssues({q:"blockedbyid:"+this.issueId});this.childIssuesSearchUrl=this.paths.listIssues({q:"parentid:"+this.issueId});this.issue=new HR;this.isShowAccessDeniedComponent=!1;this.issueMetadata=null;this.issue$=this.issueDetailsBrain.issueJs$;this.events$=this.issueDetailsBrain.eventsJs$;this.componentIds$=(0,T.combineLatest)([this.events$.pipe(C(Dta)),this.issue$.pipe(C(Hta))]).pipe(C(pLa),Le(oLa));this.hotlistIds$=(0,T.combineLatest)([this.events$.pipe(C(Fta)),
this.issue$.pipe(C(Gta))]).pipe(C(pLa),Le(oLa));this.userHotlists$=FGb(this.hotlistFridge,Wlc).pipe(C(function(dc){return dc.results}));this.issueAndEventHotlists$=this.hotlistIds$.pipe(C(function(dc){return[].concat(u(dc))}),Xe(function(dc){return $J(gc.hotlistFridge,dc)}));this.hotlists$=(0,T.combineLatest)([this.issueAndEventHotlists$,this.userHotlists$]).pipe(C(function(dc){var re=r(dc);dc=re.next().value;re=re.next().value;return[].concat(u(dc),u(re))}),C(bBb(function(dc){return dc.hotlistId})),
C(function(dc){return dc.filter($k)}),Ze(function(dc){dc=r(dc);for(var re=dc.next();!re.done;re=dc.next())re=re.value,null!=re&&gc.addHotlist(zlc(re))}),Ue({refCount:!0,bufferSize:1}),Ye(this.destroyed$));this.onLoad=function(){Zlc(gc)};this.UNKNOWN_SUBSCRIPTION="UNKNOWN_SUBSCRIPTION";this.viewInitialized=!1;this.HOTKEYS=xI;this.onIssueError=function(dc){403===dc.status&&gc.frontendIsInternal?$lc(gc):gc.errorHandler.errorHandler(null,dc)};this.onEventsError=function(dc){gc.errorHandler.errorHandler(null,
dc)};this.onChangeIssue=function(dc){gc.firstEvent=null==dc?void 0:dc.firstEvent;if(null!=dc){dc=(dc||{}).issue;var re=dc.aggregatedData,Ci=pa((null==dc?void 0:dc.snapshot)||[]),Dn=Ci.componentId||0,Fp;gc.userData=Object.assign({},null!=(Fp=dc.userData)?Fp:Xlc);gc.aggregatedData=re;amc(gc);gc.parentIssueIds=dc.parentIssueIds;gc.loadRelatedIssues(Ci);bmc(gc,Dn)}};this.toggleStar=function(){null==gc.userData||gc.savingState.get("star")||(gc.userData.starred=!gc.userData.starred,gc.frontendIsInternalOrPartner||
(amc(gc),gc.userData.voted=gc.userData.starred),kS(gc.savingState,"star"),QIb(gc.issueFridge,String(gc.issue.issueId),gc.userData.starred).pipe(Me(),Ye(gc.destroyed$)).subscribe(function(){lS(gc.savingState,"star");gc.refreshView()},function(dc){null!=gc.userData&&(gc.userData.starred=!gc.userData.starred);lS(gc.savingState,"star");gc.errorHandler.errorHandler(null,dc);gc.refreshView()}))};this.toggleStarDebounced=dC(this.toggleStar,1E3)};U(E6,v6);E6.\u0275dir=v6.\u0275dir;g=E6.prototype;
g.ngOnDestroy=function(){v6.prototype.ngOnDestroy.call(this);this.devopsGraph.close();this.editIssueService.clear(String(this.issueId));var a=this.issueInteractionsTracking,b=String(this.issueId),c=a.getState(b);a.trackDestroy("edit-count",c.editCount);a.resetState(b)};
g.ngOnInit=function(){var a=this;this.appEvents.issueViewed.next(Wk(this.issueId));lQb(this.issueInteractionsTracking,String(this.issueId));this.userPreferencesManager.preferences$.pipe(Ye(this.destroyed$)).subscribe(function(b){Object.assign(a.preferences,b);var c=(a.preferences.themePreferences||{}).density;b=(b.layoutPreferences||{}).rightSidebarWidth;a.rightSidebarWidth=null!=b?b:"COZY"===c?300:"COMPACT"===c?270:330},function(){});this.issueCommentDraft.comment$.pipe(Ye(this.destroyed$)).subscribe(function(b){b.hasContent()&&
cmc(a);a.refreshView()});this.frontendIsInternalOrPartner?(this.starTooltip="Star this issue",this.unStarTooltip="Un-star this issue"):(this.starTooltip="Indicate that you are affected by this issue",this.unStarTooltip="Indicate that you are no longer affected by this issue");this.subscriptions.add(cZ(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.routerEvents.routeChangeSuccess.pipe(Ye(this.destroyed$)).subscribe(function(){a.butterBar.dismiss()});this.issue$.pipe(Ye(this.destroyed$)).subscribe(this.onChangeIssue);
this.issueFetchResponseFridge.error$.pipe(Ye(this.destroyed$)).subscribe(this.onIssueError);this.eventsForIssueFridge.error$.pipe(Ye(this.destroyed$)).subscribe(this.onEventsError);this.hotlists$.pipe(Ye(this.destroyed$)).subscribe(function(){Blc(a)});this.componentIds$.pipe(Me(),Ye(this.destroyed$)).subscribe(function(b){$J(a.componentFridge,[].concat(u(b)))});Vp("#comment1 .bv2-event-note-container",this.element.nativeElement).pipe(Ye(this.destroyed$)).subscribe(function(){var b=function(){g7b(a.routePerformance,
"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.events$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.events=b.slice(1);var c=a.activeSession.getCommentNumberLimit();Kta(b)>=c&&(a.commentLimitReached=!0)});(0,T.combineLatest)([this.events$,this.issue$]).pipe(Me(),Ye(this.destroyed$)).subscribe(this.onLoad);this.editIssueService.editableIssue$(String(this.issueId)).pipe(Ye(this.destroyed$)).subscribe(function(b){a.issue=b;Blc(a);a.refreshView()});this.issuePermissionService.issuePermissions$.pipe(Ye(this.destroyed$)).subscribe(function(){a.refreshView()});
this.selectableHotlistsChanged$.pipe(Ye(this.destroyed$)).subscribe(function(){a.refreshView()});this.refreshMonitor.getObservable().pipe(Ye(this.destroyed$)).subscribe(function(){a.refresh()})};g.ngAfterViewInit=function(){this.viewInitialized=!0};g.refreshView=function(){this.viewInitialized&&this.cdr.detectChanges()};g.onVote=function(){iS(this.issueInteractionsTracking,String(this.issueId))};
var s2a=function(a,b){b!==a.rightSidebarWidth&&OCb(a.userPreferencesManager,{rightSidebarWidth:b}).pipe(Ye(a.destroyed$)).subscribe(function(){a.rightSidebarWidth=b;a.refreshView()})},$lc=function(a){a.isShowAccessDeniedComponent=!0;a.issueService.getMetadata(a.issueId).then(function(b){a.issueMetadata=b;a.refreshView()})},bmc=function(a,b){null==b?Promise.resolve():a.componentActions.get(b).then(function(c){a.currentComponent=c;a.currentComponent.archived&&(a.inArchivedComponent=a.currentComponent.archived);
a.refreshView()}).catch(function(c){403!==c.status&&a.errorHandler.errorHandler(null,c);a.currentComponent={componentId:b,name:"Component "+String(b)};a.refreshView()}).then(function(){var c=a.issuePermissionService.accessLevel();c=c?Gua(c):"";a.ariaIssueTitle=(c?c+" - ":"")+"Issue title: "+a.issue.title+". Change.";a.refreshView()})},amc=function(a){var b,c=(null==(b=a.userData)?0:b.starred)?1:0,d,e;a.voteCount=(null!=(e=null==(d=a.aggregatedData)?void 0:d.voteCount)?e:0)+c},Lgb=function(a,b){var c=
Jj();kS(a.savingState,"parentIssues");var d=a.parentIssues;a.parentIssues=b.items;var e=a.parentIssues.map(function(h){return h.issueId}),f=function(h){TK(a.errorHandler,ym(h));a.parentIssues=d;c.reject()};b.added?(PK(a.butterBar,"Saving...",0),a.issueRelationshipService.create(String(b.item.issueId),1,WL(new VL,a.issueId)).pipe(Ye(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=F6(a,e,function(){a.parentIssues=[].concat(u(a.parentIssues));PK(a.butterBar,'"'+b.item.issueId+
'" added to Parent Issues.',0);c.resolve()})},f)):(PK(a.butterBar,"Saving...",0),a.issueRelationshipService.delete(String(b.item.issueId),1,String(a.issueId)).pipe(Ye(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=F6(a,e,function(){a.parentIssues=[].concat(u(a.parentIssues));PK(a.butterBar,'"'+b.item.issueId+'" removed from Parent Issues.',0);c.resolve()})},f));return c.promise.then(function(){DL(a.issueFetchResponseFridge,a.issueId);et(a.eventsForIssueFridge,a.issueId)}).finally(function(){lS(a.savingState,
"parentIssues");a.refreshView()})},Ogb=function(a,b){var c=Jj();kS(a.savingState,"childIssues");PK(a.butterBar,"Saving...",0);var d=function(f){TK(a.errorHandler,ym(f));c.reject()};if("added"in b)b.added?a.issueRelationshipsFridge.assignParentToIssues(String(a.issueId),[{issueId:String(b.item.issueId),afterIssueId:"-1"}]).then(function(f){f.errors?d(f.errors[0]):(c.resolve(),PK(a.butterBar,'"'+b.item.issueId+'" added to Child Issues.',0))}):a.issueRelationshipsFridge.unlinkFromParent(String(b.item.issueId),
String(a.issueId)).then(function(){c.resolve();PK(a.butterBar,'"'+b.item.issueId+'" removed from to Child Issues.',0)}).catch(d);else{var e;CJb(a.issueRelationshipsFridge,{parentId:String(a.issueId),position:(null==(e=b.isNowAfter)?0:e.issueId)?{issueId:String(b.isNowAfter.issueId),position:"after"}:void 0},[{issueId:String(b.item.issueId),parentId:String(a.issueId)}]).then(function(){c.resolve();PK(a.butterBar,"Moved",0)}).catch(d)}return c.promise.then(function(){DL(a.issueFetchResponseFridge,a.issueId);
et(a.eventsForIssueFridge,a.issueId)}).finally(function(){lS(a.savingState,"childIssues");a.refreshView()})},dmc=function(a){me(function(b){return a.enableWtdmMvpUi?ne(b,et(a.issueRelationshipsFridge,a.issueId),0):b.return()})};E6.prototype.mentionsLoadingStateTooltipText=function(a){return this.codeMentions.mentionsLoadingStateTooltipText(a)};E6.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};
E6.prototype.loadRelatedIssues=function(a){var b=this;this.blockedByIssues=F6(this,a.blockedByIssueId||[],function(){b.blockedByIssues=[].concat(u(b.blockedByIssues))});this.blockingIssues=F6(this,a.blockingIssueId||[],function(){b.blockingIssues=[].concat(u(b.blockingIssues))});this.duplicateIssues=F6(this,a.duplicateIssueId||[],function(){b.duplicateIssues=[].concat(u(b.duplicateIssues))});this.enableWtdmMvpUi&&(this.parentIssues=F6(this,this.parentIssueIds.map(Number),function(){b.parentIssues=
[].concat(u(b.parentIssues))}))};
var F6=function(a,b,c){if(!b.length)return null==c||c(),[];var d=[];b=r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.relatedIssuesCache.get(String(e));f||(f={issueId:e},a.relatedIssuesCache.put(String(e),f));d.push(f)}b=d.filter(function(h){return!h.resolved});emc(a,b).finally(function(){null==c||c();a.refreshView()});return d},emc=function(a,b){var c=b.filter(function(f){return!f.resolved});b=r(c);for(var d=b.next();!d.done;d=b.next())d=d.value,a.relatedIssuesCache.put(String(d.issueId),d);
var e=Jj();$J(a.issueFridge,c.map(function(f){return f.issueId})).pipe(Ie(function(){return(0,T.of)([])}),Me(),Ye(a.destroyed$)).subscribe(function(f){f=new Map(f.map(function(w){return[w.issueId,w]}));for(var h=r(c),k=h.next();!k.done;k=h.next()){k=k.value;var q=f.get(k.issueId);q?Object.assign(k,Ylc(q)):k.resolved=!0}a.refreshView();e.resolve()});return e.promise},Ylc=function(a){var b=pa(a.snapshot);return{issueId:a.issueId,title:b.title,status:b.status,archived:a.isArchived,resolved:!0}},Rs=function(a){return a.filter(function(b){return!(b.resolved&&
b.archived)}).length};g=E6.prototype;g.hasUnsavedChanges=function(){return this.comment.hasContent()};g.getRequestDataForUpdate=function(){return this.editIssueService.LEGACY_EDIT_ISSUE.getRequestDataForUpdate(this.issue)};g.updateIssue=function(){return this.editIssueService.LEGACY_EDIT_ISSUE.updateIssue(String(this.issueId))};g.preUpdate=function(a){this.editIssueService.LEGACY_EDIT_ISSUE.preUpdate(a)};
g.postUpdate=function(a,b){var c=this;return this.editIssueService.LEGACY_EDIT_ISSUE.postUpdate(a,b).finally(function(){c.refreshView()})};g.performQuickAction=function(a,b){bo(this.analytics,go.EDIT_ISSUE,"quickAction ("+a+")",null==b?void 0:b.displayText);return this.editIssueService.performQuickAction(String(this.issueId),null!=b?b:void 0)};
var Bt=function(a,b){a.savingState.get("title")||!a.issuePermissionService.hasAclToEdit()||b&&"Enter"!==b.key||a.matDialogService.open(X3,{width:"560px",data:{title:a.issue.title}})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(c){void 0!==c&&c!==a.issue.title&&(a.issue.title=c,a.updateIssue())})};E6.prototype.showFlagAsSpamDialog=function(){var a=this;this.matDialogService.open(W3,{maxWidth:560})._afterClosed.pipe(Ye(this.destroyed$)).subscribe(function(b){b&&BQb(a.editIssueService,String(a.issueId))})};
E6.prototype.undelete=function(){this.issue.setIsDeleted(!1);this.issue.setDeletionReason(null);var a=this.getRequestDataForUpdate();if(a&&a.actions){this.preUpdate(a);var b=this.issueService.undelete(this.issueId);this.postUpdate(b,a)}};
E6.prototype.handleHotlistPickerSave=function(a){var b=this,c=a.oldSelectionMap,d=this.issue,e=[],f=[];a=r(Object.entries(a.newSelectionMap));for(var h=a.next();!h.done;h=a.next()){var k=r(h.value);h=k.next().value;k=k.next().value;h=Ki(h);k!==c[h]&&(k&&d.hotlistId&&!d.hotlistId.includes(h)?(d.hotlistId.push(h),e.push(h)):!k&&wa(d.hotlistId,h)&&f.push(h))}var q=this.getRequestDataForUpdate();if(q&&q.actions){this.preUpdate(q);var w=this.issueApi.updateIssueHotlists(this.issueId,{addHotlistIds:e,removeHotlistIds:f,
hotlistIssue:{issueId:this.issueId,issue:this.issue}});w.then(function(){q&&(b.postUpdate(w,q),b.refreshView())})}};E6.prototype.submitArchivalState=function(a){return this.issueArchiveService.submitArchivalState(String(this.issueId),a)};
var cmc=function(a){(0,T.forkJoin)([a.events$.pipe(Me()),Vp("#AddCommentBox textarea",a.element.nativeElement)]).pipe(Ye(a.destroyed$)).subscribe(function(){a.appEvents.scrollToCommentBox.next()})},fmc=function(a,b,c,d){var e=Oi(b||[],new Set(a));if(0<e.length)return{issueId:c,relation:d,targetIds:e,actionType:"ADD"};a=Oi(a||[],new Set(b));return{issueId:c,relation:d,targetIds:a,actionType:"REMOVE"}},Hgb=function(a,b){a.blockingIssues=b;emc(a,a.blockingIssues).then(function(){a.blockingIssues=[].concat(u(a.blockingIssues));
a.refreshView()});var c=a.issue.blockingIssueId||[];NPb(a.issue,a.blockingIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=fmc(c,a.issue.blockingIssueId||[],a.issueId,"BLOCKING"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d},Fgb=function(a,b){a.blockedByIssues=b;emc(a,a.blockedByIssues).then(function(){a.blockedByIssues=[].concat(u(a.blockedByIssues));a.refreshView()});var c=a.issue.blockedByIssueId||[];OPb(a.issue,
a.blockedByIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=fmc(c,a.issue.blockedByIssueId||[],a.issueId,"BLOCKED_BY"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d};E6.prototype.saveCommentDraft=function(){this.draftStore.$window.sessionStorage.setItem(vo(this.issue.issueId),this.comment.value)};E6.prototype.clearCanonicalIssue=function(){bo(this.analytics,go.EDIT_ISSUE,"click","unmarkDuplicate");this.editIssueService.clearCanonicalIssue(String(this.issueId))};
var r2a=function(a){var b=a.preferences.showFullHistory;bo(a.analytics,go.EDIT_ISSUE,"toggleShowFullHistory",String(b));a.userPreferencesManager.save({showFullHistory:b}).pipe(Ye(a.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist showFullHistory.")})};
E6.prototype.toggleAutoCcOnComment=function(){var a=this,b=!Fi(this.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;bo(this.analytics,go.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));this.userPreferencesManager.save({autoCcOnComment:b}).pipe(Ye(this.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist autoCcOnComment.")})};
var Qs=function(a,b){bo(a.analytics,go.EDIT_ISSUE,"toggleRelatedIssuesTray",(a.relatedIssuesTrayOpen!==b?"open":"close")+" "+b);a.relatedIssuesTrayOpen=a.relatedIssuesTrayOpen===b?null:b};E6.prototype.updateSubscription=function(a){var b=this;return me(function(c){if(1==c.nextAddress)return ne(c,b.editIssueService.updateSubscription(String(b.issueId),a),2);bo(b.analytics,go.EDIT_ISSUE,"updateSubscription",a);b.refreshView();oe(c)})};
E6.prototype.refresh=function(){this.relatedIssuesCache.removeAll();et(this.permissionsFridge,"issues/"+this.issueId);dmc(this);DL(this.issueFetchResponseFridge,this.issueId);et(this.eventsForIssueFridge,this.issueId);Zlc(this);HGb(this.hotlistFridge,Wlc);this.issueInteractionsTracking.trackNavigation("refresh")};
var Zlc=function(a){var b=void 0===b?!0:b;a.activeSession.isAnonymous()?Promise.resolve():AL(a.issueFridge,[a.issueId],b).then(function(c){a.userData&&(a.userData.lastViewedTimeMicros=c);a.refreshView()})},Ct=function(a){return a.issuePermissionService.hasAclToEdit()?"Set issue title":""},vhb=function(a){return a.issuePermissionService.hasAclToComment()&&!a.commentLimitReached&&!a.savingState.get("comment")},jbb=function(a){return a.issuePermissionService.hasAclToComment()&&cQb(a.comment)&&!a.savingState.get("comment")};
E6.prototype.submitCommentBox=function(){var a=this;return me(function(b){if(1==b.nextAddress)return ne(b,a.issueCommentDialogsService.submitCommentBox(a.issueIdString),2);a.refreshView();oe(b)})};var uhb=function(a){return a.commentLimitReached?"The comment limit has been reached and no additional comments are permitted.":a.activeSession.isAnonymous()?"Sign in to use full features.":a.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."};
g=E6.prototype;g.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};g.requestIssueDeletion=function(){this.domSafe.openInNewTab(dZa())};g.showIndefiniteRetentionDialog=function(){var a=this;this.savingState.get("retention")||this.matDialogService.open(V3,{maxWidth:560})._afterClosed.pipe(Ye(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"INDEFINITE")})};
g.showComponentRetentionDialog=function(){var a=this;this.savingState.get("retention")||this.matDialogService.open(U3,{maxWidth:560})._afterClosed.pipe(Ye(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"COMPONENT_DEFAULT")})};
g.showNewContentJudgementDialog=function(){var a=this,b,c,d,e;return me(function(f){if(1==f.nextAddress)return d=null!=(c=null==(b=a.judgementForNewContent)?void 0:b.getSeverity())?c:1,ne(f,a.issueCommentDialogsService.LEGACY_EDIT_ISSUE.showContentJudgementDialog({severity:d,contentJudgement:a.judgementForNewContent,hasAclToCreate:!0}),2);(e=f.yieldResult)&&a.issueCommentDraft.userDefinedJudgementForNewContent$.next(e.contentJudgement);oe(f)})};
g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};var xhb=function(a){var b,c=null!=(b=Pj(a.childIssuesCount$))?b:0;return a.parentIssueIds.length||c||null!=a.issue.type&&vCb.has(a.issue.type)};
ki.Object.defineProperties(E6.prototype,{comment:{configurable:!0,enumerable:!0,get:function(){return this.issueCommentDraft.comment()}},areEventsLoading:{configurable:!0,enumerable:!0,get:function(){var a=this.eventsForIssueFridge.isThinking(this.issueId);return this.isLoading||a&&0===this.events.length}},judgementForNewContent:{configurable:!0,enumerable:!0,get:function(){return this.issueCommentDraft.judgementForNewContent()}},isLoading:{configurable:!0,enumerable:!0,get:function(){var a=this.issueFetchResponseFridge.isThinking(this.issueId);
return null==this.firstEvent&&a}}});E6.\u0275fac=function(a){return new (a||E6)(F(uI),F(cL),F($I),F(wK),F(PJ),F(pL),F(r6),F($K),F(dL),F(pH),F(fJ),F(AT),F(mL),F(zI),F(RK),F(dZ),F(bS),F(SM),F(OK),F(KR),F(ZH),F(hO),F(SK),F(vP),F(UR),F(HB),F(WK),F(m6),F(Z_),F(uL),F(mO),F(fM),F(BL),F(sL),F(NL),F(bK),F(dM),F(nd),F(yL),F(o6),F(nS),F(hS),F(p6),F(oO),F(eM),F(C6),F(D6),F(B6))};
E6.\u0275cmp=v({type:E6,selectors:[["edit-issue-page"]],features:[Lf([uI,oS,{provide:FW,useClass:u6}]),gf],decls:6,vars:5,consts:[[1,"a11y-only"],["class","kd-appbar",4,"ngIf"],[1,"bv2-view","bv2-edit-view"],["class","bv2-access-denied",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","color","primary",3,"hotkey","matTooltip","onHotkey","click"],["svgIcon","arrow-backward"],["class","flex-kids-x",4,"ngIf"],[1,"bv2-appbar-right"],[4,"ngIf"],
["mat-icon-button","","color","primary","matTooltip","Go to previous issue","matTooltipPosition","left","aria-label","Go to previous issue",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-left"],["mat-icon-button","","color","primary","matTooltip","Go to next issue","matTooltipPosition","left","aria-label","Go to next issue",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-right"],[1,"flex-kids-x"],["mat-icon-button","","color","primary","matTooltip","Refresh","aria-label",
"Refresh",3,"hotkey","onHotkey","click"],["svgIcon","refresh"],[1,"bv2-vertical-bar"],[1,"bv2-edit-controls"],[3,"issueId","hasAclToEdit","hasAclToComment","issueStatusQuickAction","statusIsSaving","isDuplicate","upvoted","voteCount","hotkey","onHotkey","onVote","quickAction","markAsDuplicate","clearCanonical"],[3,"choices","hotkey","selectedHotlistIds","onHotkey","onApply","onCreate","onLoad"],["hotlistPicker",""],["aria-label","Notification menu",3,"subscription","issueId","matTooltip","subscriptionChange",
"showNotificationSettings"],[3,"customWidgetClass","taskId","featureHighlightingEnabled","userActionPerformed",4,"ngIf"],["onedevTooltipAnchor","incident-insights",3,"availablePanels","openSidebar",4,"ngIf"],["onedevTooltipAnchor","incident-insights",3,"availablePanels","openSidebar"],["tooltipId","incident-insights",3,"customPositions"],["onedevTooltipTitle",""],[3,"customWidgetClass","taskId","featureHighlightingEnabled","userActionPerformed"],["role","alert","aria-live","polite","class","bv2-appbar-pagenums",
4,"ngIf"],["role","alert","aria-live","polite",1,"bv2-appbar-pagenums"],[1,"bv2-access-denied"],[3,"issueMetadata"],[3,"ngClass"],["messageType","caution","class","bv2-archived-issue-banner border-bottom",3,"format","iconOverride",4,"ngIf"],["class","bv2-canonical-issue-banner",4,"ngIf"],[1,"bv2-related-issues-bar"],[1,"bv2-related-issues-bar-upper"],["role","tablist","aria-label","Related issues","aria-multiselectable","true",1,"bv2-related-issues-buttons"],["id","rel-issues-tray-blocked","role",
"tab","tabindex","0","aria-controls","rel-issues-tray-blocked-content",1,"tab-head",3,"click","keydown.enter","keydown.space"],[1,"label",3,"matTooltip"],["svgIcon","arrow-dropdown"],["id","rel-issues-tray-blocking","role","tab","tabindex","0","aria-controls","rel-issues-tray-blocking-content",1,"tab-head",3,"click","keydown.enter","keydown.space"],["id","rel-issues-tray-duplicates","role","tab","tabindex","0","aria-controls","rel-issues-tray-duplicates-content",1,"tab-head",3,"matTooltip","click",
"keydown.enter","keydown.space"],[1,"label"],["class","tab-head","id","rel-issues-tray-parents","role","tab","tabindex","0","aria-controls","rel-issues-tray-parents-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["class","tab-head","id","rel-issues-tray-children","role","tab","tabindex","0","aria-controls","rel-issues-tray-children-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[1,"bv2-related-issues-bar-upper-right"],["id",
"bv2-issue-history-button"],["label","Full history",3,"model","tooltip","modelChange"],[1,"bv2-main-content-right-bar-container"],[1,"bv2-main-content-container"],[3,"parent"],["direction","rtl","id","bv2-resizable-rightbar",3,"disableToggleBtn","hideToggleBtnOnOpen","minWidth","size","widthChanged"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId"],["messageType","caution",1,"bv2-archived-issue-banner","border-bottom",3,"format","iconOverride"],["href","http://go/buganizer-issue-archive",
"target","_blank",4,"ngIf"],["format","flat",3,"onAction",4,"ngIf"],["href","http://go/buganizer-issue-archive","target","_blank"],["format","flat",3,"onAction"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank",4,"ngIf"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],[1,"bv2-canonical-issue-banner"],["class","bv2-canonical-title",4,"ngIf","ngIfElse"],["partiallyLoaded",""],[1,"bv2-canonical-title"],[1,"high-contrast-link",
3,"href","onedevHovercardTrigger"],["canonicalHovercard",""],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""],[1,"high-contrast-link",3,"href"],["id","rel-issues-tray-parents","role","tab","tabindex","0","aria-controls","rel-issues-tray-parents-content",1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"],["id","rel-issues-tray-children","role","tab","tabindex","0","aria-controls","rel-issues-tray-children-content",
1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"],["class","tab-head","id","rel-issues-tray-mentions","role","tab","tabindex","0","aria-controls","rel-issues-tray-mentions-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["id","rel-issues-tray-mentions","role","tab","tabindex","0","aria-controls","rel-issues-tray-mentions-content",1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1),
H(),O(2,c2a,17,19,"div",1),G(3,"div",2),O(4,d2a,2,1,"div",3),O(5,u2a,45,62,"div",4),H());a&2&&(B(1),If("Issue ",b.issueId,""),B(1),D("ngIf",!b.isShowAccessDeniedComponent),B(1),nf("aria-busy",b.isLoading),B(1),D("ngIf",b.isShowAccessDeniedComponent),B(1),D("ngIf",b.issue&&!b.isShowAccessDeniedComponent))},encapsulation:2});
var gmc=["savedSearchNameInput"],Ss=function(a){return{"bv2-edit-resource-readonly":a}},A2a=function(a){return{displayText:"Admins",values:a}},z2a=function(a){return[a]},G6=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka){BI.call(this);var ha=this;this.routeParams=a;this.location=b;this.accessPolicyApi=c;this.savedSearchApi=d;this.paths=e;this.appHistory=f;this.butterBar=h;this.pageTitle=k;this.documentationLinks=w;this.userAccess=E;this.errorHandler=I;this.snackBar=N;this.confirmationDialog=L;this.cdr=
S;this.accessPolicyConverter=Y;this.appEvents=ka;this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.error="";this.currentUserEmail=q.getUserEmail();this.accessPolicyUnderEdit=LT();this.flattenedAccessPolicy=LT();this.pageTitle.setTitle("Saved Search Overview");a=this.loadSavedSearch(this.routeParams.savedSearchId);b=this.loadUserAccess(this.routeParams.savedSearchId);this.loadAccessPolicy(this.routeParams.savedSearchId);
Promise.all([a,b]).then(function(){var ya;null==(ya=ha.savedSearchName)||ya.nativeElement.focus()});this.subscriptions.add(cZ(y,function(){return ha.hasUnsavedChanges()},!1))};U(G6,BI);G6.\u0275dir=BI.\u0275dir;g=G6.prototype;g.ngOnInit=function(){"access"===this.location.hash()&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};
g.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=Fi(b.savedSearch);b.pageTitle.setTitle("Saved search: "+c.name)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.cdr.detectChanges()})};
g.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=MT(c);b.accessPolicyUnderEdit=Fi(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.loadUserAccess=function(a){var b=this;return DK(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.isSaving=function(){return this.isUpdating||this.isDeleting};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};g.back=function(){X_(this.appHistory)};g.revertMetadataChanges=function(){this.savedSearchUnderEdit=Fi(this.savedSearch);this.error=""};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.hasUnsavedMetadataChanges=function(){return!Ei(this.savedSearch,this.savedSearchUnderEdit)};
g.hasUnsavedAccessPolicyChanges=function(){return!Ei(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
g.saveMetadata=function(){var a=this;this.validate()&&(this.snackBar.open("Save saved search ID "+this.savedSearchUnderEdit.searchId,"dismiss",{duration:0}),this.isUpdating=!0,this.savedSearchApi.update(this.savedSearchUnderEdit.searchId,this.savedSearchUnderEdit).then(function(b){a.snackBar.open("Saved search ID "+b.searchId+' was saved as "'+b.name+'"',"dismiss",{duration:0});a.savedSearch=b;a.savedSearchUnderEdit=Fi(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};g.validate=function(){if(""===this.savedSearchUnderEdit.name)return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("2:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change saved search admins",Nn("Are you sure you want to remove yourself from the admins?\n                'You may lose the permission to edit the access settings"),function(){a.doSaveAccessPolicy()})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=NT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);QK(this.butterBar,b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("SAVED_SEARCH",this.savedSearch.searchId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=MT(c);a.accessPolicyUnderEdit=Fi(a.flattenedAccessPolicy);
a.loadUserAccess(String(a.savedSearch.searchId));a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})},function(c){a.errorHandler.errorHandler(null,c);QK(a.butterBar,ym(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.openConfirmationDialog("Delete saved search",Nn("Do you want to delete this saved search?"),function(){a.doDelete()})};
g.doDelete=function(){var a=this;this.snackBar.open("Deleting saved search "+this.savedSearch.name,"dismiss",{duration:0});this.isDeleting=!0;this.savedSearchApi.delete(this.savedSearch.searchId).then(function(){a.snackBar.open("Deleted saved search "+a.savedSearch.name,"dismiss",{duration:0});a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId,action:"delete"});vIb(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
g.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};G6.\u0275fac=function(a){return new (a||G6)(F(bS),F(cL),F(iO),F(ON),F(dL),F(W_),F(OK),F(hO),F(pH),F(tP),F(dZ),F(CK),F(SK),F(LK),F(aN),F(uI,2),F(KT),F(WK))};
G6.\u0275cmp=v({type:G6,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(Zf(gmc,5),Zf(cX,5,nd));if(a&2){var c;Yf(c=ag())&&(b.savedSearchName=c.first);Yf(c=ag())&&(b.tabs=c)}},features:[Lf([uI]),gf],decls:9,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["mat-button","","color","primary","matTooltip","Delete saved search",3,"disabled",
"click",4,"ngIf"],[1,"bv2-view"],[4,"ngIf"],["mat-button","","color","primary","matTooltip","Delete saved search",3,"disabled","click"],[1,"edit-resource-header"],[1,"edit-resource-header-link",3,"href"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","saved-search-name",1,"required"],[1,"edit-field-header"],["type","text","id","saved-search-name",
"required","","aria-required","true",3,"ngModel","disabled","ngModelChange"],["savedSearchNameInput",""],["for","saved-search-description"],["id","saved-search-description",3,"ngModel","disabled","ngModelChange"],[1,"edit-field","bv2-edit-resource-readonly"],["for","saved-search-query"],[1,"edit-field-note"],[1,"edit-saved-search-query-container","codefont"],["class","edit-button-row",4,"ngIf"],["id","access","label","Access Control"],["for","saved-search-acl-admins"],[3,"users","usersChange","isValid"],
["for","saved-search-acl-readers"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange","isValid"],[1,"edit-field"],["target","_blank",3,"href"],[1,"edit-button-row"],["mat-flat-button","","color","primary",3,"disabled","click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),K("click",function(){return b.back()}),J(4,"mat-icon",4),H(),O(5,v2a,2,1,"button",5),H()()(),G(6,"div",6),O(7,w2a,
4,0,"ng-container",7),O(8,B2a,51,38,"ng-container",7),H());a&2&&(B(5),D("ngIf",b.isAdmin),B(2),D("ngIf",!b.isLoading&&!b.savedSearch),B(1),D("ngIf",!b.isLoading&&b.savedSearch))},dependencies:[vx,sx,$E,pB,eX,cX,kZ,LE,Fg,by,sy,hy,YY],encapsulation:2});
var hmc=function(a){Z.call(this,a)};U(hmc,Z);g=hmc.prototype;g.getAuthor=function(){return m(this,Rl,1)};g.getTimestamp=function(){return m(this,rj,2)};g.setTimestamp=function(a){return Ab(this,2,a)};g.hasTimestamp=function(){return cj(this,2)};g.getAdd=function(){return m(this,sY,3)};g.getRemove=function(){return m(this,sY,4)};g.getAddMask=function(){return m(this,WG,5)};g.getRemoveMask=function(){return m(this,WG,6)};g.toObject=function(){return imc(void 0,this)};
var imc=function(a,b){if(null!=b){var c={author:uJ(a,b.getAuthor()),timestamp:Pu(a,b.getTimestamp()),add:r3b(a,b.getAdd()),remove:r3b(a,b.getRemove()),addMask:XG(a,b.getAddMask()),removeMask:XG(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var H6=function(a){Z.call(this,a,-1,jmc)};U(H6,Z);H6.prototype.getUpdatesList=function(){return rb(this,hmc,1)};var jmc=[1];H6.prototype.toObject=function(){var a=null!=this?{updatesList:Bb(this.getUpdatesList(),imc)}:void 0;return a};H6.messageId="b.SloHistory";
var I6=function(a,b){this.executor=b;this.sloHistories=a.get("slo_histories-second-level-cache")||a.create("slo_histories-second-level-cache",{capacity:25})};I6.prototype.get=function(a){var b=this.sloHistories.get(String(a));return void 0!==b?b:this.sloHistories.put(String(a),this.executor.get({url:"action/slo_updates/"+a,responseConstructor:H6}))};I6.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};I6.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};
I6.\u0275fac=function(a){return new (a||I6)(t(mL),t(qI))};I6.\u0275prov=ec({token:I6,factory:I6.\u0275fac,providedIn:"root"});
var J6=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya){BI.call(this);var Ha=this;this.routeParams=a;this.accessPolicyConverter=b;this.bLocation=c;this.appHistory=e;this.butterBar=f;this.pageTitle=h;this.documentationLinks=q;this.userAccess=y;this.accessPolicyApi=E;this.sloApi=I;this.sloUpdatesApi=N;this.sloUpdatesService=L;this.errorHandler=S;this.matDialogService=Y;this.analytics=ka;this.confirmationDialogService=ha;this.appEvents=ya;this.historyDiffs=void 0;this.isImportedFromBugScope=this.isUneditedFromBugScope=
this.elementPickerIsValid=this.isAdmin_=this.isUpdating_=this.isLoading=!1;this.selectedTabIndex=0;this.validity={};this.isInvalid=function(){return Object.values(Ha.validity).some(function(Ja){return!Ja})};this.editableAccessPolicy=LT();this.flattenedAccessPolicy=LT();this.subscriptions.add(cZ(w,function(){return Ha.hasUnsavedChanges()},!1));a=this.routeParams.sloId;this.resourceName=eo("SLO",Ki(a));if(this.sloEnabled=k.isInternalSession())this.pageTitle.setTitle("SLO Overview"),kmc(this,a),this.loadUserAccess_(a),
this.loadAccessPolicy_(a),lmc(this,a);this.alertState={getValue:function(){return Ha.editableCopy?1===X(Ha.editableCopy,9,0):!1},getSavedValue:function(){return Ha.slo?1===X(Ha.slo,9,0):!1},setValue:function(Ja){Ha.editableCopy&&l(Ha.editableCopy,9,Ja?1:0)}};this.currentUserEmail=k.getUserEmail()};U(J6,BI);J6.\u0275dir=BI.\u0275dir;
J6.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.bLocation.hash(e,!0)};J6.prototype.ngOnInit=function(){"access"===this.bLocation.hash()&&(this.selectedTabIndex=1)};J6.prototype.updateCollection=function(a){this.editableCopy&&zb(this.editableCopy,6,a)};
var kmc=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;Ts(a.slo)||zb(a.slo,6,[]);a.editableCopy=a.slo.clone();a.pageTitle.setTitle("SLO: "+c.getName())}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
J6.prototype.loadAccessPolicy_=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=MT(c);b.editableAccessPolicy=Fi(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var mmc=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.getUpdatesList().map(function(d){return N6b(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g=J6.prototype;
g.loadUserAccess_=function(a){var b=this;DK(this.userAccess,"admin",eo("SLO",Ki(a))).then(function(c){b.isAdmin_=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){var a=this.slo,b=this.editableCopy;return!(a==b||a&&b&&a instanceof b.constructor&&Raa(a.toArrayInternal(),b.toArrayInternal()))};
g.hasUnsavedAccessPolicyChanges=function(){return!Ei(this.flattenedAccessPolicy,this.editableAccessPolicy)};
g.saveMetadata=function(){var a=this;nmc(Ts(this.slo),Ts(this.editableCopy))?omc(this):this.confirmationDialogService.open({title:"Save SLO changes?",content:Qn(Nn("Any changes to the rules will need to be propagated to all impacted issues. Depending on the number of affected issues, this may take a few hours to fully fan-out and reindex."),Pn("br"),Pn("br"),Nn("Please combine changes into as few updates as possible.")),onConfirm:function(){omc(a)},onDismiss:cC})};
var F2a=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.setIsArchived(b);omc(a)};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Nn("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:cC}):c()}},nmc=function(a,b){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c],f;if(f=d.getMetric()===e.getMetric()&&d.getMatcher()===e.getMatcher())d=m(d,hm,3),e=m(e,hm,
3),f=null===d&&null===e||null!==d&&null!==e&&d.getSeconds()===e.getSeconds();if(!f)return!1}return!0},omc=function(a){var b=a.editableCopy;PK(a.butterBar,"Saving SLO ID "+b.getSloId()+"...");a.isUpdating_=!0;a.sloApi.update(b).then(function(c){var d='Changes to SLO "'+c.getName()+'" saved.';nmc(Ts(a.slo),Ts(a.editableCopy))||(d+=" Propagating this change may take several hours.");PK(a.butterBar,d);a.slo=c;Ts(a.slo)||zb(a.slo,6,[]);a.editableCopy=c.clone();a.sloUpdatesApi.invalidateCache(a.slo.getSloId());
bo(a.analytics,go.EDIT_SLO,"update")}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating_=!1})};
J6.prototype.saveAccessPolicy=function(){var a=this;pmc(this)?this.confirmationDialogService.open({title:"Change SLO admins",content:Nn("You are about to change the administrator privileges for this SLO. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){a.doSaveAccessPolicy_()},onDismiss:cC}):this.doSaveAccessPolicy_()};
J6.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=NT(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);QK(this.butterBar,b);return}this.isUpdating_=!0;PK(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.getSloId(),b).then(function(c){PK(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=MT(c);a.editableAccessPolicy=Fi(a.flattenedAccessPolicy);a.loadUserAccess_(a.slo.getSloId());bo(a.analytics,
go.EDIT_SLO,"updateAccessPolicy")},function(c){QK(a.butterBar,ym(c),0)}).finally(function(){a.isUpdating_=!1})};
var lmc=function(a,b){mmc(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&"buganizer-system@google.com"===Pl(c.author)&&(a.isImportedFromBugScope=!0);d.author&&"buganizer-system@google.com"===Pl(d.author)&&(a.isUneditedFromBugScope=!0)}})},pmc=function(a){if(Ei(a.flattenedAccessPolicy.admins,a.editableAccessPolicy.admins))return!1;var b="2:"+a.currentUserEmail;return a.flattenedAccessPolicy.admins.includes(b)&&
!a.editableAccessPolicy.admins.includes(b)};g=J6.prototype;g.revertMetadataChanges=function(){var a=this;if(nmc(Ts(this.slo),Ts(this.editableCopy))){var b;this.editableCopy=null==(b=this.slo)?void 0:b.clone()}else this.confirmationDialogService.open({title:"Revert SLO changes?",content:Qn(Nn("Revert all changes to this SLO?")),onConfirm:function(){var c;a.editableCopy=null==(c=a.slo)?void 0:c.clone()},onDismiss:cC})};
g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating_};g.back=function(){X_(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdmin_};
g.showUpdateHistoryModal=function(){var a=this;mmc(this,this.slo.getSloId()).then(function(){a.matDialogService.open(A5,{width:"600px",data:{updateDiffs:a.historyDiffs}});bo(a.analytics,go.UPDATE_HISTORY_MODAL,"open");bo(a.analytics,go.EDIT_SLO,"viewHistory")})};J6.\u0275fac=function(a){return new (a||J6)(F(bS),F(KT),F(cL),F(dL),F(W_),F(OK),F(hO),F(pH),F(tP),F(dZ),F(CK),F(iO),F(vY),F(I6),F(P_),F(SK),F(HB),F(SM),F(aN),F(WK))};
J6.\u0275cmp=v({type:J6,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&Zf(cX,5,nd);if(a&2){var c;Yf(c=ag())&&(b.tabs=c)}},features:[gf],decls:7,vars:2,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],[4,"ngIf"],[1,"bv2-view-loading"],[1,"edit-resource-header"],[1,"vertical-centered"],["gmat-tabs","",1,"bv2-tab-bar",
3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel","edit-slo-basics-form"],["name","sloBasicsForm"],["sloBasicsForm","ngForm"],[1,"edit-field"],["for","slo-name",1,"required"],[1,"edit-field-header"],["type","text","id","slo-name","name","slo-name",3,"required","ngModel","disabled","ngModelChange"],["for","slo-description"],["id","slo-description","name","slo-description",3,"ngModel","disabled","ngModelChange"],["class","edit-field permission-toggle",
3,"bv2-edit-resource-readonly",4,"ngIf"],["id","bs-warning",4,"ngIf"],[3,"isDisabled","collection","onCollectionUpdate","onValidation"],["id","bv2-slo-edit-buttons"],[1,"edit-button-row"],[1,"edit-button-group"],["title","View history for 'Basic Information'",3,"onAction"],["class","edit-button-group",4,"ngIf"],["id","access","label","Access Control"],[1,"edit-resource-panel"],["name","accessControlForm","novalidate",""],["for","slo-acl-admins"],[1,"edit-field-note"],[3,"users","usersChange","isValid"],
["for","slo-acl-readers"],[3,"users","includeAliases","includeViewAliases","usersChange","isValid"],["target","_blank",3,"href"],["class","edit-button-row",4,"ngIf"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],[3,"checked","disabled","change"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["id","bs-warning"],["target","_blank","href","https://goto.google.com/buganizer-bugscope-slo-sync"],["format","fill","tooltip","Save any changes to the SLO",3,"disabled",
"onAction"],["tooltip","Discard any changes",3,"disabled","onAction"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled","onAction",4,"ngIf"],["tooltip","Unarchive the SLO and allow new usages",3,"disabled","onAction",4,"ngIf"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled","onAction"],["tooltip","Unarchive the SLO and allow new usages",3,"disabled","onAction"],["format","fill",3,"disabled","onAction"],[3,"onAction"]],template:function(a,
b){a&1&&(G(0,"div",0)(1,"div",1)(2,"b-button",2),K("onAction",function(){return b.back()}),J(3,"b-icon",3),H()()(),G(4,"div",4),O(5,C2a,2,0,"div",5),O(6,K2a,55,31,"div",6),H());a&2&&(B(5),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&b.slo&&b.slo.getSloId()&&b.editableCopy))},dependencies:[yO,sx,iy,Fg,by,cy,sy,hy,fy,iZ,uH,eX,cX,YY,vQ,I_,mN],encapsulation:2});
var K6=function(){this.issue=null;this.isDataLoaded=!1};K6.prototype.ngOnChanges=function(){var a;this.assignee=Hua(Pl(null==(a=this.issue)?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=null!==this.issue};K6.\u0275fac=function(a){return new (a||K6)};
K6.\u0275cmp=v({type:K6,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},features:[Ac],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),O(1,L2a,2,2,"b-person-hovercard",1),O(2,M2a,1,0,"ng-template",null,2,gg),H());if(a&2){var c=Hf(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.assignee)("ngIfElse",c)}},dependencies:[B2,sx,zR],encapsulation:2,changeDetection:0});
var L6=function(){this.isDataLoaded=!1};L6.prototype.ngOnChanges=function(){var a;if(null==(a=this.issue)?0:a.aggregatedData){var b;this.createdTime=(null==(b=this.issue)?NaN:b.aggregatedData.createdTimeMicros)/1E3}this.isDataLoaded=null!=this.issue};L6.\u0275fac=function(a){return new (a||L6)};
L6.\u0275cmp=v({type:L6,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue"},features:[Ac],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],["mode","datetime",3,"timestamp",4,"ngIf","ngIfElse"],["noData",""],["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),O(1,N2a,1,1,"b-formatted-date-time",1),H(),O(2,O2a,1,0,"ng-template",null,2,gg));if(a&2){var c=Hf(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.createdTime)("ngIfElse",c)}},dependencies:[B2,
sx,LP],encapsulation:2,changeDetection:0});
var M6=function(){};M6.prototype.ngOnInit=function(){};M6.\u0275fac=function(a){return new (a||M6)};M6.\u0275cmp=v({type:M6,selectors:[["b-issue-id-cell"]],inputs:{id:"id"},decls:2,vars:2,consts:[[3,"isReady"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),P(1),H());a&2&&(D("isReady",!!b.id),B(1),If(" ",b.id," "))},dependencies:[B2],encapsulation:2,changeDetection:0});
var N6=function(){this.issue=null;this.isDataLoaded=!1};N6.prototype.ngOnChanges=function(){var a;this.reporter=Hua(Pl(null==(a=this.issue)?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=null!==this.issue};N6.\u0275fac=function(a){return new (a||N6)};
N6.\u0275cmp=v({type:N6,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},features:[Ac],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),O(1,P2a,2,2,"b-person-hovercard",1),O(2,Q2a,1,0,"ng-template",null,2,gg),H());if(a&2){var c=Hf(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.reporter)("ngIfElse",c)}},dependencies:[B2,sx,zR],encapsulation:2,changeDetection:0});
var O6=function(){this.IssueStatus_strToTag=Wl;this.STATUS_FULL_TEXT=LL;this.STATUS_TERSE=HL;this.issue=null;this.isDataLoaded=!1};O6.prototype.ngOnChanges=function(){var a,b;this.status=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.status)||void 0;this.isDataLoaded=null!==this.issue};O6.\u0275fac=function(a){return new (a||O6)};
O6.\u0275cmp=v({type:O6,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue"},features:[Ac],decls:4,vars:3,consts:[[3,"isReady"],[3,"class","title",4,"ngIf","ngIfElse"],["noData",""],[3,"title"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),O(1,R2a,2,5,"div",1),O(2,S2a,1,0,"ng-template",null,2,gg),H());if(a&2){var c=Hf(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.IssueStatus_strToTag[b.status])("ngIfElse",c)}},dependencies:[B2,sx],encapsulation:2,changeDetection:0});
var P6=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};P6.prototype.ngOnChanges=function(){var a,b,c;this.teamId=(null==(a=this.issue)?void 0:null==(b=a.aggregatedData)?void 0:null==(c=b.teamId)?void 0:c.toString())||"";var d,e;this.componentId=String(null==(d=this.issue)?void 0:null==(e=d.snapshot[0])?void 0:e.componentId)||"";this.isDataLoaded=null!==this.issue};P6.\u0275fac=function(a){return new (a||P6)};
P6.\u0275cmp=v({type:P6,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},features:[Ac],decls:4,vars:3,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled",4,"ngIf","ngIfElse"],["noData",""],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),O(1,T2a,1,3,"b-team-display",1),O(2,U2a,1,0,"ng-template",null,2,gg),H());if(a&2){var c=Hf(3);D("isReady",b.isDataLoaded);
B(1);D("ngIf",b.teamId)("ngIfElse",c)}},dependencies:[B2,sx,kV],encapsulation:2,changeDetection:0});
var Q6=function(){this.issue=null;this.title="";this.isDataLoaded=!1;this.link={path:""}};Q6.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||"";this.isDataLoaded=null!==this.issue;var c,d;this.link=sn(null!=(d=null==(c=this.issue)?void 0:c.issueId)?d:"")};Q6.\u0275fac=function(a){return new (a||Q6)};
Q6.\u0275cmp=v({type:Q6,selectors:[["b-issue-title-cell"]],hostAttrs:[1,"flex-kids-x"],inputs:{issue:"issue"},features:[Ac],decls:3,vars:3,consts:[[1,"title","title-location",3,"isReady"],[1,"hover-link","line-clamp-3",3,"routerLinkObj","keydown","click"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0)(1,"a",1),K("keydown",function(c){"Enter"===c.key&&c.stopPropagation()})("click",function(c){return c.stopPropagation()}),P(2),H()());a&2&&(D("isReady",b.isDataLoaded),B(1),D("routerLinkObj",
b.link),B(1),Jf(b.title||"--"))},dependencies:[B2,qT],styles:[".title[_ngcontent-%COMP%] {\n      margin-left: 4px\n      padding: 7px 0 6px 0;\n    }\n    a[_ngcontent-%COMP%] {\n      color: inherit;\n    }"],changeDetection:0});
var R6=function(){this.type=this.issue=null;this.isDataLoaded=!1};R6.prototype.ngOnChanges=function(){var a,b;this.type=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.type)||null;this.isDataLoaded=null!==this.issue};R6.\u0275fac=function(a){return new (a||R6)};
R6.\u0275cmp=v({type:R6,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},features:[Ac],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[4,"ngIf","ngIfElse"],["noData",""]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),O(1,V2a,3,3,"ng-container",1),O(2,W2a,1,0,"ng-template",null,2,gg),H());if(a&2){var c=Hf(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.type)("ngIfElse",c)}},dependencies:[B2,sx,zM],encapsulation:2,changeDetection:0});
var qmc=function(a,b){gA.call(this,a);this.directives=a;this.isEqual=b};U(qmc,gA);var Us=function(a,b){var c;return me(function(d){if(1==d.nextAddress)return ne(d,(0,T.firstValueFrom)(a.directives.changes.pipe(We(a.directives.toArray()),C(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),De(Boolean),Fe(3E3))),2);c=d.yieldResult;cA(a,c);oe(d)})};
var S6=function(a,b){this.elementRef=a;this.interactivityHelper=b};S6.prototype.ngOnInit=function(){};S6.prototype.focus=function(){var a=j5b(this.interactivityHelper,this.elementRef.nativeElement,!0);a&&a.focus()};ki.Object.defineProperties(S6.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});S6.\u0275fac=function(a){return new (a||S6)(F(nd),F(YZ))};S6.\u0275dir=v({type:S6,selectors:[["tr","row",""]],inputs:{row:"row"}});
var rmc=Dh("indicator",[Gh("active-asc, asc",Fh({transform:"translateY(0px)"})),Gh("active-desc, desc",Fh({transform:"translateY(10px)"})),Hh("active-asc <=> active-desc",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),smc=Dh("leftPointer",[Gh("active-asc, asc",Fh({transform:"rotate(-45deg)"})),Gh("active-desc, desc",Fh({transform:"rotate(45deg)"})),Hh("active-asc <=> active-desc",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),tmc=Dh("rightPointer",[Gh("active-asc, asc",Fh({transform:"rotate(45deg)"})),Gh("active-desc, desc",
Fh({transform:"rotate(-45deg)"})),Hh("active-asc <=> active-desc",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),umc=Dh("arrowOpacity",[Gh("desc-to-active, asc-to-active, active",Fh({opacity:1})),Gh("desc-to-hint, asc-to-hint, hint",Fh({opacity:.54})),Gh("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Fh({opacity:0})),Hh("* => asc, * => desc, * => active, * => hint, * => void",Eh("0ms")),Hh("* <=> *",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),vmc=Dh("arrowPosition",[Hh("* => desc-to-hint, * => desc-to-active",
Eh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Fh({transform:"translateY(-25%)"}),Fh({transform:"translateY(0)"})]})),Hh("* => hint-to-desc, * => active-to-desc",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Fh({transform:"translateY(0)"}),Fh({transform:"translateY(25%)"})]})),Hh("* => asc-to-hint, * => asc-to-active",Eh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Fh({transform:"translateY(25%)"}),Fh({transform:"translateY(0)"})]})),Hh("* => hint-to-asc, * => active-to-asc",
Eh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Fh({transform:"translateY(0)"}),Fh({transform:"translateY(-25%)"})]})),Gh("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Fh({transform:"translateY(0)"})),Gh("hint-to-desc, active-to-desc, desc",Fh({transform:"translateY(-25%)"})),Gh("hint-to-asc, active-to-asc, asc",Fh({transform:"translateY(25%)"}))]),wmc=Dh("allowChildren",[Hh("* <=> *",[Jh("@*",Ih())])]);
var T6=function(){this.changes=new T.Subject};T6.\u0275fac=function(a){return new (a||T6)};T6.\u0275prov=ec({token:T6,factory:T6.\u0275fac,providedIn:"root"});var xmc={provide:T6,deps:[[new Ev,new Fv,T6]],useFactory:function(a){return a||new T6}};
var ymc=new jd("MAT_SORT_DEFAULT_OPTIONS"),zmc=nla(ni(function(){})),U6=function(a){var b=zmc.call(this)||this;b._defaultOptions=a;b.sortables=new Map;b._stateChanges=new T.Subject;b.start="asc";b._direction="";b.sortChange=new Iw;return b};U(U6,zmc);g=U6.prototype;g.register=function(a){this.sortables.set(a.id,a)};g.deregister=function(a){this.sortables.delete(a.id)};
g.sort=function(a){if(this.active!=a.id)this.active=a.id,this.direction=a.start?a.start:this.start;else{if(a){var b,c,d,e=null!=(d=null!=(c=null==a?void 0:a.disableClear)?c:this.disableClear)?d:!(null==(b=this._defaultOptions)||!b.disableClear);b=["asc","desc"];"desc"==(a.start||this.start)&&b.reverse();e||b.push("");a=b.indexOf(this.direction)+1;a>=b.length&&(a=0);a=b[a]}else a="";this.direction=a}this.sortChange.emit({active:this.active,direction:this.direction})};g.ngOnInit=function(){this._markInitialized()};
g.ngOnChanges=function(){this._stateChanges.next()};g.ngOnDestroy=function(){this._stateChanges.complete()};ki.Object.defineProperties(U6.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}},disableClear:{configurable:!0,enumerable:!0,get:function(){return this._disableClear},set:function(a){this._disableClear=Rg(a)}}});U6.\u0275fac=function(a){return new (a||U6)(F(ymc,8))};
U6.\u0275dir=v({type:U6,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:[gf,Ac]});
var Amc=ni(function(){}),V6=function(a,b,c,d,e,f,h,k){var q=Amc.call(this)||this;q._intl=a;q._changeDetectorRef=b;q._sort=c;q._columnDef=d;q._focusMonitor=e;q._elementRef=f;q._ariaDescriber=h;q._showIndicatorHint=!1;q._viewState={};q._arrowDirection="";q._disableViewStateAnimation=!1;q.arrowPosition="after";q._sortActionDescription="Sort";if(null==k?0:k.arrowPosition)q.arrowPosition=null==k?void 0:k.arrowPosition;q._handleStateChanges();return q};U(V6,Amc);g=V6.prototype;
g.ngOnInit=function(){!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(".mat-sort-header-container");this._updateSortActionDescription(this._sortActionDescription)};
g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=!!b;b!==a._showIndicatorHint&&(a._setIndicatorHintVisible(b),a._changeDetectorRef.markForCheck())})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._sort.deregister(this);this._rerenderSubscription.unsubscribe()};
g._setIndicatorHintVisible=function(a){this._isDisabled()&&a||(this._showIndicatorHint=a,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))};g._setAnimationTransitionState=function(a){this._viewState=a||{};this._disableViewStateAnimation&&(this._viewState={toState:a.toState})};
g._toggleOnInteraction=function(){this._sort.sort(this);if("hint"===this._viewState.toState||"active"===this._viewState.toState)this._disableViewStateAnimation=!0};g._handleClick=function(){this._isDisabled()||this._sort.sort(this)};g._handleKeydown=function(a){this._isDisabled()||32!==a.keyCode&&13!==a.keyCode||(a.preventDefault(),this._toggleOnInteraction())};g._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)};
g._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection};g._getArrowViewState=function(){var a=this._viewState.fromState;return(a?a+"-to-":"")+this._viewState.toState};g._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start};g._isDisabled=function(){return this._sort.disabled||this.disabled};
g._getAriaSortAttribute=function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"};g._renderArrow=function(){return!this._isDisabled()||this._isSorted()};g._updateSortActionDescription=function(a){if(this._sortButton){var b;null==(b=this._ariaDescriber)||opb(b,this._sortButton,this._sortActionDescription);var c;null==(c=this._ariaDescriber)||npb(c,this._sortButton,a)}this._sortActionDescription=a};
g._handleStateChanges=function(){var a=this;this._rerenderSubscription=(0,T.merge)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){if(a._isSorted()){a._updateArrowDirection();if("hint"===a._viewState.toState||"active"===a._viewState.toState)a._disableViewStateAnimation=!0;a._setAnimationTransitionState({fromState:a._arrowDirection,toState:"active"});a._showIndicatorHint=!1}!a._isSorted()&&a._viewState&&"active"===a._viewState.toState&&(a._disableViewStateAnimation=
!1,a._setAnimationTransitionState({fromState:"active",toState:a._arrowDirection}));a._changeDetectorRef.markForCheck()})};ki.Object.defineProperties(V6.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}},disableClear:{configurable:!0,enumerable:!0,get:function(){return this._disableClear},set:function(a){this._disableClear=Rg(a)}}});
V6.\u0275fac=function(a){return new (a||V6)(F(T6),F(lx),F(U6,8),F("MAT_SORT_HEADER_COLUMN_DEF",8),F(Iz),F(nd),F(Sz,8),F(ymc,8))};
V6.\u0275cmp=v({type:V6,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&K("click",function(){return b._handleClick()})("keydown",function(c){return b._handleKeydown(c)})("mouseenter",function(){return b._setIndicatorHintVisible(!0)})("mouseleave",function(){return b._setIndicatorHintVisible(!1)});a&2&&(nf("aria-sort",b._getAriaSortAttribute()),sf("mat-sort-header-disabled",b._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header",
"id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[gf],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:7,consts:[[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(a,b){a&1&&(Cf(),G(0,"div",0)(1,"div",1),Df(2),H(),O(3,X2a,6,6,"div",2),H());a&2&&(sf("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before","before"===b.arrowPosition),nf("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),B(3),D("ngIf",b._renderArrow()))},dependencies:[sx],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:[rmc,smc,tmc,umc,vmc,wmc]},changeDetection:0});
var Bmc="focus-indicator title type team id assignee status menu".split(" "),W6=function(a,b,c){BI.call(this);var d=this;this.issueFridge=a;this.router=b;this.domSafe=c;this.issueIds$=new T.BehaviorSubject([]);this.menuItemFactory=function(){return[]};this.tableColumns=Bmc.slice();this.activeSort$=new T.BehaviorSubject(void 0);this.rows$=this.issueIds$.pipe(Qj(),C(function(e){return e.map(function(f){return{id:f,issue$:d.issueFridge.watch(f)}})}),Xe(function(e){return(0,T.combineLatest)([d.activeSort$].concat(u(e.map(function(f){return f.issue$.pipe(We(null))})))).pipe(C(function(f){var h=
r(f);f=h.next().value;h=Ce(h);e=e.filter(function(k){var q;return!(null==(q=d.getIssue(k))?0:q.isArchived)});return h.some(function(k){return null===k})?e:Cmc(d,e,f)}))}),Ue({refCount:!0,bufferSize:1}));this.trackBy=function(e,f){return f.id};this.correctedDisplayedRows=new bg;this.getIssue=function(e){return Pj(e.issue$)}};U(W6,BI);W6.\u0275dir=BI.\u0275dir;g=W6.prototype;
g.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(c){b.navigateToIssue(c,a)},title:"Go to issue",icon:"arrow-forward"}].concat(u(this.menuItemFactory(a)))};g.ngOnInit=function(){this.initialSort&&this.initialSort.direction&&this.activeSort$.next(this.initialSort)};
g.ngAfterViewInit=function(){var a=this;(0,T.combineLatest)([this.rows$,this.displayedRows.changes.pipe(We(void 0))]).pipe(Ye(this.destroyed$)).subscribe(function(b){b=r(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[d.row.id,d]}));b=b.map(function(d){return c.get(d.id)}).filter(Boolean);a.correctedDisplayedRows.reset(b);Xf(a.correctedDisplayedRows)});this.focusManager=bA(new qmc(this.correctedDisplayedRows,t3a))};
g.navigateToIssue=function(a,b){!b||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(b=pn(b),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?wP(this.domSafe,b):bt(this.router,b))};g.onRowKeydown=function(a,b){this.focusManager.onKeydown(b)};
var Cmc=function(a,b,c){if(!c||!c.direction)return b;switch(c.active){case "status":return Nta(a.getIssue)(b,c.direction);case "assignee":return Ota(a.getIssue)(b,c.direction);case "reporter":return Qta(a.getIssue)(b,c.direction);case "type":return Pta(a.getIssue)(b,c.direction);case "createdTime":return Rta(a.getIssue)(b,c.direction);default:return b}};ki.Object.defineProperties(W6.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(null!=a?a:[])}}});
W6.\u0275fac=function(a){return new (a||W6)(F(yL),F(Hk),F(vP))};
W6.\u0275cmp=v({type:W6,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&Zf(S6,5);if(a&2){var c;Yf(c=ag())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",tableColumns:"tableColumns"},features:[gf],decls:35,vars:10,consts:[["mat-table","","matSort","",1,"full-width",3,"dataSource","trackBy","matSortActive","matSortDirection","matSortChange"],["matColumnDef","focus-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex",
"-1","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","type",4,"matHeaderCellDef"],["matColumnDef","assignee"],["mat-header-cell","","mat-sort-header","assignee",4,"matHeaderCellDef"],["matColumnDef","reporter"],["mat-header-cell","","mat-sort-header","reporter",4,"matHeaderCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],
["matColumnDef","team"],["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["tabindex","-1","mat-cell",""],["mat-cell",""],[3,"id"],[3,"issue"],["mat-header-cell","","mat-sort-header","type"],["mat-header-cell","",
"mat-sort-header","assignee"],["mat-header-cell","","mat-sort-header","reporter"],["mat-header-cell","","mat-sort-header","status"],["mat-header-cell","","mat-sort-header","createdTime"],["buttonLabel","More options",3,"menuItems","click"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"row","click","mouseup","focusin","keydown"]],template:function(a,b){a&1&&(G(0,"table",0),K("matSortChange",function(e){b.activeSort$.next(e)}),Q(1,"async"),Q(2,"async"),xf(3,1),O(4,
Y2a,1,0,"th",2),O(5,Z2a,1,0,"td",3),yf(),xf(6,4),O(7,$2a,2,0,"th",2),O(8,a3a,2,1,"td",5),yf(),xf(9,6),O(10,b3a,2,0,"th",2),O(11,c3a,3,3,"td",5),yf(),xf(12,7),O(13,d3a,2,0,"th",8),O(14,e3a,3,3,"td",5),yf(),xf(15,9),O(16,f3a,2,0,"th",10),O(17,g3a,3,3,"td",5),yf(),xf(18,11),O(19,h3a,2,0,"th",12),O(20,i3a,3,3,"td",5),yf(),xf(21,13),O(22,j3a,2,0,"th",14),O(23,k3a,3,3,"td",5),yf(),xf(24,15),O(25,l3a,2,0,"th",2),O(26,m3a,3,3,"td",5),yf(),xf(27,16),O(28,n3a,2,0,"th",17),O(29,o3a,3,3,"td",5),yf(),xf(30,18),
O(31,p3a,1,0,"th",2),O(32,q3a,2,1,"td",5),yf(),O(33,r3a,1,0,"tr",19),O(34,s3a,1,1,"tr",20),H());if(a&2){var c,d;D("dataSource",b.rows$)("trackBy",b.trackBy)("matSortActive",null!==(c=null==(c=R(1,6,b.activeSort$))?null:c.active)&&void 0!==c?c:"")("matSortDirection",null!==(d=null==(d=R(2,8,b.activeSort$))?null:d.direction)&&void 0!==d?d:"");B(33);D("matHeaderRowDef",b.tableColumns);B(1);D("matRowDefColumns",b.tableColumns)}},dependencies:[U6,V6,K4,C4,G4,D4,B4,H4,E4,F4,I4,J4,QZ,lP,K6,N6,M6,O6,P6,Q6,
R6,L6,S6,Fx],styles:[".mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%]{width:32px}.mat-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-focus-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-row[_ngcontent-%COMP%]:focus-within   .mat-column-focus-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}"],
changeDetection:0});
var X6=function(a,b,c,d){BI.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.TEA_DARK=Bjc;this.TEA_LIGHT=Ajc;this.getStatus=function(f){return f.snapshot[0].status};this.STATUS_FULL_TEXT=LL;this.STATUS_TERSE=HL;this.IssueStatus_strToTag=Wl;this.id$=Oj(this.bestRoute.paramMap.pipe(C(function(f){return Vk(f.get("issueId"))}),De($k),Ye(this.destroyed$)));this.searchUrl$=this.id$.pipe(C(function(f){return{path:"/issues",params:{q:"blockedbyid:"+f}}}));this.issue$=
this.id$.pipe(Xe(function(f){return e.issues.watch(f)}));this.blockingIds$=this.issue$.pipe(C(function(f){var h;return null!=(h=null==f?void 0:f.snapshot[0].blockingIssueId)?h:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(Xe(function(f){return $J(e.issues,f)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(C(function(f){return f.filter(An)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(C(function(f){return f.map(function(h){return String(h.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(C(function(f){return f.filter(function(h){if(null==
h?0:h.isArchived)var k=!1;else{var q;h=null==h?void 0:null==(k=h.snapshot)?void 0:null==(q=k[0])?void 0:q.status;if(null==h||null==zn[h])k=!1;else{var w;k=!(null==(w=zn[h])?0:w.open)}}return k})}));this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(C(function(f){return f.map(function(h){return String(h.issueId)})}));this.thinking$=this.issues.thinking$;this.getMenuItems=function(f){return[{type:"action",label:"Remove this relationship",action:function(){var h=e.id$.value;null!=h&&zL(e.issues,2,
1,String(h),[String(f)]).catch(e.gotErr)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(f){var h=e.id$.value;null!=h&&(f=f.map(String),zL(e.issues,1,1,String(h),f).catch(e.gotErr))};this.gotErr=function(f){e.snackBar.open(ym(f)||"Error with network request","close",{panelClass:"error"})}};U(X6,BI);X6.\u0275dir=BI.\u0275dir;var u3a=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0},a.didChooseBlocking)};
ki.Object.defineProperties(X6.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});X6.\u0275fac=function(a){return new (a||X6)(F(fk),F(yL),F(MX),F(LK))};
X6.\u0275cmp=v({type:X6,selectors:[["ng-component"]],features:[gf],decls:5,vars:6,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","pos-tr padded",4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",1,"light-only",3,"src"],["aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/block-issue",
"target","_blank",1,"nowrap"],["mat-flat-button","","color","primary","matTooltip","Add something this issue is blocking",1,"gmat-button","small",3,"click"],[4,"ngIf","ngIfElse"],["notLoaded",""],[1,"margin-s-top","flex-kids-x","gap-s"],[1,"section-heading","muted"],["noBlockedAndOpen",""],[3,"issueIds","menuItemFactory",4,"ngIf"],[3,"issueIds","menuItemFactory"],[1,"muted","margin-bottom"],[1,"unstyled","reverse-padded-sides"],[4,"ngFor","ngForOf"],[1,"padded-x",3,"routerLink"],[1,"right"],["mat-icon-button",
"","aria-label","",1,"gmat-button","invisible"],["mat-button","","color","primary",1,"gmat-button","small",3,"routerLink","queryParams"],[1,"pos-tr","padded"]],template:function(a,b){a&1&&(G(0,"section",0),O(1,I3a,4,2,"ng-container",1),Q(2,"async"),H(),O(3,J3a,2,0,"aside",2),Q(4,"async"));a&2&&(B(1),D("ngIf",R(2,2,b.blockingIds$)),B(2),D("ngIf",R(4,4,b.thinking$)))},dependencies:[wx,sx,QI,pB,qB,$E,mN,W6,Fx],styles:["[_nghost-%COMP%]{display:block;padding:8px}.b-chip[_ngcontent-%COMP%]{margin:-3px 0}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}b-issues-table[_ngcontent-%COMP%] + .section-heading[_ngcontent-%COMP%]{margin-top:16px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 8px 8px 16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:240px;min-height:230px}\n/*# sourceMappingURL=issue_blocking.css.map */"],
changeDetection:0});
var Y6=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.expansionChange=new Iw;this.title=""};Y6.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||""};Y6.\u0275fac=function(a){return new (a||Y6)};
Y6.\u0275cmp=v({type:Y6,selectors:[["b-expandable-issue-title-cell"]],inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level"},outputs:{expansionChange:"expansionChange"},features:[Ac],decls:4,vars:5,consts:[[1,"flex-kids-x","align-items-center"],["mat-icon-button","","class","gmat-button medium expander",3,"collapsed","click",4,"ngIf"],["class","leaf",4,"ngIf"],[3,"issue"],["mat-icon-button","",1,"gmat-button","medium","expander",3,"click"],["name","arrow-dropdown","size",
"small"],[1,"leaf"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,K3a,2,3,"button",1),O(2,L3a,1,0,"div",2),J(3,"b-issue-title-cell",3),H());a&2&&(rf("margin-left",24*b.level,"px"),B(1),D("ngIf",b.expandable),B(1),D("ngIf",!b.expandable),B(1),D("issue",b.issue))},dependencies:[sx,uH,pB,Q6],styles:[".expander[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.expander.collapsed[_ngcontent-%COMP%]{transform:rotate(-90deg)}.leaf[_ngcontent-%COMP%]{width:32px;min-width:32px;display:inline-block}"],
changeDetection:0});
var Dmc=["theInput"],Z6=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new Iw;this.commit=new Iw};Z6.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};Z6.\u0275fac=function(a){return new (a||Z6)};
Z6.\u0275cmp=v({type:Z6,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&Zf(Dmc,5);if(a&2){var c;Yf(c=ag())&&(b.input=c.first)}},inputs:{value:"value",placeholder:"placeholder",readonly:"readonly",autoFocus:"autoFocus"},outputs:{valueChange:"valueChange",commit:"commit"},decls:2,vars:7,consts:[["type","text",3,"placeholder","disabled","ngModel","keydown.enter","ngModelChange"],["theInput",""]],template:function(a,b){a&1&&(G(0,"input",0,1),K("keydown.enter",function(c){b.readonly||b.commit.emit(c)})("ngModelChange",
function(c){return b.valueChange.emit(c)}),H());a&2&&(sf("readonly",b.readonly)("override",b.readonly),D("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Fg,by,hy],styles:["input[_ngcontent-%COMP%] {\n      margin-left: 2px;\n      width: 100%;\n    }\n    input[disabled][_ngcontent-%COMP%] {\n      background-color: unset;\n      color: unset;\n      border-color: transparent;\n      padding-left: 8px;\n    }"],changeDetection:0});
var Emc=[Y6,K6,N6,M6,O6,P6,Q6,R6,Z6,L6],$6=function(){};[].concat(u(Emc));[].concat(u(Emc));$6.\u0275fac=function(a){return new (a||$6)};$6.\u0275mod=rc({type:$6});$6.\u0275inj=fc({providers:[],imports:[[F2,Mx,wy,dI,FX,jG,DS,MM,eQ,lV,rT]]});
var a7=function(){};a7.\u0275fac=function(a){return new (a||a7)};a7.\u0275mod=rc({type:a7});a7.\u0275inj=fc({providers:[xmc],imports:[[Mx,VA]]});
var b7=function(){};b7.\u0275fac=function(a){return new (a||b7)};b7.\u0275mod=rc({type:b7});b7.\u0275inj=fc({imports:[[Rz,Ez,dz,Mx,wy,jG,dF,a7,N4,jX,bH,xy,WI,TZ,F2,zO,mP,YN,$6]]});
var c7=function(){};c7.\u0275fac=function(a){return new (a||c7)};c7.\u0275mod=rc({type:c7});c7.\u0275inj=fc({imports:[[dz,Ez,wy,xy,WI,jG,jX,bH,dF,IX,$N,mP,FX,YN,b7]]});
var d7=function(a,b,c,d){var e=this;this.issueFridge=a;this.relationshipsFridge=b;this.issuePicker=c;this.butterBar=d;this.issueDetailsRoute=sn;this.parentIds$=new T.ReplaySubject(1);this.parents$=this.parentIds$.pipe(Xe(function(f){return $J(e.issueFridge,f)}));this.isThinking$=new T.BehaviorSubject(!1);this.parentNames$=this.parents$.pipe(C(R3a));this.parentIdAndNames$=(0,T.combineLatest)([this.parentIds$,this.parentNames$])},Gmc=function(a){!0!==a.isThinking$.getValue()&&null!=a.issueId&&a.issuePicker.open({title:"Add Parent to b/"+
a.issueId,allowMultipleIds:!1},function(b){Fmc(a,a.issueId,b)})},Fmc=function(a,b,c){var d=r(c).next().value,e,f,h,k;me(function(q){if(1==q.nextAddress){e=d;if(null==e)return q.return();a.isThinking$.next(!0);return ne(q,a.relationshipsFridge.assignParentToOneIssue(e,b),2)}if(3!=q.nextAddress)return f=q.yieldResult,h=f.errors,(null==(k=h)?0:k.length)?(QK(a.butterBar,"Could not add parent"),q.jumpTo(3)):ne(q,et(a.issueFridge,b),3);a.isThinking$.next(!1);oe(q)})};
ki.Object.defineProperties(d7.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(null!=a){this.issueId=a.issueId;var b;this.parentIds$.next(null!=(b=a.parentIssueIds)?b:[])}}}});d7.\u0275fac=function(a){return new (a||d7)(F(yL),F(eM),F(MX),F(OK))};
d7.\u0275cmp=v({type:d7,selectors:[["related-parents-compact"]],inputs:{issue:"issue"},decls:8,vars:8,consts:[["class","inline-block margin-s-right",4,"ngIf","ngIfElse"],["mat-stroked-button","","type","button","title","Add a parent to this issue",1,"gmat-button","small","add",3,"click"],[1,"pos-fill","centered-inside"],["loadingNames",""],[1,"inline-block","margin-s-right"],["class","muted",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"muted"],[1,"subtle-link",3,"routerLink","onedevHovercardTrigger"],["issueHovercard",
"onedevHovercard"],[3,"onedevIsHovercardReady","issueId","childContextId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId","childContextId"],["cardBody",""],[1,"inline-block","margin-s-right","muted"]],template:function(a,b){a&1&&(O(0,P3a,3,2,"section",0),Q(1,"async"),G(2,"button",1),K("click",function(){return Gmc(b)}),Q(3,"async"),P(4," Add parent "),J(5,"b-spinner",2),H(),O(6,Q3a,2,0,"ng-template",null,3,gg));if(a&2){var c=Hf(7);D("ngIf",R(1,4,b.parentIdAndNames$))("ngIfElse",
c);B(2);sf("thinking",R(3,6,b.isThinking$))}},dependencies:[wx,sx,QI,EX,pN,qN,tN,rN,pB,mN,Fx],styles:["[_nghost-%COMP%] {\n      display: inline-block;\n    }\n    .add[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%] {\n      display: none;\n    }\n    .add.thinking[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%] {\n      display: flex; \n    }\n    .add.thinking[_ngcontent-%COMP%] {\n      color: transparent; \n    }\n    .issue-editor-false   [_nghost-%COMP%]     button.add {\n      display: none;\n    }"],
changeDetection:0});
var Hmc="focus-indicator title type team id assignee status menu".split(" "),Imc="focus-indicator drag-handle title type id assignee status menu".split(" ");
var e7=function(a,b,c,d){BI.call(this);var e=this;this.issueFridge=a;this.butterBar=b;this.analytics=c;this.refreshMonitor=d;this.blockerIssueIds$=new T.BehaviorSubject([]);this.tableColumns=Hmc;this.initialSort={active:"status",direction:"asc"};this.getMenuItems=function(f){return[{type:"action",label:"Remove blocker",action:function(){Jmc(e,f)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var f=r(e.blockerIssueIds$.value),
h=f.next();!h.done;h=f.next())et(e.issueFridge,h.value)}))};U(e7,BI);e7.\u0275dir=BI.\u0275dir;e7.prototype.ngOnInit=function(){};var Jmc=function(a,b){var c;me(function(d){if(1==d.nextAddress){bo(a.analytics,go.EDIT_ISSUE,"update","remove-blocker");Lt(d,2);var e=zL(a.issueFridge,2,2,a.issueId,[b]);return ne(d,e,4)}if(2!=d.nextAddress)return Mt(d,0);c=Nt(d);QK(a.butterBar,"Could not remove blocker "+b+". "+(xm(c)?ym(c):c));oe(d)})};
ki.Object.defineProperties(e7.prototype,{blockerIds:{configurable:!0,enumerable:!0,set:function(a){this.blockerIssueIds$.next(null!=a?a:[])}}});e7.\u0275fac=function(a){return new (a||e7)(F(yL),F(OK),F(SM),F(uL))};
e7.\u0275cmp=v({type:e7,selectors:[["b-blockers-table"]],inputs:{blockerIds:"blockerIds",issueId:"issueId"},features:[gf],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","tableColumns","menuItemFactory","initialSort"]],template:function(a,b){a&1&&(O(0,S3a,2,4,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.blockerIssueIds$))},dependencies:[sx,W6,Fx],encapsulation:2,changeDetection:0});
var f7=function(){this.EMPTY_BLOCKER_LIGHT=vjc;this.EMPTY_BLOCKER_DARK=wjc;this.EMPTY_CHILD_LIGHT=xjc;this.EMPTY_CHILD_DARK=yjc};f7.\u0275fac=function(a){return new (a||f7)};
f7.\u0275cmp=v({type:f7,selectors:[["b-issue-dependencies-onboarding-dialog"]],decls:16,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-kids-x","centered-inside"],["width","601","height","480","aria-hidden","true","alt","",1,"light-only",3,"src"],["width","601","height","480","aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"centered"],["href","http://go/wtdm-home#parent-child-relationship","target","_blank",1,"nowrap"],["mat-dialog-actions",""],["mat-flat-button",
"","color","primary","matDialogClose","","cdkFocusInitial","",1,"gmat-button","small"]],template:function(a,b){a&1&&(G(0,"h1",0),P(1,"Dependencies tab"),H(),G(2,"div",1)(3,"div",2),J(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),H(),G(8,"article")(9,"p",5),P(10," Children are used to separate a large work item (like a project) into smaller pieces. Blockers indicate that something prevents work from starting on this issue. "),G(11,"a",6),P(12,"Learn more"),H()()()(),G(13,"div",7)(14,"button",8),P(15,
"Close"),H()());a&2&&(B(4),D("src",b.EMPTY_CHILD_LIGHT,Kd),B(1),D("src",b.EMPTY_BLOCKER_LIGHT,Kd),B(1),D("src",b.EMPTY_CHILD_DARK,Kd),B(1),D("src",b.EMPTY_BLOCKER_DARK,Kd))},dependencies:[pB,IB,JB,KB,LB],styles:["article[_ngcontent-%COMP%]{text-align:center;max-width:30rem}img[_ngcontent-%COMP%]{flex-grow:1;max-width:45%;height:35.9400998336%}a[_ngcontent-%COMP%]:visited{color:#1a73e8;color:var(--link)}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.mat-dialog-actions[_ngcontent-%COMP%]{margin-bottom:8px}"],
changeDetection:0});
var g7=function(a){this.pathToAncestor=a},Xs=function(a){return new g7(a.split(">"))},Kmc=function(a,b){return new g7([].concat(u(a.pathToAncestor),[b]))};g7.prototype.hash=function(){return this.pathToAncestor.join(">")};g7.prototype.equals=function(a){return!!a&&Ei(this.pathToAncestor,a.pathToAncestor)};var Lmc=function(a,b){a=r(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=r(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
g7.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};g7.prototype.some=function(a){return this.pathToAncestor.some(a)};g7.prototype.toString=function(){return this.hash()};
ki.Object.defineProperties(g7.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor.length}},nodeId:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[this.size-1]}},parentNodeId:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[this.size-2]}},parentChain:{configurable:!0,enumerable:!0,get:function(){return new g7(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});
var h7=function(){var a=this;this.draftRows=new Map;this.changed$=new T.Subject;this.counter=0;this.createId=function(){return String(a.counter++)}};h7.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:Kmc(a,d),level:a.size-1,issue$:(0,T.of)(b),afterDraftId:null==c?void 0:c.afterDraftId,afterIssueId:null==c?void 0:c.afterIssueId,id:d,saving:!1,draftStartedAt:new Date};this.set(a,b);return b};
h7.prototype.get=function(a){var b;return null!=(b=this.draftRows.get(a.hash()))?b:[]};h7.prototype.remove=function(a){var b=a.ancestorChain.parentChain,c=this.get(b),d=c.filter(function(f){return f.id!==a.id});if(c.length!==d.length){c=r(d);for(var e=c.next();!e.done;e=c.next())e=e.value,e.afterDraftId===a.id&&(e.afterDraftId=a.afterDraftId);this.draftRows.set(b.hash(),d);this.changed$.next(this.draftRows)}};
var Mmc=function(a,b){return me(function(c){return c.return((0,T.firstValueFrom)(a.changed$.pipe(We(a.draftRows),C(function(d){return![].concat(u(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),De(Boolean),C(function(){}))))})};h7.prototype.isSaving=function(){return[].concat(u(this.draftRows.values())).flat().some(function(a){return a.saving})};h7.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(u(c),[b]));this.changed$.next(this.draftRows)};
var Nmc={defaultExpandedChildren:0,defaultExpansionLevel:0,maxExpansion:Infinity},Omc=function(){var a={defaultExpansionLevel:3,defaultExpandedChildren:10,maxExpansion:500};this.config=a=void 0===a?Nmc:a;this.expansionState={};this.changed$=new T.ReplaySubject(1)},Pmc=function(a,b){b=b.hash();return a.expansionState[b]},i7=function(a,b,c){b=b.hash();void 0===c?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},Qmc=function(a,b,c){var d=!1;c=r(c);for(var e=c.next();!e.done;e=
c.next()){e=e.value;var f=Kmc(b,e.nodeId);e.size<=a.config.defaultExpansionLevel&&void 0===Pmc(a,e)&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var h=r(Object.entries(a.expansionState)),k=h.next();!k.done;k=h.next()){k=r(k.value);var q=k.next().value;k=k.next().value;q=Xs(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new g7(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!Pmc(a,
b)){var w;a.expansionState[b.hash()]=null!=(w=a.config.defaultExpandedChildren)?w:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};
var j7=function(a,b,c,d,e){this.issueApi=a;this.activeSession=b;this.issueFridge=c;this.componentFridge=d;this.componentTemplatesFridge=e;this.currentUser=Tl(this.activeSession.getUserEmail())},Smc=function(a,b){var c,d,e;return me(function(f){if(1==f.nextAddress)return ne(f,Rmc(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(rta(d,e))})},Umc=function(a,b){var c;return me(function(d){if(1==d.nextAddress)return ne(d,Tmc(a,b),2);c=d.yieldResult;return d.return({snapshot:[c],
issueId:0,userData:void 0,aggregatedData:void 0,accessLimit:void 0,visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[]})})},Vmc=function(a,b,c){var d;return me(function(e){if(1==e.nextAddress)return ne(e,Tmc(a,b),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
j7.prototype.create=function(a){var b=this,c,d;return me(function(e){return 1==e.nextAddress?ne(e,b.issueApi.createIssue({snapshot:a}),2):3!=e.nextAddress?(c=e.yieldResult,d=c.issueId,ne(e,et(b.issueFridge,String(d)),3)):e.return({issueId:String(d)})})};
var Tmc=function(a,b){var c,d,e,f,h;return me(function(k){if(1==k.nextAddress)return ne(k,(0,T.firstValueFrom)(a.issueFridge.watch(b).pipe(De($k))),2);if(3!=k.nextAddress)return c=k.yieldResult,ne(k,Rmc(a,String(c.snapshot[0].componentId)),3);d=k.yieldResult;e=d.component;f=d.defaultTemplate;if(f){var q={};f.snapshot.priority&&(q.priority=f.snapshot.priority);f.snapshot.severity&&(q.severity=f.snapshot.severity);f.snapshot.type&&(q.type=f.snapshot.type)}else q={};if(c){var w={};c.snapshot[0].priority&&
(w.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(w.severity=c.snapshot[0].severity);c.snapshot[0].type&&(w.type=c.snapshot[0].type)}else w={};h=Object.assign({},{componentId:e.componentId},{inProd:!1,status:"NEW",isDeleted:!1,deletionReason:"DELETION_REASON_UNSPECIFIED",isArchived:!1,formattingMode:"UNSPECIFIED_FORMATTING_MODE",reporterUser:a.currentUser,ccUsers:[a.currentUser]},w,q,Wmc(e,f));return k.return(h)})},Wmc=function(a,b){var c=[],d,e,f={};a=r(null!=(e=null==(d=a.componentPathInfo)?
void 0:d.allCustomField)?e:[]);for(d=a.next();!d.done;f={$jscomp$loop$prop$customField$1705:f.$jscomp$loop$prop$customField$1705},d=a.next())if(f.$jscomp$loop$prop$customField$1705=d.value,f.$jscomp$loop$prop$customField$1705.required){e=void 0;d=null!=(e=f.$jscomp$loop$prop$customField$1705.typedDefaultValue)?e:new lJ({customFieldId:f.$jscomp$loop$prop$customField$1705.customFieldId});var h=e=void 0,k=void 0,q=null!=(k=null==(e=b)?void 0:null==(h=e.snapshot.customField)?void 0:h.find(function(w){return function(y){return y.customFieldId===
w.$jscomp$loop$prop$customField$1705.customFieldId}}(f)))?k:d;q&&c.push(Object.assign({},q))}return 0===c.length?{}:{customField:c}},Rmc=function(a,b){var c,d,e,f,h,k;return me(function(q){if(1==q.nextAddress)return ne(q,Promise.all([(0,T.firstValueFrom)(a.componentTemplatesFridge.defaultTemplate$(b)),(0,T.firstValueFrom)(a.componentFridge.watch(b).pipe(De($k)))]),2);c=q.yieldResult;d=r(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return({component:k,defaultTemplate:h})})};
j7.\u0275fac=function(a){return new (a||j7)(t(wK),t(pH),t(yL),t(bK),t(XK))};j7.\u0275prov=ec({token:j7,factory:j7.\u0275fac,providedIn:"root"});
var Zmc=function(a,b,c,d,e,f,h,k,q,w,y){var E=this;this.rootIssueId=a;this.analytics=b;this.butterBar=c;this.issueFridge=d;this.issuePicker=e;this.issueRelationshipsFridge=f;this.paths=h;this.router=k;this.issueCreationService=q;this.clearcut=w;this.refreshMonitor=y;this.expansion=new Omc;this.draftRows=new h7;this.refetchingAll$=new T.BehaviorSubject(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(Xe(function(){E.refetchingAll$.next(!0);var I=Pj(E.rows$),N=[];if(!I)return Promise.resolve();
N.push(HGb(E.issueRelationshipsFridge,{type:"descendants",ids:new Set([E.rootIssueId]),depth:3}));I=r(I);for(var L=I.next();!L.done;L=I.next())L=L.value,"data"===L.type&&N.push(et(E.issueFridge,L.id)),1<L.level&&N.push(et(E.issueRelationshipsFridge,L.id));return Promise.all(N).then(function(){E.refetchingAll$.next(!1)})}));this.rows$=(0,T.merge)(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,(0,T.scheduled)((0,T.of)({}),T.asapScheduler)).pipe(Xe(function(){return yJb(E.issueRelationshipsFridge,
E.rootIssueId,3)}),Xe(function(){for(var I=new Map,N=r(Object.entries(E.expansion.expansionState)),L=N.next();!L.done;L=N.next()){L=r(L.value);var S=L.next().value;L=L.next().value;S=Xs(S).nodeId;var Y=void 0;L=Math.max(L,null!=(Y=I.get(S))?Y:0);I.set(S,L)}return Xmc(E,I)}),C(function(I){return Ymc(E,I)}),Ue({refCount:!0,bufferSize:1}));this.rootIssue$=this.issueFridge.watch(this.rootIssueId).pipe(De($k));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new g7([this.rootIssueId]),
expandedCount:500,issue$:T.NEVER,hasChildren$:T.NEVER};this.supportsOneLineCreation=(0,T.firstValueFrom)(this.rootIssue$).then(function(I){return Rn(I.snapshot[0].componentId)}).then(function(I){return Smc(E.issueCreationService,I)});this.isOneLineCreationSupported=function(){return E.supportsOneLineCreation}},$mc=function(a,b,c){b=void 0===b?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k;me(function(q){switch(q.nextAddress){case 1:return d=b.nodeId,ne(q,(0,T.firstValueFrom)(a.issueFridge.watch(d)),2);
case 2:return(e=q.yieldResult)?ne(q,a.supportsOneLineCreation,3):q.return();case 3:f=q.yieldResult;if(!f){q.jumpTo(4);break}return ne(q,Umc(a.issueCreationService,d),5);case 5:return h=q.yieldResult,q.return(a.draftRows.create(b,h,c));case 4:var w=a.router,y=a.paths,E=y.createIssue,I=e.snapshot[0].componentId,N=e.issueId;var L=on("issues/:issueId/dependencies",{id:a.rootIssueId,params:void 0});return ne(q,bt(w,E.call(y,{component:I,parentIssueId:N,redirectUrl:L,afterIssueId:null==(k=c)?void 0:k.afterIssueId})),
6);case 6:return q.return()}})};
Zmc.prototype.addExistingChild=function(a){var b=this,c,d,e,f;me(function(h){if(1==h.nextAddress)return ne(h,(0,T.firstValueFrom)(null!=(d=null==(c=a)?void 0:c.issue$)?d:b.rootIssue$),2);e=h.yieldResult;if(!e)return h.return();f=String(e.issueId);b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0},function(k){return me(function(q){if(1==q.nextAddress){if(0===k.length)return q.return();b.assignParentToIssues(f,k.map(String));bo(b.analytics,go.EDIT_ISSUE,"add","existing-child-issue");
return ne(q,Go(),2)}a&&i7(b.expansion,a.ancestorChain,500);oe(q)})});oe(h)})};Zmc.prototype.saveDraft=function(a){var b=this,c;return me(function(d){if(1==d.nextAddress){if(a.saving||!a.title)return d.return();a.saving=!0;return ne(d,anc(b,a),2)}return(c=d.yieldResult)?d.return(bnc(b,a,c)):d.return()})};
var anc=function(a,b){var c,d,e,f;return me(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Lt(h,2),ne(h,Vmc(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;Mt(h,3);break;case 2:return f=Nt(h),QK(a.butterBar,"Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),h.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(0<k){var q=Math.min(k,108E5);qKb(a.analytics,"createIssue",q,"from-tree");bo(a.analytics,
go.CREATE_ISSUE,"createIssue","time-to-create-from-tree",q);q=a.clearcut;q.userLatency.record(k,"createIssue-fromTree",q.frontendAccessMode,q.environmentType)}i7(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var w=r(k.draftRows.values()),y=w.next();!y.done;y=w.next()){y=r(y.value);for(var E=y.next();!E.done;E=y.next())E=E.value,E.afterDraftId===b.id&&(E.afterIssueId=q)}k.changed$.next(k.draftRows);return h.return(d)}})},bnc=function(a,b,c){var d,e,f,h,k,q;return me(function(w){if(1==
w.nextAddress)return d=b.ancestorChain.parentNodeId,f=null!=(e=b.afterIssueId)?e:b.afterDraftId,void 0===f||"-1"===f?w.jumpTo(2):ne(w,Mmc(a.draftRows,f),2);if(4!=w.nextAddress)return ne(w,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=w.yieldResult;k=h.errors;(null==(q=k)?0:q.length)&&QK(a.butterBar,"Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);oe(w)})},Xmc=function(a,b,c){c=void 0===c?0:c;return(0,T.combineLatest)([a.rootIssueId].concat(u(b.keys())).map(function(d){return a.refetchingAll$.pipe(De(function(e){return!e}),
Xe(function(){return xJb(a.issueRelationshipsFridge,d)}))})).pipe(C(function(d){return d.filter(Boolean)}),Xe(function(d){var e=new Map(d.map(function(f){return[f.issueId,f]}));if(1===c)return(0,T.of)(e);d=cnc(a,e,c);d=new Map(d.map(function(f){return[f,10]}));return Xmc(a,d,c+1).pipe(C(function(f){var h=new Map(e);f=r(f.entries());for(var k=f.next();!k.done;k=f.next()){var q=r(k.value);k=q.next().value;q=q.next().value;h.set(k,q)}return h}))}))},cnc=function(a,b,c){var d=[];a=[{id:a.rootIssueId,
level:-1}];for(var e={};0<a.length;){e.$jscomp$loop$prop$current$1707=a.pop();e.$jscomp$loop$prop$current$1707.level===c&&d.push(e.$jscomp$loop$prop$current$1707.id);if(!(e.$jscomp$loop$prop$current$1707.level>c)){var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$current$1707.id))?void 0:f.relatedChildren)?h:[];a.push.apply(a,u(k.map(function(q){return function(w){return{id:w.targetIssueId,level:q.$jscomp$loop$prop$current$1707.level+1}}}(e))))}e={$jscomp$loop$prop$current$1707:e.$jscomp$loop$prop$current$1707}}return d},
Ymc=function(a,b){for(var c=[],d=[a.ROOT_ROW],e={};0<d.length;){e.$jscomp$loop$prop$parentRow$1709=d.pop();if("load-more-children"===e.$jscomp$loop$prop$parentRow$1709.type||"draft-issue"===e.$jscomp$loop$prop$parentRow$1709.type)c.push(e.$jscomp$loop$prop$parentRow$1709);else{e.$jscomp$loop$prop$parentRow$1709.id!==a.rootIssueId&&c.push(e.$jscomp$loop$prop$parentRow$1709);var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$parentRow$1709.id))?void 0:f.relatedChildren)?h:[];f=k.slice(0,
e.$jscomp$loop$prop$parentRow$1709.expandedCount);e.$jscomp$loop$prop$childrenLevel$1710=e.$jscomp$loop$prop$parentRow$1709.level+1;e.$jscomp$loop$prop$parentRow$1709.expandedCount&&f.length<k.length&&(h=Kmc(e.$jscomp$loop$prop$parentRow$1709.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.$jscomp$loop$prop$childrenLevel$1710,parentIssue$:e.$jscomp$loop$prop$parentRow$1709.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(w){var y=
Kmc(q.$jscomp$loop$prop$parentRow$1709.ancestorChain,w.targetIssueId),E=w.targetIssueId,I=q.$jscomp$loop$prop$childrenLevel$1710,N=a.issueRelationshipsFridge.watch(w.targetIssueId).pipe(C(hua));var L=q.$jscomp$loop$prop$childrenLevel$1710;var S=y.nodeId,Y=Pmc(a.expansion,y);if(void 0!==Y)L=Y;else if(1>L){var ka,ha;L=Math.min(10,null!=(ha=null==(ka=b.get(S))?void 0:ka.relatedChildren.length)?ha:0)}else L=0;return{type:"data",id:E,level:I,hasChildren$:N,ancestorChain:y,expandedCount:L,issue$:a.issueFridge.watch(w.targetIssueId)}}}(e));
d.push.apply(d,u(dnc(a,k,e.$jscomp$loop$prop$parentRow$1709.ancestorChain).reverse()))}e={$jscomp$loop$prop$parentRow$1709:e.$jscomp$loop$prop$parentRow$1709,$jscomp$loop$prop$childrenLevel$1710:e.$jscomp$loop$prop$childrenLevel$1710}}return c},dnc=function(a,b,c){var d=[].concat(u(b));c=a.draftRows.get(c);a={};c=r(c);for(var e=c.next();!e.done;a={$jscomp$loop$prop$draft$1713:a.$jscomp$loop$prop$draft$1713},e=c.next())a.$jscomp$loop$prop$draft$1713=e.value,b.some(function(f){return function(h){return h.id===
f.$jscomp$loop$prop$draft$1713.issueId}}(a))||(e=d.findIndex(function(f){return function(h){return h.id===f.$jscomp$loop$prop$draft$1713.afterDraftId||h.id===f.$jscomp$loop$prop$draft$1713.afterIssueId}}(a)),d.splice(-1===e?d.length:e+1,0,a.$jscomp$loop$prop$draft$1713));return d};
Zmc.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return me(function(k){if(1==k.nextAddress)return 0===b.length?k.return():ne(k,c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(q){return{issueId:q,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return QK(c.butterBar,"Could not add "+e+" as child of b/"+a+". "+(null==(h=f)?void 0:h.map(function(q){return ym(q)}))),k.return();oe(k)})};
var k7=function(a,b,c,d,e,f,h,k,q,w){this.analytics=a;this.butterBar=b;this.issueFridge=c;this.issuePicker=d;this.issueRelationshipsFridge=e;this.paths=f;this.router=h;this.issueCreationService=k;this.clearcut=q;this.refreshMonitor=w};k7.prototype.create=function(a){return new Zmc(a,this.analytics,this.butterBar,this.issueFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor)};
k7.\u0275fac=function(a){return new (a||k7)(t(SM),t(OK),t(yL),t(MX),t(eM),t(dL),t(Hk),t(j7),t(SO),t(uL))};k7.\u0275prov=ec({token:k7,factory:k7.\u0275fac,providedIn:"root"});
var l7=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new T.Subject;this.onRowsMoved$=new T.Subject;this.placeholder=this.rootElement.querySelector(".placeholder");this.insertionBar=this.rootElement.querySelector(".insertion-bar");this.dragPreviewTemplate=this.rootElement.querySelector(".drag-preview");this.activeDrag=!1;this.onDragOver=Jqb(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;
f=T3a(k<=.25*f?"top":k>=.75*f?"bottom":"middle",h);h=f.position;f=f.rowElement;switch(h){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var w=(k=null==(w=f.querySelector(".title-location"))?void 0:w.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;w=f.offsetLeft+w;k="after"===h?f.offsetTop+
f.offsetHeight:f.offsetTop;q=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=w+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-w+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};enc(e,f,h)}});this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var h,k=null==(h=f.target)?void 0:
h.closest("tr");if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var q;if("none"===(null==(q=e.currentReorderingGuide)?void 0:q.position))return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){fnc(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,gnc(e.rowSelectionModel),"mouse");fnc(e)})})};
l7.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(Ys(c));hnc(this.rowSelectionModel);inc(this);this.dragPreview=this.dragPreviewTemplate.cloneNode(!0);document.body.appendChild(this.dragPreview);this.dragPreview.style.display="block";this.dragPreview.style.top="-1000px";this.dragPreview.innerText=1===this.rowSelectionModel.selectedCount?"Moving 1 issue":"Moving "+this.rowSelectionModel.selectedCount+" issues";a.dataTransfer.setDragImage(this.dragPreview,
0,0);a.dataTransfer.dropEffect="move";a=this.rows.toArray().filter(function(d){return b.rowSelectionModel.isSelected(d.row.ancestorChain)});a=r(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var jnc=function(a,b){var c=b.row.ancestorChain.parentChain,d=a.rows.toArray().find(function(e){return c.equals(e.row.ancestorChain)});d&&a.reorder({position:"after",rowElement:d.element},[b.row.ancestorChain],"keyboard")},knc=function(a,b){var c=a.rows.toArray(),d=c.findIndex(function(f){return f.row.ancestorChain.equals(b.row.ancestorChain)});if(-1!==d&&0!==d){c=c.slice(0,d).reverse();c=r(c);for(d=c.next();!d.done;d=c.next()){d=d.value;if("load-more-children"===d.row.type){d=d.element.previousElementSibling;
if(!d)continue;var e={position:"before",rowElement:d};break}if(d.row.ancestorChain.parentChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"after",rowElement:d.element};break}if(d.row.ancestorChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"current",rowElement:d.element};break}}a.reorder(e,[b.row.ancestorChain],"keyboard")}};
l7.prototype.moveUp=function(a){var b=a.element.previousElementSibling;if(b){if("load-more-children"===b.dataset.type){b=b.previousElementSibling;if(!b)return;b={position:"before",rowElement:b}}else b={position:"before",rowElement:b};this.reorder(b,[a.row.ancestorChain],"keyboard")}};
l7.prototype.moveDown=function(a){var b=this.rows.toArray();if(b=b.slice(b.findIndex(function(d){return d.row.ancestorChain.equals(a.row.ancestorChain)})+1).find(function(d){return d.row.level<=a.row.level})){var c=b.element.nextElementSibling;"load-more-children"===b.row.type?jnc(this,a):(b=c&&b.row.level<Ws(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard"))}};
l7.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=null==(b=a.target)?void 0:b.closest("tr");if(c){var d=Ys(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":jnc(this,b);break;case "ArrowRight":knc(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
l7.prototype.reorder=function(a,b,c){var d=this;if(a){var e=Ys(a.rowElement),f=void 0,h=e;switch(a.position){case "current":h=e;f={parentId:e.nodeId};break;case "before":case "after":h=e.parentChain,f={parentId:e.parentNodeId,position:{issueId:e.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&f&&d.onRowsMoved$.next({movedRows:b,insertAt:f,parentAncestorChain:h,origin:c})})}};
var fnc=function(a){for(var b=r(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=r(a.rootElement.querySelectorAll("tr.nodrop"));for(c=b.next();!c.done;c=b.next())c.value.classList.remove("nodrop");a.rowSelectionModel.clear();a.placeholder.style.display="none";a.insertionBar.style.display="none";var d;null==(d=a.updatingNoDropRows)||d.unsubscribe();var e,f;null==(e=a.dragPreview)||null==(f=e.parentElement)||f.removeChild(a.dragPreview);
a.activeDrag=!1},enc=function(a,b,c){if("current"!==c)a.longHoveredRow=void 0;else if(!b.classList.contains("dragging")&&!b.classList.contains("nodrop"))if(!a.longHoveredRow||a.longHoveredRow.row!==b)a.longHoveredRow={row:b,enterTime:Date.now()};else if(1E3<=Date.now()-a.longHoveredRow.enterTime&&!a.longHoveredRow.emitted){var d=a.rows.toArray().find(function(e){return Ys(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},inc=function(a){var b;
null==(b=a.updatingNoDropRows)||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(We(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.row.ancestorChain.some(function(f){return d.has(f)})&&e.element.classList.add("nodrop")})};
var m7=function(a){BI.call(this);var b=this;this.analytics=a;this.dragStarted$=new T.Subject;this.onRowsMoved$=new T.Subject;(0,T.merge)(this.dragStarted$,this.onRowsMoved$).pipe(moa(),Ye(this.destroyed$)).subscribe(function(c){var d=c[c.length-1].timestamp-c[0].timestamp;c=Cj(c.map(function(e){return e.event.origin}),Bj);c=1===c.length?c[0]:"mixed";bo(b.analytics,go.EDIT_ISSUE,"reorderChildren",c);qKb(b.analytics,"reorderChildren",d,c)})};U(m7,BI);m7.\u0275dir=BI.\u0275dir;
m7.\u0275fac=function(a){return new (a||m7)(t(SM))};m7.\u0275prov=ec({token:m7,factory:m7.\u0275fac,providedIn:"root"});
var n7=function(){this.changed$=new T.Subject;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};n7.prototype.init=function(a){this.visibleRows=a};n7.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var w4a=function(a,b){var c=b.hash(),d,e=null!=(d=a.isSelectedObservableMap.get(c))?d:a.changed$.pipe(We(a.selectedRowHashes),C(function(f){return f.has(b.hash())}),Le(),Ue({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
n7.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};n7.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var hnc=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=r(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=Xs(e.value);for(var f=r(b),h=f.next();!h.done;h=f.next())h=h.value,Lmc(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},gnc=function(a){var b=a.visibleRows.toArray().map(function(f){return f.row});b=new Map(b.filter(function(f){return"data"===f.type}).map(function(f){return[f.ancestorChain.hash(),
f]}));var c=new Set([].concat(u(a.selectedRowHashes.values())).map(function(f){return Xs(f)}).map(function(f){return f.nodeId})),d=[];a=r(a.selectedRowHashes.values());for(var e=a.next();!e.done;e=a.next())(e=b.get(e.value))&&(e.ancestorChain.parentChain.some(function(f){return c.has(f)})||d.push(e.ancestorChain));return d};
ki.Object.defineProperties(n7.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(u(this.selectedRowHashes)).map(function(a){return Xs(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});
var lnc=function(){return["focus-indicator","load-more-children"]},mnc={type:"data",id:"",issue$:T.NEVER,hasChildren$:T.NEVER,ancestorChain:new g7([]),level:0,expandedCount:0},o7=function(a,b,c,d,e,f,h,k,q,w,y,E){BI.call(this);var I=this;this.issueRelationshipsFridge=a;this.router=b;this.butterBar=c;this.analytics=d;this.issueArchiveService=e;this.ngZone=f;this.elementRef=h;this.domSafe=q;this.reorderingSessionTracker=w;this.cdr=y;this.relationsTableModelFactory=E;this.tableColumns=Imc;this.trackBy=
function(N,L){return L.ancestorChain.hash()+L.type};this.isLoadMoreRow=function(N,L){return"load-more-children"===L.type};this.isDataRow=function(N,L){return"data"===L.type};this.isDraftRow=function(N,L){return"draft-issue"===L.type};this.selectionModel=new n7;this.correctedDisplayedRows=new bg;this.TITLE_FIXED_OFFSET_PX=42;this.rowDirectiveMap=new Map;this.getRowIndex=function(N){var L;return(null!=(L=Pj(I.rows$))?L:[]).findIndex(function(S){return Vs(S,N)})};this.showError=function(N){return function(L){QK(I.butterBar,
N+". "+(xm(L)?ym(L):L))}};this.subscriptions.add(cZ(k,function(){return I.tableModel.draftRows.isSaving()||I.issueRelationshipsFridge.isSaving()},!1))};U(o7,BI);o7.\u0275dir=BI.\u0275dir;
o7.prototype.ngOnInit=function(){var a=this;this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId);this.rows$=(0,T.scheduled)([this.tableModel.rows$,(0,T.of)([mnc])],T.asyncScheduler).pipe(xe(1),Ue({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(Xe(function(c){return(0,T.combineLatest)(c.filter(function(d){return"data"===d.type}).map(function(d){return d.issue$}))}),Je(0,T.asapScheduler));this.subscriptions.add(b.subscribe(function(){a.cdr.detectChanges()}));this.rowReorderingModel=
new l7(this.elementRef.nativeElement,this.correctedDisplayedRows,this.ngZone,this.selectionModel);this.subscriptions.add(this.rowReorderingModel.onLongHover$.subscribe(function(c){var d=c.row;"load-more-children"===d.type?r4a(a,d):"data"===d.type&&(c=a.tableModel.expansion,d=d.ancestorChain,Pmc(c,d)||i7(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;return me(function(e){if(1==e.nextAddress)return CJb(a.issueRelationshipsFridge,c.insertAt,c.movedRows.map(function(f){return{issueId:f.nodeId,
parentId:f.parentNodeId}})).catch(a.showError("Unable to reorder issues")),Qmc(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),ne(e,(0,T.firstValueFrom)(a.displayedRows.changes.pipe(C(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.ancestorChain.nodeId===c.movedRows[0].nodeId&&h.row.ancestorChain.parentNodeId===c.insertAt.parentId})}),De(Boolean),Fe(6E4))),2);d=e.yieldResult;d.focus();oe(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
o7.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);(0,T.combineLatest)([this.rows$,this.displayedRows.changes]).pipe(Ye(this.destroyed$)).subscribe(function(b){b=r(b).next().value;a.rowDirectiveMap=new Map(a.displayedRows.map(function(c){return[c.row.ancestorChain.hash(),c]}));b=b.map(function(c){return a.rowDirectiveMap.get(c.ancestorChain.hash())}).filter(Boolean);a.correctedDisplayedRows.reset(b);Xf(a.correctedDisplayedRows)});this.focusManager=bA(new qmc(this.correctedDisplayedRows,
Vs))};o7.prototype.toggleExpansion=function(a){i7(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};o7.prototype.navigateToIssue=function(a,b){!b.id||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(bo(this.analytics,go.EDIT_ISSUE,"navigate","to-child-issue"),b=pn(b.id),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?wP(this.domSafe,b):bt(this.router,b))};
var r4a=function(a,b){var c;return me(function(d){if(1==d.nextAddress)return c=a.getRowIndex(b),i7(a.tableModel.expansion,b.ancestorChain.parentChain,500),ne(d,Go(),2);a.focusManager.setActiveItem(c);oe(d)})};
o7.prototype.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(c){b.navigateToIssue(c,a)},title:"Go to issue",icon:"arrow-forward"},{type:"action",label:"Create child",action:function(){return me(function(c){if(1==c.nextAddress)return ne(c,Go(),2);nnc(b,a);oe(c)})},title:"Create child",icon:"add",hintText:"Shift+Enter"},{type:"action",label:"Add child",action:function(){b.addExistingChild(a)},title:"Add existing issue as child",icon:"add"},{type:"action",
label:"Create sibling",action:function(){return me(function(c){if(1==c.nextAddress)return ne(c,Go(),2);onc(b,a);oe(c)})},title:"Create sibling",icon:"add",hintText:"Enter"},{type:"submenu",label:"Reorder",icon:"reorder_24px",items:[{type:"action",label:"Move up",action:function(){b.rowReorderingModel.moveUp(b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Move up",icon:"arrow-up",hintText:"ctrl+up"},{type:"action",label:"Move down",action:function(){b.rowReorderingModel.moveDown(b.rowDirectiveMap.get(a.ancestorChain.hash()))},
title:"Move down",icon:"arrow-down",hintText:"ctrl+down"},{type:"action",label:"Indent",action:function(){knc(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"ctrl+right"},{type:"action",label:"Unindent",action:function(){jnc(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Unindent",icon:"arrow-left",hintText:"ctrl+left"}]},{type:"action",label:"Unlink from parent",action:function(){b.unlinkFromParent(a)},
title:"Unlink from parent",icon:"link-off"},{type:"action",label:"Archive",action:function(){pnc(b,a)},title:"Archive issue",icon:"archive_24px"}]};
o7.prototype.saveDraft=function(a){var b=this,c,d;return me(function(e){if(1==e.nextAddress){if(!a.title)return e.return();b.tableModel.saveDraft(a);return ne(e,(0,T.firstValueFrom)(b.displayedRows.changes.pipe(C(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.id===a.issueId})}),De(Boolean),Fe(6E4))),2)}c=e.yieldResult;Vs(null==(d=b.focusManager.activeItem)?void 0:d.row,a)&&b.focusManager.setActiveItem(c);oe(e)})};
var z4a=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;Vs(null==(c=a.focusManager.activeItem)?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},nnc=function(a,b){$mc(a.tableModel,null==b?void 0:b.ancestorChain,{afterIssueId:"-1"})},onc=function(a,b){"data"===b.type?$mc(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):$mc(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};o7.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var qnc=function(a){return a.tableColumns.map(function(b){return"title"===b?"editable-title":"menu"===b?"save":"id"===b?"empty-id":b})};o7.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
o7.prototype.onRowKeydown=function(a,b){var c=this,d;return me(function(e){if(1==e.nextAddress){c.focusManager.onKeydown(b);c.rowReorderingModel.onKeydown(b);switch(b.keyCode){case 39:case 37:if(b.ctrlKey)return e.return();"data"===a.type&&(c.toggleExpansion(a),b.preventDefault());"load-more-children"===a.type&&(r4a(c,a),b.preventDefault());break;case 13:return e.jumpTo(2)}return e.jumpTo(0)}if(4!=e.nextAddress)return"BUTTON"!==b.target.tagName||b.shiftKey||b.metaKey?ne(e,c.tableModel.isOneLineCreationSupported(),
4):e.return();(d=e.yieldResult)&&("data"===a.type||"draft-issue"===a.type&&a.saving)&&(b.shiftKey&&"data"===a.type?nnc(c,a):onc(c,a),b.preventDefault());return e.jumpTo(0)})};
var pnc=function(a,b){var c,d;me(function(e){if(1==e.nextAddress)return bo(a.analytics,go.EDIT_ISSUE,"update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),ne(e,(0,T.firstValueFrom)(a.rows$.pipe(C(function(f){return!f.find(function(h){return"data"===h.type&&h.id===b.id})}),De(Boolean),Fe(6E4))),2);Vs(null==(d=a.focusManager.activeItem)?void 0:d.row,b)&&a.focusManager.setActiveItem(c);oe(e)})};
o7.prototype.unlinkFromParent=function(a){var b=this,c,d;return me(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;bo(b.analytics,go.EDIT_ISSUE,"update","unlink-child-issue");return ne(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};o7.\u0275fac=function(a){return new (a||o7)(F(eM),F(Hk),F(OK),F(SM),F(o6),F(ef),F(nd),F(dZ),F(vP),F(m7),F(uI),F(k7))};
o7.\u0275cmp=v({type:o7,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&Zf(S6,5);if(a&2){var c;Yf(c=ag())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId"},features:[Lf([uI]),gf],decls:46,vars:10,consts:[["mat-table","","multiTemplateDataRows","",1,"full-width",3,"dataSource","trackBy"],["matColumnDef","focus-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","drag-handle"],["mat-cell","","draggable",
"true","tabindex","-1",3,"click","dragstart",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",4,"matCellDef"],["matColumnDef","empty-id"],["matColumnDef","title"],["matColumnDef","type"],["matColumnDef","assignee"],["matColumnDef","status"],["matColumnDef","team"],["matColumnDef","menu"],["matColumnDef","save"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","load-more-children"],["mat-cell","",3,"padding-left",4,"matCellDef"],["matColumnDef","editable-title"],["mat-header-row",
"",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","selected","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",3,"row","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","","class","draft","cdkTrapFocus","",3,"row","keydown","keydown.escape","componentBlur","focusin",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[1,"drag-preview"],[1,"placeholder"],[1,"insertion-bar"],
["mat-header-cell",""],["tabindex","-1","mat-cell","",3,"click"],["focusIndicator",""],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart"],["dragHandle",""],["svgIcon","drag-indicator",1,"icon-s"],["mat-cell",""],[3,"id"],[3,"issue","expandable","expanded","level","expansionChange"],[3,"issue"],["buttonLabel","More options",3,"menuItems","click"],["mat-cell","",1,"text-center"],["mat-icon-button","","class","gmat-button medium","aria-label","Save",3,"matTooltip","click",4,"ngIf",
"ngIfElse"],["saving",""],["mat-icon-button","","aria-label","Save",1,"gmat-button","medium",3,"matTooltip","click"],["svgIcon","save",1,"icon-s"],[3,"isReady"],["format","flat",3,"onAction"],[1,"title-location"],["placeholder","Start typing the title...",3,"value","readonly","valueChange","commit"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"row","click","mouseup","focusin","keydown"],["mat-row","",3,"row","focusin","keydown"],["mat-row","","cdkTrapFocus","",
1,"draft",3,"row","keydown","keydown.escape","componentBlur","focusin"]],template:function(a,b){a&1&&(G(0,"table",0),xf(1,1),O(2,U3a,1,0,"th",2),O(3,V3a,2,0,"td",3),yf(),xf(4,4),O(5,W3a,1,0,"th",2),O(6,X3a,3,0,"td",5),yf(),xf(7,6),O(8,Y3a,2,0,"th",2),O(9,Z3a,2,1,"td",7),yf(),xf(10,8),O(11,$3a,2,0,"th",2),O(12,a4a,2,0,"td",7),yf(),xf(13,9),O(14,b4a,2,0,"th",2),O(15,c4a,4,8,"td",7),yf(),xf(16,10),O(17,d4a,2,0,"th",2),O(18,e4a,3,3,"td",7),yf(),xf(19,11),O(20,f4a,2,0,"th",2),O(21,g4a,3,3,"td",7),yf(),
xf(22,12),O(23,h4a,2,0,"th",2),O(24,i4a,3,3,"td",7),yf(),xf(25,13),O(26,j4a,2,0,"th",2),O(27,k4a,3,3,"td",7),yf(),xf(28,14),O(29,l4a,1,0,"th",2),O(30,m4a,2,1,"td",7),yf(),xf(31,15),O(32,n4a,1,0,"th",2),O(33,q4a,4,2,"td",16),yf(),xf(34,17),O(35,s4a,6,7,"td",18),yf(),xf(36,19),O(37,t4a,2,0,"th",2),O(38,u4a,2,4,"td",18),yf(),O(39,v4a,1,0,"tr",20),O(40,x4a,2,8,"tr",21),O(41,y4a,1,4,"tr",22),O(42,A4a,1,2,"tr",23),H(),J(43,"div",24)(44,"div",25)(45,"div",26));a&2&&(D("dataSource",b.rows$)("trackBy",b.trackBy),
B(39),D("matHeaderRowDef",b.tableColumns),B(1),D("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(1),D("matRowDefColumns",Mf(9,lnc))("matRowDefWhen",b.isLoadMoreRow),B(1),D("matRowDefColumns",qnc(b))("matRowDefWhen",b.isDraftRow))},dependencies:[Fy,sx,pB,LE,K4,C4,G4,D4,B4,H4,E4,F4,I4,J4,$E,QZ,B2,yO,Y6,K6,M6,O6,P6,R6,Z6,lP,dP,mN,S6,Fx],styles:['.mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%]{width:32px}.mat-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-focus-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-row[_ngcontent-%COMP%]:focus-within   .mat-column-focus-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]{box-sizing:border-box;cursor:move;outline-width:0;padding:0px;width:18px}tr.mat-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:32px;opacity:.2}.mat-header-cell.mat-column-title[_ngcontent-%COMP%]{padding-left:36px;min-width:250px}.insertion-bar[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);display:none;height:2px;pointer-events:none;position:absolute}.insertion-bar[_ngcontent-%COMP%]::before{content:"";border-bottom:5px solid transparent;border-left:8px solid;border-left-color:#1a73e8;border-left-color:var(--primary-btn-bg);border-top:5px solid transparent;display:block;height:0;position:relative;top:-4px;width:0}.placeholder[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);border-radius:4px;box-sizing:border-box;display:none;opacity:.7;pointer-events:none;position:absolute;top:0;width:100%}.drag-preview[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--inverse-text);border-radius:4px;display:none;padding:7px 13px;position:absolute}tr.dragging[_ngcontent-%COMP%], tr.nodrop[_ngcontent-%COMP%]{opacity:.5}[_nghost-%COMP%]{position:relative;padding-bottom:5px;overflow-y:hidden}'],
changeDetection:0});
var p7=function(a,b,c,d,e,f){var h=this;this.paramsService=a;this.issueRelationshipsFridge=b;this.issueFridge=c;this.codeMentions=d;this.issueApi=e;this.eventsForIssue=f;this.id$=uM(this.paramsService,"issueId").pipe(Ke(1E3),Le());this.issue$=this.id$.pipe(Xe(function(k){return h.issueFridge.watch(k)}));this.issueEvents$=this.id$.pipe(Xe(function(k){return h.eventsForIssue.watch(k)}),C(function(k){var q;return null!=(q=null==k?void 0:k.events)?q:[]}));this.blockerIssueIds$=this.issue$.pipe(C(function(k){var q;
return null!=(q=null==k?void 0:k.snapshot[0].blockedByIssueId)?q:[]}),Le(Ei));this.blockedIssueIds$=this.issue$.pipe(C(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockingIssueId)?q:[]}),Le(Ei));this.childrenIds$=this.id$.pipe(Xe(function(k){return h.issueRelationshipsFridge.watch(k)}),C(function(k){var q;return null!=(q=null==k?void 0:k.relatedChildren.map(function(w){return w.targetIssueId}))?q:[]}));this.duplicateIssueIds$=this.issue$.pipe(C(function(k){var q;return null!=(q=
null==k?void 0:k.snapshot[0].duplicateIssueId)?q:[]}),Le(Ei));this.blockersDualCount$=(0,T.combineLatest)([this.id$,this.blockerIssueIds$]).pipe(Xe(function(k){var q=r(k);k=q.next().value;q=q.next().value;return rnc(h,k,q,"BLOCKED_BY")}),Ue({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(C(Zs),Ue({bufferSize:1,refCount:!0}));this.blockedDualCount$=(0,T.combineLatest)([this.id$,this.blockedIssueIds$]).pipe(Xe(function(k){var q=r(k);k=q.next().value;q=q.next().value;
return rnc(h,k,q,"BLOCKING")}),Ue({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(C(Zs),Ue({bufferSize:1,refCount:!0}));this.childrenDualCount$=(0,T.combineLatest)([this.id$,this.childrenIds$]).pipe(Xe(function(k){var q=r(k);k=q.next().value;q=q.next().value;return rnc(h,k,q,"CHILDREN")}),Ue({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=this.childrenDualCount$.pipe(C(Zs),Ue({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=(0,T.combineLatest)([this.childrenDualCount$,
this.blockersDualCount$]).pipe(C(function(k){var q=r(k);k=q.next().value;q=q.next().value;return{open:at(k.open.count+q.open.count),total:at(k.total.count+q.total.count)}}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(C(Zs),Ue({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=(0,T.combineLatest)([this.id$,this.duplicateIssueIds$]).pipe(Xe(function(k){var q=r(k);k=q.next().value;q=q.next().value;return rnc(h,k,q,"DUPLICATE")}),Ue({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=
this.duplicatesDualCount$.pipe(C(function(k){return k.total}),C($s),Ue({bufferSize:1,refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(C(function(k){var q;return null!=(q=null==k?void 0:k.relatedLinks)?q:[]}),C(function(k){return at(k.length)}),C($s),Ue({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(De($k),C(Number),Xe(function(k){return xlc(h.codeMentions,k)}),C(function(k){var q,w;return at(null!=(w=null==(q=k.mentions)?void 0:q.totalMentions)?w:0)}),C($s),Ue({bufferSize:1,
refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(C(function(k){return at(k.filter(function(q){return q.isMajorEvent}).length)}),C($s),Ue({bufferSize:1,refCount:!0}))},rnc=function(a,b,c,d){return b&&0!==c.length?99<c.length?a.issueApi.listIssues(C4a(b,d),{p:1,count:100}).then(function(e){e=e.issues.filter(An).filter(Bn).length;return{open:at(e),total:at(c.length)}}):$J(a.issueFridge,c).pipe(C(function(e){return{open:at(e.filter(An).filter(Bn).length),total:at(c.length)}})):(0,T.of)({open:{count:0,
exact:!0},total:{count:0,exact:!0}})};p7.\u0275fac=function(a){return new (a||p7)(t(tM),t(eM),t(yL),t(r6),t(wK),t(NL))};p7.\u0275prov=ec({token:p7,factory:p7.\u0275fac,providedIn:"root"});
var q7=function(a,b,c,d,e,f,h,k,q,w,y,E,I){BI.call(this);var N=this;this.brain=a;this.issuePicker=b;this.issueRelationshipsFridge=c;this.issueFridge=d;this.butterBar=e;this.router=f;this.routePerformance=h;this.element=k;this.analytics=q;this.issuePermissionService=w;this.activeSession=y;this.counts=E;this.matDialog=I;this.issueDetailsRoute=sn;this.EMPTY_BLOCKER_LIGHT=vjc;this.EMPTY_BLOCKER_DARK=wjc;this.EMPTY_CHILD_LIGHT=xjc;this.EMPTY_CHILD_DARK=yjc;this.isThinking$=(0,T.combineLatest)([this.issueFridge.saving$,
this.issueRelationshipsFridge.saving$]).pipe(C(function(L){return L.some(Boolean)}));this.issueId$=this.brain.id$.pipe(De($k),C(Rn));this.issue$=this.brain.issueJs$.pipe(De($k));this.blockerIds$=this.issue$.pipe(C(function(L){var S,Y,ka;return null!=(ka=null==(S=L.issue.snapshot[0])?void 0:null==(Y=S.blockedByIssueId)?void 0:Y.map(String))?ka:[]}));this.parentIds$=this.issue$.pipe(C(function(L){var S;return null!=(S=L.issue.parentIssueIds)?S:[]}));this.blockerIssues$=this.blockerIds$.pipe(Xe(function(L){return $J(N.issueFridge,
L)}));this.blockersCount$=this.blockerIssues$.pipe(C(function(L){return L.filter(Bn).length}));this.childrenIds$=this.issueId$.pipe(Xe(function(L){return N.issueRelationshipsFridge.watch(L)}),C(function(L){var S;return null!=(S=null==L?void 0:L.relatedChildren.map(function(Y){return Y.targetIssueId}))?S:[]}));this.totalDaysOpen$=this.issue$.pipe(C(function(L){var S,Y;return(null==(S=yn(L))?void 0:null==(Y=S.effort)?void 0:xl(Y,4))||0}));this.totalDaysComplete$=this.issue$.pipe(C(function(L){var S,
Y;return(null==(S=yn(L))?void 0:null==(Y=S.effort)?void 0:xl(Y,5))||0}));this.unarchivedChildIssueCount$=this.childrenIds$.pipe(C(function(L){return L.length}));this.isTotalEstimatesEnabled=rH(this.activeSession,"enableAggregationRules");this.totalDaysCount$=(0,T.combineLatest)([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(C(function(L){var S=r(L);L=S.next().value;S=S.next().value;return L+S}));this.totalDaysDisplayPercent$=U4a(this.totalDaysComplete$,this.totalDaysCount$);(0,T.combineLatest)([this.blockersCount$,
this.unarchivedChildIssueCount$]).pipe(C(function(L){var S=r(L);L=S.next().value;S=S.next().value;return L+S}));this.progressHovercardContent$=(0,T.combineLatest)([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(C(function(L){var S=r(L);L=S.next().value;var Y=S.next().value;S=S.next().value;return V4a(Math.round(100*L)/100)+" completed | "+V4a(Math.round(100*Y)/100)+" open | "+S+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=
new T.Subject;(0,T.firstValueFrom)(Vp("b-issue-relations-table tr .mat-column-title span",this.element.nativeElement).pipe(Ye((0,T.merge)(this.destroyed$,this.rowCreated$)))).then(function(){var L=function(){g7b(N.routePerformance,"issue-details-w-tree")};requestAnimationFrame(L);setTimeout(L)}).catch(function(){})};U(q7,BI);q7.\u0275dir=BI.\u0275dir;
var R4a=function(a){var b,c;return me(function(d){if(1==d.nextAddress)return bo(a.analytics,go.EDIT_ISSUE,"update","add-blocker"),ne(d,(0,T.firstValueFrom)(a.issue$),2);b=d.yieldResult;c=b.issue.issueId;a.issuePicker.open({title:"Add Blockers of "+c,allowMultipleIds:!0},function(e){snc(a,c,e)});oe(d)})};q7.prototype.addChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||a.addExistingChild()};q7.prototype.createChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||nnc(a)};
var snc=function(a,b,c){var d;me(function(e){if(1==e.nextAddress){if(0===c.length)return e.return();Lt(e,2);var f=c.map(String);f=zL(a.issueFridge,1,2,String(b),f);return ne(e,f,4)}if(2!=e.nextAddress)return Mt(e,0);d=Nt(e);QK(a.butterBar,"Could not add "+c+" as blockers of "+b+". "+d);oe(e)})};q7.\u0275fac=function(a){return new (a||q7)(F(mO),F(MX),F(eM),F(yL),F(OK),F(Hk),F(Z_),F(nd),F(SM),F(oO),F(pH),F(p7),F(HB))};
q7.\u0275cmp=v({type:q7,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&Zf(o7,5);if(a&2){var c;Yf(c=ag())&&(b.table=c.first)}},features:[gf],decls:46,vars:34,consts:[[1,"pos-rel","carded","margined-s","bg-main","flex-kids-y","gap-l"],[1,"parents"],[1,"table-header","muted","inline-block"],[3,"issue"],[1,"status","pos-tr","padded-s","flex-kids-x","gap-s","align-items-center"],[4,"ngIf"],["mat-icon-button","","matTooltip","Learn more","aria-label","Open dialog to learn more about the Dependencies tab",
1,"small",3,"click"],["svgIcon","info",1,"icon-s"],[1,"table-header","blockers-count","flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status","tabindex","0","matTooltip","Use blockers for issues that are preventing this issue from being resolved.",1,"b-chip","nowrap","bad","squared","xs","keep-focus-ring"],["svgIcon","slo-status-no-data",1,"icon-xxs"],["noBlockersState",""],[1,"table-header","child-issue-header","flex-kids-x","align-items-center"],
["role","status","tabindex","0","matTooltip","Use child issues to break down this issue into smaller units of work.",1,"b-chip","nowrap","squared","xs","keep-focus-ring"],["svgIcon","account_tree_24px",1,"icon-xxs"],["class","progress-header",4,"ngIf"],[3,"hidden","rootIssueId",4,"ngIf"],["addBlocker",""],["addChildren",""],[4,"ngTemplateOutlet"],[3,"issueId","blockerIds",4,"ngIf","ngIfElse"],[3,"issueId","blockerIds"],[1,"muted"],[1,"emoji"],[1,"progress-header"],[1,"flex-kids-x","align-items-center"],
[1,"margin-s-right"],[1,"label"],[1,"progress","margin-s-right",3,"onedevHovercardTrigger"],[1,"completion"],["progressHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","progress-hover-card"],["svgIcon","info","aria-hidden","false","aria-label","The progress of child issues takes into consideration all child issues and descendant issues\n                  which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is\n                  not reflected in the progress bar.",
1,"icon-s",3,"onedevHovercardTrigger"],["effortHovercard","onedevHovercard"],[1,"onedev-hovercard-body"],[3,"rootIssueId"],["size","small","format","fill","title","Mark an existing issue as blocker.",1,"add",3,"disabled","onAction"],["size","small","format","fill","title","Create an issue as a child.",1,"add",3,"disabled","onAction"],["size","small","title","Add an existing issue as a child.",1,"add",3,"disabled","onAction"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"section",1)(2,"h4",2),P(3,
"Parents:"),H(),P(4,"\u00a0"),J(5,"related-parents-compact",3),Q(6,"async"),H(),G(7,"p",4),O(8,D4a,1,0,"b-spinner",5),Q(9,"async"),G(10,"button",6),K("click",function(){b.matDialog.open(f7,{maxWidth:"1300px",width:"90%"})}),J(11,"mat-icon",7),H()(),G(12,"section")(13,"div",8)(14,"h4",9)(15,"div",10),J(16,"mat-icon",11),H(),P(17),Q(18,"async"),H(),O(19,F4a,2,1,"ng-container",5),Q(20,"async"),H(),O(21,H4a,3,4,"ng-container",5),Q(22,"async"),O(23,J4a,6,1,"ng-template",null,12,gg),H(),G(25,"section")(26,
"div",13)(27,"h4",9)(28,"div",14),J(29,"mat-icon",15),H(),P(30),Q(31,"async"),H(),O(32,L4a,2,1,"ng-container",5),Q(33,"async"),Q(34,"async"),H(),O(35,M4a,28,24,"div",16),Q(36,"async"),Q(37,"async"),O(38,N4a,2,5,"b-issue-relations-table",17),Q(39,"async"),O(40,Q4a,4,5,"ng-container",5),Q(41,"async"),H()(),O(42,S4a,3,3,"ng-template",null,18,gg),O(44,T4a,6,6,"ng-template",null,19,gg));if(a&2){var c,d;B(5);D("issue",null==(c=R(6,10,b.issue$))?null:c.issue);B(3);D("ngIf",R(9,12,b.isThinking$));B(9);If(" Blockers ",
R(18,14,b.counts.countBlockersDisplay$)," ");B(2);D("ngIf",R(20,16,b.blockersCount$));B(2);D("ngIf",R(22,18,b.issueId$));B(9);If(" Child issues ",R(31,20,b.counts.countChildrenDisplay$)," ");B(2);D("ngIf",R(33,22,b.unarchivedChildIssueCount$)||0<((null==(d=R(34,24,null==b.table?null:b.table.rows$))?null:d.length)||0));B(3);D("ngIf",b.isTotalEstimatesEnabled&&R(36,26,b.unarchivedChildIssueCount$)&&R(37,28,b.totalDaysCount$));B(3);D("ngIf",R(39,30,b.issueId$));B(2);D("ngIf",null!==R(41,32,b.unarchivedChildIssueCount$))}},
dependencies:[sx,Cx,pN,tN,pB,LE,$E,yO,mN,d7,e7,o7,Fx,Kx],styles:["[_nghost-%COMP%]     h4 button{margin:-8px 0}[_nghost-%COMP%]     h4 button.gmat-button.mat-stroked-button.small{line-height:21px}.table-header[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}.status[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%]{margin-top:4px}.status[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-1px}b-issue-relations-table[_ngcontent-%COMP%], b-blockers-table[_ngcontent-%COMP%]{display:block;overflow-x:auto}b-button.add[_ngcontent-%COMP%]{margin-left:16px}.emoji[_ngcontent-%COMP%]{font-size:1rem;padding:0 4px}.progress-header[_ngcontent-%COMP%]{padding-top:12px;font-size:12px;padding-bottom:16px}.progress[_ngcontent-%COMP%]{background:background(white);border-radius:6px;border:1px solid;border-color:#2b923d;border-color:var(--status-fixed-gfx);height:8px;width:132px;position:relative}.progress[_ngcontent-%COMP%] > .completion[_ngcontent-%COMP%]{background-color:#2b923d;background-color:var(--status-fixed-gfx);height:100%;border-radius:9px}.progress-hover-card[_ngcontent-%COMP%]{font-weight:bold}"],
changeDetection:0});
var r7=function(){};r7.\u0275fac=function(a){return new (a||r7)};r7.\u0275mod=rc({type:r7});r7.\u0275inj=fc({imports:[[Mx,WI,IX,$N,jG,bH,YN]]});
var s7=function(){};s7.\u0275fac=function(a){return new (a||s7)};s7.\u0275mod=rc({type:s7});s7.\u0275inj=fc({imports:[[Rz,Ez,dz,Mx,wy,$N,jG,MB,dF,a7,N4,jX,bH,xy,WI,TZ,F2,zO,$6,mP,YN,b7,IX,r7]]});
var t7=function(){this.availablePanels=new Set;this.iconOnly=!1;this.buttonClassname="";this.openSidebar=new Iw;this.PANEL_OPTIONS=tnc};t7.\u0275fac=function(a){return new (a||t7)};
t7.\u0275cmp=v({type:t7,selectors:[["b-insights-graph-menu"]],inputs:{availablePanels:"availablePanels",iconOnly:"iconOnly",buttonClassname:"buttonClassname"},outputs:{openSidebar:"openSidebar"},decls:19,vars:11,consts:[["mat-button","",1,"main-button","gmat-button","square-right",3,"ngClass","disabled","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),
"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" "),[4,"ngIf"],["mat-button","","aria-label","Open insights types menu",1,"menu-button","gmat-button","square-left",3,"ngClass","disabled","matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-xs"],["xPosition","before"],["panelsMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"]],template:function(a,
b){a&1&&(G(0,"button",0),K("click",function(){b.openSidebar.emit({panel:void 0})}),Lc(),G(1,"svg",1)(2,"g",2),J(3,"path",3)(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9)(10,"circle",10)(11,"circle",11)(12,"circle",12),H()(),O(13,W4a,2,1,"ng-container",13),H(),Mc(),G(14,"button",14),J(15,"mat-icon",15),H(),G(16,"mat-menu",16,17),O(18,X4a,2,2,"button",18),H());if(a&2){var c=Hf(17);sf("icon-only-mode",b.iconOnly);D("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size);
B(13);D("ngIf",!b.iconOnly);B(1);sf("icon-only-mode",b.iconOnly);D("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size)("matMenuTriggerFor",c);B(4);D("ngForOf",b.PANEL_OPTIONS)}},dependencies:[vx,wx,sx,pB,QE,OE,TE,LE],styles:["[_nghost-%COMP%]{white-space:nowrap}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:middle;margin-right:3px}.gmat-button[_ngcontent-%COMP%]{min-width:unset;height:32px;line-height:32px}.main-button[_ngcontent-%COMP%]{padding-right:4px}.menu-button[_ngcontent-%COMP%]{padding-left:4px}.main-button[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}mat-icon[_ngcontent-%COMP%]{line-height:0}.gmat-button.icon-only-mode[_ngcontent-%COMP%]{padding:0 2px}.gmat-button.icon-only-mode.main-button[_ngcontent-%COMP%]{padding:0 4px}.gmat-button.icon-only-mode[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-right:0;height:16px;width:16px}.gmat-button.icon-only-mode.mat-button[_ngcontent-%COMP%]:not([disabled]){color:#5f6368;color:var(--icon)}.gmat-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-icon-button).small{padding:0 2px}.gmat-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-icon-button).small.main-button{padding:0 4px}"],
changeDetection:0});var tnc=[{panel:"deployments",label:"Deployment Status"},{panel:"incidents",label:"Incident Context"}];
var u7=function(a){this.issueInsightsSidebarService=a;this.iconOnly=!1;this.buttonClassname="";this.availablePanels$=this.issueInsightsSidebarService.availablePanels$;this.shouldShowInsightsGraphMenu$=this.issueInsightsSidebarService.shouldShowInsightsGraphMenu$};u7.prototype.openSidebar=function(a){this.issueInsightsSidebarService.openSidebar(a)};u7.\u0275fac=function(a){return new (a||u7)(F(D6))};
u7.\u0275cmp=v({type:u7,selectors:[["insights-graph-menu-smart"]],inputs:{iconOnly:"iconOnly",buttonClassname:"buttonClassname"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"availablePanels","iconOnly","buttonClassname","openSidebar",4,"ngIf"],[3,"availablePanels","iconOnly","buttonClassname","openSidebar"]],template:function(a,b){a&1&&(O(0,Z4a,3,3,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.availablePanels$))},dependencies:[sx,t7,Fx],encapsulation:2,changeDetection:0});
var unc=function(a){return{isDupe:a}},v7=function(a,b,c,d,e){BI.call(this);var f=this;this.fridge=a;this.permissionsFridge=b;this.issuePicker=c;this.snackBar=d;this.eventsForIssueFridge=e;this.TOOLTIP_MARK_DUPE="Mark this issue as a duplicate";this.TOOLTIP_UNMARK_DUPE="Mark this issue as not being a duplicate";this.disabled=!1;this.issueId$=new T.ReplaySubject(1);this.issue$=this.issueId$.pipe(Xe(function(h){return f.fridge.watchOne(h)}));this.isDupe$=this.issue$.pipe(C(function(h){var k;return!!(null==
h?0:null==(k=h.snapshot[0])?0:k.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(Xe(function(h){return f.permissionsFridge.watchOne("issues/"+h)}));this.canEdit$=this.permissions$.pipe(C(function(h){return!(null==h||!h.writer)}),We(!0));this.didChooseCanonical=function(h){return function(k){k=k[0];null!=k&&TIb(f.fridge,k,h).then(function(){et(f.eventsForIssueFridge,h)}).catch(f.gotErr)}};this.gotErr=function(h){f.snackBar.open(ym(h)||"Error with network request","close",{panelClass:"error"})}};
U(v7,BI);v7.\u0275dir=BI.\u0275dir;
var $4a=function(a){var b,c;return me(function(d){if(1==d.nextAddress)return a.disabled||a.fridge.isSaving(a.internalIssueId)||!Pj(a.canEdit$)?d.return():ne(d,(0,T.firstValueFrom)(a.isDupe$),2);if(3!=d.nextAddress)return b=d.yieldResult,ne(d,(0,T.firstValueFrom)(a.issue$),3);c=d.yieldResult;if(null==c)return d.return();b?vnc(a,c):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:c.snapshot[0].componentId},a.didChooseCanonical(c.issueId));oe(d)})},vnc=function(a,
b){var c=b.snapshot[0].duplicateOfIssueId;null!=c&&a.fridge.removeDuplicate(c,b.issueId).then(function(){et(a.eventsForIssueFridge,b.issueId)}).catch(a.gotErr)};ki.Object.defineProperties(v7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});v7.\u0275fac=function(a){return new (a||v7)(F(yL),F(fM),F(MX),F(LK),F(NL))};
v7.\u0275cmp=v({type:v7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[gf],decls:2,vars:5,consts:[["mat-stroked-button","","class","gmat-button small",3,"disabled","title","click",4,"ngIf"],["mat-stroked-button","",1,"gmat-button","small",3,"disabled","title","click"]],template:function(a,b){a&1&&(O(0,a5a,3,5,"button",0),Q(1,"async"));a&2&&D("ngIf",Nf(3,unc,R(1,1,b.isDupe$)))},dependencies:[sx,pB,Fx],styles:[""]});
var w7=function(){this.label=""};w7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};w7.\u0275fac=function(a){return new (a||w7)};
w7.\u0275cmp=v({type:w7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&Zf(tN,5);if(a&2){var c;Yf(c=ag())&&(b.hovercardTrigger=c.first)}},inputs:{label:"label",content:"content"},decls:6,vars:3,consts:[["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],["svgIcon","help-outline",1,"icon-s",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(G(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",2),
O(4,c5a,2,1,"ng-container",3),H()()(),J(5,"mat-icon",4));if(a&2){var c=Hf(1);B(2);nf("aria-label",b.label);B(2);D("ngIf",b.content);B(1);D("onedevHovercardTrigger",c)}},dependencies:[sx,Cx,LE,pN,tN],encapsulation:2});var x7=function(){};x7.\u0275fac=function(a){return new (a||x7)};x7.\u0275mod=rc({type:x7});x7.\u0275inj=fc({imports:[[Mx,dF,$N]]});
var y7=function(a,b,c,d,e,f,h,k,q){BI.call(this);var w=this;this.issueFridge=a;this.issuePermissionService=b;this.activeSession=c;this.appEvents=d;this.issueArchiveService=e;this.domSafe=f;this.editIssueService=h;this.matDialogService=k;this.analytics=q;this.issueId$=new T.ReplaySubject(1);this.HOTKEYS=xI;this.issue$=this.issueId$.pipe(Xe(function(y){return w.issueFridge.watch(y)}));this.issueDerivedProperties$=this.issue$.pipe(C(function(y){var E,I,N,L,S,Y,ka;return{modifiedTimeMilliseconds:null!=
(null==y?void 0:null==(E=y.aggregatedData)?void 0:E.modifiedTimeMicros)?y.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:null!=(Y=null==y?void 0:null==(I=y.userData)?void 0:I.voted)?Y:!1,voteCount:null!=(ka=null==y?void 0:null==(N=y.aggregatedData)?void 0:N.voteCount)?ka:0,notificationSubscription:Xk(null==y?void 0:null==(L=y.userData)?void 0:L.notificationSubscription),retentionState:null==y?void 0:null==(S=y.aggregatedData)?void 0:S.retentionState}}));this.menuItems$=wnc(this);this.state$=(0,T.combineLatest)([this.issueId$,
this.issueDerivedProperties$,this.menuItems$]).pipe(C(function(y){var E=r(y);y=E.next().value;var I=E.next().value;E=E.next().value;return Object.assign({},{issueId:Number(y)},I,{menuItems:E})}))};U(y7,BI);y7.\u0275dir=BI.\u0275dir;g=y7.prototype;g.updateSubscription=function(a){var b=this,c;return me(function(d){if(1==d.nextAddress)return(c=Pj(b.issueId$))?ne(d,b.editIssueService.updateSubscription(c,a),2):d.return();bo(b.analytics,go.EDIT_ISSUE,"updateSubscription",a);oe(d)})};
g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};g.showIndefiniteRetentionDialog=function(a){var b=this,c;return me(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():ne(d,(0,T.firstValueFrom)(b.matDialogService.open(V3,{maxWidth:560})._afterClosed),2):(c=d.yieldResult)?ne(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return me(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():ne(d,(0,T.firstValueFrom)(b.matDialogService.open(U3,{maxWidth:560})._afterClosed),2):(c=d.yieldResult)?ne(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return me(function(d){return 1==d.nextAddress?ne(d,(0,T.firstValueFrom)(b.matDialogService.open(W3,{maxWidth:560})._afterClosed),2):(c=d.yieldResult)?ne(d,BQb(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var wnc=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(dZa())},showIndefiniteRetentionDialog:function(){var c=Pj(a.issueId$);c&&a.showIndefiniteRetentionDialog(c)},showComponentRetentionDialog:function(){var c=Pj(a.issueId$);c&&a.showComponentRetentionDialog(c)},submitArchivalState:function(c){var d=Pj(a.issueId$);d&&a.issueArchiveService.submitArchivalState(d,c)},showFlagAsSpamDialog:function(){var c=Pj(a.issueId$);c&&a.showFlagAsSpamDialog(c)}};return(0,T.combineLatest)([a.issue$,
a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(C(function(c){var d=r(c);c=d.next().value;var e=d.next().value,f;d={permissions:d.next().value,accessLevel:pxa(c),isArchived:null!=(f=null==c?void 0:c.isArchived)?f:!1,isDeleted:nxa(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:sxa(c),retentionState:vxa(c)};return[jhb(b,d),Clc(b,d),hhb(b,d),ihb(b,d)].filter($k)}))};
ki.Object.defineProperties(y7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});y7.\u0275fac=function(a){return new (a||y7)(F(yL),F(oO),F(pH),F(WK),F(o6),F(vP),F(nS),F(HB),F(SM))};
y7.\u0275cmp=v({type:y7,selectors:[["issue-actions"]],viewQuery:function(a,b){a&1&&Zf(w7,5);if(a&2){var c;Yf(c=ag())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},features:[gf],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueId","voteCount","upvoted","isNewVoteButton"],[3,"issueId","hotkey","onHotkey"],["smartDupeBtn",""],["matTooltip","Notification menu","aria-label","Notification menu",3,"subscription","issueId","iconOnly","subscriptionChange","showNotificationSettings"],["buttonClassname","small",
3,"iconOnly"],["mat-icon-button","","aria-label","More actions",1,"medium",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],[1,"issue-actions-menu"],["menu","matMenu"],["mat-menu-item","",3,"disabled","title","click",4,"ngFor","ngForOf"],["retentionHelpContent",""],["mat-menu-item","",3,"disabled","title","click"],[1,"icon-s",3,"svgIcon"],["mat-menu-item","",1,"informational-only","border-top","flush-bottom",3,"click"],["svgIcon","",1,"icon-s"],[3,"retentionState"],["label","Learn more about retention",
3,"content"],[3,"retentionState","modifiedTime"]],template:function(a,b){a&1&&(O(0,h5a,14,13,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.state$))},dependencies:[DX,wx,sx,w7,hJ,u7,pB,LE,QE,OE,TE,$E,w_,OY,NY,v7,Fx],styles:["[_nghost-%COMP%]{display:flex;gap:4px}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:empty{margin-left:-4px}[mat-icon-button][_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-4px}[_nghost-%COMP%]     .gmat-button.small{font-size:.8125rem}.bv2-material   [_nghost-%COMP%]     button.mat-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}  .issue-actions-menu .mat-menu-content button.mat-menu-item mat-icon.mat-icon{vertical-align:text-bottom}"]});
var z7=function(a){Z.call(this,a,-1,xnc)};U(z7,Z);z7.prototype.setIssueIdsList=function(a){hl(this,1,a)};z7.prototype.addIssueIds=function(a){ob(this,1,a)};var xnc=[1];z7.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(jb(this,1))}:void 0;return a};z7.messageId="b.BatchIssueDigestRequest";
var A7=function(a){Z.call(this,a,-1,ync)};U(A7,Z);A7.prototype.getIssueDigestsList=function(){return rb(this,uK,1)};var ync=[1];A7.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Bb(this.getIssueDigestsList(),UHb)}:void 0;return a};A7.messageId="b.BatchIssueDigestResponse";
var B7=function(a){this.executor=a};B7.prototype.call=function(a){var b=new z7;a=r(a);for(var c=a.next();!c.done;c=a.next())b.addIssueIds(String(c.value));return this.executor.post({url:"action/issues/digest",body:b,responseConstructor:A7})};B7.prototype.split=function(a,b){b=r(b.getIssueDigestsList());for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.getIssueId()===String(a))return c;return new uK};B7.\u0275fac=function(a){return new (a||B7)(t(pI))};
B7.\u0275prov=ec({token:B7,factory:B7.\u0275fac,providedIn:"root"});
var znc={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},C7=function(a,b){BI.call(this);var c=this;this.issueFridge=a;this.router=b;this.STATUS_TERSE=HL;this.URLS=ct;this.IssueStatus_strToTag=Wl;this.ListIssuesHovercardMode=znc;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new T.ReplaySubject(1);this.init=new T.ReplaySubject(1);this.issues$=this.issueIds$.pipe(De($k),Xe(function(d){return $J(c.issueFridge,d)}),C(function(d){return"parent"===c.mode?d.filter(Bn):d.filter(An)}))};
U(C7,BI);C7.\u0275dir=BI.\u0275dir;C7.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var n5a=function(a){var b;null==(b=a.hovercardInstance)||b.closeHovercard$.next();a.issueIds$.subscribe(function(c){c=null!=c?c:[];for(var d="id:(",e=r(c.entries()),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;d+=h;d=f<c.length-1?d+"|":d+")"}a.router.navigate([ct.ISSUE_LIST],{queryParams:{q:d}})})};
C7.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(Ye(this.destroyed$)).subscribe(function(){a.init.next()})};ki.Object.defineProperties(C7.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});C7.\u0275fac=function(a){return new (a||C7)(F(yL),F(Hk))};
C7.\u0275cmp=v({type:C7,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},features:[gf],decls:5,vars:5,consts:[["role","dialog","aria-label","List Issues Hovercard",1,"onedev-hovercard-content"],["class","border-bottom header-container",4,"ngIf"],[4,"ngIf"],[1,"border-bottom","header-container"],["svgIcon","account_tree_24px",1,"icon-xxs","muted"],[1,"header-text"],["svgIcon","slo-status-no-data",
1,"icon-xxs","gfx-bad"],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"issue-row","flex-kids-x","space-between"],[1,"flex-kids-x","align-items-center"],[1,"issue-id","type-xs"],[1,"type-m","margin-right","issue-title"],[1,"bv2-priority",3,"ngClass"],[1,"flex-kids-x","more-issues-container","margin-s-right"],["mat-button","",1,"gmat-button","primary","small",3,"click"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,i5a,5,3,"div",1),O(2,j5a,5,3,"div",1),O(3,q5a,4,3,"div",2),Q(4,"async"),H());a&2&&(B(1),
D("ngIf",b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),D("ngIf",b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES),B(1),D("ngIf",R(4,3,b.issues$)))},dependencies:[vx,wx,sx,LE,QI,pB,Fx],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.header-container[_ngcontent-%COMP%]{line-height:14px;padding:8px 12px}.header-text[_ngcontent-%COMP%]{font-family:Google Sans Display,Roboto,Arial,sans-serif;font-size:14px;line-height:16px;color:#1a73e8;color:var(--text-primary);margin-left:6px}.issue-row[_ngcontent-%COMP%]{line-height:32px;margin:0 12px;padding:4px 0;font-family:Roboto,Arial,sans-serif;color:#202124;color:var(--text)}.issue-row[_ngcontent-%COMP%]   .issue-id[_ngcontent-%COMP%]{height:13px;font-weight:700;padding:1px 4px;margin-right:4px;color:#5f6368;color:var(--text-muted);border:1px solid #e8eaed;border-color:var(--gfx-inverse);border-radius:4px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]{max-width:200px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}.issue-row[_ngcontent-%COMP%]   .b-chip[_ngcontent-%COMP%]{margin-left:8px}.more-issues-container[_ngcontent-%COMP%]{padding:4px 0;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}"]});
var D7=function(a,b){this.batchIssueDigests=a;this.paths=b;this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=znc;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIds=[]};D7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&Anc(this).then(function(c){b.issueIdToTitle=c})};D7.prototype.getIssueLink=function(a){return this.paths.editIssue(a)};
var Anc=function(a){a.reorderedAncestors=[];for(var b=Number(a.issueId);;)if(b=a.ancestors.get(b))if(1===b.sourceIssueIds.length)b=b.sourceIssueIds[0],a.reorderedAncestors.push(b);else{a.multiParentIds=b.sourceIssueIds;break}else break;a.reorderedAncestors.reverse();return(0,T.firstValueFrom)(a.batchIssueDigests.call(new Set(a.reorderedAncestors)).pipe(C(function(c){var d=new Map;c=r(c.getIssueDigestsList());for(var e=c.next();!e.done;e=c.next())e=e.value,d.set(Number(e.getIssueId()),e.getTitle());
return d})))};D7.\u0275fac=function(a){return new (a||D7)(F(B7),F(dL))};
D7.\u0275cmp=v({type:D7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},features:[Ac],decls:3,vars:2,consts:[["svgIcon","account_tree_24px","title","Ancestor issues",1,"icon-xs","margin-s-right"],[4,"ngIf"],[4,"ngFor","ngForOf"],["title","Show multi-parent ancestry",3,"onedevHovercardTrigger"],["svgIcon","chevron-right","class","icon-xs chevron muted",4,"ngIf"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],["svgIcon","chevron-right",1,"icon-xs","chevron",
"muted"],[3,"onedevIsHovercardReady","hovercardInstance","currentIssueId","issueIds","mode"],["cardBody",""],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"type-s",3,"href","issueId","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){a&1&&(J(0,"mat-icon",0),O(1,t5a,7,2,"ng-container",1),O(2,v5a,7,6,"ng-container",2));a&2&&(B(1),D("ngIf",1<b.multiParentIds.length),B(1),D("ngForOf",b.reorderedAncestors))},
dependencies:[wx,sx,LE,GW,pN,qN,tN,rN,EX,C7],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%]     a{color:#202124;color:var(--text-default);line-height:22px;vertical-align:middle}[_nghost-%COMP%]     a:hover, [_nghost-%COMP%]     a:focus{color:#1a73e8;color:var(--link);text-decoration:underline}.chevron[_ngcontent-%COMP%]{width:18px}.chevron.last[_ngcontent-%COMP%]{margin-right:-3px}"]});
var E7=function(a){BI.call(this);var b=this;this.componentFridge=a;this.componentId$=new T.ReplaySubject(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(De(function(c){return String(c.idOrKey)===b.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(De($k),Xe(function(c){return b.componentFridge.watch(c)}),De($k));this.component$=(0,T.merge)(this.error$,this.rawComponent$).pipe(C(function(c){return c.componentId&&c.name?c:{componentId:Number(c.idOrKey),name:"(unknown)"}}));
this.isArchived$=this.component$.pipe(C(function(c){return c.archived}));this.componentPath$=this.component$.pipe(C(function(c){return Eo(c.componentPathInfo)}));this.init=new T.ReplaySubject(1);this.routes$=this.componentId$.pipe(C(function(c){var d={component:c};d=void 0===d?{}:d;return{createIssue:{path:"/issues/new",queryParams:d},componentSettings:mta(c),recentIssues:tn(c)}}))};U(E7,BI);E7.\u0275dir=BI.\u0275dir;E7.prototype.ngOnInit=function(){var a=this;this.component$.pipe(Me(),Ye(this.destroyed$)).subscribe(function(){a.init.next()})};
ki.Object.defineProperties(E7.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a=String(a);this.componentId$.next(a)}}});E7.\u0275fac=function(a){return new (a||E7)(F(bK))};
E7.\u0275cmp=v({type:E7,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},features:[gf],decls:7,vars:7,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["class","component-path squared b-chip s margin-s-bottom",4,"ngIf"],[4,"ngIf"],["class","flex-kids-y padded-s-top actions",4,"ngIf"],[1,"component-path","squared","b-chip","s","margin-s-bottom"],[4,"ngFor","ngForOf"],
[3,"routerLinkObj"],[1,"flex-kids-x"],["svgIcon","folder",1,"icon-xs"],[1,"type-s"],[1,"type-s","id-text"],[1,"flex-kids-y","padded-s-top","actions"],["aria-label","View recent open issues","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"],["aria-label","View component settings","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"],["aria-label","Create issue in this component","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(G(0,"div",0)(1,
"div",1),O(2,z5a,5,6,"div",2),O(3,A5a,9,3,"ng-container",3),Q(4,"async"),O(5,B5a,7,3,"div",4),Q(6,"async"),H()());a&2&&(B(2),D("ngIf",!b.hidePath),B(1),D("ngIf",R(4,3,b.component$)),B(2),D("ngIf",R(6,5,b.routes$)))},dependencies:[wx,sx,LE,qB,qT,Fx],styles:["img[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;object-fit:contain;width:24px;height:24px;box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 2px 6px 2px rgba(0,0,0,.15);padding:5px;border-radius:4px}.id-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-bottom:12px}.b-chip[_ngcontent-%COMP%]{margin-right:0;line-height:16px;padding-top:2px;padding-bottom:2px}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#202124;color:var(--text)}.component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active, .component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.actions[_ngcontent-%COMP%]{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"]});
var F7=function(a,b){var c=this;this.componentFridge=a;this.issueEditComponentService=b;this.componentId$=new T.ReplaySubject(1);this.editing=this.showLeafOnly=!1;this.component$=this.componentId$.pipe(Xe(function(d){return c.componentFridge.watch(d).pipe(We(void 0))}));this.isArchived$=this.component$.pipe(C(function(d){return null==d?void 0:d.archived}));this.componentPath$=(0,T.combineLatest)([this.componentId$,this.component$]).pipe(C(function(d){var e=r(d);d=e.next().value;return(e=e.next().value)?
Eo(e.componentPathInfo):Eo({componentPathId:[Number(d)]})}));this.isEmpty$=this.component$.pipe(C(function(d){return!d}));this.isThinkingAndEmpty$=(0,T.combineLatest)([this.componentFridge.thinking$,this.isEmpty$]).pipe(C(function(d){var e=r(d);d=e.next().value;e=e.next().value;return d&&e}));this.isReady$=this.isThinkingAndEmpty$.pipe(C(function(d){return!d}))};F7.prototype.ngOnInit=function(){};
ki.Object.defineProperties(F7.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){null!=a&&this.componentId$.next(a)}}});F7.\u0275fac=function(a){return new (a||F7)(F(bK),F(x6))};
F7.\u0275cmp=v({type:F7,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",showLeafOnly:"showLeafOnly",issueId:"issueId"},decls:3,vars:2,consts:[[3,"isReady",4,"ngIf","ngIfElse"],["componentPicker",""],[3,"isReady"],[1,"b-chip","squared","s"],["svgIcon","folder","title","Component folder path",1,"icon-xs"],["class","component-path",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn",3,"click"],["svgIcon",
"edit-outline",1,"icon-xxs"],[1,"component-path"],[4,"ngIf","ngIfElse"],["normalMode",""],["href","","title","Show all Components",1,"subtle-link",3,"click"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],["card",""],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],[4,"ngFor","ngForOf"],[3,"onedevIsHovercardReady","componentId","hidePath"],["placeholder","Choose Component",3,"selectedComponent","isRequired","shouldFocus","selectedComponentChange",
"dropdownClosed"]],template:function(a,b){a&1&&(O(0,L5a,10,9,"b-async-data-placeholder",0),O(1,N5a,2,5,"ng-template",null,1,gg));if(a&2){var c=Hf(2);D("ngIf",!b.editing)("ngIfElse",c)}},dependencies:[B2,wx,sx,pB,LE,EV,pN,qN,tN,rN,$E,E7,qT,Fx],styles:["a[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%], .edit-btn[_ngcontent-%COMP%]{vertical-align:middle}mat-icon[_ngcontent-%COMP%]:first-of-type{margin-right:3px}.edit-btn[_ngcontent-%COMP%]{height:22px;width:22px;line-height:22px;margin-right:-4px;margin-left:4px;border-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid;border-color:#fff;border-color:var(--background)}.edit-btn[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.edit-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-top:-3px}.issue-editor-false   [_nghost-%COMP%]     .edit-btn{display:none}[_nghost-%COMP%]     b-async-data-placeholder{display:inline-block;height:22px}"],
changeDetection:0});
var Bnc=["issueTitleEl"],Cnc=["issueTitleInputEl"],Q5a=function(a){return{"width.px":a}},G7=function(){this.disabled=!1;this.updateTitle=new Iw;this.isEditMode=!1;this.editModeWidth=0};G7.prototype.ngDoCheck=function(){Dnc(this)};
var S5a=function(a){a.isEditMode=!a.isEditMode;a.isEditMode&&setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0)},Enc=function(a,b){a.isEditMode=!1;Dnc(a);if(b)a.updateTitle.emit(b.trim());else{var c;b=null==(c=a.issueTitleEl)?void 0:c.nativeElement.textContent;a.updateTitle.emit(b.trim())}},P5a=function(a,b){if(b)"Enter"===b.key?Enc(a,b.target.value):("Escape"===b.key||"Esc"===b.key)&&S5a(a);else{var c;b=null==(c=a.issueTitleInputEl)?void 0:c.nativeElement.value;Enc(a,b)}},
Dnc=function(a){var b=a.editModeWidth,c,d;a.editModeWidth=null!=(d=Number(null==(c=a.issueTitleEl)?void 0:c.nativeElement.offsetWidth)+50)?d:b};G7.\u0275fac=function(a){return new (a||G7)};
G7.\u0275cmp=v({type:G7,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(Zf(Bnc,5),Zf(Cnc,5));if(a&2){var c;Yf(c=ag())&&(b.issueTitleEl=c.first);Yf(c=ag())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{updateTitle:"updateTitle"},decls:3,vars:3,consts:[["class","heading-m line-clamp-3",4,"ngIf"],[3,"ngStyle",4,"ngIf"],["mat-icon-button","","class","small","matTooltip","Edit issue title","aria-label","Edit issue title",3,"disabled",
"click",4,"ngIf"],[1,"heading-m","line-clamp-3"],["issueTitleEl",""],[3,"ngStyle"],["matInput","","aria-label","Enter a new title",1,"heading-m",3,"value","keyup","blur"],["issueTitleInputEl",""],["mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small",3,"disabled","click"],["svgIcon","edit-outline",1,"icon-xxs"]],template:function(a,b){a&1&&(O(0,O5a,3,2,"h3",0),O(1,R5a,3,4,"mat-form-field",1),O(2,T5a,2,1,"button",2));a&2&&(D("ngIf",!b.isEditMode),B(1),D("ngIf",
b.isEditMode),B(1),D("ngIf",b.hasAclToEdit))},dependencies:[sx,Bx,pB,LE,$E,XB,ZB],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-all}mat-form-field[_ngcontent-%COMP%]{min-width:200px;max-width:100%;margin-bottom:-3px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--c700);margin-top:-2px}[_nghost-%COMP%]     .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{padding:0;border:0}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-underline{margin-bottom:-15px}  .mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:0}"]});
var H7=function(a){this.teamsService=a;this.onTeamLoaded=new T.ReplaySubject;this.teamName$=new T.BehaviorSubject("");this.isTeamLoaded=!1};H7.prototype.ngOnChanges=function(a){var b=this;a.teamId&&null!==this.teamId&&(0===this.teamId?(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)):this.teamsService.getTeam(String(this.teamId)).pipe(Me(),C(function(c){return c.getName()})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
H7.\u0275fac=function(a){return new (a||H7)(F(lM))};
H7.\u0275cmp=v({type:H7,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},features:[Ac],decls:7,vars:6,consts:[[3,"isReady"],["class","b-chip squared s",3,"onedevHovercardTrigger",4,"ngIf"],["card","onedevHovercard"],[3,"componentId","teamId"],[1,"b-chip","squared","s",3,"onedevHovercardTrigger"],["svgIcon","supervisor_account_24px",1,"icon-xs"]],template:function(a,b){a&1&&(G(0,"b-async-data-placeholder",0),O(1,U5a,4,4,"div",1),Q(2,
"async"),H(),G(3,"onedev-hovercard",null,2),xf(5),J(6,"b-team-card",3),yf(),H());if(a&2){var c;D("isReady",b.isTeamLoaded);B(1);D("ngIf",R(2,4,b.teamName$));B(5);D("componentId",null==b.componentId?null:b.componentId.toString())("teamId",null!==(c=null==b.teamId?null:b.teamId.toString())&&void 0!==c?c:"0")}},dependencies:[sx,LE,B2,pN,tN,iV,Fx],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});
var I7=function(a,b,c,d,e,f){BI.call(this);var h=this;this.issueFridge=a;this.issuePermissionService=b;this.router=c;this.refreshMonitor=d;this.currentSearchResults=e;this.eventsForIssueFridge=f;this.editTitleDisabled=this.starToggleDisabled=!1;this.issueId$=new T.ReplaySubject(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=znc;this.blockedIdsToUrlQuery=function(k){if(!(2>k.length))return{q:"blockingid:"+h.issueId}};this.HOTKEYS=xI;this.issue$=this.issueId$.pipe(Xe(function(k){return h.issueFridge.watch(k)}));
this.issueTitle$=this.issue$.pipe(C(function(k){return null==k?void 0:k.snapshot[0].title}));this.starred$=this.issue$.pipe(C(function(k){var q;return Xk(null==k?void 0:null==(q=k.userData)?void 0:q.starred)}));this.componentId$=this.issue$.pipe(C(function(k){return Xk(null==k?void 0:k.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(C(function(k){return Xk(null==k?void 0:k.ancestors)}));this.hasAncestors$=this.ancestors$.pipe(C(function(k){return!!(k&&0<k.size)}));this.teamId$=this.issue$.pipe(C(function(k){var q;
return Xk(null==k?void 0:null==(q=k.aggregatedData)?void 0:q.teamId)}));this.blockedByids$=this.issue$.pipe(C(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockedByIssueId)?q:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(Xe(function(k){return $J(h.issueFridge,k)}),C(function(k){return k.filter(An)}),C(function(k){return k.length}));Oj(this.issuesBlockedByCount$.pipe(C(e6a),Ye(this.destroyed$)),"Blocked");this.blockedByids$.pipe(C(f6a));this.blockedByids$.pipe(C(this.blockedIdsToUrlQuery));
this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.toggleStar=function(){var k=!!Pj(h.starred$);h.starToggleDisabled=!0;QIb(h.issueFridge,h.issueId,!k).pipe(Oe(),Ye(h.destroyed$)).subscribe(function(){h.starToggleDisabled=!1})};this.toggleStarDebounced=dC(this.toggleStar,1E3)};U(I7,BI);I7.\u0275dir=BI.\u0275dir;
var Fnc=function(a,b){a.editTitleDisabled=!0;RIb(a.issueFridge,a.issueId,b).pipe(Ye(a.destroyed$)).subscribe(function(){a.editTitleDisabled=!1;et(a.eventsForIssueFridge,a.issueId)})};I7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};ki.Object.defineProperties(I7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});
I7.\u0275fac=function(a){return new (a||I7)(F(yL),F(oO),F(Hk),F(uL),F(p6),F(NL))};
I7.\u0275cmp=v({type:I7,selectors:[["issue-banner"]],inputs:{issueId:"issueId"},features:[gf],decls:24,vars:27,consts:[[1,"first-row","flex-kids-x","flex-wrap","gap-s"],[4,"ngIf","ngIfElse"],[1,"second-row","flex-kids-x","align-items-center"],["mat-icon-button","",1,"small","back-btn",3,"hotkey","matTooltip","onHotkey","click"],["svgIcon","arrow-backward",1,"icon-s"],["mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"small",3,"hotkey","onHotkey","click"],["svgIcon","refresh",1,
"icon-s"],[3,"starred","disabled","hotkey","starClicked","onHotkey"],[3,"title","disabled","hasAclToEdit","updateTitle"],["class","b-chip squared bad xs",3,"onedevHovercardTrigger",4,"ngIf"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],["withAncestorsBreadcrumbs",""],["withoutAncestorBreadcrumbs",""],[4,"ngTemplateOutlet"],[1,"b-chip","squared","bad","xs",3,"onedevHovercardTrigger"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[4,"ngIf"],[3,"onedevIsHovercardReady","hovercardInstance",
"currentIssueId","issueIds","mode"],["cardBody",""],[3,"componentId","teamId","onTeamLoaded"],[3,"componentId","showLeafOnly","issueId"],[1,"b-chip","squared","s"],[3,"ancestors","issueId",4,"ngIf"],[2,"margin-right","-4px",3,"issueId","componentId","issueTitle","isExternalIssue"],[3,"ancestors","issueId"],[3,"componentId","issueId"],[1,"b-chip","squared","s","padding-0"],[3,"issueId","componentId","issueTitle","isExternalIssue"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,W5a,2,1,"ng-container",
1),Q(2,"async"),H(),G(3,"div",2)(4,"button",3),K("onHotkey",function(){return Ns(b.currentSearchResults)})("click",function(){return Ns(b.currentSearchResults)}),Q(5,"async"),Q(6,"async"),J(7,"mat-icon",4),H(),G(8,"button",5),K("onHotkey",function(){return b.refresh()})("click",function(){return b.refresh()}),J(9,"mat-icon",6),H(),G(10,"b-star-toggle",7),K("starClicked",function(){return b.toggleStar()})("onHotkey",function(){return b.toggleStarDebounced()}),Q(11,"async"),H(),G(12,"issue-title",8),
K("updateTitle",function(e){return Fnc(b,e)}),Q(13,"async"),Q(14,"async"),H(),O(15,Y5a,3,2,"div",9),Q(16,"async"),G(17,"onedev-hovercard",null,10),O(19,Z5a,4,7,"ng-container",11),H()(),O(20,b6a,4,7,"ng-template",null,12,gg),O(22,d6a,4,7,"ng-template",null,13,gg));if(a&2){var c=Hf(23),d;B(1);D("ngIf",R(2,13,b.hasAncestors$))("ngIfElse",c);B(3);D("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(d=R(5,15,b.currentSearchResults.backNavigationLabel$))&&void 0!==d?d:"");nf("aria-label",R(6,17,b.currentSearchResults.backNavigationLabel$));
B(4);D("hotkey",b.HOTKEYS.REFRESH);B(2);D("starred",R(11,19,b.starred$))("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);B(2);D("title",R(13,21,b.issueTitle$))("disabled",b.editTitleDisabled)("hasAclToEdit",R(14,23,b.issuePermissionService.hasAclToEdit$));B(3);D("ngIf",R(16,25,b.issuesBlockedByCount$))}},dependencies:[D7,sx,Cx,F7,hJ,pN,qN,tN,rN,f5,G7,C7,pB,LE,$E,kN,H7,Fx],styles:["[_nghost-%COMP%]{padding:8px;padding-bottom:0;overflow:auto;overflow-y:hidden}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.second-row[_ngcontent-%COMP%]{margin-top:8px}.back-btn[_ngcontent-%COMP%]{margin-left:-4px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}b-star-toggle[_ngcontent-%COMP%]{margin-right:4px}"]});
var h6a=function(a){return{"invisible zero-width":a}},J7=function(a){this.currentSearchResults=a;this.HOTKEYS=xI};J7.\u0275fac=function(a){return new (a||J7)(F(p6))};
J7.\u0275cmp=v({type:J7,selectors:[["b-pagination-one-issue"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"ngClass"],["mat-icon-button","","matTooltip","Previous Issue","aria-label","Previous Issue",1,"gmat-button","medium",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-left",1,"icon-l"],["mat-icon-button","","matTooltip","Next Issue","aria-label","Next Issue",1,"gmat-button","medium",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-right",1,"icon-l"]],template:function(a,b){a&1&&
(O(0,i6a,9,12,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.currentSearchResults.issueIndex$))},dependencies:[vx,sx,hJ,pB,LE,$E,Fx],styles:["[_nghost-%COMP%]{display:inline-block;color:#5f6368;color:var(--muted);white-space:nowrap}.bv2-material   [_nghost-%COMP%]     button.mat-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}output[_ngcontent-%COMP%]{font-weight:500}[mat-icon-button][_ngcontent-%COMP%]{margin-left:-4px}[_nghost-%COMP%]   span.zero-width[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:0}\n/*# sourceMappingURL=pagination_one_issue.css.map */"],
changeDetection:0});
var K7=function(a){this.brain=a;this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(C(function(b){return null==b?void 0:b.issue}),De($k));this.retentionState$=this.issue$.pipe(C(function(b){var c;return null==(c=b.aggregatedData)?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(C(function(b){var c;return(null==(c=b.aggregatedData)?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),De($k));this.accessLevel$=this.issue$.pipe(C(function(b){var c;return null==
(c=b.accessLimit)?void 0:c.accessLevel}),De($k));this.state$=(0,T.combineLatest)([this.retentionState$,this.modifiedTime$,this.accessLevel$]).pipe(C(function(b){var c=r(b);b=c.next().value;var d=c.next().value;c=c.next().value;return{retentionState:b,isShowingRetention:null==(null==b?void 0:b.scheduledDeletionTime)?!1:nLa(b),isShowingPublicPartner:"INTERNAL"!==c,modifiedTime:d,accessLevel:c}}))};K7.\u0275fac=function(a){return new (a||K7)(F(mO))};
K7.\u0275cmp=v({type:K7,selectors:[["chip-indicators"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","flex-kids-x gap-s",4,"ngIf"],[1,"flex-kids-x","gap-s"],[3,"accessLevel",4,"ngIf"],[3,"retentionState","compactMode","modifiedTime",4,"ngIf"],[3,"accessLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(O(0,m6a,2,1,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.state$))},dependencies:[sx,PY,TS,Fx],encapsulation:2});
var L7=function(a){this.dialogRef=a;this.WTDM_INTRO_LIGHT=Cjc;this.WTDM_INTRO_DARK=Djc};L7.\u0275fac=function(a){return new (a||L7)(F(AB))};
L7.\u0275cmp=v({type:L7,selectors:[["onboarding-dialog"]],hostBindings:function(a,b){a&1&&K("keyup.esc",function(){b.dialogRef.close()},!1,qd)},decls:21,vars:2,consts:[["aria-hidden","true","alt","Stylized UI screenshot annotated with 'Dependency surfaced as a tree', 'New issue types', and 'estimated effort field",1,"light-only",3,"src"],["aria-hidden","true","alt","Stylized UI screenshot annotated with 'Dependency surfaced as a tree', 'New issue types', and 'estimated effort field",1,"dark-only",
3,"src"],[1,"center"],"href;http://go/wtdm-home#parent-child-relationship;target;_blank;aria-label;Learn more about parent child relationship".split(";"),"href;http://go/wtdm-home#types;target;_blank;aria-label;Learn more about new issue types".split(";"),"href;http://go/wtdm-home#estimated-effort-field;target;_blank;aria-label;Learn more about estimated effort field".split(";"),["mat-flat-button","",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(J(0,"img",0)(1,"img",1),G(2,"div",
2)(3,"h1"),P(4,"Welcome to a new Issue Detail Page \ud83c\udf89"),H()(),G(5,"ul")(6,"li"),P(7," Model the work required to close any issue through a new parent-child feature, visualized as a 'tree' in the Dependencies tab. "),G(8,"a",3),P(9,"Learn more"),H()(),G(10,"li"),P(11," Break down your goals by size / complexity with new issue types - Project, Milestone, Feature, Epic, Story and Task. "),G(12,"a",4),P(13,"Learn more"),H()(),G(14,"li"),P(15," Specify the effort required to complete an issue with a new \u2018estimated effort\u2019 field. "),
G(16,"a",5),P(17,"Learn more"),H()()(),G(18,"div",2)(19,"button",6),K("click",function(){return b.dialogRef.close()}),P(20," Get started "),H()());a&2&&(D("src",b.WTDM_INTRO_LIGHT,Kd),B(1),D("src",b.WTDM_INTRO_DARK,Kd))},dependencies:[pB],styles:['img[_ngcontent-%COMP%]{max-width:100%;min-height:188px}h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0em;font-weight:400}ul[_ngcontent-%COMP%]{list-style-type:disc;margin:20px;font-size:1rem;color:#5f6368;color:var(--text-muted)}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{line-height:24px;margin:10px}.center[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:10px}']});
var M7=function(a,b){this.dialog=a;this.userPreferencesManager=b;this.shouldShow$=this.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.pipe(C(function(c){return void 0===c.onboardingDialogAcknowledgedMillis}))},Hnc=function(a){var b,c;me(function(d){if(1==d.nextAddress)return ne(d,(0,T.firstValueFrom)(a.shouldShow$),2);b=d.yieldResult;if(!b)return d.jumpTo(0);c={maxWidth:"700px",disableClose:!0};a.dialog.open(L7,c);return ne(d,Gnc(a),0)})},Gnc=function(a){return me(function(b){return ne(b,
(0,T.firstValueFrom)(a.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},a.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.value,{onboardingDialogAcknowledgedMillis:Date.now()})})),0)})};M7.\u0275fac=function(a){return new (a||M7)(t(HB),t(zI))};M7.\u0275prov=ec({token:M7,factory:M7.\u0275fac,providedIn:"root"});
var N7=function(){var a=this;this.pressed=new Iw;this.disabled=!1;this.getTooltip=function(){return a.disabled?"Deployment status is only available for submitted Boq, Pod & Annealing CLs. For more information, go/g3g-guide.":"Open the insights graph"}};N7.\u0275fac=function(a){return new (a||N7)};
N7.\u0275cmp=v({type:N7,selectors:[["insights-graph-btn"]],inputs:{disabled:"disabled"},outputs:{pressed:"pressed"},decls:14,vars:3,consts:[["mat-stroked-button","","color","primary",1,"gmat-button",3,"title","disabled","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),
"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" ")],template:function(a,b){a&1&&(G(0,"button",0),K("click",function(){return b.pressed.emit()}),P(1,"Insights "),Lc(),G(2,"svg",1)(3,"g",2),J(4,"path",3)(5,"path",4)(6,"path",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"circle",9)(11,"circle",10)(12,"circle",11)(13,"circle",12),H()()());a&2&&(D("title",b.getTooltip())("disabled",b.disabled),nf("aria-label",b.getTooltip()))},dependencies:[pB],styles:["button.gmat-button[_ngcontent-%COMP%]{line-height:20px;padding:0 5px;font-size:.75rem;font-weight:500;font-family:Roboto,Arial,sans-serif}[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:text-bottom}\n/*# sourceMappingURL=insights_graph_btn.css.map */"],
changeDetection:0});
var Inc=new jd("PeoplekitClientConfig"),Jnc=function(a){this.matcher=a};Jnc.prototype.filterResult=function(a){for(var b=a.getTargetList(),c=b.length-1;0<=c;c--)1===b[c].getTargetType()&&this.matcher(b[c].getValue())&&b.splice(c,1);return b.length?a:null};Jnc.prototype.reset=function(){};
var Lnc=function(a){var b=new Knc;this.apiEnv_=a;this.experimentsConfig_=b};
var Knc=function(){};Knc.prototype.getProfileId=function(){return""};
var O7=function(a){var b=new icc;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(b.customAuthHeaders_=a.customAuthHeaders);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new Lnc(b.getPeopleApiEnv())};O7.\u0275fac=function(a){return new (a||O7)(t(Inc))};O7.\u0275prov=ec({token:O7,factory:O7.\u0275fac});
var P7=function(a,b,c,d,e,f){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.selectionChange=new Iw;this.sessionOptions=(new Yq).setFilter(Mnc);this.inputSearchDelay=200;this.destroyed$=new T.ReplaySubject(1);this.inputChanged$=new T.ReplaySubject(1)};P7.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
P7.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);n6a(b,this.config);var c;this.autocomplete=null==(c=this.clientConfig.autocompleteFactory)?void 0:c.create(Nnc(this),this.inputEl.nativeElement,this.peopleKitService.peopleStore,b,this.sessionOptions);l$b(this.autocomplete,function(d){a.selectionChange.emit(d)});this.inputChanged$.pipe(Je(this.inputSearchDelay)).subscribe(function(){a.search()})};
var Nnc=function(a){if(!a.peopleKitService.autocompleteAnchor){var b=a.renderer.createElement("div");a.peopleKitService.autocompleteAnchor=b;a.renderer.addClass(b,"peoplekit-autocomplete-anchor");var c;(null!=(c=Qva(a.inputEl.nativeElement))?c:a.document.body).append(b)}return a.peopleKitService.autocompleteAnchor};P7.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};
P7.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};P7.\u0275fac=function(a){return new (a||P7)(F(Inc),F(ii),F(O7),F(nd),F(ef),F(Mv))};
P7.\u0275dir=v({type:P7,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&K("input",function(){return b.inputChanged$.next()})("focus",function(){return b.search()})("blur",function(){return b.cancel()})},inputs:{config:["peoplekitAutocompleteConfig","config"],sessionOptions:["peoplekitSearchSessionOptions","sessionOptions"],inputSearchDelay:["peoplekitAutocompleteInputSearchDelay","inputSearchDelay"]},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},
exportAs:["peoplekitAutocomplete"]});var Mnc=RUa(1);
var Onc=["popOver"],Pnc=["inputBox"],Q7=function(a){this.defaultAutocompleteConfig=a;this.mergedAutocompleteConfig=Object.assign({},Qnc,this.defaultAutocompleteConfig);this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new Iw;this.inputValue="";this.sessionOptions=Rnc};Q7.prototype.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
Q7.prototype.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},Qnc,this.defaultAutocompleteConfig,this.autocompleteConfig))};Q7.prototype.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;null==(c=b.inputBox)||c.nativeElement.select()})};Q7.prototype.onPopOverClose=function(a){this.closed.emit(0===a?this.inputValue:void 0);this.inputValue=""};Q7.\u0275fac=function(a){return new (a||Q7)(F(Snc,8))};
Q7.\u0275cmp=v({type:Q7,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(Zf(Onc,7),Zf(Pnc,5));if(a&2){var c;Yf(c=ag())&&(b.popOver=c.first);Yf(c=ag())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit"},outputs:{closed:"closed"},features:[Ac],attrs:["anchor",""],decls:4,vars:3,consts:[[3,"anchor","displayUnder","editorTemplate",
"closedWithAction"],["popOver","onedevPopOverEditPanel"],["autocompleteTemplate",""],["peoplekitAutocomplete","",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel","peoplekitAutocompleteSelectionChange","ngModelChange"],["inputBox",""]],template:function(a,b){a&1&&(G(0,"onedev-pop-over-edit-panel",0,1),K("closedWithAction",function(d){return b.onPopOverClose(d)}),H(),O(2,o6a,2,3,"ng-template",null,2,gg));if(a&2){var c=Hf(3);D("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",
c)}},dependencies:[Fg,by,hy,W4,P7],styles:["input[_ngcontent-%COMP%]{padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px}input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}  .peoplekit-autocomplete-anchor{z-index:1001}"]});
var Snc=new jd("user-picker-autocomplete-config"),Qnc={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},Rnc=(new Yq).setFilter(Tr(RUa(1),new Jnc(function(a){return 0<=a.indexOf("-pager")||0<=a.indexOf("+pager")||0<=a.indexOf("lifeguard-ng")})));
var q6a=function(a){return{$implicit:a}},Tnc=0,R7=function(){this.val="";this.disabled=!1;this.emailChange=new Iw;this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+Tnc;this.onChange=function(){};this.onTouched=function(){};Tnc++};U(R7,bQ);g=R7.prototype;g.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
g.onPopOverClose=function(a){null!=a&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.writeValue=function(a){null!=a&&(this.val=a)};g.isActive=function(){return this.active||this.popOverOpen};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};
ki.Object.defineProperties(R7.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});R7.\u0275fac=function(a){return new (a||R7)};
R7.\u0275cmp=v({type:R7,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&Zf(Q7,7);if(a&2){var c;Yf(c=ag())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],features:[Lf([{provide:bQ,useExisting:ac(function(){return R7}),multi:!0},{provide:ux,useExisting:ac(function(){return R7}),multi:!0}]),
gf],decls:7,vars:9,consts:[[1,"unstyled-button",3,"focus","blur","click"],["anchor",""],[4,"ngIf","ngIfElse"],["plainText",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"anchor","autocompleteConfig","closed"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"]],
template:function(a,b){a&1&&(G(0,"button",0,1),K("focus",function(){return b.active=!0})("blur",function(){return b.active=!1})("click",function(){return b.openPopOver()}),O(2,r6a,2,4,"ng-container",2),O(3,s6a,1,1,"ng-template",null,3,gg),O(5,t6a,2,0,"svg",4),H(),G(6,"onedev-user-picker-panel",5),K("closed",function(e){return b.onPopOverClose(e)}),H());if(a&2){var c=Hf(1),d=Hf(4);sf("active",b.isActive());nf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(2);D("ngIf",b.selectedUserTemplate)("ngIfElse",
d);B(3);D("ngIf",!b.disabled);B(1);D("anchor",c)("autocompleteConfig",b.autocompleteConfig)}},dependencies:[sx,Cx,Q7],styles:["button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor}"]});
var Unc=["picker"],S7=function(){this.disabled=!1;this.emailChange=new Iw;this.userEmail=""};U(S7,bQ);S7.prototype.openPopOver=function(){this.picker.openPopOver()};S7.prototype.isActive=function(){return this.picker.isActive()};ki.Object.defineProperties(S7.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userEmail=Pl(a)||""}}});S7.\u0275fac=function(){var a;return function(b){return(a||(a=cd(S7)))(b||S7)}}();
S7.\u0275cmp=v({type:S7,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&Zf(Unc,7);if(a&2){var c;Yf(c=ag())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],features:[Lf([{provide:bQ,useExisting:ac(function(){return S7}),multi:!0}]),gf],decls:4,vars:4,consts:[[3,"email","disabled","labelledById","selectedUserTemplate","emailChange"],["picker","onedevUserPicker"],["userChip",
""],[3,"email","teamId","enableSmallChip",4,"ngIf"],[3,"email","teamId","enableSmallChip"]],template:function(a,b){a&1&&(G(0,"onedev-user-picker",0,1),K("emailChange",function(d){return b.emailChange.emit(d)}),H(),O(2,v6a,1,1,"ng-template",null,2,gg));if(a&2){var c=Hf(3);D("email",b.userEmail)("disabled",b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",c)}},dependencies:[sx,HS,R7],styles:["b-user-membership-chip[_ngcontent-%COMP%]     .user-chip-small, b-user-membership-chip[_ngcontent-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}\n/*# sourceMappingURL=user_picker.css.map */"]});
var T7=function(a){Z.call(this,a,-1,Vnc)};U(T7,Z);T7.prototype.getName=function(){return V(this,1)};T7.prototype.setName=function(a){return tl(this,1,a)};var Wnc=function(a){Z.call(this,a)};U(Wnc,Z);var Vnc=[2];T7.prototype.toObject=function(){return Xnc(void 0,this)};var Xnc=function(a,b){if(null!=b){var c={name:V(b,1),buganizerOrCustomStatusesList:Bb(rb(b,Wnc,2),Ync,a)};a&&(c.$jspbMessageInstance=b);return c}},Znc=[1,2];Wnc.prototype.toObject=function(){return Ync(void 0,this)};
var Ync=function(a,b){if(null!=b){var c={buganizerStatus:n(Or(b,1,Znc)),customStatusId:n(Or(b,2,Znc))};a&&(c.$jspbMessageInstance=b);return c}};
var $nc=function(a){Z.call(this,a)};U($nc,Z);g=$nc.prototype;g.getId=function(){return dj(this,1)};g.setId=function(a){return Sk(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return tl(this,2,a)};g.setColor=function(a){return tl(this,4,a)};g.getCustomField=function(){return m(this,U7,6)};g.setCustomField=function(a){return Ab(this,6,a)};var U7=function(a){Z.call(this,a)};U(U7,Z);U7.prototype.getCustomFieldId=function(){return dj(this,1)};
U7.prototype.setCustomFieldId=function(a){return Sk(this,1,a)};U7.prototype.getCustomFieldValue=function(){return V(this,2)};U7.prototype.setCustomFieldValue=function(a){return tl(this,2,a)};$nc.prototype.toObject=function(){return aoc(void 0,this)};var aoc=function(a,b){if(null!=b){var c={id:dj(b,1),name:V(b,2),color:V(b,4),buganizerStatus:X(b,5,0),customField:boc(a,b.getCustomField())};a&&(c.$jspbMessageInstance=b);return c}};U7.prototype.toObject=function(){return boc(void 0,this)};
var boc=function(a,b){if(null!=b){var c={customFieldId:dj(b,1),customFieldValue:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var doc=function(a){Z.call(this,a,-1,coc)};U(doc,Z);doc.prototype.getState=function(){return X(this,2,0)};var V7=function(a){Z.call(this,a)};U(V7,Z);V7.prototype.getResourceId=function(){return dj(this,2)};V7.prototype.setResourceId=function(a){Sk(this,2,a)};var eoc=function(a){Z.call(this,a)};U(eoc,Z);var coc=[3,9,4,5,6];doc.prototype.toObject=function(){return foc(void 0,this)};
var foc=function(a,b){if(null!=b){var c={kanbanProjectId:V(b,1),state:X(b,2,0),failureReason:V(b,8),iterationMappingsList:Bb(rb(b,V7,3),W7,a),savedQueryMappingsList:Bb(rb(b,V7,9),W7,a),epicMappingsList:Bb(rb(b,V7,4),W7,a),storyMappingsList:Bb(rb(b,V7,5),W7,a),resourceUpdateFailuresList:Bb(rb(b,eoc,6),goc,a),migrationAttempts:dj(b,7)};a&&(c.$jspbMessageInstance=b);return c}};V7.prototype.toObject=function(){return W7(void 0,this)};
var W7=function(a,b){if(null!=b){var c={kanbanId:V(b,1),resourceId:dj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};eoc.prototype.toObject=function(){return goc(void 0,this)};var goc=function(a,b){if(null!=b){var c={resourceName:V(b,1),failureReason:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var ioc=function(a){Z.call(this,a,-1,hoc)};U(ioc,Z);g=ioc.prototype;g.getState=function(){return X(this,2,0)};g.getStart=function(){return m(this,rj,3)};g.setStart=function(a){return Ab(this,3,a)};g.getEnd=function(){return m(this,rj,4)};g.setEnd=function(a){return Ab(this,4,a)};var joc=function(a){Z.call(this,a)};U(joc,Z);joc.prototype.setWorkItemId=function(a){return tl(this,1,a)};var hoc=[9];ioc.prototype.toObject=function(){return koc(void 0,this)};
var koc=function(a,b){if(null!=b){var c={jobId:V(b,1),state:X(b,2,0),failureReason:V(b,8),start:Pu(a,b.getStart()),end:Pu(a,b.getEnd()),expectedWorkItemUpdatesCount:dj(b,5),workItemUpdatesCount:dj(b,6),workItemUpdateFailuresList:Bb(rb(b,joc,9),loc,a)};a&&(c.$jspbMessageInstance=b);return c}};joc.prototype.toObject=function(){return loc(void 0,this)};var loc=function(a,b){if(null!=b){var c={workItemId:V(b,1),failureReason:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var moc=function(a){Z.call(this,a)};U(moc,Z);var X7=function(a){Z.call(this,a)};U(X7,Z);X7.prototype.getId=function(){return dj(this,1)};X7.prototype.setId=function(a){return Sk(this,1,a)};var noc=function(a){Z.call(this,a)};U(noc,Z);noc.prototype.setWorkItemId=function(a){return tl(this,1,a)};var ooc=function(a){Z.call(this,a)};U(ooc,Z);var poc=function(a){Z.call(this,a)};U(poc,Z);var Y7=function(a){Z.call(this,a)};U(Y7,Z);Y7.prototype.getId=function(){return dj(this,qb(this,Z7,1))};
Y7.prototype.setId=function(a){return ao(this,1,Z7,a)};var $7=function(a){Z.call(this,a)};U($7,Z);$7.prototype.getQuery=function(){return V(this,1)};$7.prototype.setQuery=function(a){return tl(this,1,a)};var a8=function(a){Z.call(this,a)};U(a8,Z);a8.prototype.getId=function(){return V(this,1)};a8.prototype.setId=function(a){return tl(this,1,a)};var b8=function(a){Z.call(this,a)};U(b8,Z);b8.prototype.getId=function(){return dj(this,1)};b8.prototype.setId=function(a){return Sk(this,1,a)};
var c8=[1,2,3,4,5,6,7,8];moc.prototype.toObject=function(){return qoc(void 0,this)};var qoc=function(a,b){if(null!=b){var c={backlogScope:roc(a,wl(b,X7,1,c8)),drillinScope:soc(a,wl(b,noc,2,c8)),goalsScope:toc(a,wl(b,ooc,3,c8)),inboxScope:uoc(a,wl(b,poc,4,c8)),iterationScope:voc(a,wl(b,Y7,5,c8)),searchScope:woc(a,wl(b,$7,6,c8)),tagScope:xoc(a,wl(b,a8,7,c8)),savedQueryScope:yoc(a,wl(b,b8,8,c8))};a&&(c.$jspbMessageInstance=b);return c}};X7.prototype.toObject=function(){return roc(void 0,this)};
var roc=function(a,b){if(null!=b){var c={id:dj(b,1)};a&&(c.$jspbMessageInstance=b);return c}};noc.prototype.toObject=function(){return soc(void 0,this)};var soc=function(a,b){if(null!=b){var c={workItemId:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};ooc.prototype.toObject=function(){return toc(void 0,this)};var toc=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};poc.prototype.toObject=function(){return uoc(void 0,this)};
var uoc=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}},Z7=[1,2,3];Y7.prototype.toObject=function(){return voc(void 0,this)};var voc=function(a,b){if(null!=b){var c={id:n(Or(b,1,Z7)),iterationType:n(Or(b,2,Z7)),iterationTag:n(Or(b,3,Z7))};a&&(c.$jspbMessageInstance=b);return c}};$7.prototype.toObject=function(){return woc(void 0,this)};var woc=function(a,b){if(null!=b){var c={query:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
a8.prototype.toObject=function(){return xoc(void 0,this)};var xoc=function(a,b){if(null!=b){var c={id:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};b8.prototype.toObject=function(){return yoc(void 0,this)};var yoc=function(a,b){if(null!=b){var c={id:dj(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var d8=function(a){Z.call(this,a)};U(d8,Z);d8.prototype.getScope=function(){return m(this,moc,2)};d8.prototype.setScope=function(a){return Ab(this,2,a)};d8.prototype.toObject=function(){return zoc(void 0,this)};var zoc=function(a,b){if(null!=b){var c={savedViewId:V(b,1),scope:qoc(a,b.getScope())};a&&(c.$jspbMessageInstance=b);return c}};
var e8=function(a){Z.call(this,a)};U(e8,Z);g=e8.prototype;g.getComponentId=function(){return dj(this,qb(this,f8,1))};g.setComponentId=function(a){return ao(this,1,f8,a)};g.hasComponentId=function(){return ul(this,1,f8)};g.getHotlistId=function(){return dj(this,qb(this,f8,2))};g.setHotlistId=function(a){ao(this,2,f8,a)};var f8=[1,2];e8.prototype.toObject=function(){return Aoc(void 0,this)};
var Aoc=function(a,b){if(null!=b){var c={componentId:n(Or(b,1,f8)),hotlistId:n(Or(b,2,f8)),syncStartTime:Pu(a,m(b,rj,3)),syncEndTime:Pu(a,m(b,rj,4))};a&&(c.$jspbMessageInstance=b);return c}};
var g8=function(a){Z.call(this,a,-1,Boc)};U(g8,Z);g8.prototype.getName=function(){return V(this,1)};g8.prototype.setName=function(a){return tl(this,1,a)};g8.prototype.getDescription=function(){return V(this,2)};g8.prototype.setDescription=function(a){return tl(this,2,a)};var Coc=function(a){Z.call(this,a)};U(Coc,Z);var Eoc=function(a){Z.call(this,a,-1,Doc)};U(Eoc,Z);var Foc=function(a){Z.call(this,a)};U(Foc,Z);var Hoc=function(a){Z.call(this,a,-1,Goc)};U(Hoc,Z);
var h8=function(a){Z.call(this,a,-1,Ioc)};U(h8,Z);h8.prototype.setAddHotlistIdsList=function(a){hl(this,2,a)};h8.prototype.setRemoveHotlistIdsList=function(a){hl(this,3,a)};var i8=function(a){Z.call(this,a)};U(i8,Z);i8.prototype.getComponentId=function(){return dj(this,1)};i8.prototype.setComponentId=function(a){return Sk(this,1,a)};var j8=function(a){Z.call(this,a)};U(j8,Z);j8.prototype.getStatus=function(){return X(this,1,0)};j8.prototype.setStatus=function(a){return ql(this,1,a)};
var k8=function(a){Z.call(this,a)};U(k8,Z);k8.prototype.getPriority=function(){return X(this,1,0)};k8.prototype.setPriority=function(a){return ql(this,1,a)};var l8=function(a){Z.call(this,a)};U(l8,Z);l8.prototype.getSeverity=function(){return X(this,1,0)};l8.prototype.setSeverity=function(a){return ql(this,1,a)};var m8=function(a){Z.call(this,a)};U(m8,Z);m8.prototype.getItemType=function(){return X(this,1,0)};m8.prototype.setItemType=function(a){ql(this,1,a)};var n8=function(a){Z.call(this,a)};
U(n8,Z);n8.prototype.getAssignee=function(){return V(this,2)};n8.prototype.setAssignee=function(a){tl(this,2,a)};var Koc=function(a){Z.call(this,a,-1,Joc)};U(Koc,Z);var o8=function(a){Z.call(this,a)};U(o8,Z);o8.prototype.getComment=function(){return V(this,2)};o8.prototype.setComment=function(a){return tl(this,2,a)};var Boc=[3];g8.prototype.toObject=function(){return Loc(void 0,this)};
var Loc=function(a,b){if(null!=b){var c={name:V(b,1),description:V(b,2),subActionsList:Bb(rb(b,Coc,3),Moc,a)};a&&(c.$jspbMessageInstance=b);return c}},p8=[1,2,3,4,5,6,7,8,9,10,11,12];Coc.prototype.toObject=function(){return Moc(void 0,this)};
var Moc=function(a,b){if(null!=b){var c={goalAction:Noc(a,wl(b,Eoc,1,p8)),iterationsBacklogsAction:Ooc(a,wl(b,Foc,2,p8)),tagsAction:Poc(a,wl(b,Hoc,3,p8)),hotlistsAction:Qoc(a,wl(b,h8,4,p8)),componentsAction:Roc(a,wl(b,i8,5,p8)),statusAction:Soc(a,wl(b,j8,6,p8)),priorityAction:Toc(a,wl(b,k8,7,p8)),severityAction:Uoc(a,wl(b,l8,8,p8)),assigneeAction:Voc(a,wl(b,n8,9,p8)),ccAction:Woc(a,wl(b,Koc,10,p8)),commentAction:Xoc(a,wl(b,o8,11,p8)),typeAction:Yoc(a,wl(b,m8,12,p8))};a&&(c.$jspbMessageInstance=b);
return c}},Doc=[2,3];Eoc.prototype.toObject=function(){return Noc(void 0,this)};var Noc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addGoalIdsList:n(jb(b,2)),removeGoalIdsList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};Foc.prototype.toObject=function(){return Ooc(void 0,this)};var Ooc=function(a,b){if(null!=b){var c={promptUser:W(b,1),iterationId:dj(b,2),iteration:V(b,3),removeIteration:W(b,4)};a&&(c.$jspbMessageInstance=b);return c}},Goc=[2,3];
Hoc.prototype.toObject=function(){return Poc(void 0,this)};var Poc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addTagsList:n(jb(b,2)),removeTagsList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}},Ioc=[2,3];h8.prototype.toObject=function(){return Qoc(void 0,this)};var Qoc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addHotlistIdsList:n(jb(b,2)),removeHotlistIdsList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};i8.prototype.toObject=function(){return Roc(void 0,this)};
var Roc=function(a,b){if(null!=b){var c={componentId:dj(b,1),promptUser:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};j8.prototype.toObject=function(){return Soc(void 0,this)};var Soc=function(a,b){if(null!=b){var c={status:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};k8.prototype.toObject=function(){return Toc(void 0,this)};var Toc=function(a,b){if(null!=b){var c={priority:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};l8.prototype.toObject=function(){return Uoc(void 0,this)};
var Uoc=function(a,b){if(null!=b){var c={severity:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};m8.prototype.toObject=function(){return Yoc(void 0,this)};var Yoc=function(a,b){if(null!=b){var c={itemType:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};n8.prototype.toObject=function(){return Voc(void 0,this)};var Voc=function(a,b){if(null!=b){var c={promptUser:W(b,1),assignee:V(b,2),removeAssignee:W(b,3)};a&&(c.$jspbMessageInstance=b);return c}},Joc=[2,3];
Koc.prototype.toObject=function(){return Woc(void 0,this)};var Woc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addCcsList:n(jb(b,2)),removeCcsList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};o8.prototype.toObject=function(){return Xoc(void 0,this)};var Xoc=function(a,b){if(null!=b){var c={promptUser:W(b,1),comment:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var q8=function(a){Z.call(this,a)};U(q8,Z);g=q8.prototype;g.getUser=function(){return wl(this,RH,1,r8)};g.setUser=function(a){xu(this,1,r8,a)};g.getGroup=function(){return wl(this,RH,2,r8)};g.setGroup=function(a){xu(this,2,r8,a)};g.getAlias=function(){return V(this,qb(this,r8,3))};g.setAlias=function(a){ao(this,3,r8,a)};var r8=[1,2,3];q8.prototype.toObject=function(){return s8(void 0,this)};
var s8=function(a,b){if(null!=b){var c={user:SH(a,b.getUser()),group:SH(a,b.getGroup()),alias:n(Or(b,3,r8))};a&&(c.$jspbMessageInstance=b);return c}};
var $oc=function(a){Z.call(this,a,-1,Zoc)};U($oc,Z);g=$oc.prototype;g.getInheritance=function(){return X(this,1,0)};g.setInheritance=function(a){ql(this,1,a)};g.getAdminsList=function(){return rb(this,q8,2)};g.setAdminsList=function(a){zb(this,2,a)};g.getInheritedAdminsList=function(){return rb(this,q8,3)};g.getEditorsList=function(){return rb(this,q8,4)};g.setEditorsList=function(a){zb(this,4,a)};g.getImplicitEditorsList=function(){return rb(this,q8,5)};
g.getAppendersList=function(){return rb(this,q8,6)};g.setAppendersList=function(a){zb(this,6,a)};g.getImplicitAppendersList=function(){return rb(this,q8,7)};g.getReadersList=function(){return rb(this,q8,8)};g.setReadersList=function(a){zb(this,8,a)};g.getImplicitReadersList=function(){return rb(this,q8,9)};g.getImplicitAccess=function(){return X(this,10,0)};g.setImplicitAccess=function(a){return ql(this,10,a)};g.getRestrictedReadersList=function(){return rb(this,q8,11)};
g.setRestrictedReadersList=function(a){zb(this,11,a)};g.getRestrictedPlusReadersList=function(){return rb(this,q8,12)};g.setRestrictedPlusReadersList=function(a){zb(this,12,a)};var Zoc=[2,3,4,5,6,7,8,9,11,12];$oc.prototype.toObject=function(){return apc(void 0,this)};
var apc=function(a,b){if(null!=b){var c={inheritance:X(b,1,0),adminsList:Bb(b.getAdminsList(),s8,a),inheritedAdminsList:Bb(b.getInheritedAdminsList(),s8,a),editorsList:Bb(b.getEditorsList(),s8,a),implicitEditorsList:Bb(b.getImplicitEditorsList(),s8,a),appendersList:Bb(b.getAppendersList(),s8,a),implicitAppendersList:Bb(b.getImplicitAppendersList(),s8,a),readersList:Bb(b.getReadersList(),s8,a),implicitReadersList:Bb(b.getImplicitReadersList(),s8,a),implicitAccess:X(b,10,0),restrictedReadersList:Bb(b.getRestrictedReadersList(),
s8,a),restrictedPlusReadersList:Bb(b.getRestrictedPlusReadersList(),s8,a)};a&&(c.$jspbMessageInstance=b);return c}};
var dt=function(a){Z.call(this,a,-1,bpc)};U(dt,Z);g=dt.prototype;g.getWorkspaceId=function(){return dj(this,1)};g.getName=function(){return V(this,2)};g.setName=function(a){return tl(this,2,a)};g.getTimeZone=function(){return m(this,cG,8)};g.setTimeZone=function(a){return Ab(this,8,a)};g.hasTimeZone=function(){return cj(this,8)};g.getMembersList=function(){return rb(this,t8,9)};g.getBookmarkGroupId=function(){return dj(this,14)};g.setBookmarkGroupId=function(a){Sk(this,14,a)};
var cpc=function(a){return ho(dt,a)},epc=function(a){Z.call(this,a,-1,dpc)};U(epc,Z);var u8=function(a){Z.call(this,a)};U(u8,Z);u8.prototype.getHotlistId=function(){return dj(this,1)};u8.prototype.setHotlistId=function(a){Sk(this,1,a)};var t8=function(a){Z.call(this,a)};U(t8,Z);t8.prototype.getEmail=function(){return V(this,1)};t8.prototype.setEmail=function(a){return tl(this,1,a)};var bpc=[5,9,13,15,16,17,18],fpc=[6,7];dt.prototype.toObject=function(){return gpc(void 0,this)};
var gpc=function(a,b){if(null!=b){var c={workspaceId:dj(b,1),name:V(b,2),defaultComponentId:dj(b,3),inboxQuery:V(b,4),componentIdsList:n(jb(b,5)),componentBased:hpc(a,wl(b,epc,6,fpc)),hotlistBased:ipc(a,wl(b,u8,7,fpc)),timeZone:Vyb(a,b.getTimeZone()),membersList:Bb(b.getMembersList(),jpc,a),trashComponentId:dj(b,10),defaultHotlistAcls:apc(a,m(b,$oc,11)),updateTime:Pu(a,m(b,rj,12)),triageActionsList:Bb(rb(b,g8,13),Loc,a),bookmarkGroupId:dj(b,14),defaultSavedViewsList:Bb(rb(b,d8,15),zoc,a),tagMigrationJobDatasList:Bb(rb(b,
ioc,16),koc,a),kanbanMigrationJobData:foc(a,m(b,doc,19)),customStatusesList:Bb(rb(b,$nc,17),aoc,a),boardColumnsList:Bb(rb(b,T7,18),Xnc,a)};a&&(c.$jspbMessageInstance=b);return c}},dpc=[1,2];epc.prototype.toObject=function(){return hpc(void 0,this)};var hpc=function(a,b){if(null!=b){var c={componentIdsList:n(jb(b,1)),sourceSyncStateList:Bb(rb(b,e8,2),Aoc,a)};a&&(c.$jspbMessageInstance=b);return c}};u8.prototype.toObject=function(){return ipc(void 0,this)};
var ipc=function(a,b){if(null!=b){var c={hotlistId:dj(b,1),sourceSyncState:Aoc(a,m(b,e8,2))};a&&(c.$jspbMessageInstance=b);return c}};t8.prototype.toObject=function(){return jpc(void 0,this)};var jpc=function(a,b){if(null!=b){var c={email:V(b,1),isGroup:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var kpc=function(a){Z.call(this,a)};U(kpc,Z);kpc.prototype.getWorkspaceId=function(){return dj(this,1)};kpc.prototype.toObject=function(){var a=null!=this?{workspaceId:dj(this,1)}:void 0;return a};
var lpc=new mG("/google.corp.devtools.worktracker.v1.WorkspaceService/Get",kpc,dt,function(a){return a.serialize()},cpc);
var v8=function(a){Z.call(this,a)};U(v8,Z);v8.prototype.setWorkItemId=function(a){return ao(this,1,mpc,a)};var npc=function(a){Z.call(this,a)};U(npc,Z);var mpc=[1,2];v8.prototype.toObject=function(){if(null!=this){var a=n(Or(this,1,mpc));var b=null!=wl(this,npc,2,mpc)?{}:void 0;a={workItemId:a,userWorkspacesRequest:b}}else a=void 0;return a};npc.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var ppc=function(a){Z.call(this,a,-1,opc)};U(ppc,Z);var opc=[1];ppc.prototype.toObject=function(){var a=null!=this?{workspacesList:Bb(rb(this,dt,1),gpc)}:void 0;return a};
var qpc=new mG("/google.corp.devtools.worktracker.v1.WorkspaceService/List",v8,ppc,function(a){return a.serialize()},function(a){return ho(ppc,a)});
var rpc=function(a){Z.call(this,a)};U(rpc,Z);rpc.prototype.toObject=function(){var a=null!=this?{workspace:gpc(void 0,m(this,dt,1)),updateMask:XG(void 0,m(this,WG,2))}:void 0;return a};
var spc=new mG("/google.corp.devtools.worktracker.v1.WorkspaceService/Update",rpc,dt,function(a){return a.serialize()},cpc);
var tpc=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new UG(b);this.hostname_=a};tpc.prototype.get=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Get",a,b||{},lpc)};tpc.prototype.list=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/List",a,b||{},qpc)};
tpc.prototype.update=function(a,b){return hG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Update",a,b||{},spc)};
var upc={},vpc;upc.Authorization=null!=(vpc=Mo([]))?vpc:"";upc["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";upc["X-Goog-AuthUser"]="0";
var w8=function(a,b){this.activeSession=a;this.clientFactory=b;this.environmentType=this.activeSession.getEnvironmentType();a:switch(this.environmentType){case "NIGHTLY":a="https://staging-worktracker-googleapis.corp.google.com";break a;case "PROD":a="https://worktracker-googleapis.corp.google.com";break a;default:a="https://autopush-worktracker-googleapis.corp.google.com"}this.client=this.clientFactory.create(a)},wpc=function(a,b){return a.activeSession.isExternalSession()?(0,T.of)([]):(0,T.from)(a.client.list((new v8).setWorkItemId("b/"+
b),upc)).pipe(C(w6a(b)),Ie(function(){return(0,T.of)([])}))};w8.\u0275fac=function(a){return new (a||w8)(t(pH),t(x8))};w8.\u0275prov=ec({token:w8,factory:w8.\u0275fac,providedIn:"root"});var x8=function(){};x8.prototype.create=function(a){return new tpc(a)};x8.\u0275fac=function(a){return new (a||x8)};x8.\u0275prov=ec({token:x8,factory:x8.\u0275fac,providedIn:"root"});
var xpc=0,y8=function(a){this.elementRef=a;this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.headerId="b-collapsible-panel-header-"+xpc;this.id="b-collapsible-panel-"+xpc;xpc++};y8.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
ki.Object.defineProperties(y8.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titleWhenCollapsed=this.titleWhenExpanded=a},get:function(){return this.isExpanded?this.titleWhenExpanded:this.titleWhenCollapsed}},expandedState:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?"expanded":"collapsed"}}});y8.\u0275fac=function(a){return new (a||y8)(F(nd))};
y8.\u0275cmp=v({type:y8,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",title:"title"},ngContentSelectors:["*"],decls:7,vars:8,consts:[[1,"collapsible-panel"],[1,"title-bar","unstyled-button",3,"click","mouseup"],[1,"title"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"]],template:function(a,b){a&1&&(Cf(),G(0,"div",0)(1,"button",1),K("click",function(){return b.toggleExpansion()})("mouseup",
function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),G(2,"span",2),P(3),H(),J(4,"mat-icon",3),H(),G(5,"div",4),Df(6),H()());a&2&&(B(1),nf("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),B(2),Jf(b.title),B(1),D("@expandCollapseIcon",b.expandedState),B(1),D("@expandCollapseContent",b.expandedState),nf("id",b.id)("aria-labelledby",b.headerId))},dependencies:[LE],styles:['.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;padding:4px 4px 4px 7px;margin:6px 0px 6px 12px;width:calc(100% - 18px);border-radius:4px;transition:200ms background-color}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]:focus{background-color:#e8f0fe;background-color:var(--primary-c50)}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:1}.collapsible-panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{overflow:hidden}'],
data:{animation:[Dh("expandCollapseContent",[Gh("expanded",Fh({height:"*",visibility:"visible"})),Gh("collapsed",Fh({height:"0",visibility:"hidden"})),Hh("expanded <=> collapsed",[Eh("200ms")])]),Dh("expandCollapseIcon",[Gh("expanded",Fh({transform:"rotate(-180deg)"})),Gh("collapsed",Fh({transform:"*"})),Hh("expanded <=> collapsed",[Eh("200ms")])])]}});
var z6a=function(a){return[a]},C6a=function(){return[]},o7a=function(a){return{$implicit:a}},z8=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N){var L=this;this.activeSession=a;this.editIssueService=b;this.issueFridge=c;this.issuePermissionService=d;this.issueDetailsBrain=e;this.constants=f;this.refreshMonitor=h;this.userPreferencesManager=k;this.documentationLinks=q;this.workspaceService=w;this.changelistApi=y;this.issueMarkAsDuplicateDialogService=E;this.analytics=I;this.issueInsightsSidebarService=N;this.issueId$=
new T.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Le());this.issue$=this.distinctIssueId$.pipe(Xe(function(S){return L.editIssueService.editableIssue$(S)}));this.enablePeoplekitAc=rH(this.activeSession,"enablePeoplekitUserAc");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.showSloStatus=this.sessionIsInternal;this.showChangelists=!this.sessionIsExternal;this.defaultAssigneeQuickActionEnabled=this.sessionIsInternal;
this.HOTKEYS=xI;this.trackCustomField=function(S,Y){return"{"+Y.componentId+", "+Y.customFieldId+"}"};this.FieldType=vXb;this.ListFieldType=oYb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;this.showImplicitAccessIndicator$=this.issuePermissionService.showImplicitAccessIndicator$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;
this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(C(function(S){return!L.activeSession.isExternalSession()&&rH(L.activeSession,"enableWtdmMvpUi")&&!S}));this.teamSuggestions$=this.issueDetailsBrain.teamSuggestions$;this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.canonicalIssueId$=this.issueDetailsBrain.canonicalIssueId$;this.sloId$=this.issueDetailsBrain.sloId$;this.sloStatus$=this.issueDetailsBrain.sloStatus$;
this.createdTimeMicros$=this.issueDetailsBrain.createdTimeMicros$;this.teamId$=this.issueDetailsBrain.teamId$;this.teamWarningType$=this.issueDetailsBrain.team$.pipe(C(OYa));this.component$=this.issueDetailsBrain.component$;this.effort$=this.issueDetailsBrain.effort$;this.issueFields$=this.distinctIssueId$.pipe(C(function(S){return L.editIssueService.issueFields(S)}),Ue({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(Xe(function(S){return S.isForgottenFourPrimary$}));
this.showHiddenFieldsLabel$=this.issueFields$.pipe(Xe(function(S){return S.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(Xe(function(S){return S.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(Xe(function(S){return S.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(Xe(function(S){return S.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(Xe(function(S){return S.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(Xe(function(S){return S.hiddenCustomFields$}));
this.visibleCustomFields$=this.issueFields$.pipe(Xe(function(S){return S.visibleCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(C(function(S){return L.editIssueService.issueQuickActions(S)}),Ue({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(Xe(function(S){return S.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(Xe(function(S){return S.issueStatusQuickAction$}));this.priorityChoices=this.constants.priorities.map(function(S){return{value:S,
displayText:S}});this.severityChoices=this.constants.severities.map(function(S){return{value:S,displayText:S}});this.typeChoices=this.constants.editIssueTypeChoices;this.teamHovercardInputs$=(0,T.combineLatest)([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(C(function(S){var Y=r(S);S=Y.next().value;Y=Y.next().value;return{teamId:Y?String(Y):"0",componentId:S?String(S):"0"}}));this.isTeamWarningDismissed$=(0,T.combineLatest)([this.issue$,this.userPreferencesManager.preferences$]).pipe(C(function(S){S=
r(S);var Y=S.next().value,ka,ha;return null==(ka=S.next().value.teamWarningPreferences)?void 0:null==(ha=ka.componentTeamWarnings)?void 0:ha.some(function(ya){return ya.componentId===Y.componentId})}));this.shouldDisplayTeamSuggestions$=(0,T.combineLatest)([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$]).pipe(C(function(S){var Y=r(S);S=Y.next().value;var ka=Y.next().value;Y=Y.next().value;return rH(L.activeSession,"enableTeamSuggestions")&&S&&
!ka&&("MISSING"===Y||"DELETED"===Y)}));this.statusChoices$=this.canonicalIssueId$.pipe(C(function(S){return[].concat(u(XIb.filter(function(Y){return"DUPLICATE"!==Y.value})),[{value:"DUPLICATE",displayText:S?"Duplicate of "+S:"Duplicate"}])}));this.workspaces$=this.distinctIssueId$.pipe(Xe(function(S){return wpc(L.workspaceService,Number(S))}),Ue({refCount:!0,bufferSize:1}));this.pendingChangelists$=NIb(this.refreshMonitor,this.distinctIssueId$).pipe(Xe(function(S){return L.changelistApi.getPendingChangelistsForIssue(S)}),
C(function(S){return S.changelistNumbers}),C(function(S){return{cls:S,hasError:!1}}),Ie(function(){return(0,T.of)({cls:[],hasError:!0})}),Ue({refCount:!0,bufferSize:1}));this.reconcileView={assignee:function(S){var Y,ka;S.value=null!=(ka=null==(Y=Pj(L.issue$))?void 0:Y.assignee)?ka:""},reporter:function(S){var Y,ka;S.value=null!=(ka=null==(Y=Pj(L.issue$))?void 0:Y.reporter)?ka:""},verifier:function(S){var Y,ka;S.value=null!=(ka=null==(Y=Pj(L.issue$))?void 0:Y.verifier)?ka:""},ccs:function(S){var Y,
ka;S.values=null!=(ka=null==(Y=Pj(L.issue$))?void 0:Y.cc)?ka:[]}}};z8.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var h7a=function(a){var b=a.issuePermissionService.isCurrentUserCCd();bo(a.analytics,go.EDIT_ISSUE,"toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!nO(a.issuePermissionService,e)}):[].concat(u(c.cc),[a.activeSession.getUserEmail()]);return AQb(a.editIssueService,a.issueId,d)},W6a=function(a,b,c){return gt(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.assignee(b)})},F6a=function(a,b,c){return H6a(a.editIssueService,
a.issueId,c).finally(function(){a.reconcileView.reporter(b)})},b7a=function(a,b,c){return d7a(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.verifier(b)})},d8a=function(a,b,c){return AQb(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.ccs(b)})},ft=function(a,b){bo(a.analytics,go.EDIT_ISSUE,"quickAction (sidebar)",null==b?void 0:b.displayText);return a.editIssueService.performQuickAction(a.issueId,b)},c8a=function(a,b){var c;return me(function(d){return(c=aBb(b))?
"DUPLICATE"===c?d.return(Z1a(a.issueMarkAsDuplicateDialogService,a.issueId)):d.return(yQb(a.editIssueService,a.issueId,c)):d.return()})};z8.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(C(function(c){return b.editIssueService.savingState(c)}),Xe(function(c){return Ms(c,a)}))};z8.\u0275fac=function(a){return new (a||z8)(F(pH),F(nS),F(yL),F(oO),F(mO),F(ZH),F(uL),F(zI),F(tP),F(w8),F(eV),F(C6),F(SM),F(D6))};
z8.\u0275cmp=v({type:z8,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},features:[Ac],decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["peoplekitReporter",""],[3,"name","title","type","value","choices","readonly","disabled","valueChange"],[1,"flex-wrappable","flex-kids-y"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","hotkey","readonly","disabled","onHotkey","valueChange"],[1,"status-field-row"],[3,"name","title","type","value","choices","readonly","disabled",
"onedevHovercardActive","onedevHovercardTrigger","valueChange"],["canonicalHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"effort","effortSpec","effortChange",4,"ngIf"],[1,"flex-kids-y"],["class","implicit-access-header flex-kids-x flex-cross-axis-centered flex-spread full-width",4,"ngIf"],[1,"flex-1"],["peoplekitAssignee",""],["peoplekitVerifier",""],[1,"full-width",3,"defaultLineCount","readonly","title","type","isUser","values","users","listFieldDisabled",
"teamId","valuesChange"],["ccsField",""],[1,"value-action"],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"disabled","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[3,"readonly","defaultLineCount","title","type","values","tooltip",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","hidden-fields-separator",4,"ngIf"],[3,"titleWhenCollapsed","titleWhenExpanded",4,"ngIf"],["sloField",""],["severityField",""],["changelistsFields",""],["foundInField",
""],["targetedToField",""],["verifiedInField",""],["inProdField",""],["forgottenFourFields",""],["customFieldTemplate",""],[4,"ngTemplateOutlet"],["class","issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values",4,"ngIf"],[1,"issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values"],["class","issue-metadata-field-short",4,"ngIf"],[1,"issue-metadata-field-short"],[3,"warningType","componentId","parentComponentId","teamSuggestions","updateTeam"],
[3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","valueChange"],["reporterField",""],[3,"thinking"],[3,"user","teamId","disabled","emailChange"],["class","bv2-metadata-quick-action",4,"ngIf"],[1,"bv2-metadata-quick-action"],[1,"bv2-field-label-spacer"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""],[3,"effort","effortSpec",
"effortChange"],[1,"implicit-access-header","flex-kids-x","flex-cross-axis-centered","flex-spread","full-width"],[1,"implicit-access-header-text"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["implicitAccessHelpBubble",""],["target","_blank",3,"href"],[3,"hotkey","name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","onHotkey","valueChange"],["assigneeField",""],["class","bv2-metadata-quick-action","tabindex","0","role","button",3,"hotkey","matTooltip",
"onHotkey","click","keydown.enter","keydown.space",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"hotkey","matTooltip","onHotkey","click","keydown.enter","keydown.space"],["class","bv2-metadata-link",3,"disabled",4,"ngIf"],[1,"bv2-metadata-link"],[3,"hotkey","user","teamId","disabled","onHotkey","emailChange"],["userPicker","bUserPicker"],["actions",""],["class","bv2-metadata-link","tabindex","0","role","button",3,"click",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-link",
3,"click"],["class","bv2-metadata-link","tabindex","0","role","button",3,"hotkey","matTooltip","disabled","onHotkey","click","keydown.enter","keydown.space",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"hotkey","matTooltip","onHotkey","click","keydown.enter","keydown.space"],[1,"flex-1",3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","valueChange"],["verifierField",""],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",
3,"matTooltip","click","keydown.enter","keydown.space"],[3,"readonly","defaultLineCount","title","type","values","tooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"hidden-fields-separator"],[3,"titleWhenCollapsed","titleWhenExpanded"],[3,"refreshable"],["tabindex","0",1,"issue-metadata-field-long",3,"sloStatus","sloSnoozeUntil","sloId","componentId","isEditable","issueCreationTimestamp","onSnoozeChange"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","readonly","disabled",
"valueChange"],[3,"readonly","defaultLineCount","title","type","values","listFieldDisabled","valuesChange"],[1,"title-action"],[3,"pressed",4,"ngIf"],[3,"pressed"],[1,"issue-metadata-field-short","issue-metadata-field-short-left",3,"name","title","type","multiline","tooltip","value","readonly","disabled","valueChange"],[3,"name","title","type","multiline","tooltip","value","readonly","disabled","valueChange"],[3,"name","title","type","value","tooltip","readonly","disabled","valueChange"],[3,"issue",
"field","readonly","disabled","save"]],template:function(a,b){a&1&&(O(0,e8a,84,115,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.issue$))},dependencies:[y8,wx,sx,Cx,xV,aV,Y4,T4,U4,V4,hJ,pN,qN,tN,rN,N7,EX,i5,vV,LE,$E,eP,Q3,S7,SS,IN,LM,Fx],encapsulation:2});
var ypc={},zpc=(ypc.COMFORTABLE=330,ypc.COZY=300,ypc.COMPACT=270,ypc),A8=function(a){BI.call(this);var b=this;this.userPreferencesManager=a;this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(C(function(c){var d;return null==(d=c.themePreferences)?void 0:d.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(C(function(c){var d;return null==(d=c.layoutPreferences)?void 0:d.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new T.Subject;this.currentSidebarWidth$=(0,T.combineLatest)([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(We(void 0))]).pipe(C(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return null!=d?d:null!=e?e:zpc[null!=c?c:"COMFORTABLE"]}));(0,T.combineLatest)([this.rightSidebarWidthChanged$.pipe(Le()),this.sidebarWidthPreference$]).pipe(De(function(c){c=r(c);var d=c.next().value;return c.next().value!==d}),Xe(function(c){c=r(c);var d=c.next().value;
c.next();return OCb(b.userPreferencesManager,{rightSidebarWidth:d})}),Ye(this.destroyed$)).subscribe()};U(A8,BI);A8.\u0275dir=BI.\u0275dir;A8.prototype.ngOnInit=function(){};A8.\u0275fac=function(a){return new (a||A8)(F(zI))};
A8.\u0275cmp=v({type:A8,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},features:[gf],decls:7,vars:7,consts:[[1,"a11y-only"],["direction","rtl",3,"disableToggleBtn","hideToggleBtnOnOpen","minWidth","size","widthChanged"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId",4,"ngIf"],[3,"issueId"]],template:function(a,b){a&1&&(G(0,"h3",0),P(1,"Issue metadata"),H(),G(2,"b-resizable-sidebar",1),K("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),Q(3,"async"),
G(4,"div",2)(5,"div",3),O(6,f8a,1,1,"edit-issue-metadata",4),H()()());if(a&2){var c;B(2);D("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",null!==(c=R(3,5,b.currentSidebarWidth$))&&void 0!==c?c:0);B(4);D("ngIf",b.issueId)}},dependencies:[sx,z8,fP,Fx],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});
var s8a=function(){return{exact:!0}},B8=function(a,b,c,d,e,f,h){BI.call(this);var k=this;this.route=a;this.issueFridge=b;this.onboardingDialogService=c;this.activeSession=d;this.permissions=e;this.editIssueService=f;this.counts=h;this.STATUS_IS_FEATURED=ZIb;this.id$=this.route.paramMap.pipe(C(function(q){var w;return null!=(w=q.get("issueId"))?w:void 0}));this.issue$=this.id$.pipe(Xe(function(q){return k.issueFridge.watch(q)}));this.snapshot$=this.issue$.pipe(C(function(q){return null==q?void 0:q.snapshot[0]}));
this.archived$=this.snapshot$.pipe(C(function(q){return null==q?void 0:q.isArchived}));this.deleted$=this.snapshot$.pipe(C(function(q){return null==q?void 0:q.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(C(function(q){return q?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(C(function(q){return(null==q?void 0:q.isArchived)&&!(null==q?0:q.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(C(function(q){return null==
q?void 0:q.snapshot[0].status}),C(function(q){return Wl[q]}));this.prettyStatus$=this.status$.pipe(De($k),C(function(q){return LL[q]}));this.title$=this.issue$.pipe(C(function(q){var w;return null!=(w=null==q?void 0:q.snapshot[0].title)?w:""}));this.issuesBeingBlocked$=this.issue$.pipe(C(function(q){var w;return null!=(w=null==q?void 0:q.snapshot[0].blockingIssueId)?w:[]}),Ke(1E3),Xe(function(q){return $J(k.issueFridge,q)}));this.issue$.pipe(C(function(q){var w;return null!=(w=null==q?void 0:q.snapshot[0].duplicateIssueId)?
w:[]}),Ke(1E3),Xe(function(q){return $J(k.issueFridge,q)}));this.tabs=[{link:"./",title:"Comments",count$:this.counts.countCommentsDisplay$},{link:"./dependencies",title:"Dependencies",count$:this.counts.countDependenciesDisplay$},{link:"./dupes",title:"Duplicates",count$:this.counts.countDuplicateDisplay$},{link:"./blocking",title:"Blocking",count$:this.counts.countBlockedDisplay$},{link:"./resources",title:"Resources",count$:this.counts.countResourcesDisplay$}].concat(u(rH(this.activeSession,"enableCodeMentionsUi")?
[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]))};U(B8,BI);B8.\u0275dir=BI.\u0275dir;B8.prototype.ngAfterViewInit=function(){Hnc(this.onboardingDialogService)};B8.\u0275fac=function(a){return new (a||B8)(F(fk),F(yL),F(M7),F(pH),F(oO),F(nS),F(p7))};
B8.\u0275cmp=v({type:B8,selectors:[["issue-details-wrapper"]],features:[Lf([{provide:M2b,useValue:L2b},cY]),gf],decls:17,vars:22,consts:[["class","a11y-only",4,"ngIf"],[1,"flex-kids-y","pos-fill"],["class","border-bottom",3,"messageType","format","iconOverride",4,"ngIf"],["messageType","caution","class","border-bottom",3,"format","iconOverride",4,"ngIf"],["messageType","error","format","app","class","border-bottom",4,"ngIf"],["class","issue-header",4,"ngIf"],[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],
["cdkScrollable","",1,"flex-1","pos-rel","bg-off-main","overflow","overflow-on-print-media"],[3,"issueId",4,"ngIf"],[1,"a11y-only"],[1,"border-bottom",3,"messageType","format","iconOverride"],["href","http://go/buganizer-issue-archive","target","_blank",4,"ngIf"],["mat-button","","aria-label","Unarchive issue",3,"click",4,"ngIf"],["href","http://go/buganizer-issue-archive","target","_blank"],["mat-button","","aria-label","Unarchive issue",3,"click"],["messageType","caution",1,"border-bottom",3,"format",
"iconOverride"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank",4,"ngIf"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],["messageType","error","format","app",1,"border-bottom"],[4,"ngIf"],["href","http://go/issue-retention","target","_blank",4,"ngIf"],["mat-button","","aria-label","Undelete issue",3,"matTooltip","disabled","click",4,"ngIf"],["href","http://go/issue-retention","target","_blank"],["mat-button",
"","aria-label","Undelete issue",3,"matTooltip","disabled","click"],[1,"issue-header"],[1,"pos-fill",2,"bottom","auto","height","6px",3,"title"],[1,"flex-kids-x","space-between","border-bottom","padded-s-bottom",3,"ngClass"],[3,"issueId"],[1,"flex-kids-y","padded-s-top","padded-s-right","align-items-end","justify-flex-end"],[1,"flex-kids-x","gap-s"],["mat-tab-nav-bar","","gmat-tabs",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions",4,"ngFor","ngForOf"],
["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions"],["rla","routerLinkActive"],["style","margin-left: 4px;",4,"ngIf"],[2,"margin-left","4px"]],template:function(a,b){a&1&&(O(0,g8a,2,1,"h2",0),Q(1,"async"),G(2,"div",1),Q(3,"async"),O(4,j8a,7,7,"b-callout",2),Q(5,"async"),O(6,l8a,4,3,"b-callout",3),Q(7,"async"),O(8,q8a,9,7,"b-callout",4),Q(9,"async"),O(10,u8a,16,20,"header",5),Q(11,"async"),G(12,"div",6)(13,"article",7),J(14,"router-outlet"),H(),O(15,v8a,1,1,
"issue-metadata-sidebar",8),Q(16,"async"),H()());a&2&&(D("ngIf",R(1,8,b.id$)),B(2),sf("issue-editor-false",!R(3,10,b.permissions.hasAclToEdit$)),B(2),D("ngIf",R(5,12,b.archived$)),B(2),D("ngIf",R(7,14,b.inArchivedComponent$)),B(2),D("ngIf",R(9,16,b.deleted$)),B(2),D("ngIf",R(11,18,b.id$)),B(5),D("ngIf",R(16,20,b.id$)))},dependencies:[vx,wx,sx,LI,QI,RI,pB,gX,hX,iZ,tA,$E,jI,kI,I7,y7,J7,A8,K7,Fx],styles:["b-pagination-one-issue[_ngcontent-%COMP%]{margin-top:-8px}issue-actions[_ngcontent-%COMP%]{margin-top:4px}[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px}[_nghost-%COMP%]     .issue-header .b-chip{margin-right:0;max-width:100%}"]});
var C8=function(){E6.apply(this,arguments)};U(C8,E6);C8.\u0275dir=E6.\u0275dir;C8.prototype.loadRelatedIssues=function(){};C8.\u0275fac=function(){var a;return function(b){return(a||(a=cd(C8)))(b||C8)}}();
C8.\u0275cmp=v({type:C8,selectors:[["ng-component"]],features:[Lf([uI,oS,{provide:FW,useClass:u6},{provide:E6,useExisting:ac(function(){return C8})}]),gf],decls:3,vars:2,consts:[["wrapper",""],["class","bv2-access-denied",4,"ngIf","ngIfElse"],[1,"bv2-access-denied"],[3,"issueMetadata"]],template:function(a,b){a&1&&(O(0,w8a,1,0,"ng-template",null,0,gg),O(2,x8a,2,1,"div",1));if(a&2){var c=Hf(1);B(2);D("ngIf",b.isShowAccessDeniedComponent)("ngIfElse",c)}},dependencies:[sx,E2,B8],encapsulation:2});
var D8=function(a,b){BI.call(this);var c=this;this.issueFridge=a;this.butterBar=b;this.duplicateIssueIds$=new T.BehaviorSubject([]);this.tableColumns="focus-indicator title team id createdTime reporter menu".split(" ");this.initialSort={active:"createdTime",direction:"desc"};this.getMenuItems=function(d){return[{type:"action",label:"Remove duplicate",action:function(){c.removeDuplicate(d)},title:"Remove duplicate",icon:"clear"}]}};U(D8,BI);D8.\u0275dir=BI.\u0275dir;D8.prototype.ngOnInit=function(){};
D8.prototype.removeDuplicate=function(a){var b=this,c;return me(function(d){if(1==d.nextAddress)return Lt(d,2),ne(d,b.issueFridge.removeDuplicate(b.issueId,a),4);if(2!=d.nextAddress)return Mt(d,0);c=Nt(d);QK(b.butterBar,"Could not remove duplicate "+a+". "+c);oe(d)})};ki.Object.defineProperties(D8.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((null!=a?a:[]).map(function(b){return String(b)}))}}});
D8.\u0275fac=function(a){return new (a||D8)(F(yL),F(OK))};D8.\u0275cmp=v({type:D8,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},features:[gf],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(O(0,y8a,2,4,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.duplicateIssueIds$))},dependencies:[sx,W6,Fx],encapsulation:2,changeDetection:0});
var E8=function(a,b,c,d){BI.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.ROBOT_SLEEPING=zjc;this.id$=this.bestRoute.paramMap.pipe(C(function(f){return f.get("issueId")}),De($k),Ze(function(f){e.lastKnownId=f}));this.dupeUrl$=this.id$.pipe(C(function(f){return{path:"/issues",params:{q:"canonicalid:"+f}}}));this.issue$=this.id$.pipe(Xe(function(f){return e.issues.watch(f)}));this.duplicateIds$=this.issue$.pipe(C(function(f){var h;return null!=(h=null==f?void 0:
f.snapshot[0].duplicateIssueId)?h:[]}));this.didChooseDupes=function(f){null!=e.lastKnownId&&TIb(e.issues,e.lastKnownId,f[0]).catch(e.gotErr)};this.gotErr=function(f){e.snackBar.open(ym(f)||"Error with network request","close",{panelClass:"error"})}};U(E8,BI);E8.\u0275dir=BI.\u0275dir;E8.prototype.isThinking=function(){return this.issues.isThinking()};var z8a=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1},a.didChooseDupes)};
ki.Object.defineProperties(E8.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});E8.\u0275fac=function(a){return new (a||E8)(F(fk),F(yL),F(MX),F(LK))};
E8.\u0275cmp=v({type:E8,selectors:[["ng-component"]],features:[gf],decls:4,vars:4,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","pos-tr padded",4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/duplicate-issue",1,"nowrap"],["mat-flat-button","","color","primary","matTooltip",
"Add a duplicate to the current issue",1,"gmat-button","small",3,"click"],[1,"section-heading","muted"],["mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"gmat-button","small","add",3,"click"],[3,"issueId","duplicateIds",4,"ngIf"],[1,"margin-s-top","flex-kids-x","gap-s"],[3,"issueId","duplicateIds"],["mat-button","","color","primary",1,"gmat-button","small",3,"routerLink","queryParams"],[1,"pos-tr","padded"]],template:function(a,b){a&1&&(G(0,"section",0),
O(1,E8a,4,2,"ng-container",1),Q(2,"async"),H(),O(3,F8a,2,0,"aside",2));a&2&&(B(1),D("ngIf",R(2,2,b.duplicateIds$)),B(2),D("ngIf",b.isThinking()))},dependencies:[sx,QI,pB,qB,$E,mN,D8,Fx],styles:["[_nghost-%COMP%]{display:block;padding:8px}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 8px 8px 16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}button.add[_ngcontent-%COMP%]{margin-left:16px}\n/*# sourceMappingURL=issue_duplicates.css.map */"]});
var F8=function(){};F8.\u0275fac=function(a){return new (a||F8)};F8.\u0275mod=rc({type:F8});F8.\u0275inj=fc({imports:[[Mx,dz,Ez,wy,xy,WI,jG,jX,bH,dF,$N,IX,mP,YN,b7]]});
var G8=function(a){BI.call(this);this.preferences=a;this.showRecentEventsFirst=!1};U(G8,BI);G8.\u0275dir=BI.\u0275dir;G8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(De($k),Ye(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b})};G8.\u0275fac=function(a){return new (a||G8)(F(zI))};
G8.\u0275cmp=v({type:G8,selectors:[["b-event-stream-header"]],features:[gf],decls:7,vars:2,consts:[[1,"flex-kids-x","flex-spread"],[1,"comments-subtext"],["mat-stroked-button","","color","primary",1,"gmat-button","sort-order-button",3,"click"],[4,"ngIf"],["svgIcon","arrow-downward",1,"sort-order-arrow","icon-xs"],["svgIcon","arrow-upward",1,"sort-order-arrow","icon-xs"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"span",1),P(2,"COMMENTS"),H(),G(3,"div")(4,"button",2),K("click",function(){b.preferences.save({showRecentEventsFirst:!b.showRecentEventsFirst}).pipe(Ye(b.destroyed$)).subscribe()}),
O(5,G8a,3,0,"ng-container",3),O(6,H8a,3,0,"ng-container",3),H()()());a&2&&(B(5),D("ngIf",!b.showRecentEventsFirst),B(1),D("ngIf",b.showRecentEventsFirst))},dependencies:[sx,LE,pB],styles:[".comments-subtext[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:.6875rem;letter-spacing:.8px}.sort-order-button[_ngcontent-%COMP%]{height:24px;line-height:24px;padding-left:6px;padding-right:10px}.sort-order-arrow[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px}"]});
var Apc=function(a){Z.call(this,a)};U(Apc,Z);g=Apc.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return dj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.getPiiRetention=function(){return X(this,3,0)};g.setPiiRetention=function(a){return l(this,3,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumber:n(p(this,2)),piiRetention:n(p(this,3))}:void 0;return a};
var H8=function(a){this.executor=a};H8.prototype.get=function(a,b,c){var d=String;a:{c=void 0===c?1:c;switch(c){case 0:case 1:c=1;break a;case 2:c=2;break a;case 3:c=3;break a;default:bh(c)}c=void 0}return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:{"X-Restricted-Content-Limit":d(c)}},responseConstructor:rK})};
H8.prototype.updateRetention=function(a,b,c){c=(new Apc).setIssueId(String(a)).setCommentNumber(b).setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:rK})};H8.\u0275fac=function(a){return new (a||H8)(t(pI))};H8.\u0275prov=ec({token:H8,factory:H8.\u0275fac,providedIn:"root"});
var Bpc=function(a){Z.call(this,a)};U(Bpc,Z);g=Bpc.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getAttachmentId=function(){return kj(this,2)};g.setAttachmentId=function(a){l(this,2,a)};g.getPiiRetention=function(){return X(this,3,0)};g.setPiiRetention=function(a){return l(this,3,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),attachmentId:n(p(this,2)),piiRetention:n(p(this,3))}:void 0;return a};
var I8=function(a){this.executor=a};I8.prototype.updateRetention=function(a,b,c){var d=new Bpc;d.setIssueId(String(a));d.setAttachmentId(String(b));d.setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:d,responseConstructor:an})};I8.\u0275fac=function(a){return new (a||I8)(t(pI))};I8.\u0275prov=ec({token:I8,factory:I8.\u0275fac,providedIn:"root"});
var J8=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S){BI.call(this);this.activeSession=a;this.documentationLinks=b;this.domSafe=c;this.matDialogService=d;this.attachmentService=e;this.cdr=f;this.differs=h;this.paths=k;this.userAccess=q;this.butterBar=w;this.errorHandler=y;this.analytics=E;this.issueCommentDialogsService=I;this.issuePermissionService=N;this.editIssueService=L;this.routeParams=S;this.isInternalSession=this.activeSession.isInternalSession();this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1};U(J8,BI);J8.\u0275dir=BI.\u0275dir;J8.prototype.ngOnInit=function(){this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create());var a;this.attachmentRetentionOverride=null==(a=this.attachment)?void 0:a.piiRetention;Cpc(this);Dpc(this)};J8.prototype.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&(Cpc(this),this.cdr.markForCheck())};
J8.prototype.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
var Cpc=function(a){a.actionMenuItems=[];Epc(a)&&a.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."});Fpc(a)&&a.actionMenuItems.push({type:"action",action:function(){CQb(a.editIssueService,String(a.issueId),a.attachment)},label:"Restore attachment"});a.isInternalSession&&a.actionMenuItems.push({type:"action",action:function(){Slc(a.issueCommentDialogsService,String(a.issueId),a.attachmentUploader===a.activeSession.getUserEmail(),a.attachment)},
label:"Restriction settings..."});if(a.isInternalSession&&a.isRestricted()&&a.isActive()){var b="COMPONENT_DEFAULT"===a.attachmentRetentionOverride;a.actionMenuItems.push({type:"action",action:function(){var c=b?2:1;Rlc(a.issueCommentDialogsService,"attachment",c).then(function(d){d&&Gpc(a,c)})},label:b?"Match issue retention...":"Revert to component retention..."})}};
J8.prototype.setHasViewAccess=function(){var a=this;this.isRestricted()?null==this.attachment?this.hasViewAccess=!1:(this.hasViewAccess=!1,DK(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};J8.prototype.getFilename=function(){var a;return(null==(a=this.attachment)?void 0:a.filename)||""};
J8.prototype.getSize=function(){var a;return(null==(a=this.attachment)?void 0:a.length)||0};var ht=function(a,b){b=void 0===b?!0:b;var c;if(null==(c=a.attachment)||!c.attachmentId)throw Error("Re");c=a.paths.getAttachmentAction(a.issueId,a.attachment.attachmentId);a=a.paths.getBaseUrl()+"/"+c;return LD(a,"download",b)};J8.prototype.isActive=function(){var a;if(null==(a=this.attachment)||!a.attachmentId)return!1;var b;return"ACTIVE"===(null==(b=this.attachment.entityStatus)?void 0:b.status)};
J8.prototype.isRestricted=function(){return"NONE_DETECTED"!==this.getPiiSeverity()};J8.prototype.getPiiSeverity=function(){var a;return Bl(null==(a=this.attachment)?void 0:a.contentVerdict)};J8.prototype.getRestrictedLabel=function(){return uqa(this.getPiiSeverity())};
var N8a=function(a){return(a=a.getPiiSeverity())?"bv2-restricted-content-limit-"+Cl(a):""},M8a=function(a,b){bo(a.analytics,go.RESTRICTED_CONTENT,"viewRestrictedContent","attachment");a.matDialogService.open(yP,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})},Epc=function(a){var b;if(null!=(b=a.attachment)&&b.attachmentId){b=a.issuePermissionService;var c=a.attachment;a=a.attachmentUploader;b=c?(c=c.entityStatus)&&"ACTIVE"===c.status?b.hasAclToAdmin()||nO(b,a)?!0:!1:!1:
!1}else b=!1;return b},Fpc=function(a){var b;if(null!=(b=a.attachment)&&b.attachmentId){b=a.issuePermissionService;var c=a.attachment;a=a.attachmentUploader;b=c?(c=c.entityStatus)&&"DELETED"===c.status?b.hasAclToAdmin()||nO(b,a)?!0:!1:!1:!1}else b=!1;return b};J8.prototype.showDeleteAttachmentDialog=function(){var a;null!=(a=this.attachment)&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(String(this.issueId),this.attachment)};
var Gpc=function(a,b){var c;null!=(c=a.attachment)&&c.attachmentId?(bo(a.analytics,go.RESTRICTED_CONTENT,"updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(Ye(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=I8a(d.getPiiRetention()),a.attachment.piiRetentionState=d.hasPiiRetentionState()?J8a(d.getPiiRetentionState()):void 0);
PK(a.butterBar,"Attachment retention updated",4E3);a.attachmentRetentionOverride=2===b?"INDEFINITE":"COMPONENT_DEFAULT";Cpc(a);a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;TK(a.errorHandler,"Attachment retention update failed")}})):TK(a.errorHandler,"Attachment id is missing")},Dpc=function(a){var b,c,d;me(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===(null==(c=a.attachment)?void 0:c.attachmentId)&&(d="true"===a.routeParams.download,M8a(a,d));oe(e)})};
J8.\u0275fac=function(a){return new (a||J8)(F(pH),F(tP),F(vP),F(HB),F(I8),F(uI,2),F(rx),F(dL),F(CK),F(OK),F(SK),F(SM),F(B6),F(oO),F(nS),F(bS))};
J8.\u0275cmp=v({type:J8,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},features:[Lf([uI]),gf,Ac],decls:16,vars:8,consts:[[1,"bv2-issue-attachment-image"],["name","file-present","size","large",1,"bv2-issue-attachment-icon"],[1,"bv2-issue-attachment-filename"],[1,"bv2-issue-event-attachment-info"],[3,"label","retentionState","contentType",4,"ngIf"],["class","bv2-issue-attachment-overflow-menu",4,"ngIf"],[3,"class",4,"ngIf"],
[3,"panelTemplate"],["class","bv2-restricted-access-help-icon help-icon",4,"ngIf"],["restrictedAccessHelp",""],[3,"label","retentionState","contentType"],[1,"bv2-issue-attachment-overflow-menu"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"isGreyedOut","displayName","linkUrl","linkEnabled","useCustomHandler","customHandler"],[1,"bv2-restricted-access-help-icon","help-icon"],["aria-label","Restricted Access Help","mat-icon-button","","target","_blank",1,"help","small",3,
"href","disableRipple"],[3,"svgIcon"],[1,"implicit-access-help-bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(G(0,"div",0),J(1,"b-icon",1),H(),G(2,"div")(3,"div",2),P(4),G(5,"span",3),O(6,K8a,1,3,"b-restricted-chip",4),O(7,L8a,2,3,"span",5),H()(),G(8,"div"),P(9),O(10,O8a,2,8,"span",6),O(11,P8a,2,8,"span",6),G(12,"xap-bubble",7),O(13,Q8a,3,3,"span",8),O(14,R8a,4,1,"ng-template",null,9,gg),H()()());if(a&2){var c=Hf(15);B(4);If(" ",b.getFilename()," ");B(2);D("ngIf",b.isRestricted());
B(1);D("ngIf",0<b.actionMenuItems.length);B(2);If(" ",Fua(b.getSize())," ");B(1);var d;a=b.isActive()&&gna(null==(d=b.attachment)?void 0:d.contentType);D("ngIf",a);B(1);D("ngIf",b.isActive());B(1);D("panelTemplate",c);B(1);D("ngIf",b.isRestricted()&&!b.hasViewAccess)}},dependencies:[QZ,sx,hT,uH,qB,LE,$E,s5,SS],encapsulation:2,changeDetection:0});
var Hpc=["commentActionsMenu"],Ipc=["editDescription"],h9a=function(){return[]},K8=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N){BI.call(this);var L=this;this.eventsForIssue=a;this.userPreferencesManager=b;this.issueFridge=c;this.issueReferenceResolver=d;this.activeSession=e;this.commentService=f;this.errorHandler=h;this.analytics=k;this.butterBar=q;this.userAccess=w;this.issueCommentDialogsService=y;this.issuePermissionService=E;this.commentHistoryDialogService=I;this.dateFormatter=N;this.id$=new T.ReplaySubject(1);
this.idAsNumber$=this.id$.pipe(C(function(S){return Number(S)}));this.accessLevel$=this.id$.pipe(Xe(function(S){return L.issueFridge.watch(S)}),C(function(S){var Y;return null==S?void 0:null==(Y=S.accessLimit)?void 0:Y.accessLevel}));this.firstEvent$=new T.ReplaySubject(1);this.firstNote$=this.firstEvent$.pipe(C(function(S){return S}));this.commentActionMenuItems$=new T.BehaviorSubject([]);this.isFormattingOverrideEnabled=!1;this.formattingMode=1;this.formattingMode$=Oj(this.firstEvent$.pipe(De($k),
C(function(S){return Osa(S.formattingMode)})),1);this.isRedacted$=this.firstEvent$.pipe(De($k),C(function(S){return S.commentRedacted}));this.isDeleted$=this.firstEvent$.pipe(De($k),C(function(S){return"DELETED"===S.commentDeletionStatus}));this.shouldShowRestrictedPlaceholder$=(0,T.combineLatest)([this.isRedacted$,this.isDeleted$]).pipe(C(function(S){var Y=r(S);S=Y.next().value;Y=Y.next().value;return!(!S||Y)}));this.isRestricted$=this.firstEvent$.pipe(De($k),C(function(S){return Bl(S.commentContentVerdict)}),
C(function(S){if(!L.isInternalSession)return!1;switch(S){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:bh(S)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(De($k),C(function(S){return S.commentRetention}));this.commentHistoryEnabled=rH(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=(0,T.combineLatest)([this.firstEvent$,this.isRedacted$]).pipe(C(function(S){var Y=r(S);S=Y.next().value;Y=Y.next().value;
return!(!(rH(L.activeSession,"enableCommentHistoryUi")&&0<((null==S?void 0:S.commentVersion)||0))||Y)}));this.canEditComment$=this.firstEvent$.pipe(Xe(function(S){return S?L.issuePermissionService.canEditComment$(S):(0,T.of)(!1)}),Ue({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Pj(L.canEditComment$)};this.isInternalSession=this.activeSession.isInternalSession();this.mayReadPii$=this.isRestricted$.pipe(Xe(function(S){return S?L.mayReadPii():(0,T.of)(void 0)}));this.reporterUser$=
this.id$.pipe(Ye(this.destroyed$),Xe(function(S){return L.issueFridge.watch(S)}),C(function(S){var Y;return null==S?void 0:null==(Y=S.snapshot[0])?void 0:Y.reporterUser}));this.reporterUserEmailAddress$=this.reporterUser$.pipe(Ye(this.destroyed$),C(function(S){return(null==S?void 0:S.emailAddress)||(null==S?void 0:S.obfuscatedEmailAddress)||""}));this.isAuthorNotReporter$=(0,T.combineLatest)([this.reporterUser$,this.firstEvent$]).pipe(C(function(S){var Y=r(S);S=Y.next().value;Y=Y.next().value;return!Ei(S,
null==Y?void 0:Y.userPerformingActionUser)}))};U(K8,BI);K8.\u0275dir=BI.\u0275dir;K8.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(Xe(function(b){return(0,T.defer)(function(){return DK(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Qk("error: ",c);return!1})})}))};
K8.prototype.ngOnInit=function(){var a=this;Jpc(this,1);this.id$.pipe(Xe(function(b){return a.eventsForIssue.watch(b)}),C(function(b){var c;return null!=(c=null==b?void 0:b.events)?c:[]}),C(function(b){return b[0]}),Ye(this.destroyed$)).subscribe(function(b){a.firstEvent$.next(b)});this.canEditComment$.pipe(Ye(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.formattingMode$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.formattingMode=b;Jpc(a,b)});this.issuePermissionService.canChangeCommentRetention$.pipe(Ye(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
K8.prototype.initializeActionsMenu=function(){var a=this,b=[];this.isFormattingOverrideEnabled||b.push({type:"submenu",label:"View as...",items:[this.formattingModeMenuItems[1],this.formattingModeMenuItems[2],this.formattingModeMenuItems[3]]});var c=Pj(this.firstEvent$);this.canEditComment()&&c&&b.push({type:"action",action:function(){kt(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:Pj(this.isRedacted$)});
Pj(this.isShowCommentHistoryActionInMenu$)&&c&&b.push({type:"action",action:function(){c.commentNumber&&a.showCommentHistoryDialog(c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Show editing history"});c&&iMb(this.issuePermissionService,c)&&b.push({type:"action",action:function(){c.commentEtag&&Plc(a.issueCommentDialogsService,a.id,1,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});c&&hMb(this.issuePermissionService,
c)&&b.push({type:"action",action:function(){Mlc(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});this.isInternalSession&&c&&b.push({type:"action",action:function(){Qlc(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."});if(this.isInternalSession&&Pj(this.isRestricted$)&&this.issuePermissionService.canChangeCommentRetention()&&
!Pj(this.isDeleted$)){var d="COMPONENT_DEFAULT"===Pj(this.commentRetentionOverride$);b.push({type:"action",action:function(){var e=d?2:1;Rlc(a.issueCommentDialogsService,"comment",e).then(function(f){a.commentActionsMenu.actionsMenuIconButton.focus();f&&a.updateCommentRetention(e)})},label:d?"Match issue retention...":"Revert to component retention..."})}this.commentActionMenuItems$.next(b)};
var Jpc=function(a,b){var c={};a.formattingModeMenuItems=(c[1]={type:"select",action:function(){a.formattingMode$.next(1);a.initializeActionsMenu()},label:"Classic",selected:1===b},c[2]={type:"select",action:function(){a.formattingMode$.next(2);a.initializeActionsMenu()},label:"Markdown",selected:2===b},c[3]={type:"select",action:function(){a.formattingMode$.next(3);a.initializeActionsMenu()},label:"Source",selected:3===b},c)};
K8.prototype.updateCommentRetention=function(a){var b=this,c=Pj(this.firstEvent$),d=Pj(this.idAsNumber$);c&&!c.commentNumber&&TK(this.errorHandler,"Comment number is missing");bo(this.analytics,go.RESTRICTED_CONTENT,"updateRetention","comment");d&&c&&this.commentService.updateRetention(d,c.commentNumber||0,a).pipe(Ye(this.destroyed$)).subscribe({next:function(){et(b.eventsForIssue,d);PK(b.butterBar,"Comment retention updated",4E3);b.initializeActionsMenu()},error:function(){TK(b.errorHandler,"Comment retention update failed")}})};
K8.prototype.loadRestrictedComment=function(a,b){var c=this;bo(this.analytics,go.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var d=(null==b?void 0:b.commentNumber)||0;b=Al(Bl(null==b?void 0:b.commentContentVerdict));a&&this.commentService.get(a,d,b).pipe(Me(),Ye(this.destroyed$)).subscribe(function(e){e=Xm(e);e=Object.assign({},Pj(c.firstEvent$),e);c.firstEvent$.next(e);c.initializeActionsMenu()},function(e){var f;QK(c.butterBar,"Error showing comment "+d+": "+(null==(f=e.error)?void 0:
f.message))})};K8.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(Number(this.id),a,-1)};K8.prototype.getUserEmailIfAvailable=function(){var a;return Pl(null==(a=Pj(this.firstEvent$))?void 0:a.userPerformingActionUser)};
var S8a=function(a){var b=Pj(a.firstEvent$);b&&kt(a.issueCommentDialogsService,a.id,b).then(function(){a.editDescriptionButton.focus()})},W8a=function(a,b){var c="Last edited by ";0===b.version&&b.lastCommentEditorUser&&(c+=Ll(b.lastCommentEditorUser));b.commentLastModifiedAtDate&&(c+=" on ",SNb(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).subscribe(function(d){c+=d}));return c};
ki.Object.defineProperties(K8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Pj(this.id$)}}});K8.\u0275fac=function(a){return new (a||K8)(F(NL),F(zI),F(yL),F(FW),F(pH),F(H8),F(SK),F(SM),F(OK),F(CK),F(B6),F(oO),F(NS),F(KP))};
K8.\u0275cmp=v({type:K8,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(Zf(Hpc,5),Zf(Ipc,5));if(a&2){var c;Yf(c=ag())&&(b.commentActionsMenu=c.first);Yf(c=ag())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},features:[gf],decls:2,vars:3,consts:[["id","comment1",4,"ngIf"],["id","comment1"],[1,"flex-kids-x"],[1,"flex-1"],[1,"description-label"],["mat-icon-button","","class","small","matTooltip","Edit description","aria-label","Edit description",3,"click",4,"ngIf"],[3,"onedevHovercardTrigger",
"model"],["card",""],[3,"email"],[4,"ngIf"],["class","keep-focus-ring",3,"routerLinkObj","click",4,"ngIf"],[1,"right-side"],["mode","datetime",3,"timestamp"],["matTooltip","Description actions",1,"issue-detail-actions",3,"buttonLabel","menuItems"],["commentActionsMenu",""],[4,"ngIf","ngIfElse"],["showFirstComment",""],["class","margin-s-y border-top bv2-issue-event-attachments",4,"ngIf"],["mat-icon-button","","matTooltip","Edit description","aria-label","Edit description",1,"small",3,"click"],["editDescription",
""],["svgIcon","edit-outline",1,"icon-xxs"],["reporterCard",""],[1,"keep-focus-ring",3,"routerLinkObj","click"],[1,"edited-label",3,"matTooltip"],[1,"description-deleted"],["showNote",""],[3,"disabled","onConfirm",4,"ngIf"],[3,"disabled","onConfirm"],[3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],["class","no-description-container flex-kids-x",4,"ngIf"],[3,"issueId","issueAccessLevel","note","formattingMode"],[1,"no-description-container","flex-kids-x"],[1,"no-description"],["mat-stroked-button",
"","color","primary",1,"gmat-button","update-button",3,"click"],["svgIcon","add",1,"sort-order-arrow","icon-xs"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["class","margin-s-y bv2-issue-event-attachment",3,"id",4,"ngFor","ngForOf"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(O(0,i9a,28,26,"div",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.firstEvent$))},dependencies:[QZ,UW,wx,sx,LP,J8,$E,u5,qT,rS,pN,
tN,pS,LE,pB,Fx],styles:[".description-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:.6875rem;letter-spacing:.8px;margin-right:4px}button[_ngcontent-%COMP%]{margin-right:2px}.edited-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.right-side[_ngcontent-%COMP%]   b-formatted-date-time[_ngcontent-%COMP%]{margin-right:8px}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.no-description-container[_ngcontent-%COMP%]{line-height:24px}.no-description-container[_ngcontent-%COMP%]   .no-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.no-description-container[_ngcontent-%COMP%]   .update-button[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:10px;padding-left:8px;padding-right:12px}.no-description-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px}"]});
var L8=function(a,b,c,d){this.prefs=a;this.cdr=b;this.analytics=c;this.butterBar=d;this.on$=this.prefs.showFullHistory$;this.isSaving=!1;this.tooltip$=this.on$.pipe(C(function(e){return e?"(Showing full history) Click for major events only":"(Showing major events) Click for full history"}),We(""))};L8.prototype.onClick=function(){var a=this,b;return me(function(c){if(1==c.nextAddress)return a.isSaving?c.return():ne(c,(0,T.firstValueFrom)(a.on$),2);b=c.yieldResult;a.save(!b);oe(c)})};
L8.prototype.save=function(a){var b=this;bo(this.analytics,go.EDIT_ISSUE,"toggleShowFullHistory",String(a));this.isSaving=!0;a=(0,T.firstValueFrom)(this.prefs.save({showFullHistory:a}));a.then(function(){b.isSaving=!1;b.cdr.markForCheck()});a.catch(function(){QK(b.butterBar,'Couldn\'t save "full history" setting.');b.isSaving=!1;b.cdr.markForCheck()})};L8.\u0275fac=function(a){return new (a||L8)(F(zI),F(lx),F(SM),F(OK))};
L8.\u0275cmp=v({type:L8,selectors:[["smart-full-history-btn"]],decls:7,vars:16,consts:[["mat-icon-button","",1,"gmat-button",3,"matTooltip","disabled","click"],["svgIcon","history","class","icon-s",4,"ngIf"],[4,"ngIf"],["svgIcon","history",1,"icon-s"]],template:function(a,b){a&1&&(G(0,"button",0),K("click",function(){return b.onClick()}),Q(1,"async"),Q(2,"async"),Q(3,"async"),Q(4,"async"),O(5,j9a,1,0,"mat-icon",1),O(6,k9a,1,0,"b-spinner",2),H());a&2&&(sf("on",R(1,8,b.on$)),D("matTooltip",R(2,10,b.tooltip$))("disabled",
b.isSaving),nf("aria-pressed",R(3,12,b.on$))("aria-label",R(4,14,b.tooltip$)),B(5),D("ngIf",!b.isSaving),B(1),D("ngIf",b.isSaving))},dependencies:[sx,$E,LE,pB,mN,Fx],styles:["mat-icon[_ngcontent-%COMP%] {\n      display: flex;\n      margin: 0 auto;\n    }\n    [_nghost-%COMP%]     .on .mat-spinner circle {\n      stroke: var(--text-inverse); \n    }"],changeDetection:0});
var Kpc=function(){this.tokens=new Map};Kpc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};Kpc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new Lpc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var Lpc=function(a){this.sortedEntries=a};
Lpc.prototype.match=function(a){for(var b=0,c=this.sortedEntries.length-1;b<=c;){var d=b+Math.floor((c-b)/2),e=this.sortedEntries[d].token;if(a===e){b=d;break}else a>e?b=d+1:c=d-1}for(c=[];b<this.sortedEntries.length;b++)if(this.sortedEntries[b].token.startsWith(a))c.push(this.sortedEntries[b]);else break;return c};Lpc.prototype.search=function(a){var b=new Set;a=r(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=r(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var Mpc=function(a,b){if(0===b.length)return new Set;for(var c=a.search(b[0]),d=1;d<b.length&&0<c.size;d++){var e=[].concat(u(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};
var Npc=function(a){this.hotlists=a;var b=new Kpc,c=new Kpc;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(null==(e=d.name)?0:e.trim())?pya(d.name.toLowerCase()):[];f=r(f);for(e=f.next();!e.done;e=f.next())b.add(e.value,d);e=void 0;f=(null==(e=d.description)?0:e.trim())?pya(d.description.toLowerCase()):[];f=r(f);for(e=f.next();!e.done;e=f.next())c.add(e.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(h,
k){return[h,k]}))};
Npc.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=r(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=d.name)?void 0:e.toLowerCase(),h=void 0;e=null==(h=d.description)?void 0:h.toLowerCase();h=d.hotlistId;var k=void 0,q=void 0;(ena(a)&&String(h).includes(a)||(null==(k=f)?0:k.includes(a))||(null==(q=e)?0:q.includes(a)))&&b.add(d)}c=pya(a);d=r(Mpc(this.nameTokenMatcher,c));for(a=d.next();!a.done;a=d.next())b.add(a.value);c=r(Mpc(this.descriptionTokenMatcher,c));
for(a=c.next();!a.done;a=c.next())b.add(a.value);return Opc(this,b)};var Opc=function(a,b){return[].concat(u(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};
var M8=function(a){a=void 0===a?[]:a;this.internalValue$=new T.BehaviorSubject(new Set);a=r(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};M8.prototype.add=function(a){this.value.add(a);this.internalValue$.next(this.value);return this};M8.prototype.clear=function(){this.value.clear();this.internalValue$.next(this.value)};M8.prototype.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};M8.prototype.has=function(a){return this.value.has(a)};
var H9a=function(a,b){return a.internalValue$.pipe(C(function(c){return c.has(b)}),Le())};M8.prototype[Symbol.iterator]=function(){return this.value.values()};M8.prototype.toString=function(){return"[ReactiveSet](["+[].concat(u(this.value.values())).join(", ")+"])"};M8.prototype.indexOf=function(a){return[].concat(u(this.value.values())).indexOf(a)};
ki.Object.defineProperties(M8.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}}});
var N8=function(){this.innerHeight$=(0,T.concat)((0,T.defer)(function(){return(0,T.of)(window.innerHeight)}),(0,T.fromEvent)(window,"resize").pipe(C(function(){return window.innerHeight})))};N8.\u0275fac=function(a){return new (a||N8)};N8.\u0275prov=ec({token:N8,factory:N8.\u0275fac,providedIn:"root"});
var t9a=function(a){return{hotlist:a,isCompact:!0}},x9a=function(a){return{hotlist:a,isCompact:!1}},O8=function(a,b,c,d,e,f,h,k,q,w,y,E){BI.call(this);var I=this;this.dialogRef=a;this.data=b;this.paths=c;this.hotlistFridge=d;this.hotlistApi=e;this.snackBar=f;this.appEvents=h;this.errorHandler=k;this.activeSession=q;this.userApi=w;this.windowHeight=y;this.permissionsFridge=E;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=
new T.BehaviorSubject("");this.debouncedQuery$=this.query$.pipe(Je(100),We(""));this.hotlists=[];this.allHotlistIds=new Set(this.data.selectedHotlistIds);this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.originalIds=new Set(this.data.selectedHotlistIds);this.pristine=!0;this.saveBtnLabel="Save";this.saveBtnTooltip="Save your hotlist choices";this.hotlistUnderEdit=new ey({name:new gy("",Xx),description:new gy("")});this.currentUserEmail=this.activeSession.getUserEmail();this.starredHotlists=
new M8;this.isSavingStar=new M8;this.userHotlists$=MIb(this.hotlistFridge);this.issueHotlists$=$J(this.hotlistFridge,Array.from(this.data.selectedHotlistIds));this.combineHotlistsWithPermissions=C(function(N){var L=$J(I.permissionsFridge,N.map(function(S){return co(S.hotlistId)}));return N.map(function(S,Y){return Object.assign({},S,{permissions$:L.pipe(C(function(ka){return ka[Y]}))})})});this.hotlists$=(0,T.combineLatest)([this.issueHotlists$,this.userHotlists$]).pipe(C(function(N){var L=r(N);N=
L.next().value;L=L.next().value;return[].concat(u(N),u(L))}),C(bBb(function(N){return N.hotlistId})),C(function(N){return N.filter($k)}),C(function(N){return N.sort(N9a)}),C(function(N){return N.sort(function(L,S){var Y=I.selectedHotlistIds;L=Y.has(L.hotlistId);S=Y.has(S.hotlistId);return L&&S?0:L?-1:S?1:0})}),this.combineHotlistsWithPermissions,Ue({bufferSize:1,refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(C(function(N){return new Npc(N)}),Ue({bufferSize:1,refCount:!0}));this.visibleHotlists$=
(0,T.combineLatest)([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(C(function(N){var L=r(N);N=L.next().value;var S=L.next().value;L=L.next().value;return""!==N.trim()?S.search(N):L}),Ue({bufferSize:1,refCount:!0}));this.showLoadById$=this.query$.pipe(C(function(N){N=N.trim();return!I.allHotlistIds.has(Number(N))&&ena(N)}));this.showCreateNew$=(0,T.combineLatest)([this.query$,this.visibleHotlists$]).pipe(C(function(N){var L=r(N);N=L.next().value;L=L.next().value;return O9a(N,
L)}));this.isCompactMode$=this.visibleHotlists$.pipe(C(function(N){return 200<N.length}));this.compactHotlistItemHeight=24;this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(C(function(N){return Math.max(1,Math.floor(.5*N/24))}),Le());this.hotlistViewportContainerHeight$=this.compactNumberOfHotlistsToShow$.pipe(C(function(N){return 24*N}));this.subscriptions.add(this.hotlists$.subscribe(function(N){I.hotlists=N;N=r(N);for(var L=N.next();!L.done;L=N.next())I.allHotlistIds.add(L.value.hotlistId)}))};
U(O8,BI);O8.\u0275dir=BI.\u0275dir;O8.prototype.ngOnInit=function(){var a=this;Ppc(this);this.query$.pipe(Ye(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
var F9a=function(a,b){b.options.forEach(function(d){d.selected?a.selectedHotlistIds.add(d.value):a.selectedHotlistIds.delete(d.value)});b=qLa(a.originalIds,a.selectedHotlistIds);a.pristine=!b;var c=r(P9a(b));b=c.next().value;c=c.next().value;a.saveBtnLabel=b;a.saveBtnTooltip=c},q9a=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("name"))?void 0:b.value)?a:""},Qpc=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("description"))?void 0:b.value)?a:""},p9a=function(a){a.snackBar.open("Saving hotlist...",
"dismiss",{duration:0});var b=q9a(a),c=Qpc(a);a.hotlistApi.createHotlist(b,c).then(function(d){a.snackBar.open('Hotlist "'+d.name+"'\" saved.","dismiss",{duration:3E3});d=d.hotlistId;a.appEvents.hotlistChanged.next({hotlistId:d});a.selectedHotlistIds.add(d);a.dialogRef.close(a.selectedHotlistIds)}).catch(function(d){a.errorHandler.errorHandler(null,d)})},Ppc=function(a){a.userApi.getUserSidebar().then(function(b){a.starredHotlists.clear();for(var c=r(b.hotlists||[]),d=c.next();!d.done;d=c.next()){d=
d.value;var e=Number(d.id);d.starred&&a.starredHotlists.add(e)}b=r(b.bookmarkGroups||[]);for(c=b.next();!c.done;c=b.next())for(c=r(c.value.sublinks||[]),d=c.next();!d.done;d=c.next())d=d.value,d.starred&&a.starredHotlists.add(Number(d.id))}).catch(function(b){a.errorHandler.errorHandler(null,b)})};O8.prototype.isDirectAdmin=function(a){return a?Ml(a.adminUsers).includes(this.currentUserEmail):!1};O8.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};
O8.prototype.toggleStar=function(a){var b=this,c,d,e;return me(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a,userLogin:b.currentUserEmail};Lt(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),ne(f,b.userApi.deleteFavorite(d),3);b.starredHotlists.add(a);return ne(f,b.userApi.saveFavorite(d),3);case 3:Ot(f);b.isSavingStar.delete(a);Pt(f,4);break;case 2:e=Nt(f);UK(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),
b.appEvents.favoritesModified.next(),Ppc(b),oe(f)}})};var C9a=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);a.dialogRef.close(a.selectedHotlistIds)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};O8.prototype.trackByHotlistId=function(a,b){return b.hotlistId};O8.\u0275fac=function(a){return new (a||O8)(F(AB),F(FB),F(dL),F(sL),F(pL),F(LK),F(WK),F(SK),F(pH),F(PJ),F(N8),F(fM))};
O8.\u0275cmp=v({type:O8,selectors:[["ng-component"]],features:[gf],decls:15,vars:4,consts:[[4,"ngIf","ngIfElse"],["mat-button","","mat-dialog-close","","tooltip","Dismiss modal","aria-label","Dismiss modal","role","button",3,"click"],["createNewHotlistBtn",""],["applyHotlistSelectionBtn",""],["updateHotlistSelectionPane",""],["hotlistMatListOption",""],["createNewHotlistPane",""],[4,"ngTemplateOutlet"],["mat-flat-button","","color","primary","matTooltip","Create new hotlist","aria-label","Create",
1,"gmat-button",3,"disabled","click"],["mat-flat-button","","color","primary",1,"gmat-button",3,"mat-dialog-close","matTooltip","disabled","click"],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search","spellcheck","false","autocomplete","off","aria-label","Filter hotlists","placeholder","Type to filter your starred hotlists",1,"search-box",3,"input"],["searchBox",""],["mat-dialog-content","",1,"search-results"],["content",""],[3,"selectionChange"],["hotlistMatList",
""],[4,"ngIf"],["class","muted margin-top",4,"ngIf"],["class","load-from-id-btn",3,"click",4,"ngIf"],["class","create-new-hotlist-btn",3,"click",4,"ngIf"],["regularMode",""],[1,"compact"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"matTooltip"],["tooltip","matTooltip"],["checkboxPosition","before",3,"selected","disabled","value","focus","blur"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"muted","margin-top"],[1,"load-from-id-btn",3,"click"],[1,"muted"],[1,"create-new-hotlist-btn",3,"click"],
[1,"title-line"],[1,"overflow-ellipsis"],[1,"hotlist-link-and-star","flex-kids-x","align-items-center","gap-xs"],["class","valign-middle",3,"starMessage","unStarMessage","acceptInput","starred","starClicked",4,"ngIf"],["matTooltip","Open hotlist in a new tab","target","_blank",1,"keep-focus-ring",3,"routerLink","click","keydown.enter"],["svgIcon","pop-out",1,"icon-s"],["class","line-clamp-2 muted type-s",4,"ngIf"],[1,"valign-middle",3,"starMessage","unStarMessage","acceptInput","starred","starClicked"],
[1,"line-clamp-2","muted","type-s"],["mat-dialog-content",""],[1,"create-hotlist-pane"],[3,"formGroup"],["for","hotlist-name"],"type text autofocus autofocus id hotlist-name required  aria-required true formControlName name".split(" "),["for","hotlist-description",1,"margin-s-top"],["id","hotlist-description","formControlName","description"]],template:function(a,b){a&1&&(O(0,m9a,2,1,"ng-container",0),G(1,"mat-dialog-actions")(2,"button",1),K("click",function(){b.dialogRef.close()}),P(3," Cancel "),
H(),O(4,o9a,2,1,"ng-container",0),H(),O(5,r9a,2,1,"ng-template",null,2,gg),O(7,s9a,2,5,"ng-template",null,3,gg),O(9,G9a,19,12,"ng-template",null,4,gg),O(11,L9a,1,1,"ng-template",null,5,gg),O(13,M9a,14,1,"ng-template",null,6,gg));if(a&2){var c=Hf(8),d=Hf(10);D("ngIf",b.showCreateNewPane)("ngIfElse",d);B(4);D("ngIf",b.showCreateNewPane)("ngIfElse",c)}},dependencies:function(){return[wx,sx,Cx,LE,IB,JB,KB,LB,QI,pB,SP,TP,iy,Fg,by,cy,sy,oy,py,kN,$E,Fx,P8]},styles:[".mat-dialog-content[_ngcontent-%COMP%]{width:500px;overflow-y:overlay}.mat-dialog-title[_ngcontent-%COMP%]{margin:0}.mat-dialog-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:0;margin-bottom:8px}.search-container[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--main-search-bg);display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:8px;width:100%;height:40px}.search-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:8px}.search-container[_ngcontent-%COMP%]   input.search-box[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:transparent;margin-left:5px;height:100%;width:100%;padding-right:4px}.search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   .title-line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:24px}.search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:17px;line-height:17px}.search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.75rem;margin-top:-2px;line-height:1.2}.hotlist-link-and-star[_ngcontent-%COMP%]{visibility:hidden}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:2px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}mat-list-option[_ngcontent-%COMP%]:focus-within   .hotlist-link-and-star[_ngcontent-%COMP%], mat-list-option[_ngcontent-%COMP%]:hover   .hotlist-link-and-star[_ngcontent-%COMP%]{visibility:unset}.create-new-hotlist-btn[_ngcontent-%COMP%], .load-from-id-btn[_ngcontent-%COMP%]{background:none;border:none;text-align:left;min-height:34px;padding-left:38px}.create-new-hotlist-btn[_ngcontent-%COMP%]:hover, .load-from-id-btn[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:rgba(0,0,0,.04);background-color:var(--hover)}.create-hotlist-pane[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;color:#5f6368;color:var(--muted);font-weight:500}.create-hotlist-pane[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .create-hotlist-pane[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}mat-list-option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.8125rem}.mat-list-base[_ngcontent-%COMP%]{margin:0 -24px}[_nghost-%COMP%]     .mat-list-base .mat-list-option .mat-list-item-content{padding:5px 0;padding-right:20px;padding-left:24px;align-items:flex-start}[_nghost-%COMP%]     .mat-list-base .mat-list-option .mat-list-item-content .mat-pseudo-checkbox{margin-top:3px}[_nghost-%COMP%]     .mat-list-base .compact .mat-list-option .mat-list-item-content{padding-top:0}[_nghost-%COMP%]     .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-left:12px}\n/*# sourceMappingURL=hotlist_picker_modal.css.map */"],
changeDetection:0});var P8=function(){};P8.prototype.transform=function(a){return loa(a)};P8.\u0275fac=function(a){return new (a||P8)};P8.\u0275pipe=tc({name:"stagedHotlistSlice",type:P8,pure:!0});
var Q8=function(a,b,c,d){this.dialog=a;this.issueFridge=b;this.eventsForIssueFridge=c;this.errorHandler=d},Rpc=function(a,b){var c,d,e,f,h,k,q,w;return me(function(y){switch(y.nextAddress){case 1:return ne(y,(0,T.firstValueFrom)(b),2);case 2:return c=y.yieldResult,(e=null==(d=c)?void 0:d.snapshot[0].hotlistId)&&c?ne(y,a.openModal(e),3):y.return();case 3:f=y.yieldResult;if(null==f)return y.return();h=f.added.map(String);k=f.removed.map(String);q=String(c.issueId);Lt(y,4,5);return ne(y,SIb(a.issueFridge,
q,h,k),5);case 5:Ot(y);et(a.eventsForIssueFridge,q);Pt(y,0);break;case 4:w=Nt(y),UK(a.errorHandler,w),y.jumpTo(5)}})};Q8.prototype.openModal=function(a){var b=this,c,d,e,f;return me(function(h){if(1==h.nextAddress)return c={panelClass:"no-jitter",data:{selectedHotlistIds:a}},d=b.dialog.open(O8,c),ne(h,(0,T.firstValueFrom)(d._afterClosed),2);e=h.yieldResult;if(!e)return h.return(Promise.resolve());f=qLa(new Set(a),new Set(e));return h.return(Promise.resolve(f))})};
Q8.\u0275fac=function(a){return new (a||Q8)(t(HB),t(yL),t(NL),t(SK))};Q8.\u0275prov=ec({token:Q8,factory:Q8.\u0275fac,providedIn:"root"});
var R8=function(a,b,c,d,e){BI.call(this);var f=this;this.issueFridge=a;this.eventsForIssueFridge=b;this.hotlistPickerService=c;this.issueInteractionsTracking=d;this.errorHandler=e;this.ISSUE_TYPE_TEXT=cJb;this.STATUS_FULL_TEXT=LL;this.STATUS_TERSE=HL;this.DUPLICATE=10;this.id$=new T.ReplaySubject(1);this.issue$=this.id$.pipe(Xe(function(h){return f.issueFridge.watch(h)}));this.hotlistIds$=this.issue$.pipe(C(Y9a));this.priority$=this.issue$.pipe(C(function(h){return null==h?void 0:h.snapshot[0].priority}),
C(function(h){return Uqa[h]}));this.type$=this.issue$.pipe(C(function(h){return null==h?void 0:h.snapshot[0].type}),C(function(h){return Tqa[h]}));this.canonicalId$=this.issue$.pipe(C(function(h){return null==h?void 0:h.snapshot[0].duplicateOfIssueId}));this.statusForChip$=this.issue$.pipe(C(function(h){return null==h?void 0:h.snapshot[0].status}),C(function(h){return Wl[h]}),C(function(h){return ZIb[h]?h:void 0}));this.HOTKEYS=xI};U(R8,BI);R8.\u0275dir=BI.\u0275dir;
var V9a=function(a){return me(function(b){return ne(b,Rpc(a.hotlistPickerService,a.issue$),0)})},T9a=function(a,b){var c,d;return me(function(e){switch(e.nextAddress){case 1:return ne(e,(0,T.firstValueFrom)(a.id$),2);case 2:c=e.yieldResult;iS(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Lt(e,3,4);var f=SIb(a.issueFridge,c,[],[String(b)]);return ne(e,f,4);case 4:Ot(e);et(a.eventsForIssueFridge,c);Pt(e,0);break;case 3:d=Nt(e),UK(a.errorHandler,d),e.jumpTo(4)}})};
ki.Object.defineProperties(R8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});R8.\u0275fac=function(a){return new (a||R8)(F(yL),F(NL),F(Q8),F(hS),F(SK))};
R8.\u0275cmp=v({type:R8,selectors:[["issue-description-area"]],inputs:{id:"id"},features:[gf],decls:15,vars:12,consts:[[1,"flex-kids-x","gap-s"],[1,"chip-container","type-status-priority-container"],[4,"ngIf"],[3,"class",4,"ngIf"],[3,"issuePriority"],["class","flex-1 chip-container",4,"ngIf"],[1,"thread-filters"],["canonicalHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"title"],["class","type-s nowrap",4,"ngIf"],[1,"type-s","nowrap"],[3,"routerLink",
"onedevHovercardTrigger"],[1,"flex-1","chip-container"],["removable","check-acl",3,"id","removeHotlist",4,"ngFor","ngForOf"],["mat-stroked-button","","aria-label","Add Hotlist",1,"gmat-button","small","add-hotlists-btn",3,"hotkey","matTooltip","onHotkey","click"],["svgIcon","add",1,"icon-xs"],["removable","check-acl",3,"id","removeHotlist"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1),O(2,R9a,5,8,"div",2),Q(3,"async"),O(4,S9a,
2,4,"span",3),Q(5,"async"),J(6,"b-issue-priority-display",4),Q(7,"async"),H(),O(8,W9a,5,4,"div",5),Q(9,"async"),G(10,"div",6),J(11,"smart-full-history-btn"),H()(),G(12,"onedev-hovercard",null,7),O(14,X9a,3,4,"b-issue-card",8),H());a&2&&(B(2),D("ngIf",R(3,4,b.statusForChip$)),B(2),D("ngIf",R(5,6,b.type$)),B(2),D("issuePriority",R(7,8,b.priority$)),B(2),D("ngIf",R(9,10,b.hotlistIds$)))},dependencies:[wx,sx,hJ,lY,pN,qN,tN,rN,EX,D2,pB,LE,$E,QI,L8,Fx],styles:["[_nghost-%COMP%]{display:block}.add-hotlists-btn[_ngcontent-%COMP%], button.gmat-button[_ngcontent-%COMP%]:not(.mat-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px}.add-hotlists-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);margin:-3px -2px 0}.chip-container[_ngcontent-%COMP%]{-webkit-align-self:start;-ms-flex-item-align:start;align-self:start;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px;max-height:72px;overflow-y:auto;padding-bottom:5px}.type-status-priority-container[_ngcontent-%COMP%]{line-height:22px}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container b-hotlist-chip{margin-right:0}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container .chip, [_nghost-%COMP%]     .chip-container b-access-level-indicator .label{line-height:22px;height:22px}[_nghost-%COMP%]     .chip-container b-access-level-indicator .label{border-radius:11px}[_nghost-%COMP%]     .chip-container .b-chip.status{-moz-box-sizing:border-box;box-sizing:border-box;line-height:20px}.thread-filters[_ngcontent-%COMP%]{margin-top:-9px;margin-right:-9px}\n/*# sourceMappingURL=issue_description_area.css.map */"],
changeDetection:0});
var S8=function(){};S8.\u0275fac=function(a){return new (a||S8)};S8.\u0275cmp=v({type:S8,selectors:[["b-comment-edit-timestamp-message"]],inputs:{event:"event"},decls:1,vars:1,consts:[[4,"ngIf"],["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&O(0,$9a,7,2,"ng-container",0);a&2&&D("ngIf",b.event.commentLastModifiedAtDate)},dependencies:[sx,LP],encapsulation:2,changeDetection:0});
var p$a=function(a){return{"bv2-diff-newvalue-nextline":a}},J$a=function(a,b,c){return{diff:a,change:b,isLast:c}},T8=function(a){this.activeSession=a;this.diffs=[];this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=bna;this.isLinkedItemArray=xta;this.isIssueDiff=uta;this.isHotlistDiff=vta};T8.prototype.trackByIndex=function(a){return a};
var it=function(a,b,c){return"<none>"===Gja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"DATE"===a.customFieldMap[b.customFieldId].type?!0:!1},jt=function(a,b,c){return"<none>"===Gja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"REPEATED_DATE"===a.customFieldMap[b.customFieldId].type?!0:!1};T8.prototype.asNumber=function(a){return Number(a)};
T8.prototype.customFieldName=function(a){if(a.customFieldId){var b;return(null==(b=this.customFieldMap[a.customFieldId])?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};T8.\u0275fac=function(a){return new (a||T8)(F(pH))};
T8.\u0275cmp=v({type:T8,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},decls:6,vars:2,consts:[[1,"bv2-event-details"],["class","bv2-diff-row",4,"ngFor","ngForOf","ngForTrackBy"],["changeCollection",""],["effortNameDisabled",""],[1,"bv2-diff-row"],[4,"ngIf"],["mode","time",1,"bv2-event-timestamp",3,"timestamp"],["class","bv2-diff-detail",4,"ngIf"],[1,"bv2-diff-detail"],[4,"ngIf","ngIfElse"],
["nonEffortFieldNames",""],[1,"bv2-diff-arrow"],[3,"email","showEmail"],[3,"id"],["mode","date",3,"timestamp",4,"ngIf"],["mode","date",3,"timestamp"],[3,"email","showEmail",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["notIssue",""],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"href","onedevHovercardTrigger","issueId"],[3,"onedevIsHovercardReady","issueId"],["cardBody",
""],["plainLink",""],["target","_blank",3,"href"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,dab,2,1,"div",1),H(),O(2,nab,1,1,"ng-template",null,2,gg),O(4,oab,2,0,"ng-template",null,3,gg));a&2&&(B(1),D("ngForOf",b.diffs)("ngForTrackBy",b.trackByIndex))},dependencies:function(){return[vx,wx,sx,Cx,pN,qN,tN,rN,EX,LP,qS,GW,U8,V8]},encapsulation:2,changeDetection:0});var U8=function(a){this.hotlists=a;this.HOTLIST_SEARCH=ct.HOTLIST_SEARCH};U8.\u0275fac=function(a){return new (a||U8)(F(sL))};
U8.\u0275cmp=v({type:U8,selectors:[["hotlist-link"]],inputs:{id:"id"},decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(G(0,"a",0),P(1),Q(2,"async"),H());if(a&2){var c;D("href",b.HOTLIST_SEARCH(b.id),Kd);B(1);Jf((null==(c=R(2,2,b.hotlists.watch(b.id)))?null:c.name)||b.id)}},dependencies:[Fx],encapsulation:2,changeDetection:0});
var V8=function(a){var b=this;this.componentFridge=a;this.id$=new T.ReplaySubject(1);this.name$=this.id$.pipe(Le(),Xe(function(c){return b.componentFridge.watchOne(c).pipe(C(function(d){var e;return d?Q1b(null==(e=d.componentPathInfo)?void 0:e.componentPathName,c):c}))}))};V8.prototype.ngOnChanges=function(){this.id$.next(this.id)};V8.\u0275fac=function(a){return new (a||V8)(F(bK))};
V8.\u0275cmp=v({type:V8,selectors:[["plain-component-path"]],inputs:{id:"id"},features:[Ac],decls:6,vars:4,consts:[[3,"onedevHovercardTrigger"],["thisHovercard","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""]],template:function(a,b){a&1&&(G(0,"span",0),P(1),Q(2,"async"),H(),G(3,"onedev-hovercard",null,1),O(5,pab,3,2,"ng-container",2),H());if(a&2){var c=Hf(4);D("onedevHovercardTrigger",c);B(1);Jf(R(2,2,b.name$)||b.id)}},dependencies:[pN,qN,
tN,rN,US,Fx],encapsulation:2,changeDetection:0});var W8=function(){};W8.\u0275fac=function(a){return new (a||W8)};W8.\u0275mod=rc({type:W8});W8.\u0275inj=fc({imports:[[Mx,$N,IX,eQ,IS,eT,kX]]});
var X8=function(){this.texts=[]};X8.prototype.getIssueId=function(a){return Number(a.text)};X8.prototype.trackByIndex=function(a){return a};X8.\u0275fac=function(a){return new (a||X8)};
X8.\u0275cmp=v({type:X8,selectors:[["b-tagged-text"]],inputs:{texts:"texts"},decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngSwitch"],[3,"email","withProfile",4,"ngSwitchCase"],[3,"href","issueId",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"email","withProfile"],[3,"href","issueId"]],template:function(a,b){a&1&&O(0,tab,5,3,"ng-container",0);a&2&&D("ngForOf",b.texts)("ngForTrackBy",b.trackByIndex)},dependencies:[GW,wx,yx,zx,Ax,GS],encapsulation:2,changeDetection:0});
var Spc=["commentActionsMenu"],Cab=function(){return[]},Y8=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L){BI.call(this);var S=this;this.documentationLinks=a;this.activeSession=b;this.issueReferenceResolver=c;this.commentService=d;this.el=e;this.userAccess=f;this.butterBar=h;this.errorHandler=k;this.analytics=q;this.userPreferencesManager=w;this.issueDetailsBrain=y;this.editIssueService=E;this.issuePermissionService=I;this.commentHistoryDialogService=N;this.issueCommentDialogsService=L;this.issueId$=new T.ReplaySubject(1);
this.distinctIssueId$=this.issueId$.pipe(Le());this.event$=new T.ReplaySubject(1);this.isCommentEvent=xn;this.isNonObfuscatedEmail=Ln;this.commentActionMenuItems$=new T.BehaviorSubject([]);this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingMode=1;this.commentRetentionOverride=null;a={};this.formattingModeMenuItems=(a[1]={type:"select",action:function(){S.formattingMode=1;S.initializeActionsMenu()},label:"Classic",
selected:!0},a[2]={type:"select",action:function(){S.formattingMode=2;S.initializeActionsMenu()},label:"Markdown",selected:!1},a[3]={type:"select",action:function(){S.formattingMode=3;S.initializeActionsMenu()},label:"Source",selected:!1},a);this.isFormattingOverrideEnabled=!1;this.canEditComment$=this.event$.pipe(Xe(function(Y){return S.issuePermissionService.canEditComment$(Y)}),Ue({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Pj(S.canEditComment$)};this.commentHistoryEnabled=
rH(this.activeSession,"enableCommentHistoryUi");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(Xe(function(Y){return S.editIssueService.editableIssue$(Y)}));this.showFullHistory$=this.userPreferencesManager.showFullHistory$;this.isShowingCommentTimestamp$=this.showFullHistory$.pipe(C(function(Y){return Y&&xn(S.event)&&!!S.event.unlinkifiedComment&&(0<
S.event.preDiffs.length||0<S.event.postDiffs.length)}));this.getCommentNumberLink=function(Y){return sn(S.issueId,{comment:Y})}};U(Y8,BI);Y8.\u0275dir=BI.\u0275dir;
Y8.prototype.ngOnInit=function(){var a=this;this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);this.commentRetentionOverride=this.event.commentRetention;this.event$.pipe(Ye(this.destroyed$)).subscribe(function(){xn(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=(0,T.of)(void 0)});Tpc(this);this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.canEditComment$.pipe(Ye(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(Ye(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};var Tpc=function(a){if(a.formattingMode){for(var b=r(Object.values(a.formattingModeMenuItems)),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.formattingModeMenuItems[a.formattingMode].selected=!0}};g=Y8.prototype;
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||TK(this.errorHandler,"Comment number is missing");bo(this.analytics,go.RESTRICTED_CONTENT,"updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(Ye(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:I8a(c.getPiiRetention()),commentRetentionState:c.hasPiiRetentionState()?J8a(c.getPiiRetentionState()):null});PK(b.butterBar,
"Comment retention updated",4E3);b.commentRetentionOverride=2===a?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){TK(b.errorHandler,"Comment retention update failed")}})};
g.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent)b=a.previousValue,a=a.currentValue,b=(null==b?void 0:b.commentVersion)!==(null==a?void 0:a.commentVersion)||(null==b?void 0:b.commentContentVerdict)!==(null==a?void 0:a.commentContentVerdict);b&&(this.deobfuscatedEvent=void 0);this.event.formattingMode&&(this.formattingMode=Osa(this.event.formattingMode),0===this.formattingMode&&(this.formattingMode=1));this.initializeActionsMenu()};
g.getRestrictedLabel=function(){return uqa(Bl(this.event.commentContentVerdict))};g.isRestricted=function(){if(!this.isInternalSession)return!1;var a=Bl(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:bh(a)}};g.isDeleted=function(){return"DELETED"===this.event.commentDeletionStatus};var lt=function(a){var b;return(null==(b=a.event)?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};g=Y8.prototype;
g.loadRestrictedComment=function(){var a=this;bo(this.analytics,go.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var b=String(this.issueId),c=this.event.commentNumber||0,d=Al(Bl(this.event.commentContentVerdict));this.commentService.get(b,c,d).pipe(Me()).subscribe(function(e){e=Xm(e);a.deobfuscatedEvent=Object.assign({},a.event,e);a.initializeActionsMenu()},function(e){var f;QK(a.butterBar,"Error showing comment "+c+": "+(null==(f=e.error)?void 0:f.message))})};
g.initializeActionsMenu=function(){var a=this,b=[];if(this.isCommentEvent(this.event)&&(this.isFormattingOverrideEnabled||(b.push({type:"submenu",label:"View as...",items:[this.formattingModeMenuItems[1],this.formattingModeMenuItems[2],this.formattingModeMenuItems[3]]}),Tpc(this)),this.canEditComment()&&b.push({type:"action",action:function(){kt(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment...",
disabled:lt(this)}),this.commentHistoryEnabled&&0<(this.event.commentVersion||0)&&!lt(this)&&b.push({type:"action",action:function(){a.event.commentNumber&&a.showCommentHistoryDialog(a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Show comment history"}),this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){Jlc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Copy comment to...",disabled:lt(this)}),iMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){Plc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),hMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){Mlc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Restore comment"}),this.isInternalSession&&b.push({type:"action",action:function(){Qlc(a.issueCommentDialogsService,String(a.issueId),a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."}),this.isInternalSession&&this.isRestricted()&&this.issuePermissionService.canChangeCommentRetention()&&!this.isDeleted())){var c="COMPONENT_DEFAULT"===this.commentRetentionOverride;b.push({type:"action",action:function(){var d=c?2:1;Rlc(a.issueCommentDialogsService,
"comment",d).then(function(e){a.commentActionsMenu.actionsMenuIconButton.focus();e&&a.updateCommentRetention(d)})},label:c?"Match issue retention...":"Revert to component retention..."})}this.commentActionMenuItems$.next(b)};g.getUserEmailIfAvailable=function(){return Pl(this.event.userPerformingActionUser)};g.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
g.mayReadPii=function(){var a=DK(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){Qk("error: ",b);return!1});return(0,T.from)(a)};ki.Object.defineProperties(Y8.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});Y8.\u0275fac=function(a){return new (a||Y8)(F(tP),F(pH),F(FW),F(H8),F(nd),F(CK),F(OK),F(SK),F(SM),F(zI),F(mO),F(nS),F(oO),F(NS),F(B6))};
Y8.\u0275cmp=v({type:Y8,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&Zf(Spc,5);if(a&2){var c;Yf(c=ag())&&(b.commentActionsMenu=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",event:"event"},features:[gf,Ac],decls:2,vars:3,consts:[[4,"ngIf"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user"],[3,"user","email","teamId",4,"ngIf","ngIfElse"],["plainUserDisplayName",""],[4,"ngIf","ngIfElse"],["emailDisplay",
""],["class","bv2-edit-comment-button","matTooltip","Edit Comment","aria-label","Edit Comment",3,"click",4,"ngIf"],[1,"bv2-event-info"],["content-type","comment",3,"label","retention","retentionState",4,"ngIf"],["mode","datetime",3,"timestamp"],["class","issue-detail-actions","matTooltip","Comment actions",3,"buttonLabel","menuItems",4,"ngIf"],[1,"float-clear"],["class","bv2-event-major-status",4,"ngIf"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled",4,"ngIf"],[1,"bv2-event-note-container"],
["class","bv2-event-timestamp","mode","time",3,"timestamp",4,"ngIf"],["class","bv2-event-note-deleted",4,"ngIf"],[3,"disabled","onConfirm",4,"ngIf"],[3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],["class","bv2-event-note-edit-timestamp",4,"ngIf"],["class","margin-s-y border-top bv2-issue-event-attachments",4,"ngIf"],[3,"user","email","teamId"],[1,"bv2-event-user-name",3,"model"],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"bv2-event-user-id"],
[1,"keep-focus-ring",3,"routerLinkObj","click"],["matTooltip","Edit Comment","aria-label","Edit Comment",1,"bv2-edit-comment-button",3,"click"],["content-type","comment",3,"label","retention","retentionState"],["matTooltip","Comment actions",1,"issue-detail-actions",3,"buttonLabel","menuItems"],["commentActionsMenu",""],[1,"bv2-event-major-status"],[3,"texts"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled"],["mode","time",1,"bv2-event-timestamp",3,"timestamp"],[1,"bv2-event-note-deleted"],
[3,"disabled","onConfirm"],[3,"issueId","issueAccessLevel","note","formattingMode"],[1,"bv2-event-note-edit-timestamp"],[3,"event"],[3,"click",4,"ngIf"],[3,"click"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["class","margin-s-y bv2-issue-event-attachment",3,"id",4,"ngFor","ngForOf"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(O(0,Pab,36,28,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.issue$))},
dependencies:[QZ,UW,wx,sx,Cx,LP,T8,pS,$E,pN,tN,s5,u5,qT,sS,rS,HS,J8,S8,X8,Fx],encapsulation:2,changeDetection:0});
var Uab=function(){return[]},Z8=function(a,b,c,d,e){BI.call(this);var f=this;this.formattedCommentsForIssueFridge=a;this.preferences=b;this.eventsForIssue=c;this.editIssueService=d;this.issueDetailsBrain=e;this.showRecentEventsFirst=!1;this.issueId$=new T.ReplaySubject(1);this.internalIssueId=0;this.issue$=this.issueId$.pipe(Xe(function(h){return f.editIssueService.editableIssue$(h.toString())}));this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;
this.events$=new T.ReplaySubject(1);this.commentsToFormat$=new T.ReplaySubject(1);this.internalEvents=[];this.allEventsToDisplay=[];this.firstEventPostDiffs$=new T.ReplaySubject(1);this.allEvents$=(0,T.combineLatest)([this.events$,this.firstEventPostDiffs$]).pipe(C(function(h){h=r(h);var k=h.next().value,q=h.next().value;return k&&k[0]&&q?(h=[].concat(u(k)),q.every(function(w){return k[0].preDiffs.includes(w)})||(q=Object.assign({},k[0],{preDiffs:[].concat(u(q),u(k[0].preDiffs))}),h[0]=q),h):[]}))};
U(Z8,BI);Z8.\u0275dir=BI.\u0275dir;
Z8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(De($k),Ye(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b;Upc(a)});this.allEvents$.pipe(De($k),Ye(this.destroyed$)).subscribe(function(b){if(a.internalIssueId&&b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())(d=d.value)&&d.commentNumber&&c.push(a.internalIssueId+"-"+d.commentNumber);a.commentsToFormat$.next(c)}});this.commentsToFormat$.pipe(De($k),Ye(this.destroyed$),Xe(function(b){return $J(a.formattedCommentsForIssueFridge,
b)})).subscribe(function(b){Vpc(a,b)})};
var Vpc=function(a,b){a.allEventsToDisplay=[];var c,d=null!=(c=Pj(a.allEvents$))?c:[];c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$event$1715:c.$jscomp$loop$prop$event$1715},e=d.next())if(c.$jscomp$loop$prop$event$1715=e.value,c.$jscomp$loop$prop$event$1715.commentNumber){if(e=b.find(function(f){return function(h){return h.id.commentId===f.$jscomp$loop$prop$event$1715.commentNumber}}(c)))c.$jscomp$loop$prop$event$1715.formattedComment=e.formattedComment.formattedComment,c.$jscomp$loop$prop$event$1715.formattingMode=
e.formattedComment.formattingMode,a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1715))}else a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1715));Upc(a)};Z8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(xn(a)&&!!a.unlinkifiedComment||Cta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};
var Upc=function(a){2>a.allEventsToDisplay.length||(a.showRecentEventsFirst&&a.allEventsToDisplay[0].modifiedDate<=a.allEventsToDisplay[1].modifiedDate||!a.showRecentEventsFirst&&a.allEventsToDisplay[0].modifiedDate>=a.allEventsToDisplay[1].modifiedDate)&&a.allEventsToDisplay.reverse()};Z8.prototype.isLoading=function(){return this.formattedCommentsForIssueFridge.isThinking()||this.eventsForIssue.isThinking(this.internalIssueId)};Z8.prototype.trackEventByVersion=function(a,b){return b.version};
ki.Object.defineProperties(Z8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a&&(this.internalIssueId=a,this.issueId$.next(a))}},events:{configurable:!0,enumerable:!0,set:function(a){a&&!Mna(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}},firstEventPostDiffs:{configurable:!0,enumerable:!0,set:function(a){a&&this.firstEventPostDiffs$.next(a)}}});Z8.\u0275fac=function(a){return new (a||Z8)(F(RL),F(zI),F(NL),F(nS),F(mO))};
Z8.\u0275cmp=v({type:Z8,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events",firstEventPostDiffs:"firstEventPostDiffs"},features:[gf],decls:6,vars:7,consts:[["class","padded margined",4,"ngIf"],[1,"bv2-edit-issue-history-stream"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"padded","margined"],["class","bv2-event",4,"ngIf"],[1,"bv2-event"],[3,"issueId","issueAccessLevel","event"],["class","initial-diffs",
3,"diffs","customFieldMap","effortSpecName","effortEnabled",4,"ngIf"],[1,"initial-diffs",3,"diffs","customFieldMap","effortSpecName","effortEnabled"]],template:function(a,b){a&1&&(O(0,Qab,2,0,"aside",0),G(1,"div",1),O(2,Sab,2,1,"ng-container",2),O(3,Wab,2,1,"ng-container",3),Q(4,"async"),H(),O(5,Xab,2,0,"aside",0));a&2&&(D("ngIf",b.isLoading()&&b.showRecentEventsFirst),B(2),D("ngForOf",b.allEventsToDisplay)("ngForTrackBy",b.trackEventByVersion),B(1),D("ngIf",R(4,5,b.issue$)),B(2),D("ngIf",b.isLoading()&&
!b.showRecentEventsFirst))},dependencies:[wx,sx,Y8,mN,T8,Fx],styles:[".sort-order-button[_ngcontent-%COMP%]{height:24px;line-height:24px;padding-left:6px;padding-right:10px}.sort-order-arrow[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px}[_nghost-%COMP%]     .initial-diffs .bv2-event-details{margin-top:16px}"]});
var $8=function(a,b,c){BI.call(this);var d=this;this.dynamicScrollIntoView=a;this.bLocation=b;this.elementRef=c;this.scrollToCommentOrAttachmentOnce=gua(function(){var e=d.bLocation.hash();if(e&&d.events){var f,h=r(null!=(f=e.match(RegExp("(comment|attachment)([0-9]+)")))?f:[]);h.next();f=h.next().value;var k=h.next().value;h=f;var q=k;if("lastcomment"===e){e=Kta(d.events);if(-1===e)return;q=String(e);h="comment"}h&&q&&(e=d.events.some(function(w){return w.commentNumber===Number(q)}),f=d.events.flatMap(function(w){return w.attachments}).some(function(w){return w.attachmentId===
Number(q)}),(e||f)&&ylc(d.dynamicScrollIntoView,{elementId:h+q,parentElement:d.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Ye(d.destroyed$)).subscribe())}})};U($8,BI);$8.\u0275dir=BI.\u0275dir;$8.prototype.ngOnChanges=function(a){a.events&&this.events&&this.scrollToCommentOrAttachmentOnce()};$8.prototype.trackEventByVersion=function(a,b){return b.version};
$8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(xn(a)&&!!a.unlinkifiedComment||Cta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};$8.\u0275fac=function(a){return new (a||$8)(F(t6),F(cL),F(nd))};
$8.\u0275cmp=v({type:$8,selectors:[["b-history-event-stream"]],inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",events:"events"},features:[gf,Ac],decls:2,vars:2,consts:[[1,"bv2-edit-issue-history-stream"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","bv2-event",4,"ngIf"],[1,"bv2-event"],[3,"issueId","issueAccessLevel","event"]],template:function(a,b){a&1&&(G(0,"div",0),O(1,Zab,2,1,"ng-container",1),H());a&2&&(B(1),D("ngForOf",b.events)("ngForTrackBy",
b.trackEventByVersion))},dependencies:[wx,sx,Y8],encapsulation:2,changeDetection:0});
var $ab=function(a){return[a]},a9=function(a,b,c,d,e,f){BI.call(this);var h=this;this.eventsForIssue=a;this.issueFetchResponseFridge=b;this.preferences=c;this.activeSession=d;this.commentHistoryDialogService=e;this.issueDetailsBrain=f;this.id$=new T.ReplaySubject(1);this.events$=this.id$.pipe(Xe(function(k){return h.eventsForIssue.watch(k)}),C(function(k){var q;return null!=(q=null==k?void 0:k.events)?q:[]}));this.firstEventPostDiffs$=this.events$.pipe(C(function(k){return k[0].postDiffs}));this.issue$=
this.id$.pipe(Xe(function(k){return CL(h.issueFetchResponseFridge,k)}));this.idNumber$=this.id$.pipe(C(Number));this.accessLevel$=this.issue$.pipe(C(function(k){var q,w;return null==k?void 0:null==(q=k.issue)?void 0:null==(w=q.accessLimit)?void 0:w.accessLevel}));this.enableEnhancedCommentThread=rH(this.activeSession,"enableEnhancedCommentThread")};U(a9,BI);a9.\u0275dir=BI.\u0275dir;
a9.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.issueDetailsBrain.urlComment$.subscribe(function(b){var c=b.commentNumber;b=b.commentVersion;if(c&&void 0!==b&&-1<b){var d=Pj(a.id$);d&&a.commentHistoryDialogService.show(Number(d),c,null!=b?b:-1)}}))};ki.Object.defineProperties(a9.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});a9.\u0275fac=function(a){return new (a||a9)(F(NL),F(BL),F(zI),F(pH),F(NS),F(mO))};
a9.\u0275cmp=v({type:a9,selectors:[["issue-event-list"]],inputs:{id:"id"},features:[gf],decls:6,vars:6,consts:[[3,"events","issueId","issueAccessLevel","showFullHistory",4,"ngIf"],[3,"issueId","events","firstEventPostDiffs","issueAccessLevel","showFullHistory",4,"ngIf","ngIfElse"],["legacyCommentThread",""],["class","padded margined",4,"ngIf"],[3,"events","issueId","issueAccessLevel","showFullHistory"],[3,"issueId","events","firstEventPostDiffs","issueAccessLevel","showFullHistory"],[3,"issueId",
"issueAccessLevel","events","showFullHistory"],[1,"padded","margined"]],template:function(a,b){a&1&&(O(0,abb,4,12,"b-history-event-stream",0),Q(1,"async"),O(2,bbb,7,18,"b-event-stream",1),O(3,cbb,6,15,"ng-template",null,2,gg),O(5,dbb,2,0,"aside",3));if(a&2){var c=Hf(4),d;D("ngIf",!b.enableEnhancedCommentThread&&(null==(d=R(1,4,b.issue$))?null:d.firstEvent));B(2);D("ngIf",b.enableEnhancedCommentThread)("ngIfElse",c);B(3);D("ngIf",b.eventsForIssue.isThinking(b.id)&&!b.enableEnhancedCommentThread)}},
dependencies:[sx,$8,mN,Z8,Fx,Lx],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});
var b9=function(a,b,c,d,e,f,h,k){var q=this;this.issuePermissionService=a;this.userPreferencesManager=b;this.editIssueService=c;this.analytics=d;this.draftStore=e;this.activeSession=f;this.issueDetailsBrain=h;this.legacyEditIssue=k;this.issueId$=new T.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Le());this.issue$=this.distinctIssueId$.pipe(Xe(function(w){return q.editIssueService.editableIssue$(w)}));this.HOTKEYS=xI;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.hasAclToComment$=
this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.audience$=this.issuePermissionService.audience$;this.autoCcOnComment$=this.userPreferencesManager.preferences$.pipe(C(function(w){return w.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(C(function(w){return q.editIssueService.issueCommentDraft(w)}));this.comment$=this.issueCommentDraft$.pipe(Xe(function(w){return w.comment$}));
this.events$=this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(C(function(w){return q.editIssueService.savingState(w)}));this.isSaving$=this.savingState$.pipe(Xe(function(w){return Ms(w,"comment")}));this.commentLimitReached$=this.events$.pipe(C(function(w){var y=q.activeSession.getCommentNumberLimit();return Kta(w)>=y}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(C(function(w){return w?"The comment limit has been reached and no additional comments are permitted.":
q.activeSession.isAnonymous()?"Sign in to use full features.":q.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."}));this.commentBoxEnabled$=(0,T.combineLatest)([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(C(function(w){var y=r(w);w=y.next().value;var E=y.next().value;y=y.next().value;return w&&!E&&!y}))};
b9.prototype.toggleAutoCcOnComment=function(){var a=this,b;return me(function(c){b=!Fi(a.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;bo(a.analytics,go.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));return ne(c,(0,T.firstValueFrom)(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
b9.prototype.saveCommentDraft=function(){var a=this,b;return me(function(c){if(1==c.nextAddress)return ne(c,(0,T.firstValueFrom)(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(vo(Number(a.issueId)),b.value);oe(c)})};ki.Object.defineProperties(b9.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}}});
b9.\u0275fac=function(a){return new (a||b9)(F(oO),F(zI),F(nS),F(SM),F(KR),F(pH),F(mO),F(E6))};
b9.\u0275cmp=v({type:b9,selectors:[["b-post-comment"]],inputs:{issueId:"issueId"},decls:2,vars:3,consts:[[4,"ngIf"],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","onHotkey","onChange","onSubmit","onRestrict"],["commentBox",""],[1,"goog-inline-block"],["format","fill",3,"disabled","onAction"],["class","goog-inline-block vertical-centered",4,"ngIf"],[3,
"accessLevel"],["label","CC Me",3,"checked","disabled","change"],[1,"goog-inline-block","vertical-centered"],["label","CC Me",3,"checked","disabled","tooltip",4,"ngIf"],["label","CC Me",3,"checked","disabled","tooltip"]],template:function(a,b){a&1&&(O(0,lbb,2,1,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.issue$))},dependencies:[yO,pX,TW,sx,TS,hJ,vQ,Fx],styles:["[_nghost-%COMP%]     .bv2-edit-issue-add-comment{padding-left:0;padding-right:0}textarea[_ngcontent-%COMP%]{display:block;margin:0;margin-bottom:8px;max-height:40vh;min-height:130px;resize:none;width:100%}button[_ngcontent-%COMP%], mat-checkbox[_ngcontent-%COMP%]{margin-right:8px}\n/*# sourceMappingURL=post_comment.css.map */"]});
var c9=function(a,b,c,d,e){BI.call(this);this.brain=a;this.activeSession=b;this.preferences=c;this.scrollTiming=d;this.analytics=e;this.id$=this.brain.id$;this.enableEnhancedCommentThread=rH(this.activeSession,"enableEnhancedCommentThread");this.showRecentEventsFirst=!1};U(c9,BI);c9.\u0275dir=BI.\u0275dir;c9.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(De($k),Ye(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){Wpc(a)})};
c9.prototype.unloadPageHandler=function(){Wpc(this)};var Wpc=function(a){var b=a.scrollTiming;if((b=b.scrollTimingMap.has("flex-1 pos-rel bg-off-main overflow overflow-on-print-media")?b.scrollTimingMap.get("flex-1 pos-rel bg-off-main overflow overflow-on-print-media"):[])&&!(2>b.length)){for(var c=b[0],d=b[0],e=0,f=1;f<b.length;f++)2E3>b[f]-d||(e+=d-c,c=b[f]),d=b[f],f===b.length-1&&(e+=b[f]-c);bo(a.analytics,go.EDIT_ISSUE,"scroll","commentThread",e)}};
c9.\u0275fac=function(a){return new (a||c9)(F(mO),F(pH),F(zI),F(aP),F(SM))};
c9.\u0275cmp=v({type:c9,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&K("unload",function(){return b.unloadPageHandler()},!1,qd)},features:[gf],decls:4,vars:6,consts:[["class","carded margined-s bg-main",4,"ngIf"],["id","bv2-edit-issue-details-scroll","class","carded margined-s bg-main","tabindex","-1",3,"bFocus",4,"ngIf"],[1,"carded","margined-s","bg-main"],[1,"margin-s-bottom",3,"id"],[3,"id"],["id","bv2-edit-issue-details-scroll","tabindex","-1",1,"carded","margined-s","bg-main",
3,"bFocus"],["class","margin-s-bottom",3,"id",4,"ngIf"],[4,"ngIf"],[3,"id",4,"ngIf"],[3,"issueId"]],template:function(a,b){a&1&&(O(0,mbb,3,2,"div",0),Q(1,"async"),O(2,rbb,6,6,"div",1),Q(3,"async"));a&2&&(D("ngIf",b.enableEnhancedCommentThread&&R(1,2,b.id$)),B(2),D("ngIf",R(3,4,b.id$)))},dependencies:[sx,b9,R8,a9,l_,K8,G8,Fx],encapsulation:2});
var d9=function(){};d9.\u0275fac=function(a){return new (a||d9)};d9.\u0275mod=rc({type:d9});d9.\u0275inj=fc({imports:[[Mx,dF,jG]]});
var e9=function(){};e9.\u0275fac=function(a){return new (a||e9)};e9.\u0275mod=rc({type:e9});e9.\u0275inj=fc({imports:[[TZ,BP,kX,Mx,iT,eQ,AP,dI,W8,FS,jG,MB,dF,bH,$N,DS,w5,rT,IS,cT]]});
var f9=function(){};f9.\u0275fac=function(a){return new (a||f9)};f9.\u0275mod=rc({type:f9});f9.\u0275inj=fc({imports:[[TZ,kX,Mx,eQ,e9,bH,w5,rT,IS,$N,FS,dF,jG]]});
var g9=function(){};g9.\u0275fac=function(a){return new (a||g9)};g9.\u0275mod=rc({type:g9});g9.\u0275inj=fc({imports:[[Mx,eI,dF,MB,WI,PO,jG,UP,JK,wy,xy,WN,bH,yA]]});
var h9=function(){};h9.\u0275fac=function(a){return new (a||h9)};h9.\u0275mod=rc({type:h9});h9.\u0275inj=fc({imports:[[Mx,jG,dF,bH,YB,$B]]});
var i9=function(a){BI.call(this);this.prefs=a};U(i9,BI);i9.\u0275dir=BI.\u0275dir;i9.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(Ye(this.destroyed$)).subscribe()};i9.\u0275fac=function(a){return new (a||i9)(F(zI))};
i9.\u0275cmp=v({type:i9,selectors:[["b-toggle-code-font"]],features:[gf],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"checked","change"]],template:function(a,b){a&1&&(Cf(),G(0,"mat-slide-toggle",0),K("change",function(c){return b.onChange(c)}),Q(1,"async"),Df(2),H());a&2&&D("checked",R(1,1,b.prefs.codeFont$))},dependencies:[$E,FT,Fx],styles:[""],changeDetection:0});
var j9=function(){};j9.\u0275fac=function(a){return new (a||j9)};j9.\u0275mod=rc({type:j9});j9.\u0275inj=fc({imports:[[Mx,bH,PO,HT,dF,jG,YN]]});
var k9=function(){};k9.\u0275fac=function(a){return new (a||k9)};k9.\u0275mod=rc({type:k9});k9.\u0275inj=fc({providers:[Q8],imports:[[Mx,dT,iJ,mY,g9,$N,IX,g5,H2,h9,jG,dF,bH,WI,WN,j9]]});
var l9=function(){};l9.\u0275fac=function(a){return new (a||l9)};l9.\u0275mod=rc({type:l9});l9.\u0275inj=fc({imports:[[Mx,e9,YN,jG,dF,W8]]});
var m9=function(){};m9.\u0275fac=function(a){return new (a||m9)};m9.\u0275mod=rc({type:m9});m9.\u0275inj=fc({imports:[[Mx,g5,h9,WN,jG,dF,bH,kX,IS,e9,YN,f9,l9]]});
var n9=function(){};n9.\u0275fac=function(a){return new (a||n9)};n9.\u0275mod=rc({type:n9});n9.\u0275inj=fc({imports:[[zO,WX,kX,Mx,dT,wy,iJ,jG,PO,dF,wQ]]});
var o9=function(){};o9.\u0275fac=function(a){return new (a||o9)};o9.\u0275mod=rc({type:o9});o9.\u0275inj=fc({imports:[[dz,Ez,wy,xy,WI,jG,jX,mP,n9,IS,k9,m9,m_,f9,d9]]});
var p9=function(a,b){var c=this;this.issueFridge=a;this.issueDetailsBrain=b;this.ROBOT_SLEEPING=zjc;this.issue$=this.issueDetailsBrain.id$.pipe(Xe(function(d){return c.issueFridge.watch(d)}),De($k));this.relatedLinks$=this.issue$.pipe(C(function(d){return d.relatedLinks||[]}));this.issueReferences$=this.relatedLinks$.pipe(C(function(d){return d.filter(function(e){return"issueReference"===e.type})}));this.ids$=(0,T.combineLatest)([this.issueReferences$.pipe(C(function(d){return d.map(function(e){return e.issueId})})),
this.issue$]).pipe(C(function(d){var e=r(d);d=e.next().value;e=e.next().value;return Xpc(d,e)}));this.hyperlinks$=this.relatedLinks$.pipe(C(function(d){return d.filter(function(e){return"hyperlink"===e.type})}))},Xpc=function(a,b){var c=String(b.issueId);return[].concat(u(new Set(a))).filter(function(d){return d!==c})};p9.\u0275fac=function(a){return new (a||p9)(F(yL),F(mO))};
p9.\u0275cmp=v({type:p9,selectors:[["issue-resources"]],decls:5,vars:3,consts:[[1,"carded","bg-main"],[4,"ngIf"],["hasResults",""],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/b-resources-and-links","target","_blank"],[1,"gap"],[1,"margin-bottom"],["svgIcon","info",1,"icon-s","valign-middle"],[3,"issueIds"],[4,"ngFor","ngForOf"],[3,"href","originalHref"]],
template:function(a,b){a&1&&(G(0,"section",0),O(1,tbb,2,2,"ng-container",1),Q(2,"async"),O(3,zbb,13,6,"ng-template",null,2,gg),H());a&2&&(B(1),D("ngIf",R(2,1,b.relatedLinks$)))},dependencies:[wx,sx,CW,W6,LE,Fx],styles:["[_nghost-%COMP%]{display:block;padding:8px}ul[_ngcontent-%COMP%]{list-style:disc}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}\n/*# sourceMappingURL=issue_resources.css.map */"]});
var q9=function(){};q9.\u0275fac=function(a){return new (a||q9)};q9.\u0275mod=rc({type:q9});q9.\u0275inj=fc({imports:[[Mx,kX,b7,dF]]});
var r9=function(a,b){var c=this;this.brain=a;this.codeMentions=b;this.ROBOT_SLEEPING=zjc;this.id$=this.brain.id$.pipe(De($k));this.codeMentionsState$=this.id$.pipe(Xe(function(d){return xlc(c.codeMentions,Number(d))}))};r9.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};r9.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};r9.\u0275fac=function(a){return new (a||r9)(F(mO),F(r6))};
r9.\u0275cmp=v({type:r9,selectors:[["issue-todos"]],decls:3,vars:3,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/buganizer-guide/guides/issue-todos.md","target","_blank"],[3,"issueId","packageMentionSet","displayPackageName",4,"ngFor","ngForOf"],[1,"margin-top"],["target","_blank",3,
"href","click"],[3,"issueId","packageMentionSet","displayPackageName"]],template:function(a,b){a&1&&(G(0,"section",0),O(1,Fbb,3,3,"ng-container",1),Q(2,"async"),H());a&2&&(B(1),D("ngIf",R(2,1,b.id$)))},dependencies:[wx,sx,m5,Fx],styles:["[_nghost-%COMP%]{display:block;padding:8px}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}[_nghost-%COMP%]     .bv2-package-mention-set{height:auto}[_nghost-%COMP%]     .bv2-package-mention-set li{white-space:nowrap;margin-bottom:4px}\n/*# sourceMappingURL=issue_todos.css.map */"]});
var s9=function(a,b,c,d,e){this.cdr=a;this.pageTitle=b;this.userApi=c;this.paths=d;this.errorHandler=e;this.isLoading=!1;this.hotlists=[];this.createHotlistPath=this.paths.createHotlist()};s9.prototype.ngOnInit=function(){this.pageTitle.setTitle("All of my hotlists");this.fetchUserHotlists()};
s9.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;this.userApi.getUserHotlists().then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};s9.\u0275fac=function(a){return new (a||s9)(F(uI,2),F(hO),F(PJ),F(dL),F(SK))};
s9.\u0275cmp=v({type:s9,selectors:[["list-hotlists-page"]],features:[Lf([uI])],decls:8,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"gmat-button","no-visited-no-active",3,"href"],[1,"bv2-view"],[3,"large",4,"ngIf"],[3,"hotlists",4,"ngIf"],[3,"large"],[3,"hotlists"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1,"Browse Hotlists"),H(),G(2,"div",1)(3,"a",2),P(4," Create Hotlist "),H()(),G(5,"div",3),O(6,Gbb,1,1,"b-spinner",4),O(7,Hbb,1,1,"b-hotlist-grid",5),H());a&
2&&(B(3),D("href",b.createHotlistPath,Kd),B(3),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[sx,tZ,mN,qB],encapsulation:2});
var Ypc=new Set(["issueId","modifiedTime","createdTime"]),t9=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma){BI.call(this);var hb=this;this.cdr=a;this.routerEvents=b;this.window=c;this.bLocation=d;this.$log=e;this.issueApi=f;this.userApi=h;this.hotlistApi=k;this.activeSession=q;this.butterBar=w;this.analytics=y;this.currentSearch=E;this.issuePagination=I;this.userPreferencesManager=N;this.urlPreferences=L;this.gridPreferencesFetcher=S;this.paths=Y;this.timeout=ka;this.errorHandler=
ha;this.statusMessages=ya;this.domSafe=Ha;this.appEvents=Ja;this.hotlistFridge=Ka;this.issueFridge=Ma;this.focusedRowIndex=this.displayColumns=null;this.isInitializing=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.searchResults=null;this.hotlistChoices=[];this.hotlistMap={};this.customFieldMap={};this.gridControls=this.cachedSort=null;this.issueColumnsInternal=[];this.metaColumns=[];this.sortPreferences=[];this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue",
onPress:function(){var fb;null==(fb=hb.resultsGrid)||f4b(fb)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||g4b(fb)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||e4b(fb)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||i4b(fb)}},{keys:[Mj("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var fb;null==(fb=hb.resultsGrid)||j4b(fb,!0)}},{keys:[Mj("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var fb;null==(fb=hb.resultsGrid)||j4b(fb,!1)}},{keys:[Nj("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var fb;null==(fb=hb.resultsGrid)||fb.selectAll()}},{keys:[Nj("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var fb;null==(fb=hb.resultsGrid)||b4b(fb)}},
{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var fb;null==(fb=hb.gridControls)||QX(fb,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var fb;null==(fb=hb.gridControls)||QX(fb,zn.DUPLICATE,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var fb;if(null!=(fb=hb.gridControls)&&fb.hasSelectedIssues()){var Lb;null==(Lb=fb.hotlistPicker)||Lb.open()}}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var fb;
null==(fb=hb.gridControls)||z2b(fb)}},{keys:["u",Mj("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return hb.refreshResults()}},{keys:[Nj("p","0"),Nj("p","1"),Nj("p","2"),Nj("p","3"),Nj("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(fb){hb.resultsGrid&&hb.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+fb}],issueIds:Ni(hb.resultsGrid.getSelectedIssues(),"issueId")}])}},{keys:["o","ENTER",hoa("ENTER")],
displayAs:"o / Enter",description:"Open the current issue",onPress:function(fb){var Lb=c.document.activeElement;if(1==fb&&"A"==Lb.tagName)if(Lb.href)fb=hb.paths.getBaseUrl(),Mi(Lb.href,fb)?hb.bLocation.url(Lb.href.slice(fb.length)):hb.domSafe.openInNewTab(Lb.href);else{var ta;null==(ta=hb.resultsGrid)||RY(ta)}else if(2===fb){var Aa;null==(Aa=hb.resultsGrid)||RY(Aa,{openInNewTab:!0})}else{var xa;null==(xa=hb.resultsGrid)||RY(xa)}}}]};U(t9,BI);
t9.prototype.ngOnInit=function(){var a=this;Zpc(this);this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){a.fetchUserHotlists()}));this.routerEvents.routeUpdate.pipe(Ye(this.destroyed$)).subscribe(function(){Zpc(a)})};
var $pc=function(a){var b=["priority","type","title","assignee","status"];a.activeSession.isInternalSession()&&b.push("minSlo");b.push("issueId","modifiedTime");return b.map(Ti)};
t9.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Ei(d,c)||(d&&wa(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var Zpc=function(a){return aqc(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?bqc(a,a.searchResults.startIndex,a.searchResults.endIndex):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})},cqc=function(a){return null!=a.window.document.activeElement&&a.window.document.activeElement!==a.window.document.body},dqc=function(a){var b,c;return null!=(c=null==(b=a.window.document.activeElement)?void 0:b.classList.contains("search-box"))?c:!1},aqc=function(a){var b=
Jj();cqc(a)&&dqc(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},bqc=function(a,b,c){var d=Jj();cqc(a)||eqc(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},fqc=function(a,b){var c=a.activeSession.getMaxAccurateSearchResults();b.numResults>c&&!b.isPreSort&&(b=Qn("Number of search results exceeds "+c+"; some matching issues may be omitted.",Pn("BR"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "),
c={},c=Pn("A",(c.href="http://go/buganizer-faq#q-why-do-i-need-to-restrict-my-search-to-less-than-1000-results",c),"go/buganizer-faq"),c=Qn(Pn("BR"),"See ",c," for more details."),b=a.activeSession.isInternalSession()?Qn(b,c):b,fIb(a.butterBar,b))};g=t9.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Ti(a);if(d){var e=new Wi(d,"ASC"==b?"ASCENDING":"DESCENDING");za(this.sortPreferences,function(f){return Ei(f.fieldId,e.fieldId)});!c||Ypc.has(a)?this.sortPreferences=[e]:this.sortPreferences=[e].concat(this.sortPreferences.slice(0,2));this.saveSortColumns(this.sortPreferences)}else this.$log.warn("WARNING: Invalid field name specified "+a)};
g.getSort=function(){if(0==this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"==a.fieldId.type?String(a.fieldId.customFieldId):Ii(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};Ei(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.saveSortColumns=function(a){wZ(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=void 0===b?gqc:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(u(b),u(F3b(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Ti(b.name)});wZ(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(bo(this.analytics,this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):c&&c.shiftKey?wP(this.domSafe,a):this.bLocation.url(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var mt=function(a,b,c){void 0!==b&&a.goToPage(b+c)};g=t9.prototype;g.refreshResults=function(){WM(this.issuePagination);return Zpc(this)};
g.hasResults=function(){return this.searchResults&&0<this.searchResults.issues.length};
g.sendBulkEditRequest=function(a){var b=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){for(var c=!!a[0].actions[0].value,d=r(a[0].issueIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;null==(f=this.searchResults)||yKb(f,e,c)}this.cdr.detectChanges();PK(this.butterBar,"Saving changes...",0);return AL(this.issueFridge,a[0].issueIds,c).then(function(k){for(var q=r(a[0].issueIds),w=q.next();!w.done;w=q.next()){w=w.value;var y=void 0,E=void 0;null==(y=
b.searchResults)||yKb(y,w,void 0,null!=(E=k)?E:null)}PK(b.butterBar,"Successfully marked issues "+(c?"read.":"unread."))}).catch(function(k){for(var q=r(a[0].issueIds),w=q.next();!w.done;w=q.next()){w=w.value;var y=void 0;null==(y=b.searchResults)||yKb(y,w)}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=RPb(a).map(function(k){return k.fieldName});bo(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};PK(this.butterBar,"Saving changes...",
0);return this.issueApi.issueBulkEdit(h).then(function(k){if(b.searchResults){b.searchResults=b.searchResults.clone();for(var q=r(b.searchResults.issues.entries()),w=q.next();!w.done;w=q.next()){var y=r(w.value);w=y.next().value;y=y.next().value;k.affectedIssues[y.issueId]&&(y=k.affectedIssues[y.issueId],w=b.searchResults.issues[w],uKb(w,y,k.componentMap[pa(y.snapshot).componentId]),w.selected=!0,b.loadHotlists(w),Object.assign(b.customFieldMap,w.customFieldMap))}}k.errors&&k.errors.length?(q="Failed to update issue(s) "+
(Ni(k.errors,"issueId").join(", ")+"."),QK(b.butterBar,q),bo(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=VPb(b.statusMessages,h,b.customFieldMap))?PK(b.butterBar,k):PK(b.butterBar,"Saved "+SPb(h.bulkEditOps).length+" issue(s).");b.cdr.detectChanges()}).catch(function(k){b.errorHandler.errorHandler(null,k)})};
g.loadHotlists=function(a){var b=this;var c=a?[a]:this.searchResults?this.searchResults.issues:[];a=new Set;for(var d=r(c),e=d.next();!e.done;e=d.next())if(e=e.value,e.hotlistId){e=r(e.hotlistId);for(var f=e.next();!f.done;f=e.next())f=f.value,this.hotlistMap[f]||a.add(f)}0!==a.size&&this.hotlistApi.bulkLoad([].concat(u(a))).then(function(){for(var h={},k=r(c),q=k.next();!q.done;h={$jscomp$loop$prop$loadedHotlists$1717:h.$jscomp$loop$prop$loadedHotlists$1717},q=k.next()){q=q.value;if(!q.hotlistId)return;
h.$jscomp$loop$prop$loadedHotlists$1717=[];q.hotlists=h.$jscomp$loop$prop$loadedHotlists$1717;q=r(q.hotlistId);for(var w=q.next();!w.done;w=q.next())w=w.value,b.hotlistMap[w]?h.$jscomp$loop$prop$loadedHotlists$1717.push(b.hotlistMap[w]):b.hotlistApi.get(w).then(function(y){return function(E){b.hotlistFridge.announce(E);b.addHotlist(E);y.$jscomp$loop$prop$loadedHotlists$1717.push(E)}}(h))}b.cdr.detectChanges()})};
g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;bo(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");PK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);PK(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback;a=a.errorCallback;PK(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.exportCsv=function(){bo(this.analytics,this.ANALYTICS_CATEGORY,"exportCsv");xP(this.domSafe,this.getCsvUrl())};
var hqc=function(a,b){a.userPreferencesManager.save({resultsPerPage:b}).pipe(Ye(a.destroyed$)).subscribe(function(){a.resultsPerPage=b;wZ(a.urlPreferences,{page:1});bo(a.analytics,a.ANALYTICS_CATEGORY,"resultsPerPageSave",b.toString());a.refreshResults();a.cdr.detectChanges()},function(c){Pk(c)})},eqc=function(a,b,c){var d=a.issuePagination.focusedIssueIndex_;a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{HKb(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");
e&&(e.scrollTop=0)}a.cdr.detectChanges()})},Mbb=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
ki.Object.defineProperties(t9.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ei(this.issueColumnsInternal,a)||(bo(this.analytics,this.ANALYTICS_CATEGORY,"columnModification",hva(this.issueColumnsInternal.map(function(b){return b.toString()}),a.map(function(b){return b.toString()}))),this.issueColumnsInternal=a,this.saveColumns(this.issueColumns.slice(this.metaColumns.length)))}}});var gqc=[SY,TY,UY];
t9.\u0275fac=function(a){return new (a||t9)(F(uI),F($I),F(Window),F(aL),F(RK),F(wK),F(PJ),F(pL),F(pH),F(OK),F(SM),F(QN),F(VM),F(zI),F(vZ),F(BZ),F(dL),F(nI),F(SK),F(OR),F(vP),F(WK),F(sL),F(yL))};t9.\u0275dir=v({type:t9,features:[gf]});
var u9=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta){t9.call(this,a,b,c,d,f,h,k,q,e,w,y,E,I,N,L,S,Y,ka,Ka,ha,ya,hb,Lb,ta);this.hotkeys=Ha;this.pageTitle=Ja;this.routePerformance=Ma;this.element=fb;this.ANALYTICS_CATEGORY=go.LIST_ISSUES;this.isLoading=!0;this.showHotlists=!1};U(u9,t9);u9.\u0275dir=t9.\u0275dir;g=u9.prototype;
g.ngOnInit=function(){var a=this;t9.prototype.ngOnInit.call(this);this.subscriptions.add(gJ(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
g.getIssues=function(){var a=this,b=this.bLocation.search().warning;b&&(Array.isArray(b)&&(b=b[0]),QK(this.butterBar,b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",RN(this.currentSearch,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,wZ(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);RN(this.currentSearch,
this.query);b=WLb(this.currentSearch);if(0<b)return vIb(this.bLocation,this.paths.viewHotlist(b)),wZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=XLb(this.currentSearch);if(0<b)return vIb(this.bLocation,this.paths.viewSavedSearch(b)),wZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add((0,T.concat)((0,T.timer)(0).pipe(tga()),Vp("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){g7b(a.routePerformance,"issue-list-w-results")};requestAnimationFrame(c);setTimeout(c)}));return this.doSearch().finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(){var a=this,b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:$pc(this)}),c=b.searchPreferences.then(function(f){f=Fi(f);f.query=a.computeQuery(f);f.returnUrl=a.bLocation.url();return DKb(a.issuePagination,f)}),d;(null==(d=this.query)?0:d.includes("teamid:"))&&bo(this.analytics,this.ANALYTICS_CATEGORY,"searchByTeam");var e;(null==(e=this.query)?0:e.includes("componentid:"))&&bo(this.analytics,this.ANALYTICS_CATEGORY,"searchByComponent");
c.then(function(f){fqc(a,f)}).catch(function(f){"number"===typeof f?wZ(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return Fo({searchResultsPage:c,displayColumns:b}).then(function(f){var h=f.searchResultsPage;a.searchResults=a.processSearchResults(h);a.page=h.params.page;a.sortPreferences=h.params.sortColumns||[];a.cdr.detectChanges();a.loadHotlists();bo(a.analytics,a.ANALYTICS_CATEGORY,"issueSearch",f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+
")")})};g.processSearchResults=function(a){return a};g.computeQuery=function(){return this.query};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Ti(b.name)});QCb(this.userPreferencesManager,G3b(a)).pipe(Ye(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.currentSearch.currentSearch===ULb(this.currentUserEmail)?this.pageTitle.setTitle("Assigned to me"):this.currentSearch.currentSearch==="cc:"+this.currentUserEmail?this.pageTitle.setTitle("CC'ed to me"):this.currentSearch.currentSearch==="reporter:"+this.currentUserEmail?this.pageTitle.setTitle("Reported by me"):this.currentSearch.currentSearch===VLb(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
g.saveSortColumns=function(a){var b=this;this.isLoading=!0;a=a.map(function(c){return{column:c.fieldId,order:c.direction}});this.userPreferencesManager.saveSortColumns(a).pipe(Ye(this.destroyed$)).subscribe(function(){wZ(b.urlPreferences,{page:1,sortColumns:null});b.refreshResults().finally(function(){b.isLoading=!1;b.cdr.detectChanges();Mbb()})})};g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.query,this.sortPreferences,this.displayColumns,this.showHotlists)};
u9.\u0275fac=function(a){return new (a||u9)(F(uI),F($I),F(wM),F(cL),F(pH),F(RK),F(wK),F(PJ),F(pL),F(OK),F(SM),F(QN),F(VM),F(zI),F(vZ),F(BZ),F(dL),F(nI),F(OR),F(vP),F(fJ),F(hO),F(SK),F(Z_),F(WK),F(nd),F(sL),F(yL))};
u9.\u0275cmp=v({type:u9,selectors:[["list-issues-page"]],features:[Lf([uI]),gf],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["id","no-results","class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",4,
"ngIf"],[1,"bv2-view-loading"],["id","no-results","tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[4,"ngIf","ngIfElse"],["noQuery",""],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1,"Issue search results"),H(),G(2,"div",1)(3,"b-grid-controls",2),K("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",
function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),H(),G(4,"div",3)(5,"b-pagination",4),K("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return hqc(b,c.option)}),H()()(),G(6,"div",5),O(7,Ibb,4,1,"div",6),O(8,Lbb,4,3,"div",7),O(9,Nbb,2,5,"div",8),H());a&2&&(B(3),D("grid",b.resultsGrid)("hotlistChoices",
b.hotlistChoices),B(2),D("searchResults",b.searchResults),B(1),nf("aria-busy",b.isLoading),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&!b.hasResults()),B(1),D("ngIf",!b.isLoading&&b.hasResults()))},dependencies:[XY,SZ,QY,sx,mN,l_],encapsulation:2});var v9=function(){};v9.\u0275fac=function(a){return new (a||v9)};v9.\u0275mod=rc({type:v9});v9.\u0275inj=fc({imports:[[sZ,VZ,OZ,zO,AO,Mx,YN,m_]]});
var w9=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta,Aa){u9.call(this,a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,ta,Aa);this.issueLru=Lb;this.ANALYTICS_CATEGORY="recentIssues";this.recentIds=Array.from(this.issueLru.viewed.keys());this.initialLoad=!0};U(w9,u9);w9.\u0275dir=u9.\u0275dir;w9.prototype.ngOnInit=function(){u9.prototype.ngOnInit.call(this);this.pageTitle.setTitle("Recent Issues");this.currentSearch.clear();this.initialLoad=!0};
w9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;return 0===this.recentIds.length?(this.isLoading=!1,Promise.resolve()):this.doSearch().finally(function(){a.isLoading=!1;a.initialLoad=!1;a.cdr.detectChanges()})};w9.prototype.computeQuery=function(a){a=a.resultsPerPage;var b=this.recentIds,c=b.length;c>a&&(b=b.slice(c-a));return b.map(function(d){return"id:"+d}).join("|")};
w9.prototype.processSearchResults=function(a){this.initialLoad&&(a.params.sortColumns=[]);var b;null!=(b=a.params.sortColumns)&&b.length||(a.issues=Rbb(this.recentIds,a.issues));return a};w9.\u0275fac=function(a){return new (a||w9)(F(uI),F($I),F(wM),F(cL),F(pH),F(RK),F(wK),F(PJ),F(pL),F(OK),F(SM),F(QN),F(VM),F(zI),F(vZ),F(BZ),F(dL),F(nI),F(OR),F(vP),F(fJ),F(hO),F(SK),F(Z_),F(WK),F(nd),F(SN),F(sL),F(yL))};
w9.\u0275cmp=v({type:w9,selectors:[["list-issues-recent"]],features:[Lf([uI]),gf],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["id","no-results","class","bv2-view-loading",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],
["id","no-results",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1,"Recent Issues"),H(),G(2,"div",1)(3,"b-grid-controls",2),K("init",function(d){return b.gridControls=d})("onRefresh",function(){return b.refreshResults()})("onSave",function(d){return b.sendBulkEditRequest(d.bulkEditOps)})("onCreateHotlist",
function(d){return b.createHotlist(d)})("onLoadHotlist",function(d){return b.loadHotlist(d)})("onExportCsv",function(){return b.exportCsv()}),H(),G(4,"div",3)(5,"b-pagination",4),K("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return hqc(b,d.option)}),H()()(),G(6,"div",5),O(7,Obb,3,0,"div",6),O(8,Pbb,2,0,"div",7),O(9,Qbb,2,5,"div",8),H());if(a&2){var c;B(3);D("grid",null!==(c=b.resultsGrid)&&void 0!==c?c:void 0)("hotlistChoices",b.hotlistChoices);B(2);D("searchResults",
b.searchResults);B(1);nf("aria-busy",b.isLoading);B(1);D("ngIf",b.isLoading);B(1);D("ngIf",!b.isLoading&&!b.hasResults());B(1);D("ngIf",!b.isLoading&&b.hasResults())}},dependencies:[mN,XY,SZ,QY,sx],encapsulation:2});
var x9=function(a,b,c,d,e,f){this.cdr=a;this.pageTitle=b;this.paths=c;this.sloApi=d;this.errorHandler=e;this.activeSession=f;this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=this.paths.createSlo();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};x9.prototype.ngOnInit=function(){this.sloEnabled&&(this.pageTitle.setTitle("Manage SLOs"),iqc(this))};
var iqc=function(a){a.isLoading=!0;a.sloApi.getOwnedSlos().then(function(b){a.activeSlos=b.filter(function(c){return!c.getIsArchived()});a.archivedSlos=b.filter(function(c){return c.getIsArchived()});a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};x9.\u0275fac=function(a){return new (a||x9)(F(uI,2),F(hO),F(dL),F(vY),F(SK),F(pH))};
x9.\u0275cmp=v({type:x9,selectors:[["list-slos-page"]],features:[Lf([uI])],decls:8,vars:5,consts:[[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"gmat-button","no-visited-no-active",3,"href"],[1,"bv2-view"],["class","padded-sides",4,"ngIf"],[3,"large",4,"ngIf"],[4,"ngIf"],[1,"padded-sides"],[1,"muted"],[3,"large"],["class","slos-note",4,"ngIf"],[3,"slos",4,"ngIf"],[1,"slos-note"],[3,"slos"],[1,"unstyled-button","clickable-row",2,"width","100%",3,"click"],[1,"margined"],[1,"icon-s","vertical-centered",
3,"svgIcon"],["class","conditional-slo-grid",4,"ngIf"],[1,"conditional-slo-grid"],["class","muted padded",4,"ngIf"],[1,"muted","padded"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"a",1),P(2," Create SLO "),H()(),G(3,"div",2),O(4,Sbb,5,0,"div",3),O(5,Tbb,1,1,"b-spinner",4),O(6,Wbb,3,2,"ng-container",5),O(7,$bb,6,5,"ng-container",5),H());a&2&&(B(1),D("href",b.createSloPath,Kd),B(3),D("ngIf",b.sloEnabled),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[sx,
qB,LE,N_,mN],encapsulation:2});
var jqc=function(a){Z.call(this,a)};U(jqc,Z);g=jqc.prototype;g.getAuthor=function(){return m(this,Rl,1)};g.getTimestamp=function(){return m(this,rj,2)};g.setTimestamp=function(a){return Ab(this,2,a)};g.hasTimestamp=function(){return cj(this,2)};g.getAdd=function(){return m(this,pm,3)};g.getRemove=function(){return m(this,pm,4)};g.getAddMask=function(){return m(this,WG,5)};g.getRemoveMask=function(){return m(this,WG,6)};g.toObject=function(){return kqc(void 0,this)};
var kqc=function(a,b){if(null!=b){var c={author:uJ(a,b.getAuthor()),timestamp:Pu(a,b.getTimestamp()),add:AJ(a,b.getAdd()),remove:AJ(a,b.getRemove()),addMask:XG(a,b.getAddMask()),removeMask:XG(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var y9=function(a){Z.call(this,a,-1,lqc)};U(y9,Z);y9.prototype.getUpdatesList=function(){return rb(this,jqc,1)};var lqc=[1];y9.prototype.toObject=function(){var a=null!=this?{updatesList:Bb(this.getUpdatesList(),kqc)}:void 0;return a};y9.messageId="b.ComponentHistory";
var z9=function(a,b){this.executor=b;this.componentHistoriesCache=a.get("component_histories-second-level-cache")||a.create("component_histories-second-level-cache",{capacity:25})};z9.prototype.get=function(a){var b=this.componentHistoriesCache.get(String(a));return b?b:this.componentHistoriesCache.put(String(a),this.executor.get({url:"action/component_updates/"+a,responseConstructor:y9}))};z9.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};
z9.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(String(a))};z9.\u0275fac=function(a){return new (a||z9)(t(mL),t(qI))};z9.\u0275prov=ec({token:z9,factory:z9.\u0275fac,providedIn:"root"});
var nt=function(a){Z.call(this,a)};U(nt,Z);nt.prototype.toObject=function(){return mqc(void 0,this)};var mqc=function(a,b){if(null!=b){var c={groupEmail:n(p(b,1)),approximateSize:n(p(b,2)),sizeCategory:n(p(b,3)),permissionCategory:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var oqc=function(a){Z.call(this,a,-1,nqc)};U(oqc,Z);var nqc=[1];oqc.prototype.toObject=function(){var a=null!=this?{groupMetadataList:Bb(rb(this,nt,1),mqc)}:void 0;return a};oqc.messageId="b.BatchGroupMetadataResult";
var A9=function(a,b){var c=this;this.groupMetadataResources=a;this.bulkGetter=b.adapt(function(d){return c.groupMetadataResources.bulkGet(d).then(function(e){var f=acb(e);return bu(d,function(h){return f[h]||null})})})};A9.prototype.get=function(a){return this.bulkGetter.get(a).then(function(b){return null!==b?b:{groupEmail:a,approximateSize:0,sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"}})};A9.\u0275fac=function(a){return new (a||A9)(t(B9),t(oI))};
A9.\u0275prov=ec({token:A9,factory:A9.\u0275fac,providedIn:"root"});var B9=function(a){this.executor=a};B9.prototype.bulkGet=function(a){a=[].concat(u(new Set(a)));a=Am(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:oqc}).then(ecb)};B9.\u0275fac=function(a){return new (a||B9)(t(qI))};B9.\u0275prov=ec({token:B9,factory:B9.\u0275fac,providedIn:"root"});
var qqc=function(a){Z.call(this,a,-1,pqc)};U(qqc,Z);var C9=function(a){Z.call(this,a)};U(C9,Z);C9.prototype.getRetentionSettings=function(){return m(this,El,2)};C9.prototype.setRetentionSettings=function(a){Ab(this,2,a)};C9.prototype.hasRetentionSettings=function(){return cj(this,2)};var pqc=[2];qqc.prototype.toObject=function(){var a=null!=this?{descendantsList:Bb(rb(this,C9,2),rqc)}:void 0;return a};C9.prototype.toObject=function(){return rqc(void 0,this)};
var rqc=function(a,b){if(null!=b){var c={componentPath:n(p(b,1)),retentionSettings:gFb(a,b.getRetentionSettings())};a&&(c.$jspbMessageInstance=b);return c}};qqc.messageId="b.SubcomponentsResponse";
var D9=function(a){this.executor=a};D9.prototype.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:qqc})};D9.\u0275fac=function(a){return new (a||D9)(t(qI))};D9.\u0275prov=ec({token:D9,factory:D9.\u0275fac,providedIn:"root"});
var E9=function(){};E9.prototype.ngOnInit=function(){};E9.\u0275fac=function(a){return new (a||E9)};
E9.\u0275cmp=v({type:E9,selectors:[["slo-inheritance-breadcrumbs"]],inputs:{componentPath:"componentPath",teamPath:"teamPath"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"teamPath"],["componentPathsLinkTo","settings",3,"componentPathInfo"]],template:function(a,b){a&1&&(O(0,fcb,4,1,"ng-container",0),O(1,gcb,4,1,"ng-container",0));a&2&&(D("ngIf",b.teamPath),B(1),D("ngIf",b.componentPath))},dependencies:[sx,sT,j_],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});
var hcb=[{field:"admins",accessor:function(a){return a.admins}},{field:"editors",accessor:function(a){return a.editors}},{field:"appenders",accessor:function(a){return a.appenders}},{field:"readers",accessor:function(a){return a.readers}},{field:"restrictedReaders",accessor:function(a){return a.restrictedReaders}},{field:"restrictedPlusReaders",accessor:function(a){return a.restrictedPlusReaders}}];
var F9=function(a,b,c,d,e){var f=this;this.accessPolicyConverter=a;this.activeSession=b;this.confirmationDialogService=c;this.documentationLinks=d;this.groupMetadata=e;this.componentReaders=[];this.enableComponentAutomationCheck=this.enableRostersChecks=!1;this.isPublic=function(){return sX(f.component)};this.hasUnsavedAccessLimitChanges=function(){return f.originalComponent&&f.component?f.originalComponent.accessLimit.accessLevel!==f.component.accessLimit.accessLevel:!1};this.performAccessLimitCheck=
function(){return new Promise(function(h){f.hasUnsavedAccessLimitChanges()&&"INTERNAL"===f.component.accessLimit.accessLevel?f.confirmationDialogService.open({title:"Component Visibility Changed",content:Nn("You are about to change the component visibility to Google internal for this component. Make sure your changes are correct -- if this component has any issues, you will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};
this.performDeletedAccountsCheck=function(){return new Promise(function(h){f.componentReaders.includes("3:nobody@google.com")?f.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Nn('"nobody@google.com" was detected, this is usually the result of an account being deleted that was already part of the access policy. It can be found in the following fields: '+[f.componentAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Component Admins"':null,f.componentAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?
'"Create Issues"':null,f.issueDefaultAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Issue Admins"':null,f.issueDefaultAccessPolicyUnderEdit.editors.includes("3:nobody@google.com")?'"Edit Issues"':null,f.issueDefaultAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Comment on Issues"':null,f.issueDefaultAccessPolicyUnderEdit.readers.includes("3:nobody@google.com")?'"View Issues"':null,f.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("3:nobody@google.com")?
'"View restricted+ content"':null,f.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("3:nobody@google.com")?'"View restricted content"':null].filter(function(k){return!!k}).join(", ")+". Do you want to proceed?"),onConfirm:function(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.performAdminAccessRemovalCheck=function(){return new Promise(function(h){var k=f.activeSession.getUserEmail();rcb(k,f.componentFlattenedAccessPolicy,f.componentAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Component Administrators Changed",
content:Nn("You are about to change the administrator privileges for this component. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.performRestrictedPlusGroupRemovalCheck=function(){return new Promise(function(h){qcb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",
content:Nn("You are about to remove Restricted+ reader permission for a group. You will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.retrieveGroupMetadata=function(h){h=f.accessPolicyConverter.stringToAccessPolicyPrincipal(h);return Jk(h)&&h.group.emailAddress?f.groupMetadata.get(h.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})};
this.evaluateNewGroups=function(){var h=[].concat(u(new Set([].concat(u(Pi(f.componentAccessPolicyUnderEdit.admins,f.componentFlattenedAccessPolicy.admins)),u(Pi(f.issueDefaultAccessPolicyUnderEdit.admins,f.issueDefaultFlattenedAccessPolicy.admins)),u(Pi(f.issueDefaultAccessPolicyUnderEdit.editors,f.issueDefaultFlattenedAccessPolicy.editors)),u(Pi(f.issueDefaultAccessPolicyUnderEdit.appenders,f.issueDefaultFlattenedAccessPolicy.appenders)),u(Pi(f.issueDefaultAccessPolicyUnderEdit.readers,f.issueDefaultFlattenedAccessPolicy.readers)),
u(Pi(f.issueDefaultAccessPolicyUnderEdit.restrictedReaders,f.issueDefaultFlattenedAccessPolicy.restrictedReaders)),u(Pi(f.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,f.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))))));return Promise.all(h.map(function(k){return f.retrieveGroupMetadata(k)}))};this.performAddedLargeOrOpenGroupCheck=function(){return f.enableRostersChecks?f.evaluateNewGroups().then(function(h){var k=lcb(h);h=pcb(h);if(0===k.size&&0===h.size)return Promise.resolve(!0);
var q=mcb(k.size,h.size);k=ncb(k);h=ocb(h);var w=Qn(k,k===ot?ot:Pn("BR"),h);k={};w=Qn(w,Pn("P",{},Qn("Please review the ",Pn("A",(k.href=cNb(f.documentationLinks)+"#fully-public-component",k.target="_blank",k),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));return new Promise(function(y){f.confirmationDialogService.open({title:q,content:w,onConfirm:function(){y(!0)},onDismiss:function(){y(!1)},confirmButtonText:"Add Group"})})}):Promise.resolve(!0)};
this.performAddedNewInternalAliasesCheck=function(){return new Promise(function(h){if(f.isPublic()&&kcb(f.issueDefaultAccessPolicyUnderEdit,f.issueDefaultFlattenedAccessPolicy)){var k={};k=Qn(Pn("P",{},"You are about to give a broad category of users permissions on a public component."),Pn("P",{},Qn("Please review the ",Pn("A",(k.href=dNb(f.documentationLinks),k.target="_blank",k),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));f.confirmationDialogService.open({title:"Adding an broad category of users to a public component",
content:k,onConfirm:function(){h(!0)},onDismiss:function(){h(!1)},confirmButtonText:"Add Group Alias"})}else h(!0)})};this.performChangedImplicitAccessCheck=function(){f.implicitAccess={getValue:function(){return f.componentAccessPolicyUnderEdit?"ALLOW"===f.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return f.componentFlattenedAccessPolicy?"ALLOW"===f.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(q){f.componentAccessPolicyUnderEdit&&(f.componentAccessPolicyUnderEdit=
Object.assign({},f.componentAccessPolicyUnderEdit,{implicitAccess:q?"ALLOW":"DENY"}))}};var h={},k=Pn("A",(h.href=Q6a(f.documentationLinks),h),"Learn more.");return new Promise(function(q){f.implicitAccess.getValue()===f.implicitAccess.getSavedValue()?q(!0):f.implicitAccess.getValue()?f.confirmationDialogService.open({title:"Turn on expanded access for component "+f.component.componentId+"?",content:Qn("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",
k),onConfirm:function(){q(!0)},onDismiss:function(){q(!1)}}):f.confirmationDialogService.open({title:"Turn off expanded access for component "+f.component.componentId+"?",content:Qn("Some users may lose the ability to edit or comment on issues in this component. ",k),onConfirm:function(){q(!0)},onDismiss:function(){q(!1)}})})};this.getAddedAutomationInPolicyChange=function(){var h=[].concat(u(icb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)),u(icb(f.componentFlattenedAccessPolicy,
f.componentAccessPolicyUnderEdit))),k=new Set;h=r(h);for(var q=h.next();!q.done;q=h.next()){q=r(q.value.addedPrincipals);for(var w=q.next();!w.done;w=q.next())w=f.accessPolicyConverter.stringToAccessPolicyPrincipal(w.value),(Ik(w)?Mn(w.user.emailAddress):Jk(w)&&Mn(w.group.emailAddress))&&k.add(w)}return[].concat(u(k))};this.performAutomationUserAccessCheck=function(){if(!f.enableComponentAutomationCheck)return Promise.resolve(!0);var h=f.getAddedAutomationInPolicyChange();return new Promise(function(k){if(h.length){var q=
{};q=Pn("A",(q.href=bNb(f.documentationLinks),q)," automation account documentation");f.confirmationDialogService.open({title:"Adding automation accounts",content:Qn(Nn("You are adding automation accounts to the ACL for this component. All Googlers are entrusted with power and responsibility as stewards of Google's data. Please see the"),Pn("wbr"),q,Nn("."),Pn.apply(Ly,["OL",{}].concat(u(h.map(function(w){if(Ik(w)){var y;return Pn("LI",{},Nn(null!=(y=w.user.emailAddress)?y:""))}if(Jk(w)){var E;return Pn("LI",
{},Nn(null!=(E=w.group.emailAddress)?E:""))}throw Error("Se`"+JSON.stringify(w));})))),Pn("BR",{}),Nn("Are you sure you wish to allow automation to access data in this component?")),onConfirm:function(){k(!0)},onDismiss:function(){k(!1)}})}else k(!0)})};this.runValidation=function(h){var k,q,w;return me(function(y){switch(y.nextAddress){case 1:k=r(h),q=k.next();case 2:if(q.done){y.jumpTo(4);break}w=q.value;return ne(y,w(),5);case 5:if(!y.yieldResult)return y.return(!1);q=k.next();y.jumpTo(2);break;
case 4:return y.return(!0)}})};this.enableRostersChecks=rH(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=rH(this.activeSession,"enableComponentAutomationCheck")},sqc=function(a,b){var c=b.component,d=b.originalComponent,e=b.componentReaders,f=b.componentAccessPolicyUnderEdit,h=b.componentFlattenedAccessPolicy,k=b.issueDefaultAccessPolicyUnderEdit,q=b.issueDefaultFlattenedAccessPolicy,w,y;return me(function(E){if(1==E.nextAddress)return a.component=c,a.originalComponent=
d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=f,a.componentFlattenedAccessPolicy=h,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=q,w=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],ne(E,a.runValidation(w),2);y=E.yieldResult;return E.return(y)})};
F9.\u0275fac=function(a){return new (a||F9)(t(KT),t(pH),t(aN),t(tP),t(A9))};F9.\u0275prov=ec({token:F9,factory:F9.\u0275fac});
var G9=function(a){BI.call(this);this.principalTypes=a;this.templates=[]};U(G9,BI);G9.\u0275dir=BI.\u0275dir;
G9.prototype.ngOnChanges=function(){var a=this.componentAccessPolicyUnderEdit,b=this.issueDefaultAccessPolicyUnderEdit,c=new Set([].concat(u(this.componentReaders))),d=new Set([].concat(u(a.admins),u(a.inheritedAdmins)));a=new Set([].concat(u(d),u(a.appenders),u(b.admins)));var e=new Set([].concat(u(b.admins))),f=new Set([].concat(u(e),u(b.editors))),h=new Set([].concat(u(f),u(b.appenders))),k=new Set([].concat(u(b.restrictedPlusReaders))),q=new Set([].concat(u(k),u(b.restrictedReaders)));b=new Set([].concat(u(q),
u(h),u(b.readers)));this.templates=[{permission:"Create Issues",principals:[].concat(u(a)).map(pt)},{permission:"Component Admin",principals:[].concat(u(d)).map(pt)},{permission:"Issue Commenter",principals:[].concat(u(h)).map(pt)},{permission:"Issue Editor",principals:[].concat(u(f)).map(pt)},{permission:"Issue Admin",principals:[].concat(u(e)).map(pt)},{permission:"Component Reader",principals:[].concat(u(c)).map(pt)},{permission:"Issue Reader",principals:[].concat(u(b)).map(pt)},{permission:"Restricted Reader",
principals:[].concat(u(q)).map(pt)},{permission:"Restricted+ Reader",principals:[].concat(u(k)).map(pt)}];tqc(this,this.templates)};
var tqc=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d={};c=r(c.value.principals);for(var e=c.next();!e.done;d={$jscomp$loop$prop$principal$1719:d.$jscomp$loop$prop$principal$1719},e=c.next())d.$jscomp$loop$prop$principal$1719=e.value,4===d.$jscomp$loop$prop$principal$1719.principalType?d.$jscomp$loop$prop$principal$1719.detailedUserType=0:sI(a.principalTypes,d.$jscomp$loop$prop$principal$1719.value,!0).then(function(f){return function(h){f.$jscomp$loop$prop$principal$1719.detailedUserType=
X(h,2,0)}}(d))}};G9.\u0275fac=function(a){return new (a||G9)(F(rI))};
G9.\u0275cmp=v({type:G9,selectors:[["permissions-view"]],inputs:{issueDefaultAccessPolicyUnderEdit:"issueDefaultAccessPolicyUnderEdit",componentAccessPolicyUnderEdit:"componentAccessPolicyUnderEdit",componentReaders:"componentReaders",accessLevel:"accessLevel"},features:[gf,Ac],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"value","detailedUserType","principalType","accessLevel","displayText",4,"ngFor","ngForOf"],[3,"value","detailedUserType","principalType","accessLevel","displayText"]],template:function(a,
b){a&1&&(G(0,"table"),O(1,tcb,6,2,"ng-container",0),H());a&2&&(B(1),D("ngForOf",b.templates))},dependencies:[wx,oZ],styles:["td[_ngcontent-%COMP%]:not(:first-child){display:flex;flex-wrap:wrap;align-items:center}td[_ngcontent-%COMP%]{height:auto;padding-bottom:10px;padding-top:10px;font-size:14px}tr[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid #dadce0}table[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:10px}b-contact-chip[_ngcontent-%COMP%]{margin-right:5px;margin-top:5px}\n/*# sourceMappingURL=permissions_view.css.map */"]});
var uqc={componentAdmin:[],inheritedComponentAdmin:[],componentAdminOnly:[],inheritedComponentAdminOnly:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]};
var H9=function(a,b,c,d,e,f,h){var k=this;this.accessPolicyApi=a;this.accessPolicyConverter=b;this.errorHandler=c;this.butterBar=d;this.userAccess=e;this.componentActions=f;this.componentValidator=h;this.isAdmin=!1;this.rolesMap=uqc;this.originalComponent=this.parentComponent=this.component=null;this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=this.isSaving=!1;this.implicitAccess={getValue:function(){return k.componentAccessPolicyUnderEdit?"ALLOW"===k.componentAccessPolicyUnderEdit.implicitAccess:
!1},getSavedValue:function(){return k.componentFlattenedAccessPolicy?"ALLOW"===k.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(q){k.componentAccessPolicyUnderEdit&&(k.componentAccessPolicyUnderEdit=Object.assign({},k.componentAccessPolicyUnderEdit,{implicitAccess:q?"ALLOW":"DENY"}))},isUpdated:function(){var q;return k.componentAccessPolicyUnderEdit.implicitAccess!==(null==(q=k.componentFlattenedAccessPolicy)?void 0:q.implicitAccess)}};this.componentReaders=[];this.componentAccessPolicyUnderEdit=
LT();this.issueDefaultAccessPolicyUnderEdit=LT()};H9.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var vqc=function(a){if(!a.hasUnsavedAccessLimitChanges())return Promise.resolve();a.isUpdatingAccessLimit=!0;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;return a.accessPolicyApi.setAccessLimit("COMPONENT",a.componentId,a.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;PK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";xm(b)&&(c+=ym(b));QK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};H9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Fi(a);this.originalComponent=Fi(a)};
var xqc=function(a){return a.componentActions.getUncached(a.componentId,!0).then(function(b){a.updateComponentAndOriginalComponent(b);0<b.parentComponentId&&wqc(a,b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})},wqc=function(a,b){a.componentActions.get(b).then(function(c){return a.parentComponent=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
H9.prototype.initialize=function(a){var b=this;a=void 0===a?this.componentId:a;if(!a&&!this.componentId)return QK(this.butterBar,"No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=MT(c);b.componentAccessPolicyUnderEdit=Fi(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
MT(c);b.issueDefaultAccessPolicyUnderEdit=Fi(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),xqc(this),this.loadUserAccess(this.componentId)]).then(function(){})};
var yqc=function(a){var b=[Kcb,Lcb,Mcb,Ncb];var c=[Ocb],d=[Pcb,Qcb,Rcb,Scb,Tcb,Ucb],e=[Vcb,Wcb];b=Gcb(Object.assign({},{componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit},{rolesMap:uqc}),[].concat(u(b),u(c),u(d),u(e)));a.rolesMap=b},zqc=function(a,b){var c=a.issueDefaultFlattenedAccessPolicy;if(!c||!Xcb(c,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",
a.componentId,b)},Aqc=function(a){var b=st(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy),c=a.issueDefaultFlattenedAccessPolicy;a=!(!c||!Xcb(c,a.issueDefaultAccessPolicyUnderEdit));return b||a},Bqc=function(a,b){return st(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=MT(c);if(st(d,a.componentAccessPolicyUnderEdit)){if(st(d,a.componentFlattenedAccessPolicy))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});
b.readers=c.readers;b.inheritance=0===a.component.parentComponentId?"INHERIT_NOTHING":"INHERIT_ADMINS";return a.accessPolicyApi.update("COMPONENT",a.componentId,b)}}):Promise.resolve(void 0)};H9.prototype.loadUserAccess=function(a){var b=this;return DK(this.userAccess,"admin","components/"+String(a)).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):DK(b.userAccess,"writer","components/"+String(a))}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
H9.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=NT(this.componentAccessPolicyUnderEdit);var c=NT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),QK(this.butterBar,c),Promise.resolve()}return Aqc(this)?(this.isSaving=this.isUpdatingAccessPolicy=!0,PK(this.butterBar,"Saving access settings...",0),zqc(this,c).then(function(d){d&&(b.readers=[].concat(u(d.admins||[]),u(d.editors||[]),u(d.appenders||[]),u(d.readers||
[]),u(d.restrictedPlusReaders||[]),u(d.restrictedReaders||[])));return Bqc(a,b)}).then(function(){return vqc(a)}).then(function(){return a.initialize()}).then(function(){PK(a.butterBar,"Access settings saved",0)}).catch(function(d){QK(a.butterBar,ym(d),0)}).finally(function(){return me(function(d){if(1==d.nextAddress)return ne(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;yqc(a);oe(d)})})):vqc(this)};
var Cqc=function(a,b){b=Fcb({rolesMap:b,permissionsFromRoles:{componentPermissions:{inheritedAdmins:[],admins:[],appenders:[]},issuesPermissions:{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[]}}});a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},hdb=function(a,b){a.component&&a.originalComponent&&
a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(Cqc(a,b),sqc(a.componentValidator,{component:a.component,originalComponent:a.originalComponent,componentReaders:a.componentReaders,componentFlattenedAccessPolicy:a.componentFlattenedAccessPolicy,componentAccessPolicyUnderEdit:a.componentAccessPolicyUnderEdit,issueDefaultFlattenedAccessPolicy:a.issueDefaultFlattenedAccessPolicy,issueDefaultAccessPolicyUnderEdit:a.issueDefaultAccessPolicyUnderEdit}).then(function(c){if(c)return a.doSaveAccessPolicy();
PK(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
ki.Object.defineProperties(H9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=Jcb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=Jcb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});H9.\u0275fac=function(a){return new (a||H9)(t(iO),t(KT),t(SK),t(OK),t(CK),t(AT),t(F9))};H9.\u0275prov=ec({token:H9,factory:H9.\u0275fac});
var I9=function(a,b,c,d){this.activeSession=a;this.analytics=b;this.documentationLinks=c;this.rolesEditor=d;this.AccessLevelStrings=$zb};g=I9.prototype;g.getRecentIssuesLink=function(){return tn(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};g.trackClick=function(a){bo(this.analytics,"editComponent","click",a)};
g.shouldShowAccessLimitChangeUi=function(){if(this.activeSession.isExternalSession())return!1;if(this.rolesEditor.component)if(this.rolesEditor.component.parentComponentId){if(this.rolesEditor.parentComponent)return rX(this.rolesEditor.parentComponent)||rX(this.rolesEditor.component)}else return!1};g.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!P1b(this.rolesEditor.parentComponent))};g.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!sX(this.rolesEditor.parentComponent))};
g.getAccessLevelDescription=function(a){return R1b(a)};I9.\u0275fac=function(a){return new (a||I9)(F(pH),F(SM),F(tP),F(H9))};
I9.\u0275cmp=v({type:I9,selectors:[["access-limit-settings"]],decls:6,vars:2,consts:[["class","component-banner",4,"ngIf"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about access control","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"component-banner"],[1,"component-visibility-settings"],[1,"component-visibility-header"],[1,"access-level-panel"],[1,"access-level-field"],["type","radio","id","access-level-internal","name","accessLevelInternal",
"value","INTERNAL",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for","access-level-external-partner"],[1,"access-level-field","bv2-edit-resource-readonly"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for",
"access-level-public"],[1,"access-level-warning"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-public","name","accessLevelPublic",
"value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange"]],template:function(a,b){a&1&&(O(0,bdb,20,7,"div",0),G(1,"div",1)(2,"p"),P(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),G(4,"a",2),P(5,"Learn more"),H()()());a&2&&(D("ngIf",b.shouldShowAccessLimitChangeUi()),B(4),Ef("href","",Do(b.documentationLinks),"#components",Kd))},dependencies:[sx,Fg,ky,by,hy],styles:["[_nghost-%COMP%]{display:flex}.component-banner[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;margin:15px 0px 10px 0;padding:16px;width:100%}.component-banner[_ngcontent-%COMP%]   .component-visibility-settings[_ngcontent-%COMP%]{min-height:28px}.component-banner[_ngcontent-%COMP%]   .component-visibility-header[_ngcontent-%COMP%]{font-weight:bold}.component-banner.access-level-banner[_ngcontent-%COMP%]{margin-bottom:20px}.component-banner.implicit-access-banner[_ngcontent-%COMP%], .component-banner.template-help-banner[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}\n/*# sourceMappingURL=access_limit_settings.css.map */"]});
var J9=function(a,b){this.documentationLinks=a;this.rolesEditor=b};J9.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};J9.prototype.setImplicitAccess=function(a){var b;null==(b=this.rolesEditor.implicitAccess)||b.setValue(a)};J9.\u0275fac=function(a){return new (a||J9)(F(tP),F(H9))};
J9.\u0275cmp=v({type:J9,selectors:[["expanded-access-settings"]],decls:10,vars:5,consts:[[1,"expanded-access-settings"],[1,"permission-toggle-checkbox"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"checked","disabled","change"],[1,"permission-toggle-text"],["id","expanded-access-help",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about expanded access","aria-describedby","expanded-access-help",
1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),K("change",function(d){return b.setImplicitAccess(d.checked)}),H()(),G(3,"div",3)(4,"strong",4),P(5,"Expanded access"),H(),G(6,"div",5),P(7," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. "),G(8,"a",6),P(9,"Learn more"),H()()()());if(a&2){var c;sf("bv2-edit-resource-readonly",b.isAccessEditDisabled());B(2);D("checked",
null!==(c=null==b.rolesEditor?null:null==b.rolesEditor.implicitAccess?null:b.rolesEditor.implicitAccess.getValue())&&void 0!==c?c:!1)("disabled",b.isAccessEditDisabled());B(6);D("href",Do(b.documentationLinks),Kd)}},dependencies:[LO],styles:["[_nghost-%COMP%]{display:flex}.expanded-access-settings[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);display:flex;margin:10px 0px;border-radius:8px;width:100%;padding:16px}.expanded-access-settings[_ngcontent-%COMP%]   .permission-toggle-text[_ngcontent-%COMP%]{margin-left:1em}\n/*# sourceMappingURL=expanded_access_settings.css.map */"]});
var ddb=function(a,b){return{displayText:a,values:b}},cdb=function(a){return[a]},edb=function(){return[]},K9=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new Iw;this.formIsValid=new Iw;this.aclFormValidity=new Map};K9.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};K9.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};K9.\u0275fac=function(a){return new (a||K9)};
K9.\u0275cmp=v({type:K9,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",displayedTableColumns:"displayedTableColumns",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},decls:28,vars:1,consts:[[1,"roles-view-table"],[4,"ngFor","ngForOf"],["aria-label","role.label",1,"edit-field"],[1,"role-title"],["for","role.roleType"],["mat-icon-button","",3,"matTooltip"],["svgIcon","help-outline"],[3,"idForInputBox","users",
"ariaLabel","accessLevel","containerChips","usersChange","isValid"],["size","large",3,"name"]],template:function(a,b){a&1&&(G(0,"table",0)(1,"tr"),J(2,"th"),G(3,"th")(4,"h6"),P(5,"Admin Component"),H()(),G(6,"th")(7,"h6"),P(8,"Create Issues"),H()(),G(9,"th")(10,"h6"),P(11,"Admin Issues"),H()(),G(12,"th")(13,"h6"),P(14,"Edit Issues"),H()(),G(15,"th")(16,"h6"),P(17,"Comment Issues"),H()(),G(18,"th")(19,"h6"),P(20,"Read Issues"),H()(),G(21,"th")(22,"h6"),P(23,"Read Restricted"),H()(),G(24,"th")(25,"h6"),
P(26,"Read Restricted+"),H()()(),O(27,fdb,26,24,"ng-container",1),H());a&2&&(B(27),D("ngForOf",b.rolesTableData))},dependencies:[wx,YY,uH,pB,LE,$E],styles:["[_nghost-%COMP%]     .roles-view-table{width:100%;font-size:.8125rem;font-family:Roboto,Arial,sans-serif}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}.edit-field[_ngcontent-%COMP%]{margin:14px 0 0}td[_ngcontent-%COMP%]:first-of-type{width:40%;min-width:250px}[_nghost-%COMP%]     b-multi-user-input .bv2-multi-user-input{width:95%}td[_ngcontent-%COMP%]:not(:first-of-type){padding:30px}th[_ngcontent-%COMP%]:not(:first-of-type){width:20em;padding:0px 14px;text-align:center}th[_ngcontent-%COMP%]:not(:first-of-type)   h6[_ngcontent-%COMP%]{display:inline;font-size:.8125rem;font-family:Roboto,Arial,sans-serif;max-width:60px}.role-title[_ngcontent-%COMP%]{display:flex;margin:5px 2px}.role-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]     .mat-icon-button{margin:0 5px;width:inherit;height:inherit}[_nghost-%COMP%]     .mat-icon-button mat-icon{display:flex;height:16px;width:16px}\n/*# sourceMappingURL=roles_view_table.css.map */"]});
var L9=function(){this.rolesMap=uqc;this.isSaving=!1;this.saveRolesMap=new Iw;this.rolesUnderEdit=uqc;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},Dqc=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap);var b=a.rolesUnderEdit;a.standardRolesTableData=[{ariaLabel:"Component Admin role email list",
label:"Component Admins",users:null==b?void 0:b.componentAdmin,roleType:"componentAdmin",grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Component Admins are granted all permissions (including component and issue admin) except for View Restricted and View Restricted Plus"},{ariaLabel:"Issue Admin role email list",label:"Issue Admins",users:null==b?void 0:b.issueAdmin,roleType:"issueAdmin",
grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Issue Admins are granted all issue permissions (including create issues) except for View Restricted and View Restricted Plus"},{ariaLabel:"Editor role email list",label:"Editors",users:null==b?void 0:b.editor,roleType:"editor",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,
restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Editors are granted all non-admin permissions roles (including create issues) except for View Restricted and View Restricted Plus"},{ariaLabel:"Contributor role email list",label:"Contributors",users:null==b?void 0:b.contributor,roleType:"contributor",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Contributors are granted permissions to read, comment on, and create issues"}];
var c=a.rolesUnderEdit,d;b=[{ariaLabel:"Component Admin Only role email list",label:"Component Admins Only",users:null==c?void 0:c.componentAdminOnly,roleType:"componentAdminOnly",grantedPermissions:{componentAdmin:!0,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Users with the Component Admin Only role may administer the component, but have no issues-related permissions",chips:{displayText:"Inherited Admins",values:null!=
(d=c.inheritedComponentAdminOnly)?d:[]}},{ariaLabel:"Viewer role email list",label:"Viewers",users:null==c?void 0:c.viewer,roleType:"viewer",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Viewers have permissions to read issues on this component"},{ariaLabel:"Edit Existing Issues Only role email list",label:"Edit Existing Issues Only",users:null==c?void 0:c.editExistingIssuesOnly,
roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Users with the Edit Existing Issues Only role are granted permissions to read, comment on, and edit existing issues, but they cannot create new issues"},{ariaLabel:"Create Issues Only role email list",label:"Create Issues Only",users:null==c?void 0:c.createIssuesOnly,roleType:"createIssuesOnly",grantedPermissions:{componentAdmin:!1,
createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Users with the Create Issues Only role may create issues, but have no other permissions (they are not able to view issues they have created)"},{ariaLabel:"Comment Only role email list",label:"Comment Only",users:null==c?void 0:c.commentOnly,roleType:"commentOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,
restrictedReader:!1,restrictedPlusReader:!1},tooltip:"Users with the Comment Only role may view and comment on issues on this component"},{ariaLabel:"View Restricted role email list",label:"View Restricted",users:null==c?void 0:c.viewRestricted,roleType:"viewRestricted",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!0,restrictedPlusReader:!1},tooltip:"Users with the View Restricted role are granted View Restricted permissions"},
{ariaLabel:"View Restricted Plus role email list",label:"View Restricted Plus",users:null==c?void 0:c.viewRestrictedPlus,roleType:"viewRestrictedPlus",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!0,restrictedPlusReader:!0},tooltip:"Users with the View Restricted Plus role are granted View Restricted Plus permissions"}];a.advancedRolesTableData=b},Eqc=function(a){return a.advancedRolesTableData.some(function(b){return 0<
b.users.length})};g=L9.prototype;g.ngOnInit=function(){Dqc(this)};g.ngOnChanges=function(){Dqc(this)};g.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};g.getComponentAccessLevel=function(){var a;if(null==(a=this.component)?0:a.accessLimit)return this.component.accessLimit.accessLevel};g.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};g.canEdit=function(){return!this.isSaving};
g.canSave=function(){return this.canEdit()&&(!Ei(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};L9.\u0275fac=function(a){return new (a||L9)};
L9.\u0275cmp=v({type:L9,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},features:[Ac],decls:12,vars:11,consts:[[3,"rolesTableData","displayedTableColumns","canEdit","accessLevel","rolesMapUpdated","formIsValid"],["togglePosition","before",1,"mat-elevation-z0",3,"expanded"],["mat-raised-button","","aria-label","Update","color","primary",3,"disabled","click"],["mat-raised-button","","aria-label",
"Revert Changes",3,"disabled","click"]],template:function(a,b){a&1&&(J(0,"access-limit-settings"),G(1,"roles-view-table",0),K("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),H(),G(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),P(5," Advanced Roles "),H()(),G(6,"roles-view-table",0),K("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),H()(),J(7,"expanded-access-settings"),
G(8,"button",2),K("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),P(9,"Update"),H(),G(10,"button",3),K("click",function(){Dqc(b)}),P(11," Revert Changes\n"),H());a&2&&(B(1),D("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(1),D("expanded",Eqc(b)),B(4),D("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",
b.getComponentAccessLevel()),B(2),D("disabled",!b.canSave()),B(2),D("disabled",!!Ei(b.rolesMap,b.rolesUnderEdit)))},dependencies:[b6,c6,d6,pB,K9,I9,J9],styles:["[_nghost-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]{margin:0 0 0 -24px}mat-expansion-panel-header[_ngcontent-%COMP%]{margin:0 0 0 8px}button[_ngcontent-%COMP%]{margin:0px 10px 5px 0px}\n/*# sourceMappingURL=roles_view.css.map */"]});
var M9=function(a,b){BI.call(this);this.rolesEditor=a;this.route=b};U(M9,BI);M9.\u0275dir=BI.\u0275dir;M9.prototype.ngOnInit=function(){var a=this;this.route.paramMap.pipe(C(function(b){return b.get("componentId")}),De($k),Xe(function(b){return a.rolesEditor.initialize(Number(b))}),Ye(this.destroyed$)).subscribe(function(){yqc(a.rolesEditor)})};M9.prototype.isSaving=function(){return this.rolesEditor.isSaving};M9.\u0275fac=function(a){return new (a||M9)(F(H9),F(fk))};
M9.\u0275cmp=v({type:M9,selectors:[["role-based-permissions"]],features:[Lf([H9,F9]),gf],decls:2,vars:2,consts:[["class","bv2-view-loading",4,"ngIf"],[4,"ngIf"],[1,"bv2-view-loading"],[1,"padded"],["label","Edit Roles"],[3,"rolesMap","isSaving","component","rolesEditor","saveRolesMap"],["label","View Permissions"],[3,"componentReaders","componentAccessPolicyUnderEdit","issueDefaultAccessPolicyUnderEdit","accessLevel"]],template:function(a,b){a&1&&(O(0,gdb,2,0,"div",0),O(1,idb,7,8,"div",1));a&2&&(D("ngIf",
!(null==b.rolesEditor.component?0:b.rolesEditor.component.componentId)),B(1),D("ngIf",null==b.rolesEditor.component?null:b.rolesEditor.component.componentId))},dependencies:[sx,eX,cX,mN,G9,L9],styles:["\n/*# sourceMappingURL=role_based_permissions.css.map */"]});
var Fqc=["archiveDialog"],Gqc=["archiveButton"],Hqc=["metadataForm"],xeb=function(a){return{displayText:"Inherited Admins",values:a}},wt=function(a){return[a]},yeb=function(a){return{displayText:"Component Admins",values:a}},zeb=function(a){return{displayText:"Issue Admins",values:a}},Aeb=function(a){return{displayText:"Issue Admins & Editors",values:a}},Beb=function(a){return{displayText:"Restricted+ Viewers",values:a}},Iqc={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",
TEMPLATES:"templates",ACCESS:"access"},N9=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta){BI.call(this);var Aa=this;this.route=a;this.cdr=b;this.routeParams=c;this.bLocation=d;this.accessPolicyApi=e;this.templatesApi=f;this.paths=h;this.appHistory=k;this.butterBar=q;this.pageTitle=w;this.activeSession=y;this.documentationLinks=E;this.matDialogService=I;this.analytics=N;this.checkBeforeExit=L;this.userAccess=S;this.groupMetadata=Y;this.componentActions=ka;this.errorHandler=
ha;this.componentService=ya;this.componentUpdates=Ha;this.componentUpdatesApi=Ja;this.accessPolicyConverter=Ka;this.confirmationDialogService=Ma;this.appEvents=hb;this.teamsService=fb;this.sloApi=Lb;this.sloService=ta;this.componentId$=new T.ReplaySubject(1);this.Tab=Iqc;this.AccessLevelStrings=$zb;this.componentListRoute=nta;this.showSloInheritancePath=!1;this.component$=new T.BehaviorSubject(null);this.parentComponent$=new T.BehaviorSubject(null);this.componentTeam$=new T.BehaviorSubject(null);
this.team$=this.componentTeam$.pipe(Xe(function(xa){return(xa=null==xa?void 0:xa.id)&&"0"!==xa?Aa.teamsService.getTeam(xa):(0,T.of)(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(Xe(function(xa){var Xa;return(xa=null==xa?void 0:null==(Xa=xa.team)?void 0:Xa.id)&&"0"!==xa?Aa.teamsService.getTeam(xa):(0,T.of)(null)}));this.inheritedSloMetadata$=(0,T.combineLatest)([this.component$,this.parentComponent$,this.team$]).pipe(C(function(xa){var Xa=r(xa);xa=Xa.next().value;var eb=Xa.next().value;
Xa=Xa.next().value;if((null==xa?0:xa.team)&&!xa.team.inherit&&"0"!==xa.team.id){var yc;return null!=(yc=null==Xa?void 0:Xa.getSlo())?yc:null}var Ua;return null!=(Ua=null==eb?void 0:eb.slo)?Ua:null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(Le(),Xe(function(xa){var Xa="0";xa instanceof zt?Xa=xa.getSloId():xa&&(Xa=xa.id);return"0"===Xa?(0,T.of)({id:"0"}):Aa.sloService.get(Xa).then(function(eb){return{id:Xa,slo:eb}})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(Le(),Xe(function(xa){if(!xa)return(0,T.of)({name:"None",
type:"none"});xa=Jeb(xa);var Xa=xa.sourceTeamId,eb=xa.sourceComponentId;return Xa&&"0"!==Xa?Aa.teamsService.getTeam(Xa).pipe(C(function(yc){var Ua;return{name:null!=(Ua=yc.getName())?Ua:Xa,type:"team",link:{path:"/teams/"+Xa+"/edit",fragment:"slo"}}})):eb?Aa.componentActions.get(Number(eb)).then(function(yc){var Ua;return{name:null!=(Ua=yc.name)?Ua:eb,type:"component",link:{path:"/components/"+eb+"/edit"}}}):(0,T.of)(null)}));this.policySourcePath$=(0,T.combineLatest)([this.component$,this.team$,
this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(C(function(xa){var Xa=r(xa);xa=Xa.next().value;var eb=Xa.next().value,yc=Xa.next().value;Xa=Xa.next().value;if(!xa||!xa.componentPathInfo||!Xa)return null;var Ua=Jeb(Xa);Xa=Ua.sourceComponentId;eb=Leb(eb,Ua.sourceTeamId,xa.team,yc);return null===Xa?{componentPath:null,teamPath:eb}:{componentPath:Keb(xa,Xa),teamPath:eb}}));this.enableRoleBasedPermissions=rH(this.activeSession,"enableRoleBasedPermissions");this.enableSloLockingCheck=rH(this.activeSession,
"enableSloLockingCheck");this.component=null;this.effectiveCustomFields=[];this.parentComponent=null;this.descendants=[];this.componentAdmins=[];this.issueCommenters=[];this.issueViewersChip=[];this.componentReaders=[];this.isLoading=this.hasInitialized=!1;this.selectedTabIndex=0;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent_=this.originalComponent=null;this.isAdmin_=this.isUpdatingAccessLimit_=this.isUpdatingAccessPolicy_=this.isUpdating_=this.isArchiving_=!1;this.metadataForm=
null;this.error="";this.isComponentSloEditor=this.isEditor_=!1;this.updateDiffs=void 0;this.templates=[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=rH(this.activeSession,"enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(De(Boolean),Xe(function(xa){return Aa.sloApi.executor.get({url:"action/components/"+xa+"/slo_edit_policy",responseConstructor:p3b}).pipe(C(Fqa))}));this.aclFormValidity={};this.aclFormIsInvalid=
function(){return Object.values(Aa.aclFormValidity).some(function(xa){return!xa})};this.getSloManagementLink=un};U(N9,BI);N9.\u0275dir=BI.\u0275dir;N9.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.bLocation.hash(e,!0)};
N9.prototype.ngOnInit=function(){var a=this;this.componentId=Ki(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.componentAccessPolicyUnderEdit=LT();this.issueDefaultAccessPolicyUnderEdit=LT();this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.selectedTabIndex=0;this.subscriptions.add(cZ(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess_(this.componentId);
this.enableSloLockingCheck&&Jqc(this);this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(b){a:{if(b&&a.issueDefaultFlattenedAccessPolicy_){var c=a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders;b=r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,0===d.indexOf("3:")&&-1===c.indexOf(d)){c=!1;break a}}c=!0}return c}};this.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?"ALLOW"===a.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy_?
"ALLOW"===a.componentFlattenedAccessPolicy_.implicitAccess:!1},setValue:function(b){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:b?"ALLOW":"DENY"}))}};this.componentHistoryUiEnabled=this.activeSession.isInternalSession();Kqc(this);this.enableComponentAutomationCheck=rH(this.activeSession,"enableComponentAutomationCheck");this.enableRostersChecks=rH(this.activeSession,"enableRostersChecks");this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=
Lqc(b)}));this.hasInitialized=!0;this.route.fragment.pipe(Ye(this.destroyed$)).subscribe(function(b){"basic"===b?a.selectedTabIndex=0:"customFields"===b?a.selectedTabIndex=1:"fieldOrdering"===b?a.selectedTabIndex=2:"templates"===b?a.selectedTabIndex=3:"access"===b&&(a.selectedTabIndex=4)})};var Kqc=function(a){a=[Mqc(a,a.componentId),Nqc(a,a.componentId),Oqc(a,a.componentId)].concat(u(a.loadAccessPolicy_(a.componentId)));return Promise.all(a).then(function(){})};g=N9.prototype;g.isAdmin=function(){return this.isAdmin_};
g.isSaving=function(){return this.isUpdating_||this.isArchiving_};g.isArchived=function(){return this.component?this.component.archived:!1};g.isPublic=function(){return sX(this.component)};g.isExternal=function(){return rX(this.component)};g.isParentPublic=function(){return!(!this.parentComponent||!sX(this.parentComponent))};g.isParentPartner=function(){return!(!this.parentComponent||!P1b(this.parentComponent))};
var Pdb=function(a){if(!a.component||!a.component.slo)return!1;var b=!!a.component.team&&"0"!==a.component.team.id;return 0===a.component.parentComponentId?b:!a.component.slo.inherit};N9.prototype.shouldShowAccessLimitChangeUi=function(){if(this.sessionIsExternal)return!1;if(this.component)if(this.component.parentComponentId){if(this.parentComponent)return rX(this.parentComponent)||rX(this.component)}else return!1};
N9.prototype.hasUnsavedMetadataChanges=function(){return!(Ei(this.component,this.originalComponent)&&Ei(this.parentComponent,this.originalParentComponent_))};N9.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||xt(this)||yt(this)};
var Pqc=function(a){var b=Jj();a.component.slo.id===a.originalComponent.slo.id&&a.component.slo.source===a.originalComponent.slo.source?b.resolve(!0):a.confirmationDialogService.open({title:"SLO changes may not appear immediately",content:Nn("SLO changes will be applied to all issues in this component (and potentially child components). Depending on the total number of affected issues, this may take several hours to fully fan-out and reindex."),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}});
return b.promise},Qqc=function(a){var b=Jj();a.sessionIsInternal&&a.parentComponent&&a.parentComponent.componentId!=a.component.parentComponentId?a.confirmationDialogService.open({title:"Changing the parent component may change which SLO is applied",content:Qn(Nn('Depending on the specific SLO inheritance and/or source settings in this and any child components, changes to the parent component may cause a different "Auto" or inherited SLO to be applied.'),Pn("BR",{}),Pn("BR",{}),Nn('Changes to the SLO may also take some time to become visible. Updates to the "Auto" SLOs are applied daily, and any changes then need to be fanned out to the affected issues and re-indexed.'),
Pn("BR",{}),Pn("A",{href:"https://goto.google.com/buganizer/guides/apply-slo",target:"_blank"},"Learn More")),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Rqc=function(a){if(!a.enableComponentAutomationCheck)return Promise.resolve(!0);var b=Jj(),c=a.getAddedAutomationInPolicyChange();if(c.length){var d={};d=Pn("A",(d.href=bNb(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",
content:Qn(Nn("You are adding automation accounts to the ACL for this component. All Googlers are entrusted with power and responsibility as stewards of Google's data. Please see the"),Pn("wbr"),d,Nn("."),Pn.apply(Ly,["OL",{}].concat(u(c.map(function(e){if(Ik(e)){var f;return Pn("LI",{},Nn(null!=(f=e.user.emailAddress)?f:""))}if(Jk(e)){var h;return Pn("LI",{},Nn(null!=(h=e.group.emailAddress)?h:""))}throw Error("Se`"+JSON.stringify(e));})))),Pn("BR",{}),Nn("Are you sure you wish to allow automation to access data in this component?")),
onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}})}else b.resolve(!0);return b.promise};N9.prototype.saveMetadata=function(){var a=this;return this.validate_()?Qqc(this).then(function(b){return b?Pqc(a):Promise.resolve(!1)}).then(function(b){b&&Sqc(a).then(function(){return Kqc(a)})}):Promise.resolve()};
var vt=function(a,b){a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b)},Sqc=function(a){a.isUpdating_=!0;PK(a.butterBar,"Saving changes ...",0);return Tqc(a).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return Uqc(a)}).then(function(){return Vqc(a)}).then(function(){return Wqc(a)}).then(function(){PK(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating_=!1})},Tqc=function(a){return a.parentComponent&&a.parentComponent.componentId!==a.originalComponent.parentComponentId?a.componentActions.move(a.component.componentId,a.parentComponent.componentId).then(function(){return!0}).catch(function(b){a.component.parentComponentId=a.originalComponent.parentComponentId;return Promise.reject(b)}):Promise.resolve(!1)},Uqc=function(a){return a.component.slo&&!Ei(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,
a.component.slo).then(function(){bo(a.analytics,go.MANAGE_COMPONENT,"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},Vqc=function(a){return a.component.team&&!Ei(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){bo(a.analytics,go.MANAGE_COMPONENT,"updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):
Promise.resolve(!1)},Wqc=function(a){return Xqc(a)?a.componentActions.update(a.component).then(function(){bo(a.analytics,go.MANAGE_COMPONENT,"update");a.commentEditsEnabled?bo(a.analytics,"component","comment edits enabled","update"):bo(a.analytics,"component","comment edits disabled","update");return!0}):Promise.resolve(!1)},Xqc=function(a){var b=Fi(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!Ei(a.originalComponent,
b)};N9.prototype.validate_=function(){if(this.metadataForm.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid.";return!1};
N9.prototype.saveAccessPolicy=function(){var a=this;Yqc(this).then(function(b){return b?Zqc(a):Promise.resolve(!1)}).then(function(b){return b?$qc(a):Promise.resolve(!1)}).then(function(b){return b?arc(a):Promise.resolve(!1)}).then(function(b){return b?brc(a):Promise.resolve(!1)}).then(function(b){return b?crc(a):Promise.resolve(!1)}).then(function(b){return b?drc(a):Promise.resolve(!1)}).then(function(b){return b?Rqc(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveAccessPolicy_()})};
N9.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};
var yt=function(a){return a.originalComponent&&a.component?a.originalComponent.accessLimit.accessLevel!==a.component.accessLimit.accessLevel:!1},Yqc=function(a){var b=Jj();yt(a)&&"INTERNAL"===a.component.accessLimit.accessLevel?a.confirmationDialogService.open({title:"Component Visibility Changed",content:Nn("You are about to change the component visibility to Google internal for this component. Make sure your changes are correct -- if this component has any issues, you will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){b.resolve(!0)},
onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},$qc=function(a){var b=Jj();erc(a)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Nn("You are about to change the administrator privileges for this component. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):
b.resolve(!0);return b.promise},arc=function(a){var b=Jj();frc(a)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Nn("You are about to remove Restricted+ reader permission for a group. You will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Zqc=function(a){var b=Jj();a.componentReaders.includes("3:nobody@google.com")?a.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',
content:Nn('"nobody@google.com" was detected, this is usually the result of an account being deleted that was already part of the access policy. It can be found in the following fields: '+[a.componentAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Component Admins"':null,a.componentAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Create Issues"':null,a.issueDefaultAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Issue Admins"':null,a.issueDefaultAccessPolicyUnderEdit.editors.includes("3:nobody@google.com")?
'"Edit Issues"':null,a.issueDefaultAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Comment on Issues"':null,a.issueDefaultAccessPolicyUnderEdit.readers.includes("3:nobody@google.com")?'"View Issues"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("3:nobody@google.com")?'"View restricted+ content"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("3:nobody@google.com")?'"View restricted content"':null].filter(function(c){return!!c}).join(", ")+
". Do you want to proceed?"),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},drc=function(a){var b=Jj(),c={};c=Pn("A",(c.href=Q6a(a.documentationLinks),c),"Learn more.");a.implicitAccess.getValue()==a.implicitAccess.getSavedValue()?b.resolve(!0):a.implicitAccess.getValue()?a.confirmationDialogService.open({title:"Turn on expanded access for component "+a.component.componentId+"?",content:Qn("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",
c),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):a.confirmationDialogService.open({title:"Turn off expanded access for component "+a.component.componentId+"?",content:Qn("Some users may lose the ability to edit or comment on issues in this component. ",c),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}});return b.promise},brc=function(a){return a.enableRostersChecks&&xt(a)?grc(a).then(function(b){var c=hrc(b),d=irc(b);if(0===c.size&&0===d.size)return Promise.resolve(!0);
b=jrc(c.size,d.size);c=krc(c);d=lrc(d);c=Qn(c,c===ot?ot:Pn("BR"),d);d={};c=Qn(c,Pn("P",{},Qn("Please review the ",Pn("A",(d.href=cNb(a.documentationLinks)+"#fully-public-component",d.target="_blank",d),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));var e=Jj();a.confirmationDialogService.open({title:b,content:c,onConfirm:function(){e.resolve(!0)},onDismiss:function(){e.resolve(!1)},confirmButtonText:"Add Group"});return e.promise}):Promise.resolve(!0)},
hrc=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next())switch(c=c.value,c.sizeCategory){case "LARGE":case "HUGE":case "ENORMOUS":b.set(c.groupEmail,c)}return b},irc=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,"OPEN_TO_JOIN"===c.permissionCategory&&b.set(c.groupEmail,c);return b},jrc=function(a,b){return 0!==a&&0!==b?"Adding large and open groups to a public component":0!==a?1===a?"Adding a large group to a public component":"Adding large groups to a public component":
1===b?"Adding an open group to a public component":"Adding open groups to a public component"},krc=function(a){if(0===a.size)return ot;for(var b=1===a.size?Pn("P",{},"The following large group is added: "):Pn("P",{},"The following large groups are added: "),c=[],d=r(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Pn("P",{},Qn(Pn("B",{},e)," has approximately ",Pn("B",{},f)," Googlers.")))}return Qn(b,c)},lrc=function(a){if(0===a.size)return ot;var b=1===a.size?
Pn("P",{},"The following open group is added: "):Pn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Pn("P",{},Pn("B",{},d.value)));return Qn(b,c)},crc=function(a){var b=Jj();if(a.isPublic()&&mrc(a)){var c={};c=Qn(Pn("P",{},"You are about to give a broad category of users permissions on a public component."),Pn("P",{},Qn("Please review the ",Pn("A",(c.href=dNb(a.documentationLinks),c.target="_blank",c),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));
a.confirmationDialogService.open({title:"Adding an broad category of users to a public component",content:c,onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)},confirmButtonText:"Add Group Alias"})}else b.resolve(!0);return b.promise};
N9.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=NT(this.componentAccessPolicyUnderEdit);var c=NT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){c="An unknown problem occurred";d instanceof Error&&(c=d.message);QK(this.butterBar,c);return}xt(this)?(this.isUpdating_=this.isUpdatingAccessPolicy_=!0,PK(this.butterBar,"Saving access settings...",0),nrc(this,c).then(function(d){d&&(b.readers=[].concat(u(d.admins||[]),u(d.editors||[]),u(d.appenders||[]),u(d.readers||[]),u(d.restrictedPlusReaders||
[]),u(d.restrictedReaders||[])));return orc(a,b)}).then(function(){return prc(a)}).then(function(){return Promise.all([].concat(u(a.loadAccessPolicy_(a.componentId))))}).then(function(){PK(a.butterBar,"Access settings saved",0)}).catch(function(d){QK(a.butterBar,ym(d),0)}).finally(function(){a.loadUserAccess_(a.componentId);a.isUpdatingAccessPolicy_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})):prc(this)};
var orc=function(a,b){return a.componentFlattenedAccessPolicy_&&qrc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=MT(c);if(a.componentAccessPolicyUnderEdit&&!qrc(d,a.componentAccessPolicyUnderEdit))return Promise.resolve(void 0);if(a.componentFlattenedAccessPolicy_&&qrc(d,a.componentFlattenedAccessPolicy_))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});
b.readers=c.readers;b.inheritance=0===a.component.parentComponentId?"INHERIT_NOTHING":"INHERIT_ADMINS";return a.accessPolicyApi.update("COMPONENT",a.componentId,b)}):Promise.resolve(void 0)},nrc=function(a,b){if(!a.issueDefaultFlattenedAccessPolicy_||!rrc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b)},prc=function(a){if(!yt(a))return Promise.resolve();
a.isUpdatingAccessLimit_=!0;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_;return a.accessPolicyApi.setAccessLimit("COMPONENT",a.componentId,a.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;PK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;var c="Could not change access level. ";xm(b)&&(c+=ym(b));
QK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})},erc=function(a){function b(h){return h?h.admins.concat(h.inheritedAdmins):[]}var c="2:"+a.activeSession.getUserEmail(),d=b(a.componentFlattenedAccessPolicy_),e=b(a.componentAccessPolicyUnderEdit);a=d.filter(function(h){return-1===e.indexOf(h)});d=a.filter(function(h){return h.startsWith("3:")});var f=a.filter(function(h){return h.startsWith("2:")});return-1<e.indexOf(c)||
0===a.length?!1:-1<f.indexOf(c)?!0:d.length?!0:!1},frc=function(a){if(!a.issueDefaultFlattenedAccessPolicy_)return!1;var b=a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders;return 0<a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders.filter(function(c){return-1===b.indexOf(c)}).filter(function(c){return c.startsWith("3:")}).length},mrc=function(a){if(!a.issueDefaultAccessPolicyUnderEdit.appenders||!a.issueDefaultFlattenedAccessPolicy_||Ei(a.issueDefaultFlattenedAccessPolicy_.appenders,
a.issueDefaultAccessPolicyUnderEdit.appenders))return!1;for(var b=r(a.issueDefaultAccessPolicyUnderEdit.appenders||[]),c=b.next();!c.done;c=b.next())if(c=c.value,jcb.has(c)&&!a.issueDefaultFlattenedAccessPolicy_.appenders.includes(c))return!0;return!1},grc=function(a){var b=[].concat(u(new Set([].concat(u(Pi(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy_.admins)),u(Pi(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy_.admins)),u(Pi(a.issueDefaultAccessPolicyUnderEdit.editors,
a.issueDefaultFlattenedAccessPolicy_.editors)),u(Pi(a.issueDefaultAccessPolicyUnderEdit.appenders,a.issueDefaultFlattenedAccessPolicy_.appenders)),u(Pi(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy_.readers)),u(Pi(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedReaders)),u(Pi(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders))))));return Promise.all(b.map(function(c){c=
a.accessPolicyConverter.stringToAccessPolicyPrincipal(c);return Jk(c)&&c.group.emailAddress?a.groupMetadata.get(c.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})}))},xt=function(a){return!(!a.componentFlattenedAccessPolicy_||!qrc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit))||!(!a.issueDefaultFlattenedAccessPolicy_||!rrc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))},
qrc=function(a,b){return b&&a?!Ei(a.admins,b.admins)||!Ei(a.appenders,b.appenders)||!Ei(a.implicitAccess,b.implicitAccess):!1},rrc=function(a,b){return b&&a?!Ei(a.admins,b.admins)||!Ei(a.editors,b.editors)||!Ei(a.appenders,b.appenders)||!Ei(a.readers,b.readers)||!Ei(a.restrictedReaders,b.restrictedReaders)||!Ei(a.restrictedPlusReaders,b.restrictedPlusReaders):!1},Mqc=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,
c)})};N9.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=Fi(this.originalParentComponent_);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled="ENABLED"==this.component.commentEditState};
N9.prototype.revertAccessPolicyChanges=function(){this.componentFlattenedAccessPolicy_&&(this.componentAccessPolicyUnderEdit=Fi(this.componentFlattenedAccessPolicy_));this.issueDefaultFlattenedAccessPolicy_&&(this.issueDefaultAccessPolicyUnderEdit=Fi(this.issueDefaultFlattenedAccessPolicy_));this.appEvents.contactChipsRevertChanges.next()};
var geb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=Lqc(b.componentPathInfo.allCustomField)})},Lqc=function(a){return a?a.filter(function(b){return b.enabledOnIssues}):[]},Nqc=function(a,b){a.isLoading=!0;return a.componentActions.getUncached(b,!0).then(function(c){a.updateComponentAndOriginalComponent(c);a.currentName=c.name;0<c.parentComponentId&&a.loadParentComponent_(c.parentComponentId);a.effectiveCustomFields=Lqc(c.componentPathInfo.allCustomField);
a.pageTitle.setTitle("Component: "+c.name);a.archiveAction=c.archived?"Unarchive":"Archive";a.commentEditsEnabled="ENABLED"==c.commentEditState;0===a.component.parentComponentId&&(a.isParentComponentRequired=!1)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1;a.hasInitialized&&a.cdr.detectChanges()})};
N9.prototype.loadAccessPolicy_=function(){var a=this;return[this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(b){a.componentFlattenedAccessPolicy_=MT(b);a.componentAccessPolicyUnderEdit=Fi(a.componentFlattenedAccessPolicy_)}).catch(function(b){a.errorHandler.errorHandler(null,b)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(b){a.issueDefaultFlattenedAccessPolicy_=MT(b);a.issueDefaultAccessPolicyUnderEdit=Fi(a.issueDefaultFlattenedAccessPolicy_)}).catch(function(b){a.errorHandler.errorHandler(null,
b)})]};N9.prototype.loadUserAccess_=function(a){var b=this;DK(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin_=c;return b.isAdmin_?!0:DK(b.userAccess,"writer","components/"+a)}).then(function(c){b.isEditor_=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var Jqc=function(a){DK(a.userAccess,"writer","components/"+a.componentId+"/slo").then(function(b){a.isComponentSloEditor=b})},ut=function(a){return a.isSaving()||!a.isEditor_};g=N9.prototype;
g.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};g.loadParentComponent_=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent_=Fi(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.getRecentIssuesLink=function(){var a=this.isArchived();return tn(this.componentId,{includeArchived:a})};
g.createIssue=function(){this.trackClick("createIssue");this.bLocation.url(this.paths.createIssue()+"?component="+this.component.componentId)};g.createChild=function(){this.bLocation.url(this.paths.createComponent({parentId:this.component.componentId}))};g.trackClick=function(a){bo(this.analytics,"editComponent","click",a)};
var jdb=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?QK(a.butterBar,"You have unsaved changes on one or more tabs. Please save or revert these changes before "+a.archiveAction.slice(0,-1)+"ing."):(a.isArchiving_=!0,PK(a.butterBar,"Looking up subcomponents...",0),a.componentService.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=rb(b,C9,2);a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})._afterClosed.pipe(Ye(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):QK(a.butterBar,"Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};N9.prototype.getRetentionPeriod=function(a){if(a&&a.hasRetentionSettings()&&X(a.getRetentionSettings(),1,0)){var b=X(a.getRetentionSettings(),1,0);switch(b){case 1:return"Buganizer default retention (10 years)";case 3:return"Indefinite retention";case 2:return a=dj(a.getRetentionSettings(),2),po(a);default:throw Error("Te`"+b);}}return"Retention period unspecified"};
N9.prototype.archive=function(){var a=this;this.isArchiving_=!0;PK(this.butterBar,this.archiveAction.slice(0,-1)+"ing...",0);this.component.archived=!this.component.archived;this.componentActions.update(this.component).then(function(b){a.appEvents.componentModified.next(b.componentId);PK(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);bo(a.analytics,"component","archive");b.userHasEditAccess=a.component.userHasEditAccess;a.updateComponentAndOriginalComponent(b);a.archiveAction=
b.archived?"Unarchive":"Archive";a.isArchiving_=!1}).catch(function(b){a.component.archived=!a.component.archived;PK(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(xm(b)?ym(b):b));a.isArchiving_=!1})};
var Oqc=function(a,b){var c=a.paths.getBaseUrl()+"/"+a.paths.createIssue();return a.templatesApi.query(b).then(function(d){a.templates=d.map(function(e){var f=e.name;f||(f=e.default?"(default template)":"(unnamed template)");return{name:f,description:e.description||"",url:c+"?component="+b+"&template="+e.templateId}})}).catch(function(d){a.errorHandler.errorHandler(null,d)})},src=function(a){a.componentReaders=[].concat(u(new Set([].concat(u(a.componentAccessPolicyUnderEdit?[].concat(u(a.componentAccessPolicyUnderEdit.inheritedAdmins||
[]),u(a.componentAccessPolicyUnderEdit.admins||[]),u(a.componentAccessPolicyUnderEdit.editors||[]),u(a.componentAccessPolicyUnderEdit.appenders||[])):[]),u(a.issueDefaultAccessPolicyUnderEdit?[].concat(u(a.issueDefaultAccessPolicyUnderEdit.admins||[]),u(a.issueDefaultAccessPolicyUnderEdit.editors||[]),u(a.issueDefaultAccessPolicyUnderEdit.appenders||[]),u(a.issueDefaultAccessPolicyUnderEdit.readers||[]),u(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),u(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||
[])):[])))))};N9.prototype.setCommentEditState=function(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};N9.prototype.getAccessLevelDescription=function(a){return R1b(a)};
var trc=function(a,b){return a.componentHistoryUiEnabled?a.componentUpdatesApi.get(b).then(function(c){a.updateDiffs=c.getUpdatesList().map(function(d){var e=a.componentUpdates,f=yRb(d.getAddMask()),h=yRb(d.getRemoveMask()),k={author:d.getAuthor(),timestamp:d.getTimestamp(),diffs:[]},q=d.getAdd()||new pm;d=d.getRemove()||new pm;for(var w=r(new Set([].concat(u(f),u(h)))),y=w.next();!y.done;y=w.next()){var E=y.value;if(y=uRb.get(E))if("name"===E){var I=PS(h,E,d.getName());E=PS(f,E,q.getName());k.diffs.push(QS(y,
I,E))}else if("description"===E)I=PS(h,E,d.getDescription()),E=PS(f,E,q.getDescription()),k.diffs.push(QS(y,I,E));else if("parentComponentId"===E)I=PS(h,E,String(kj(d,2))),E=PS(f,E,String(kj(q,2))),k.diffs.push(QS(y,I,E));else if("isArchived"===E)I=PS(h,E,String(d.getArchived())),E=PS(f,E,String(q.getArchived())),k.diffs.push(QS(y,I,E));else if("commentEditState"===E){var N=vRb.get(X(d,15,0));I=vRb.get(X(q,15,0));N&&I&&(N=PS(h,E,N),E=PS(f,E,I),k.diffs.push(QS(y,N,E)))}else"defaultTemplateId"===E?
(I=PS(h,E,String(kj(d,18))),E=PS(f,E,String(kj(q,18))),k.diffs.push(QS(y,I,E))):"slo"===E?e.sessionIsInternal&&(I=PS(h,E,CRb(d.getSlo())),E=PS(f,E,CRb(q.getSlo())),k.diffs.push(QS(y,I,E))):"team"===E?e.sessionIsInternal&&(I=PS(h,E,DRb(d.getTeam())),E=PS(f,E,DRb(q.getTeam())),k.diffs.push(QS(y,I,E))):"retentionSettings"===E?(I=PS(h,E,ARb(d.getRetentionSettings())),E=PS(f,E,ARb(q.getRetentionSettings())),k.diffs.push(QS(y,I,E))):e.$log.error("Unsupported diff field "+E)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject()};N9.prototype.showUpdateHistoryModal=function(){var a=this;trc(this,this.componentId).then(function(){a.matDialogService.open(A5,{width:"600px",data:{updateDiffs:a.updateDiffs}});bo(a.analytics,go.UPDATE_HISTORY_MODAL,"open");bo(a.analytics,go.MANAGE_COMPONENT,"viewHistory")})};N9.prototype.onSloChange=function(a){this.component.slo.id=a?a.getSloId():"0";a&&urc(this)};
var Ldb=function(a){var b=!!a.parentComponent,c="0"!==a.component.team.id;return(a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin())&&(c||b)},Rdb=function(a){var b=!a.component.team||"0"===a.component.team.id,c=!a.parentComponent;return(a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin())&&(!a.component.slo.inherit||c&&b)},xdb=function(a){var b,c,d,e;me(function(f){b=0===a.component.parentComponentId;c="0"!==a.component.team.id;return(0===a.component.parentComponentId?"0"!==a.component.team.id:
!a.component.team.inherit&&"0"!==a.component.team.id)||b&&c?ne(f,(0,T.firstValueFrom)(a.team$.pipe(C(function(h){h=h.getSlo();a.component.slo.id=h.getSloId();urc(a)}))),0):(d=vrc(a),e=d.id,a.component.slo.id=e,urc(a),f.jumpTo(0))})},Qdb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return"0"!==a.component.team.id||b?!0:!1},vrc=function(a){var b=a.component.slo.inherit,c=a.component.slo.source,d=a.component.slo.id;if(b){if(!a.parentComponent)return{inherit:b,source:c,id:d};c=a.parentComponent.slo.source;
d=a.parentComponent.slo.id}return{inherit:b,source:c,id:d}},wrc=function(a,b){var c=[];if(!b||!a)return c;for(var d=r([{field:"admin",accessor:function(h){return h.admins}},{field:"editors",accessor:function(h){return h.editors}},{field:"appenders",accessor:function(h){return h.appenders}},{field:"readers",accessor:function(h){return h.readers}},{field:"restrictedReaders",accessor:function(h){return h.restrictedReaders}},{field:"restrictedPlusReaders",accessor:function(h){return h.restrictedPlusReaders}}]),
e=d.next();!e.done;e=d.next()){e=e.value;var f=Pi(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c};
N9.prototype.getAddedAutomationInPolicyChange=function(){var a=[].concat(u(wrc(this.issueDefaultFlattenedAccessPolicy_,this.issueDefaultAccessPolicyUnderEdit)),u(wrc(this.componentFlattenedAccessPolicy_,this.componentAccessPolicyUnderEdit))),b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.addedPrincipals);for(var d=c.next();!d.done;d=c.next())d=this.accessPolicyConverter.stringToAccessPolicyPrincipal(d.value),(Ik(d)?Mn(d.user.emailAddress):Jk(d)&&Mn(d.group.emailAddress))&&b.add(d)}return[].concat(u(b.values()))};
var aeb=function(a,b){PK(a.butterBar,"Saving effort spec...",0);a.component&&(a.component.effortSpec=tqa(b),a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);bo(a.analytics,go.MANAGE_COMPONENT,"updateEffort");var d,e;if(null==(d=a.component)?0:null==(e=d.effortSpec)?0:e.name){var f;PK(a.butterBar,(null==(f=a.component.effortSpec)?void 0:f.name)+" saved")}else PK(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}))};N9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Fi(a);this.component$.next(this.component);this.originalComponent=Fi(a);var b;this.componentTeam$.next(null!=(b=this.component.team)?b:null);urc(this)};N9.prototype.back=function(){X_(this.appHistory)};var urc=function(a){var b;(null==(b=a.component)?0:b.slo)?a.isEnableSloChecked="0"!==a.component.slo.id:a.isEnableSloChecked=!1};
ki.Object.defineProperties(N9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,src(this),this.componentAccessPolicyUnderEdit?(a=new Set([].concat(u(this.componentAccessPolicyUnderEdit.inheritedAdmins||[]),u(this.componentAccessPolicyUnderEdit.admins||[]))),a=[].concat(u(a))):a=[],this.componentAdmins=a)},get:function(){return this.componentAccessPolicyUnderEditInternal}},
issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,src(this),this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(u(this.issueDefaultAccessPolicyUnderEdit.admins||[]),u(this.issueDefaultAccessPolicyUnderEdit.editors||[]))),a=[].concat(u(a)).sort()):a=[],this.issueCommenters=a,this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(u(this.issueDefaultAccessPolicyUnderEdit.admins||
[]),u(this.issueDefaultAccessPolicyUnderEdit.editors||[]),u(this.issueDefaultAccessPolicyUnderEdit.appenders||[]),u(this.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),u(this.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||[]))),a=[].concat(u(a)).sort()):a=[],this.issueViewersChip=[{displayText:"Issue Admins, Editors, Commenters, Restricted/Restricted+ Viewers",values:a}])},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});
N9.\u0275fac=function(a){return new (a||N9)(F(fk),F(uI,2),F(bS),F(cL),F(iO),F(eK),F(dL),F(W_),F(OK),F(hO),F(pH),F(tP),F(HB),F(SM),F(dZ),F(CK),F(A9),F(AT),F(SK),F(D9),F(RS),F(z9),F(KT),F(aN),F(WK),F(lM),F(uY),F(vY))};
N9.\u0275cmp=v({type:N9,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(Zf(Fqc,5),Zf(Gqc,5),Zf(Hqc,5),Zf(cX,5,nd));if(a&2){var c;Yf(c=ag())&&(b.confirmArchiveDialog=c.first);Yf(c=ag())&&(b.archiveButton=c.first);Yf(c=ag())&&(b.metadataForm=c.first);Yf(c=ag())&&(b.tabs=c)}},features:[Lf([uI]),gf],decls:11,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["format","icon","size","large","tooltip","Go back","ariaLabel","Go back",3,"onAction"],["name","arrow-backward",
"size","large"],[4,"ngIf"],["cdkScrollable","",1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["archiveDialog",""],["mat-button","",1,"gmat-button",3,"routerLinkObj"],["format","flat",3,"disabled","onAction",4,"ngIf"],["format","flat",3,"tooltip","disabled","onAction",4,"ngIf"],["format","flat",3,"disabled","onAction"],["archiveButton",""],["format","flat",3,"tooltip","disabled","onAction"],[1,"bv2-view-loading"],[1,"edit-resource-header"],["class","resource-archived",4,"ngIf"],[1,"keep-focus-ring",
3,"routerLinkObj","click"],[3,"accessLevel"],[1,"component-hierarchy-container"],["componentPathsLinkTo","settings",3,"componentPathInfo","isArchived","label"],[1,"float-clear"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndex","selectedIndexChange"],["label","Basic Information",3,"id"],[4,"ngTemplateOutlet"],[3,"id","label"],["label","Field Ordering",3,"id"],["label","Templates",3,"id"],["label","Access Control",3,"id"],["basic",""],["customFields",""],["fieldOrdering",""],["templatesList",""],["access",
""],[1,"resource-archived"],[1,"edit-resource-panel"],["name","metadataForm"],["metadataForm",""],[3,"error"],["aria-label","Name",1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","name","name","required","","id","component-name",3,"ngModel","disabled","ngModelChange"],["aria-label","Description",1,"edit-field"],[1,"field-label-with-help"],["for","component-description",1,"help-label"],[1,"help-container"],["id","component-description-bubble",1,"help-bubble",
"jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],["name","description","aria-describedby","component-description-bubble","id","component-description",3,"ngModel","disabled","ngModelChange"],["class","edit-field","tabindex","0","aria-label","Parent component",4,"ngIf"],["role","region","aria-label","Editable Comments",1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabelledby","editable-comments-label permission-toggle-help",
3,"checked","disabled","change"],["id","editable-comments-label",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about editable comments","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["class","edit-field","role","region","aria-label","Retention Settings",3,"bv2-edit-resource-readonly",4,"ngIf"],["class","edit-field","role","region","tabindex","0","aria-label","Team Configuration",3,"bv2-edit-resource-readonly",
4,"ngIf"],["class","edit-field","role","region","tabindex","0","aria-label","SLO Configuration",3,"bv2-edit-resource-readonly",4,"ngIf"],["aria-label","Component alias",1,"edit-field","bv2-edit-resource-readonly"],[1,"help-label"],[1,"help-bubble","jfk-bubble"],["aria-label","Learn more about component alias","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"href"],[1,"edit-button-row"],["class","edit-button-group",4,"ngIf"],[1,"edit-button-group"],["format","hairline","title",
"View history for 'Basic Information'",3,"onAction",4,"ngIf"],[1,"edit-field","bv2-edit-resource-readonly"],[3,"children","onVisit",4,"ngIf"],["tabindex","0","aria-label","Parent component",1,"edit-field"],["for","component-parent-id",1,"help-label"],["id","edit-parent-help-bubble",1,"help-bubble","jfk-bubble"],["id","component-parent-id",3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["target","_blank","aria-label","Learn more about editable comments",1,"keep-underline",
"keep-focus-ring",3,"href"],["role","region","aria-label","Retention Settings",1,"edit-field"],["for","retention-settings",1,"required"],[1,"edit-field-help"],["target","_blank","aria-label","Learn more about choosing a period of time to retain the data stored in this component.",1,"keep-underline","keep-focus-ring",3,"href"],["id","retention-settings"],[3,"issueRetentionDisabled","isExternal","initialModel","modelChange","validChange"],["role","region","tabindex","0","aria-label","Team Configuration",
1,"edit-field"],["for","team-picker"],["id","team-picker",4,"ngIf"],["id","team-picker"],[3,"isAdmin","isTopLevel","parentModel","useInternalLink","anchorTarget","model","modelChange"],["role","region","tabindex","0","aria-label","SLO Configuration",1,"edit-field"],["tabindex","0","aria-describedby","edit-slo-help-bubble",1,"keep-focus-ring","help-label"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],["class","slo-policy-link",4,"ngIf"],["class","slo-policy-source-link",
4,"ngIf"],[1,"lock-state"],["class","edit-field less-margin",4,"ngIf"],[1,"slo-policy-link"],[3,"routerLinkObj",4,"ngIf","ngIfElse"],["noInheritedSlo",""],[3,"routerLinkObj"],[1,"slo-policy-source-link"],["class","keep-focus-ring slo-inheritance-link",3,"routerLinkObj",4,"ngIf","ngIfElse"],["noPolicySource",""],["mat-stroked-button","","type","button","aria-label","Display the full SLO inheritance path below",1,"gmat-button","slo-inheritance-path","small",3,"click"],[1,"keep-focus-ring","slo-inheritance-link",
3,"routerLinkObj"],["class","slo-breadcrumbs",4,"ngIf"],[1,"slo-breadcrumbs"],[3,"componentPath","teamPath"],[4,"ngIf","ngIfElse"],["unlocked",""],["svgIcon","lock-outline"],["svgIcon","lock-open"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"slo-override",3,"checked","disabled","change"],["class","edit-field component-slo-justification-text",4,"ngIf"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModel","disabled","ngModelChange","change"],[1,"edit-field","component-slo-id-select"],
["for","component-slo-id"],["id","component-slo-id","aria-describedby","edit-slo-help-bubble","tabindex","-1",1,"bv2-slo-picker","bv2-picker",3,"bv2Disabled","boundId","bv2Placeholder","onSloSelect"],["mat-icon-button","","class","gmat-button small","aria-label","Go to SLO management page","matTooltip","Go to SLO management page.",3,"routerLinkObj","target",4,"ngIf"],[1,"edit-field","component-slo-justification-text"],["for","component-slo-justification","id","component-settings-slo-justification-label",
1,"required"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","matTooltip","Justification is required to override the org SLO.","aria-label","Justification is required to override the org SLO.",1,"slo-info","icon-s","valign-middle"],["name","comment","aria-labelledby","component-settings-slo-justification-label","required","",3,"ngModel","ngModelChange"],["mat-icon-button","","aria-label","Go to SLO management page","matTooltip","Go to SLO management page.",1,"gmat-button","small",
3,"routerLinkObj","target"],["svgIcon","pop-out",1,"icon-s"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"],["format","hairline","title","View history for 'Basic Information'",3,"onAction"],[3,"children","onVisit"],["class","heading-m padded-x margin-top","aria-label","Standard Fields",4,"ngIf"],[3,"effortSpec","parentEffortSpec","updateComponent",4,"ngIf"],["class","heading-m padded-x margin-top","aria-label","Custom Fields",4,"ngIf"],[3,"editMode","isSaving",
"component","parentComponent"],["aria-label","Standard Fields",1,"heading-m","padded-x","margin-top"],[3,"effortSpec","parentEffortSpec","updateComponent"],["aria-label","Custom Fields",1,"heading-m","padded-x","margin-top"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about field ordering","class","keep-underline keep-focus-ring","target","_blank",3,"href",4,"ngIf"],[3,"fields","componentId","fieldOrdering","isAdmin","onReload"],["aria-label","Learn more about field ordering",
"target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"componentId","supportCustomFields",4,"ngIf"],[3,"componentId","supportCustomFields"],["class","component-field",4,"ngFor","ngForOf"],[1,"component-field"],["class","component-banner",4,"ngIf"],["aria-label","Learn more about access control","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["name","accessControlForm","novalidate",""],["aria-label","Component Admins",1,"edit-field"],["for","component-acl-admins"],[1,
"edit-field-note"],["idForInputBox","component-acl-admins","ariaLabel","Component Admins email list",3,"users","accessLevel","containerChips","usersChange","isValid"],["aria-label","Create issues",1,"edit-field"],["for","component-acl-create-issues"],["idForInputBox","component-acl-create-issues","ariaLabel","Create Issues access email list",3,"users","accessLevel","containerChips","includeAliases","usersChange","isValid"],["aria-label","Issue Admins",1,"edit-field"],["for","issue-admins"],["target",
"_blank","aria-label","Learn more about issue admins","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["idForInputBox","issue-admins","ariaLabel","Issue admins email list",3,"users","accessLevel","usersChange","isValid"],["aria-label","Edit issues",1,"edit-field"],["for","component-acl-view-comment-issues",1,"help-label"],["class","help-container",4,"ngIf"],["idForInputBox","component-acl-view-comment-issues","ariaLabel","Edit access email list",3,"users","accessLevel","containerChips",
"includeAliases","usersChange","isValid"],["aria-label","Comment on issues",1,"edit-field"],["for","component-acl-view-edit-issues"],["idForInputBox","component-acl-view-edit-issues","ariaLabel","comment access email list",3,"users","accessLevel","containerChips","includeAliases","usersChange","isValid"],["aria-label","View restricted+ content",1,"edit-field"],["for","component-acl-restricted-plus-reader"],["target","_blank","aria-label","Learn more about viewing restricted+ content","class","keep-underline keep-focus-ring",
3,"href",4,"ngIf"],["idForInputBox","component-acl-restricted-plus-reader","ariaLabel","Restricted+ content view access email list",3,"users","accessLevel","customValidators","usersChange","isValid"],["aria-label","View restricted content",1,"edit-field"],["for","component-acl-restricted-reader"],["target","_blank","aria-label","Learn more about viewing restricted content","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["idForInputBox","component-acl-restricted-reader","ariaLabel","Restricted content view access email list",
3,"users","accessLevel","containerChips","usersChange","isValid"],["aria-label","View issues",1,"edit-field"],["for","component-acl-view-issues"],["idForInputBox","component-acl-view-issues","ariaLabel","Issues view access email list",3,"users","accessLevel","containerChips","includeAliases","includeViewAliases","usersChange","isValid"],["aria-label","View Component (Auto-populated)",1,"edit-field","bv2-edit-resource-readonly"],["for","component-acl-view-component"],["idForInputBox","component-acl-view-component",
"ariaLabel","Component view access email list",3,"users","accessLevel","usersChange","isValid"],[1,"edit-field","permission-toggle"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"checked","disabled","change"],["id","expanded-access-help",1,"edit-field-help"],["target","_blank","aria-label","Learn more about expanded access","aria-describedby","expanded-access-help",1,"keep-underline","keep-focus-ring",3,"href"],["format","hairline",3,"onAction",4,"ngIf"],[1,"component-banner"],
[1,"component-visibility-settings"],[1,"component-visibility-header"],[1,"access-level-panel"],[1,"access-level-field"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for","access-level-external-partner"],[1,"access-level-field",
"bv2-edit-resource-readonly"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for","access-level-public"],[1,"access-level-warning"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-external-partner",
"name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange"],["target","_blank","aria-label","Learn more about issue admins",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label","Learn more about viewing restricted+ content",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label",
"Learn more about viewing restricted content",1,"keep-underline","keep-focus-ring",3,"href"],["format","hairline",3,"onAction"],["mat-dialog-title",""],[1,"b-archive-component-list"],[4,"ngFor","ngForOf"],["mat-flat-button","","mat-dialog-close","","aria-label","Click to archive the component","color","primary",3,"click"],["mat-button","","mat-dialog-close","","aria-label","Click to close the dialog without archiving the component",3,"click"],["aria-label","Learn more about archiving components",
"target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["aria-label","Learn more about buganizer retention","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"b-archive-warning-indef",4,"ngIf"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"b-button",3),K("onAction",function(){return b.back()}),J(4,"b-icon",4),H(),O(5,mdb,5,3,"ng-container",5),H()()(),G(6,"div",6),O(7,ndb,2,0,"div",7),O(8,Eeb,32,20,"div",5),H(),O(9,Ieb,13,3,"ng-template",null,8,gg));
a&2&&(B(5),D("ngIf",b.component),B(2),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&b.component&&b.component.componentId))},dependencies:[yO,wx,sx,Cx,TS,sT,bT,F3,M3,R3,iY,kZ,L4,iy,Fg,ky,by,cy,sy,hy,fy,tQ,iZ,uH,pB,qB,LO,IB,JB,KB,LB,LE,tA,FT,eX,cX,$E,YY,vQ,A_,E9,y_,mN,EV,M9,qT,Fx,Hx],styles:[".mat-form-field[_ngcontent-%COMP%]{width:500px}b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}div.edit-field.less-margin[_ngcontent-%COMP%]{margin:8px 0}.metadata[_ngcontent-%COMP%]{margin:10px 0}.metadata[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:16px;height:16px}.lock-state[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.component-slo-id-select[_ngcontent-%COMP%], .component-slo-justification-text[_ngcontent-%COMP%], .indented[_ngcontent-%COMP%], div.slo-breadcrumbs[_ngcontent-%COMP%]{margin-left:24px}.component-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}button.slo-inheritance-path[_ngcontent-%COMP%]{margin-left:30px}div.slo-breadcrumbs[_ngcontent-%COMP%]{padding:4px}\n/*# sourceMappingURL=manage_component.css.map */"]});
var pfb=function(a){return{value:a}},xrc={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping"},O9=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N){BI.call(this);var L=this;this.activeSession=a;this.accessPolicyApi=b;this.appHistory=c;this.butterBar=d;this.checkBeforeExit=e;this.componentActions=f;this.errorHandler=h;this.location=k;this.pageTitle=q;this.routeParams=w;this.teamsService=y;this.userAccess=E;this.sloApi=I;this.sloService=N;this.originalSloLock=!1;this.canEditSloLock=!0;this.sloJustification$=new T.BehaviorSubject("");
this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new T.ReplaySubject(1);this.teamSlo$=this.team$.pipe(C(function(Y){return Y.getSlo()}));this.teamAdmins$=(0,T.from)(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(C(function(Y){return Y.admins.filter(Ik).map(In)}));this.teamLeads$=this.team$.pipe(C(function(Y){return Y.getMembersList().filter(function(ka){return W(ka,2)}).map(function(ka){var ha,
ya;return"2:"+(null!=(ya=null==(ha=ka.getUser())?void 0:ha.getEmailAddress())?ya:"")})}));this.adminsAndLeads$=(0,T.combineLatest)([this.teamAdmins$,this.teamLeads$]).pipe(C(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;var ha=new Set(Y);ka=ka.filter(function(ya){return!ha.has(ya)});return[].concat(u(Y),u(ka))}));this.associatedComponents$=(0,T.from)(this.componentActions.search("directteamid:"+this.teamId));this.teamPath$=this.team$.pipe(C(function(Y){var ka=Y.getPathNamesList();return Y.getPathIdsList().map(function(ha,
ya){return{id:ha,name:ka[ya]}})}));this.isRootTeam$=this.teamPath$.pipe(C(function(Y){return 1>=Y.length?!0:!1}));this.parentTeam$=(0,T.combineLatest)([this.isRootTeam$,this.teamPath$]).pipe(Xe(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;return Y?(0,T.of)(null):L.teamsService.getTeam(""+ka[ka.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(Xe(function(Y){var ka,ha=null==Y?void 0:null==(ka=Y.getSlo())?void 0:ka.getSloId();return ha&&"0"!==ha?L.sloService.get(ha).then(function(ya){return{id:ha,
link:un(ha),slo:ya}}):(0,T.of)({id:"0"})}));this.sloPolicySource$=(0,T.combineLatest)([this.parentTeam$,this.teamPath$]).pipe(C(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;var ha,ya=null==Y?void 0:null==(ha=Y.getSlo())?void 0:ha.getSourceTeamId();ha=ka.find(function(Ha){return""+Ha.id===ya});return ya&&ha?{name:ha.name,link:{path:"/teams/"+ya+"/edit",fragment:"slo"}}:null}));this.Tab=xrc;this.enableSloLockingUi=rH(this.activeSession,"enableSloLockingUi");this.isSloInheritEnabled$=
new T.BehaviorSubject(!0);this.sloId$=new T.BehaviorSubject("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new T.BehaviorSubject(!1);this.hasSloReadAccess$=this.sloId$.pipe(Xe(function(Y){return DK(L.userAccess,"reader","slos/"+Y)}),We(!1));this.sloPickerLink$=(0,T.combineLatest)([this.sloId$,this.hasSloReadAccess$]).pipe(C(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;return Y&&0<Number(Y)&&ka?un(Y):null}));this.hasUnsavedChanges$=(0,T.combineLatest)([this.team$,this.sloId$,
this.isSloInheritEnabled$,this.sloLocked$,this.sloJustification$]).pipe(C(function(Y){var ka=r(Y),ha=ka.next().value;Y=ka.next().value;var ya=ka.next().value,Ha=ka.next().value;ka=ka.next().value;ha=ha.getSlo();return ha.getInherit()!==ya||ha.getSloId()!==Y||Ha!==L.originalSloLock||ha.getComment()!==ka}));this.hasEditAccess=!1;this.pageTitle.setTitle("Team Overview");this.team$.pipe(Ye(this.destroyed$)).subscribe(function(Y){L.pageTitle.setTitle("Team: "+Y.getName())});a=rH(this.activeSession,"enableSloLockingCheck")?
"teams/"+this.teamId+"/slo":"teams/"+this.teamId;DK(this.userAccess,"writer",a).then(function(Y){L.hasEditAccess=Y});this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(C(function(Y){return Y.values().next().value}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:rY}).pipe(C(Eqa));var S=Oj(this.hasUnsavedChanges$.pipe(Ye(this.destroyed$)),!1);this.subscriptions.add(cZ(this.checkBeforeExit,function(){return S.getValue()},
!1))};U(O9,BI);O9.\u0275dir=BI.\u0275dir;
O9.prototype.ngOnInit=function(){var a=this,b,c,d;return me(function(e){if(1==e.nextAddress)return b=a.location.hash(),"basic"===b?a.selectedTabIndex=0:"slo"===b?a.selectedTabIndex=1:"componentMapping"===b&&(a.selectedTabIndex=2),ne(e,(0,T.firstValueFrom)(a.teamsService.getTeam(a.teamId)),2);if(3!=e.nextAddress)return c=e.yieldResult,"0"===c.getTeamId()?QK(a.butterBar,"Unable to fetch team ID '"+a.teamId+"'"):a.team$.next(c),a.error="",ifb(a),a.enableSloLockingUi&&jfb(a),d=a,ne(e,(0,T.firstValueFrom)(a.parentTeam$),
3);d.parentTeam=e.yieldResult;oe(e)})};O9.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};O9.prototype.onSloChange=function(a){a&&(this.sloId=a.getSloId())};
var hfb=function(a){a.validate()&&(PK(a.butterBar,"Saving changes...",0),a.sloLocked!==a.originalSloLock?u3b(a.sloApi,a.teamId,a.sloLocked).pipe(Ye(a.destroyed$)).subscribe(function(){a.originalSloLock=a.sloLocked;yrc(a)},function(b){a.errorHandler.errorHandler(null,b)}):yrc(a))};O9.prototype.validate=function(){if(!this.isSloInheritEnabled&&""===this.sloJustification$.getValue())return this.error="Justification is required",!1;this.error="";return!0};
var yrc=function(a){var b=(new zt).setSloId(a.sloId).setInherit(a.isSloInheritEnabled);a.isSloInheritEnabled||b.setComment(a.sloJustification$.getValue());aKb(a.teamsService,a.teamId,b).pipe(Ye(a.destroyed$)).subscribe(function(c){a.team$.next(c);PK(a.butterBar,"Save complete.")},function(c){a.errorHandler.errorHandler(null,c)})},ifb=function(a){(0,T.firstValueFrom)(a.teamSlo$).then(function(b){a.sloId=b.getSloId();a.isSloInheritEnabled=b.getInherit();a.sloJustification$.next(b.getComment())})},jfb=
function(a){(0,T.firstValueFrom)(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})};O9.prototype.back=function(){X_(this.appHistory)};
ki.Object.defineProperties(O9.prototype,{isSloInheritEnabled:{configurable:!0,enumerable:!0,set:function(a){a!==this.isSloInheritEnabled$.getValue()&&this.isSloInheritEnabled$.next(a)},get:function(){return this.isSloInheritEnabled$.getValue()}},sloId:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloId$.getValue()&&(this.sloId$.next(a),this.enableSloChecked="0"!==a)},get:function(){return this.sloId$.getValue()}},enableSloChecked:{configurable:!0,enumerable:!0,set:function(a){a!==this.enableSloCheckedInternal&&
(this.enableSloCheckedInternal=a,a||(this.sloId="0"))},get:function(){return this.enableSloCheckedInternal}},sloLocked:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloLocked$.getValue()&&this.sloLocked$.next(a)},get:function(){return this.sloLocked$.getValue()}}});O9.\u0275fac=function(a){return new (a||O9)(F(pH),F(iO),F(W_),F(OK),F(dZ),F(AT),F(SK),F(cL),F(hO),F(bS),F(lM),F(CK),F(uY),F(vY))};
O9.\u0275cmp=v({type:O9,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&Zf(cX,5,nd);if(a&2){var c;Yf(c=ag())&&(b.tabs=c)}},features:[gf],decls:8,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","aria-label","Go back","color","primary","ngClass","large","matTooltip","Go back",1,"gmat-button",3,"click"],["svgIcon","arrow-backward",1,"icon-m"],["cdkScrollable","",1,"bv2-view"],[4,"ngIf"],[1,"edit-resource-header"],["target","_blank",
3,"href"],["svgIcon","pop-out",1,"icon-s"],["class","team-hierarchy-container",4,"ngIf"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["label","Basic Information",3,"id"],[1,"edit-resource-panel"],[1,"edit-field"],[1,"field-label"],[1,"edit-field-header"],[1,"description"],[4,"ngIf","ngIfElse"],["emptyDescription",""],[1,"field-label-with-help"],[1,"help-label"],[1,"help-container"],[1,"help-bubble","jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],[1,
"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],["label","Team SLO",3,"id"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],["class","slo-policy-link",4,"ngIf"],[1,"slo-policy-source-link"],["class","slo-inheritance-link",3,"routerLinkObj",4,"ngIf","ngIfElse"],["noPolicySource",""],[1,"lock-state"],[3,"error"],["class","edit-field",4,"ngIf"],["class","edit-button-row",4,"ngIf"],["label","Component mapping",3,"id"],[1,"team-hierarchy-container"],[3,"teamPath"],
[3,"users"],["childTeamsLinks",""],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"slo-policy-link"],[3,"routerLinkObj",4,"ngIf","ngIfElse"],["noInheritedSlo",""],[3,"routerLinkObj"],[1,"slo-inheritance-link",3,"routerLinkObj"],["unlocked",""],["svgIcon","lock-outline"],["svgIcon","lock-open"],["class","edit-field less-margin",4,"ngIf"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"override-slo",3,"disabled","checked","change"],["class","edit-field slo-justification",4,"ngIf"],["name","slo-enable",
"labelPosition","before",1,"slo-enable",3,"ngModel","disabled","ngModelChange","change"],[1,"team-slo-id-select",3,"boundId","bv2Disabled","bv2Placeholder","onSloSelect"],["mat-icon-button","","class","gmat-button small slo-link","matTooltip","Go to SLO management page",3,"routerLinkObj","target",4,"ngIf"],[1,"edit-field","slo-justification"],["id","team-slo-justification-label",1,"required"],["svgIcon","help-outline",1,"icon-s","valign-middle",3,"matTooltip"],["aria-labelledby","team-slo-justification-label",
"required","",1,"slo-justification-text",3,"ngModel","disabled","ngModelChange"],["mat-icon-button","","matTooltip","Go to SLO management page",1,"gmat-button","small","slo-link",3,"routerLinkObj","target"],["gmat-checkbox","",1,"slo-lock",3,"checked","disabled","change"],[1,"edit-button-row"],[1,"edit-button-group"],["gmat-button","","mat-flat-button","","color","primary",3,"disabled","click"],["gmat-button","","mat-stroked-button","","color","primary",3,"disabled","click"],["associatedComponentLinks",
""]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),K("click",function(){return b.back()}),J(4,"mat-icon",4),H()()()(),G(5,"div",5),O(6,qfb,85,38,"ng-container",6),Q(7,"async"),H());a&2&&(B(6),D("ngIf",R(7,1,b.team$)))},dependencies:[vx,wx,sx,kZ,Fg,by,sy,hy,tQ,iZ,pB,qB,LO,LE,eX,cX,$E,tA,FT,YY,QI,qT,y_,j_,Fx],styles:[".description[_ngcontent-%COMP%]{white-space:pre-wrap}button[_ngcontent-%COMP%]{height:32px;line-height:32px}button.mat-icon-button.large[_ngcontent-%COMP%]{height:36px;line-height:36px;width:36px}.team-hierarchy-container[_ngcontent-%COMP%]{margin-top:-5px;padding-bottom:32px;padding-left:20px}.metadata[_ngcontent-%COMP%]{margin:10px 0}.metadata[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:16px;height:16px}.lock-state[_ngcontent-%COMP%]{display:flex;align-items:center}.team-slo-id-select[_ngcontent-%COMP%]{display:inline-block;width:450px}label[_ngcontent-%COMP%]{display:inline-block;line-height:2.2em}label[_ngcontent-%COMP%]   .edit-field-header[_ngcontent-%COMP%]{font-weight:bold}textarea.slo-justification-text[_ngcontent-%COMP%]{height:3em}div.edit-field.less-margin[_ngcontent-%COMP%]{margin:8px 0}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{line-height:1.2}.indented[_ngcontent-%COMP%], .slo-justification[_ngcontent-%COMP%], .team-slo-id-select[_ngcontent-%COMP%]{margin-left:24px}.team-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}\n/*# sourceMappingURL=manage_team.css.map */"]});
var sfb=function(a){return{feature:a}},P9=function(a){this.beapService=a;this.beapFeaturesTF$=Whc(this.beapService,"TEAM_FOOD");this.beapFeaturesEA$=Whc(this.beapService,"EARLY_ACCESS");this.hasFeatures$=(0,T.combineLatest)([this.beapFeaturesTF$,this.beapFeaturesEA$]).pipe(C(function(b){var c=r(b);b=c.next().value;c=c.next().value;return 0<b.length+c.length}));this.hasFeaturesTF$=this.beapFeaturesTF$.pipe(C(function(b){return 0<b.length}));this.hasFeaturesEA$=this.beapFeaturesEA$.pipe(C(function(b){return 0<
b.length}));this.linkClicked={}},Cfb=function(a,b){return!!a.linkClicked[b]};P9.\u0275fac=function(a){return new (a||P9)(F(Z2))};
P9.\u0275cmp=v({type:P9,selectors:[["b-beap-settings"]],decls:6,vars:4,consts:[[4,"ngIf","ngIfElse"],["featureEmptyState",""],["featureStageContainer",""],["class","feature-stage-container",4,"ngIf"],[1,"feature-stage-container"],[1,"feature-stage-title"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"feature-empty-state-message"],[1,"feature-container"],[1,"feature-container-row"],[1,"feature-toggle-col"],[3,"checked","matTooltip","disabled"],[1,"feature-desc-col"],[1,
"feature-title"],[1,"feature-desc"],["mat-button","","color","primary","class","small no-visited-no-active","target","_blank",4,"ngIf"],[1,"feature-action-bar"],["mat-button","","color","primary","target","_blank",1,"small","no-visited-no-active",3,"click"],["svgIcon","pop-out",1,"icon-s"],["messageType","info",4,"ngIf"],[1,"feature-badge-col"],[3,"experimentId"],["mat-button","","color","primary","target","_blank",1,"small","no-visited-no-active"],["messageType","info"]],template:function(a,b){a&
1&&(O(0,yfb,5,6,"ng-container",0),Q(1,"async"),O(2,zfb,2,0,"ng-template",null,1,gg),O(4,Dfb,20,16,"ng-template",null,2,gg));if(a&2){var c=Hf(3);D("ngIf",R(1,2,b.hasFeatures$))("ngIfElse",c)}},dependencies:function(){return[b3,jI,kI,wx,sx,Cx,qB,LE,FT,$E,Fx,Q9]},styles:['.feature-stage-container[_ngcontent-%COMP%]{padding-bottom:28px}.feature-stage-container[_ngcontent-%COMP%]   .feature-stage-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.6875rem;line-height:1.2307692308;margin-bottom:20px;margin-top:25px}.feature-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:21px}.feature-container[_ngcontent-%COMP%]   .feature-container-row[_ngcontent-%COMP%]{display:flex;flex:1;align-items:flex-start}.feature-container[_ngcontent-%COMP%]   .feature-badge-col[_ngcontent-%COMP%]{flex-shrink:0;min-width:75px}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]{flex:0 0 500px;display:flex;flex-direction:column;align-items:flex-start}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]   .feature-desc[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#5f6368;color:var(--text-muted)}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]   .feature-desc[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846}.feature-container[_ngcontent-%COMP%]   .feature-toggle-col[_ngcontent-%COMP%]{flex-shrink:0;min-width:75px}.feature-container[_ngcontent-%COMP%]   .feature-action-bar[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:10px}.feature-container[_ngcontent-%COMP%]   .feature-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:400;margin-bottom:9px}.feature-container[_ngcontent-%COMP%]   b-callout[_ngcontent-%COMP%]{margin-top:10px;width:100%}.feature-empty-state-message[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0em;font-weight:400;margin-top:45px}\n/*# sourceMappingURL=beap_settings.css.map */'],
changeDetection:0});var Q9=function(){};Q9.prototype.transform=function(a){return 2===a?!0:!1};Q9.\u0275fac=function(a){return new (a||Q9)};Q9.\u0275pipe=tc({name:"featureState",type:Q9,pure:!0});
var zrc=function(){this.name="Assigned issues";this.resourceType=null;this.hasOptions=!1;this.options=[]};zrc.prototype.shouldDisplay=function(){return!0};zrc.prototype.getDefaultOptionId=function(){return null};var R9=function(a,b){this.name=a;this.resourceType=b;this.hasOptions=!0;this.options=[]};R9.prototype.shouldDisplay=function(){return 0<this.options.length};R9.prototype.getDefaultOptionId=function(){return this.options[0].id};
var Arc=function(a,b){this.id=a;this.name=b},Crc=function(a,b,c,d,e){var f=this;this.butterBar=a;this.sidebar=b;this.userPreferencesManager=c;this.cdr=d;this.appEvents=e;this.selectedOptionId=null;this.subscriptions=new T.Subscription;this.hotlistMainOption=new R9("Hotlist","HOTLIST");this.savedSearchMainOption=new R9("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=new R9("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[new zrc,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption];
a={};this.resourceMainOptions=(a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];Brc(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){Brc(f);f.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(h){h.homepagePreferences&&(h=h.homepagePreferences,h.resourceType?(f.selectedMainOption=f.resourceMainOptions[h.resourceType]||
f.mainOptions[0],f.selectedOptionId=h.resourceId||null,Brc(f)):(f.selectedMainOption=f.mainOptions[0],f.selectedOptionId=null))}))};Crc.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var Hfb=function(a){PK(a.butterBar,"Saving preferences...",0);(null==a.selectedMainOption.resourceType||null==a.selectedOptionId?a.userPreferencesManager.clearHomepagePreferences():PCb(a.userPreferencesManager,{resourceType:a.selectedMainOption.resourceType,resourceId:a.selectedOptionId})).subscribe(function(){PK(a.butterBar,"Preferences saved.",4E3)})},Brc=function(a){var b=function(c){return new Arc(String(c.id),c.name)};a.hotlistMainOption.options=a.sidebar.userHotlists_.map(b);a.savedSearchMainOption.options=
a.sidebar.userSavedSearches_.map(b);a.bookmarkGroupMainOption.options=a.sidebar.sidebarData.bookmarkGroups.map(b);a.selectedOptionId&&(a.selectedMainOption.options.find(function(c){return c.id===a.selectedOptionId})||a.selectedMainOption.options.push(new Arc(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};
var Drc=aj[3],S9=function(a,b,c,d,e,f,h,k,q){BI.call(this);this.cdr=a;this.userPreferencesManager=b;this.butterBar=c;this.activeSession=d;this.documentationLinks=e;this.analytics=f;this.sidebar=k;this.appEvents=q;this.dateFormats=[{value:"MMM d, yyyy",label:"Dec 31, 2015"},{value:"EE MMM dd, yyyy",label:"Thu Dec 31, 2015"},{value:"yyyy-MM-dd",label:"2015-12-31"},{value:"MM/dd/yyyy",label:"12/31/2015"},{value:"dd-MM-yyyy",label:"31-12-2015"},{value:"dd.MM.yyyy",label:"31.12.2015"}];this.timeFormats=
[{value:"hh:mma",label:"01:00PM"},{value:"h:mma",label:"1:00PM"},{value:"HH:mm",label:"13:00"},{value:"HH:mm:ss",label:"13:00:01"}];this.timeZones=[];this.appName=d.getAppName();this.timeZones.push.apply(this.timeZones,u(h.supportedTimeZones.map(function(w){return{value:w.id,label:w.name}})));this.sloEnabled=d.isInternalSession();this.showBugScreensaverSetting=d.isInternalSession()};U(S9,BI);S9.\u0275dir=BI.\u0275dir;
S9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;null==(b=a.preferredHomepage)||b.destroy()});this.preferredHomepage=new Crc(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(Ye(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
S9.prototype.save=function(a,b,c){var d=this;PK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){PK(d.butterBar,"Preferences saved.",4E3)});bo(this.analytics,"preferences",a,b,c)};var Erc=function(a){var b;return(null==(b=a.userPreferences.textDisplayPreferences)?void 0:b.commentDisplayOverride)===Drc};S9.\u0275fac=function(a){return new (a||S9)(F(uI,2),F(zI),F(OK),F(pH),F(tP),F(SM),F(ZH),F(cN),F(WK))};
S9.\u0275cmp=v({type:S9,selectors:[["b-general-settings"]],features:[Lf([uI]),gf],decls:67,vars:14,consts:[[1,"bv2-settings-container"],[1,"bv2-settings-group"],[1,"bv2-settings-group-title"],[1,"muted","type-xs"],["target","_blank",3,"href"],[1,"bv2-settings-group-content"],[1,"bv2-settings-item"],["for","bv2-homepage-pref-selection","matTooltip","Current selection for preferred homepage"],["appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["id","bv2-homepage-pref-selection",
3,"ngModel","ngModelChange","selectionChange"],[4,"ngFor","ngForOf"],["appearance","standard","class","bv2-settings-item-setter bv2-settings-item-select",4,"ngIf"],["for","bv2-datetime-pref-date-formatting","matTooltip","Date/time formatting - Use this format for calendar dates."],["id","bv2-datetime-pref-date-formatting","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["for","bv2-datetime-pref-time-formatting",
"matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-time-formatting","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-datetime-pref-timezone","matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-datetime-pref-timezone","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-enable-all-hotkeys","matTooltip","Enable all hotkeys?"],
["aria-label","Enable all hotkeys","id","bv2-enable-all-hotkeys",1,"bv2-settings-item-setter",3,"model","modelChange"],["for","bv2-force-plain-text","matTooltip","Force all comments to display in plain text mode."],["id","bv2-force-plain-text","aria-label","Force comments to display as plain text",3,"model","modelChange"],["for","bv2-force-code-font"],["id","bv2-force-code-font"],[4,"ngIf"],["class","bv2-settings-preferred-homepage-main-option-select-item",3,"value",4,"ngIf"],[1,"bv2-settings-preferred-homepage-main-option-select-item",
3,"value"],["id","bv2-homepage-pref-suboption-selection",1,"homepage-option-select",3,"ngModel","ngModelChange","selectionChange"],["class","bv2-settings-preferred-homepage-option-select-item",3,"value",4,"ngFor","ngForOf"],[1,"bv2-settings-preferred-homepage-option-select-item",3,"value"],[3,"value"],["for","bv2-bug-screensaver","matTooltip","Bugs animate after 3 minutes of inactivity."],["id","bv2-bug-screensaver","aria-label","enable bug screensaver",3,"model","modelChange"]],template:function(a,
b){a&1&&(G(0,"div",0)(1,"div",1)(2,"div",2),P(3," Preferred homepage "),G(4,"p",3),P(5," See your preferred homepage selection. "),G(6,"a",4),P(7," Learn more "),H()()(),G(8,"div",5)(9,"div",6)(10,"label",7),P(11," Current selection "),H(),G(12,"mat-form-field",8)(13,"mat-select",9),K("ngModelChange",function(c){return b.preferredHomepage.selectedMainOption=c})("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();Hfb(c);c.cdr.detectChanges()}),
O(14,Ffb,2,1,"ng-container",10),H()(),O(15,Ifb,3,2,"mat-form-field",11),H()()(),J(16,"hr"),G(17,"div",1)(18,"div",2),P(19," Date/time formatting settings "),G(20,"p",3),P(21," Select how you want dates and times to be formatted. "),G(22,"a",4),P(23," Learn more "),H()()(),G(24,"div",5)(25,"div",6)(26,"label",12),P(27," Dates "),H(),G(28,"mat-form-field",13)(29,"mat-select",14),K("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.calendarFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),
O(30,Jfb,2,2,"mat-option",15),H()()(),G(31,"div",6)(32,"label",16),P(33," Times "),H(),G(34,"mat-form-field",17)(35,"mat-select",14),K("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),O(36,Kfb,2,2,"mat-option",15),H()()(),G(37,"div",6)(38,"label",18),P(39," Time Zones "),H(),G(40,"mat-form-field",19)(41,"mat-select",14),K("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeZone=
c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),O(42,Lfb,2,2,"mat-option",15),H()()()(),J(43,"hr"),G(44,"div",1)(45,"div",2),P(46," Keyboard settings "),H(),G(47,"div",5)(48,"div",6)(49,"label",20),P(50," Enable all hotkeys? "),H(),G(51,"b-slide-toggle",21),K("modelChange",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c;return b.save("saveKeyboardPreferences")}),H()()()(),G(52,"div"),J(53,"hr"),G(54,"div",1)(55,"div",2),P(56," Display settings "),H(),
G(57,"div",5)(58,"div",6)(59,"label",22),P(60," Force comments to display as plain text? "),H(),G(61,"b-slide-toggle",23),K("modelChange",function(c){b.userPreferences.textDisplayPreferences&&(b.userPreferences.textDisplayPreferences.commentDisplayOverride=c?Drc:void 0,b.save("saveTextDisplayPreferences.commentDisplayOverride"))}),H()(),G(62,"div",6)(63,"label",24),P(64," Force comments to display with code font? "),H(),J(65,"b-toggle-code-font",25),H()()()(),O(66,Mfb,10,1,"div",26),H()());a&2&&(B(6),
D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Kd),B(7),D("ngModel",b.preferredHomepage.selectedMainOption),B(1),D("ngForOf",b.preferredHomepage.mainOptions),B(1),D("ngIf",b.preferredHomepage.selectedMainOption.hasOptions),B(7),D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",Kd),B(7),D("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(1),D("ngForOf",b.dateFormats),B(5),D("ngModel",b.userPreferences.dateTimePreferences.timeFormat),
B(1),D("ngForOf",b.timeFormats),B(5),D("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(1),D("ngForOf",b.timeZones),B(9),D("model",b.userPreferences.keyboardPreferences.enableAllHotkeys),B(10),D("model",Erc(b)),B(5),D("ngIf",b.showBugScreensaverSetting))},dependencies:[wx,sx,by,hy,XB,YS,lB,$E,IT,i9],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-color:#dadce0;border-color:var(--divider);clear:both}.bv2-settings-group[_ngcontent-%COMP%]{clear:both;padding-top:10px}.bv2-settings-group-title[_ngcontent-%COMP%]{float:left;font-weight:bold;width:150px;padding-bottom:4px}.bv2-settings-group-content[_ngcontent-%COMP%]{margin-left:200px}.bv2-settings-item[_ngcontent-%COMP%]{margin-bottom:18px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-setter[_ngcontent-%COMP%]{float:right}.bv2-settings-item[_ngcontent-%COMP%]   b-slide-toggle[_ngcontent-%COMP%], .bv2-settings-item[_ngcontent-%COMP%]   b-toggle-code-font[_ngcontent-%COMP%]{float:right;margin-top:-3px}.bv2-settings-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-right:20px}.bv2-settings-item[_ngcontent-%COMP%]   .homepage-option-select[_ngcontent-%COMP%]{margin-top:12px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]{display:block;float:right;width:60%}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]    {line-height:1.125rem}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-flex{padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-infix{border-top:none;padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-underline{position:relative;bottom:0}\n/*# sourceMappingURL=settings_groups.css.map */"]});
var T9=function(a,b,c,d){BI.call(this);var e=this;this.userPreferencesManager=a;this.butterBar=b;this.documentationLinks=c;this.analytics=d;this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(Ye(this.destroyed$)).subscribe(function(f){e.userPreferences=f})};U(T9,BI);T9.\u0275dir=BI.\u0275dir;
T9.prototype.save=function(a,b,c){var d=this;PK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){PK(d.butterBar,"Preferences saved.",4E3)});bo(this.analytics,"preferences",a,b,c)};T9.\u0275fac=function(a){return new (a||T9)(F(zI),F(OK),F(tP),F(SM))};
T9.\u0275cmp=v({type:T9,selectors:[["b-notification-settings"]],features:[gf],decls:42,vars:12,consts:[[1,"bv2-settings-group"],[1,"bv2-settings-group-title"],[1,"muted","type-xs"],["target","_blank",3,"href"],[1,"bv2-settings-group-content"],[1,"bv2-settings-item"],["for","bv2-notification-pref-assigned","matTooltip","Notification level - issues for which you are the assignee"],["appearance","standard","id","bv2-notification-pref-assigned",1,"bv2-settings-item-setter","bv2-settings-item-select"],
[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["for","bv2-notification-pref-reported","matTooltip","Notification level - issues for which you are the reporter"],["appearance","standard","id","bv2-notification-pref-reported",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-notification-pref-verified","matTooltip","Notification level - issues for which you are the verifier"],["appearance","standard","id","bv2-notification-pref-verified",1,"bv2-settings-item-setter",
"bv2-settings-item-select"],["for","bv2-notification-pref-ccd","matTooltip","Notification level - issues on which you are CC'd"],["appearance","standard","id","bv2-notification-pref-ccd",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-notification-pref-starred","matTooltip","Notification level - issues that you have starred"],["appearance","standard","id","bv2-notification-pref-starred",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-exclude-changes-by-me",
"matTooltip","Do not send me notifications of my own edits."],["aria-label","Exclude edits made by you","id","bv2-exclude-changes-by-me",1,"bv2-settings-item-setter",3,"model","modelChange"],[3,"value"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"div",1),P(2," Notification settings "),G(3,"p",2),P(4," Select the level of email you want to receive for each issue role. "),G(5,"a",3),P(6," Learn more "),H()()(),G(7,"div",4)(8,"div",5)(9,"label",6),P(10," Assignee "),H(),G(11,"mat-form-field",7)(12,
"mat-select",8),K("ngModelChange",function(c){return b.userPreferences.notificationPreferences.assignedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(13,Nfb,3,4,"mat-option",9),H()()(),G(14,"div",5)(15,"label",10),P(16," Reporter "),H(),G(17,"mat-form-field",11)(18,"mat-select",8),K("ngModelChange",function(c){return b.userPreferences.notificationPreferences.reportedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),
O(19,Ofb,3,4,"mat-option",9),H()()(),G(20,"div",5)(21,"label",12),P(22," Verifier "),H(),G(23,"mat-form-field",13)(24,"mat-select",8),K("ngModelChange",function(c){return b.userPreferences.notificationPreferences.verifiedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(25,Pfb,3,4,"mat-option",9),H()()(),G(26,"div",5)(27,"label",14),P(28," CC'd "),H(),G(29,"mat-form-field",15)(30,"mat-select",8),K("ngModelChange",function(c){return b.userPreferences.notificationPreferences.ccdPriority=
c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(31,Qfb,3,4,"mat-option",9),H()()(),G(32,"div",5)(33,"label",16),P(34," Starred "),H(),G(35,"mat-form-field",17)(36,"mat-select",8),K("ngModelChange",function(c){return b.userPreferences.notificationPreferences.starredPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(37,Rfb,3,4,"mat-option",9),H()()(),G(38,"div",5)(39,"label",18),P(40," Exclude edits made by you? "),H(),G(41,"b-slide-toggle",
19),K("modelChange",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c;return b.save("saveNotificationPreferences")}),H()()()());a&2&&(B(5),D("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Kd),B(7),D("ngModel",b.userPreferences.notificationPreferences.assignedPriority),B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),
B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(1),D("ngForOf",b.priorities),B(4),D("model",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[wx,by,hy,XB,YS,lB,$E,IT,yM],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-color:#dadce0;border-color:var(--divider);clear:both}.bv2-settings-group[_ngcontent-%COMP%]{clear:both;padding-top:10px}.bv2-settings-group-title[_ngcontent-%COMP%]{float:left;font-weight:bold;width:150px;padding-bottom:4px}.bv2-settings-group-content[_ngcontent-%COMP%]{margin-left:200px}.bv2-settings-item[_ngcontent-%COMP%]{margin-bottom:18px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-setter[_ngcontent-%COMP%]{float:right}.bv2-settings-item[_ngcontent-%COMP%]   b-slide-toggle[_ngcontent-%COMP%], .bv2-settings-item[_ngcontent-%COMP%]   b-toggle-code-font[_ngcontent-%COMP%]{float:right;margin-top:-3px}.bv2-settings-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-right:20px}.bv2-settings-item[_ngcontent-%COMP%]   .homepage-option-select[_ngcontent-%COMP%]{margin-top:12px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]{display:block;float:right;width:60%}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]    {line-height:1.125rem}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-flex{padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-infix{border-top:none;padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-underline{position:relative;bottom:0}\n/*# sourceMappingURL=settings_groups.css.map */"]});
var Frc=[[["","page-bar-left",""]],[["","page-bar-right",""]]],U9=function(){this.showRefresh=this.showBack=!0;this.backLabel="Go back";this.refreshLabel="Refresh";this.onBack=new Iw;this.onRefresh=new Iw};U9.\u0275fac=function(a){return new (a||U9)};
U9.\u0275cmp=v({type:U9,selectors:[["b-page-bar"]],inputs:{showBack:"showBack",showRefresh:"showRefresh",title:"title",backLabel:"backLabel",refreshLabel:"refreshLabel"},outputs:{onBack:"onBack",onRefresh:"onRefresh"},ngContentSelectors:["[page-bar-left]","[page-bar-right]"],decls:6,vars:3,consts:[["mat-icon-button","","color","primary",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"right"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["svgIcon","arrow-backward"],["svgIcon","refresh"]],
template:function(a,b){a&1&&(Cf(Frc),O(0,Sfb,2,1,"button",0),O(1,Tfb,2,1,"button",0),O(2,Ufb,2,1,"h2",1),Df(3),G(4,"div",2),Df(5,1),H());a&2&&(D("ngIf",b.showBack),B(1),D("ngIf",b.showRefresh),B(1),D("ngIf",b.title))},dependencies:[sx,pB,$E,LE],styles:["[_nghost-%COMP%]{display:flex;align-items:center}.right[_ngcontent-%COMP%]{margin-left:auto}[mat-icon-button][_ngcontent-%COMP%]{line-height:1rem}h2[_ngcontent-%COMP%]:first-child{margin-left:16px}\n/*# sourceMappingURL=page_bar.css.map */"]});
var V9=function(a,b,c,d){this.activeSession=a;this.location=b;this.routeParams=c;this.beapEnabled=rH(this.activeSession,"enableBeap");this.selectedTabIndex=0;d.setTitle("Settings")};V9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=Grc(this,this.routeParams.settingsTab)};V9.prototype.tabChange=function(a){var b,c,d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id;this.location.url(kta(d))};
var Grc=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.nativeElement.id===b});return 0>a?0:a};V9.\u0275fac=function(a){return new (a||V9)(F(pH),F(cL),F(bS),F(hO))};
V9.\u0275cmp=v({type:V9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&Zf(cX,5,nd);if(a&2){var c;Yf(c=ag())&&(b.tabs=c)}},decls:9,vars:4,consts:[["title","Settings",3,"showRefresh","showBack"],["gmat-tabs","",3,"selectedIndex","selectedIndexChange"],["label","General"],[1,"padded"],["label","Notifications","id","notifications"],["label","Early Access","id","early-access",4,"ngIf"],["label","Early Access","id","early-access"]],template:function(a,b){a&1&&(J(0,"b-page-bar",0),G(1,"mat-tab-group",
1),K("selectedIndexChange",function(c){return b.tabChange(c)}),G(2,"mat-tab",2)(3,"div",3),J(4,"b-general-settings"),H()(),G(5,"mat-tab",4)(6,"div",3),J(7,"b-notification-settings"),H()(),O(8,Vfb,3,0,"mat-tab",5),H());a&2&&(D("showRefresh",!1)("showBack",!1),B(1),D("selectedIndex",b.selectedTabIndex),B(7),D("ngIf",b.beapEnabled))},dependencies:[sx,iZ,eX,cX,U9,P9,S9,T9],styles:["mat-tab-group[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]{position:absolute;bottom:0;left:0;right:0;top:0}[_nghost-%COMP%]     b-general-settings .bv2-settings-container{display:inline-block;width:731px}[_nghost-%COMP%]     b-notification-settings .bv2-settings-group{width:fit-content}[_nghost-%COMP%]     b-notification-settings .bv2-settings-group-content, [_nghost-%COMP%]     b-general-settings .bv2-settings-group-content{margin-left:250px}\n/*# sourceMappingURL=settings.css.map */"],
changeDetection:0});
var W9=function(a,b,c,d,e,f,h,k,q){BI.call(this);this.cdr=a;this.routeParams=b;this.bLocation=c;this.pageTitle=d;this.userApi=e;this.bookmarkGroupsApi=f;this.paths=h;this.appEvents=q;this.isStarred=!1;this.bookmarkGroup=null;this.userEmail=k.getUserEmail()};U(W9,BI);W9.\u0275dir=BI.\u0275dir;g=W9.prototype;
g.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsOwner=Ll(c.ownerUser)===a.userEmail;a.pageTitle.setTitle(c.name);a.cdr.detectChanges()};this.bookmarkGroupsApi.get(this.routeParams.groupId).then(b);this.userApi.getFavorite("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(c){c&&a.bookmarkGroup&&c.bookmarkGroupId==a.bookmarkGroup.bookmarkGroupId&&
a.bookmarkGroupsApi.get(a.routeParams.groupId).then(b)}))};g.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.saveFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId,userLogin:this.userEmail}).then(b):this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b)};g.openEditBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
g.getUserEmail=function(){return this.userEmail};g.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsOwner};g.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return this.paths.viewHotlist(a.hotlistId);default:throw Error("Ue`"+a.resourceType);}};
g.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:throw Error("Ue`"+a.resourceType);}};W9.\u0275fac=function(a){return new (a||W9)(F(uI,2),F(bS),F(cL),F(hO),F(PJ),F(ZM),F(dL),F(pH),F(WK))};
W9.\u0275cmp=v({type:W9,selectors:[["view-bookmark-group-page"]],features:[Lf([uI]),gf],decls:5,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-view"],[4,"ngIf"],[1,"bv2-view-bookmark-group-title"],[1,"bv2-view-bookmark-group-header"],[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-view-bookmark-group-title-text"],["aria-label","Bookmark group settings","matTooltip","Bookmark group settings",
1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[1,"bv2-view-bookmark-group-description"],[1,"bv2-view-bookmark-group-hotlists"],[4,"ngFor","ngForOf"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"href","title"]],template:function(a,b){a&1&&(G(0,"h2",0),P(1),H(),J(2,"div",1),G(3,"div",2),O(4,Zfb,12,5,"div",3),H());a&2&&(B(1),If("View Bookmark Group ",null==b.bookmarkGroup?null:b.bookmarkGroup.name,""),B(2),nf("aria-busy",
!b.bookmarkGroup),B(1),D("ngIf",b.bookmarkGroup))},dependencies:[wx,sx,kN,$E],encapsulation:2});var X9=function(){};X9.\u0275fac=function(a){return new (a||X9)};X9.\u0275mod=rc({type:X9});X9.\u0275inj=fc({imports:[[Mx,WN,bH]]});
var Y9=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta,Aa,xa){t9.call(this,b,c,d,e,h,k,q,w,f,y,E,I,L,S,Y,ka,ha,ya,hb,Ha,Ja,ta,Aa,xa);this.ngZone=a;this.hotlists=N;this.hotkeys=Ka;this.pageTitle=Ma;this.userAccess=Lb;this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1;this.hotlistId=fb.hotlistId};U(Y9,t9);Y9.\u0275dir=t9.\u0275dir;
Y9.prototype.ngOnInit=function(){var a=this;t9.prototype.ngOnInit.call(this);this.subscriptions.add(gJ(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(u(this.BASE_HOTKEYS),[{keys:[Mj("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){Hrc(a,1)}},{keys:[Mj("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){Hrc(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
b.hotlistId==a.hotlistId&&"view-hotlist"!=b.origin&&Irc(a)}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));this.userApi.getFavorite("HOTLIST",this.hotlistId).then(function(){a.isStarred=!0}).catch(function(){});this.loadUserAccess(this.hotlistId)};Y9.prototype.ngDoCheck=function(){var a;if(this.hotlistName!==(null==(a=this.hotlist)?void 0:a.name)){var b;this.hotlistName=null==(b=this.hotlist)?void 0:b.name;this.pageTitle.setTitle(this.hotlistName)}};
Y9.prototype.loadUserAccess=function(a){var b=this;DK(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});DK(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
Y9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;RN(this.currentSearch,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):Irc(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var Irc=function(a){a.hotlistLoading=!0;a.isInitializing=!1;a.hotlist=null;var b=a.hotlistApi.get(a.hotlistId);b.then(function(c){a.hotlist=c}).catch(function(c){a.errorHandler.errorHandler(null,c);a.hotlist=null}).finally(function(){a.hotlistLoading=!1;a.ngZone.run(function(){a.cdr.detectChanges()})});return b};
Y9.prototype.doSearch=function(a){var b=this,c="priority type title assignee status issueId modifiedTime".split(" ").map(Ti),d="hotlistid:"+this.hotlistId,e=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,sortColumns:[],displayColumns:c,query:d},a.then(function(f){return{query:null,displayColumn:f.displayColumn,sortOrder:f.sortOrder}}));a=e.searchPreferences.then(function(f){f=Fi(f);f.query=d;f.returnUrl=b.bLocation.url();f.hotlistId=b.hotlistId;return DKb(b.issuePagination,f)});a.then(function(f){fqc(b,
f)}).catch(function(f){"number"===typeof f?wZ(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return Fo({searchResultsPage:a,displayColumns:e.displayColumns}).then(function(f){f=f.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.sortPreferences=f.params.sortColumns||[];b.initColumns(e.displayColumns,Jrc(b)?Krc:Lrc);b.loadHotlists()}).catch(function(){})};var Jrc=function(a){return 0===a.sortPreferences.length||1===a.sortPreferences.length&&"POSITION"==a.sortPreferences[0].fieldId.type};
Y9.prototype.getCsvUrl=function(){return this.paths.hotlistIssuesCsvAction(this.hotlistId,this.sortPreferences,this.displayColumns,this.showHotlists)};
Y9.prototype.repositionIssue=function(a,b,c){var d=this;c=void 0===c?!1:c;!this.repositioning&&this.searchResults&&(this.repositioning=!0,this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"view-hotlist",function(){d.searchResults&&(d.searchResults=d.searchResults.clone())}).then(function(e){d.hotlist=e;bo(d.analytics,d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var Hrc=function(a,b){if(a.searchResults&&!a.repositioning&&Jrc(a)){var c,d,e=null!=(d=null==(c=a.resultsGrid)?void 0:c.focusedRowIndex)?d:void 0;if(null!=e&&(c=e+b,d=a.searchResults.issues.length,0<=c&&c<d)){if(1===b){var f;null==(f=a.resultsGrid)||f4b(f)}else if(-1===b){var h;null==(h=a.resultsGrid)||g4b(h)}a.repositionIssue(e,c,!0)}}};g=Y9.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=hva(b.displayColumn?b.displayColumn.map(function(e){return e.type.toLowerCase()}):[],c.map(function(e){return e.toString()}));b.displayColumn=c}if(c=this.urlPreferences.getSortColumns())b.sortOrder=c.map(function(e){return{direction:e.direction,field:e.fieldId}});PK(this.butterBar,"Saving changes to hotlist...");Mrc(this,b).then(function(e){PK(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');wZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});bo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){bo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");wZ(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};g.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
g.isEditable=function(){return null!=this.hotlist&&this.isAdmin};g.isDirectAdmin=function(){return this.hotlist?Ml(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();"position"==a||c&&"position"==c.field?t9.prototype.setSort.call(this,a,b,!1):t9.prototype.setSort.call(this,a,b)};
var Mrc=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;Nrc(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},Nrc=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
Y9.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=iC(this.hotlistId),c=function(){Nrc(a,b)};this.isStarred?this.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:b,userLogin:this.currentUserEmail}).then(c):this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:b}).then(c)};Y9.prototype.openEditHotlist=function(){this.bLocation.url(this.paths.editHotlist(this.hotlistId))};var Lrc=[SY,TY,UY,l4b],Krc=[SY,k4b,TY,UY,l4b];
Y9.\u0275fac=function(a){return new (a||Y9)(F(ef),F(uI),F($I),F(wM),F(cL),F(pH),F(RK),F(wK),F(PJ),F(pL),F(OK),F(SM),F(QN),F(PZ),F(VM),F(zI),F(vZ),F(BZ),F(dL),F(nI),F(OR),F(vP),F(fJ),F(hO),F(SK),F(bS),F(CK),F(WK),F(sL),F(yL))};
Y9.\u0275cmp=v({type:Y9,selectors:[["view-hotlist-page"]],features:[Lf([uI]),gf],decls:9,vars:11,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"grid","hotlistChoices","showHotlistButtons","currentHotlistId","isHotlistAdmin","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view","bv2-view-hotlist-grid"],["class","bv2-view-hotlist-title",4,"ngIf"],["class","bv2-view-loading",
4,"ngIf"],["class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-hotlist-title"],[3,"starMessage","unStarMessage","starred","starClicked","keydown.space","keydown.enter",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-view-hotlist-title-text"],["tabindex","-1",3,"bFocus",4,"ngIf"],[4,"ngIf"],["class","bv2-view-hotlist-save-form",4,"ngIf"],[3,"starMessage","unStarMessage","starred","starClicked","keydown.space",
"keydown.enter"],[3,"starMessage","unStarMessage","starred","disabled"],["tabindex","-1",3,"bFocus"],["role","heading","aria-level","3"],[3,"matTooltip"],["class","hotlist-archived",4,"ngIf"],[1,"button-container"],["aria-label","Hotlist settings","matTooltip","Hotlist settings",1,"bv2-edit-button","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences have changed",4,"ngIf"],[1,"hotlist-archived"],["matTooltip","Display preferences have changed"],[1,"bv2-view-hotlist-save-form"],
["type","button","mat-flat-button","","matTooltip","Save changes to display preferences",1,"gmat-button","medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences",1,"gmat-button","medium",3,"click"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onRowDragDrop",
"onNextPage","onPrevPage"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"b-grid-controls",1),K("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),H(),G(2,"div",2)(3,"b-pagination",3),K("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",
function(c){return hqc(b,c.option)}),H()()(),G(4,"div",4),O(5,jgb,9,7,"div",5),O(6,kgb,4,1,"div",6),O(7,lgb,2,2,"div",7),O(8,mgb,2,5,"div",8),H());a&2&&(B(1),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin),B(2),D("searchResults",b.searchResults),B(1),nf("aria-busy",b.isLoading),B(1),D("ngIf",!b.isInitializing),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&!b.hasResults()),B(1),D("ngIf",
!b.isLoading&&b.hasResults()))},dependencies:[XY,SZ,kN,QY,$E,sx,mN,l_,pB],encapsulation:2});var Z9=function(){};Z9.\u0275fac=function(a){return new (a||Z9)};Z9.\u0275mod=rc({type:Z9});Z9.\u0275inj=fc({imports:[[sZ,VZ,WN,OZ,bH,Mx,YN,m_,jG]]});
var $9=function(a,b,c,d,e,f,h,k,q,w,y,E,I,N,L,S,Y,ka,ha,ya,Ha,Ja,Ka,Ma,hb,fb,Lb,ta,Aa){t9.call(this,a,b,c,d,f,h,k,w,e,y,E,I,N,L,S,Y,ka,ha,Ma,ya,Ha,Lb,ta,Aa);this.savedSearchApi=q;this.hotkeys=Ja;this.pageTitle=Ka;this.userAccess=fb;this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1;this.savedSearchId=hb.savedSearchId};U($9,t9);$9.\u0275dir=t9.\u0275dir;g=$9.prototype;
g.ngOnInit=function(){var a=this;t9.prototype.ngOnInit.call(this);this.subscriptions.add(gJ(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&String(b.savedSearchId)==a.savedSearchId&&("delete"==b.action?(a.savedSearch=null,a.searchResults=null,a.currentSearch.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));
this.subscriptions.add(YLb(this.currentSearch,function(b){a.savedSearch?wZ(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.url(b));bo(a.analytics,"search","savedsearch-context")}));this.loadUserAccess(this.savedSearchId)};g.loadUserAccess=function(a){var b=this;DK(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.loadSavedSearch=function(){var a=this;this.savedSearch=null;var b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.savedSearch=c;a.pageTitle.setTitle(c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c);a.savedSearch=null}).finally(function(){a.cdr.detectChanges()});return b};
g.getIssues=function(){var a=this;RN(this.currentSearch,this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;var b=this.savedSearch?Promise.resolve(this.savedSearch):this.loadSavedSearch();return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:$pc(this)},a.then(function(d){return{query:d.query,sortOrder:d.sortOrder||null,displayColumn:d.displayColumn||null}}));var c=a.searchPreferences.then(function(d){if(!d.query)return Promise.reject(null);b.searchParams=d;RN(b.currentSearch,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Fi(d);d.returnUrl=b.bLocation.url();return DKb(b.issuePagination,
d)});c.then(function(d){fqc(b,d)}).catch(function(d){"number"===typeof d?wZ(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return Fo({searchResultsPage:c,displayColumns:a.displayColumns}).then(function(d){d=d.searchResultsPage;b.searchResults=d;b.page=d.params.page;b.sortPreferences=d.params.sortColumns||[];b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};g.isEditable=function(){return!!this.savedSearch&&this.isAdmin};
g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.searchParams.query,this.sortPreferences,this.displayColumns,this.showHotlists)};
g.save=function(){var a=this,b=this.urlPreferences.getDisplayColumns();b&&(this.savedSearch.displayColumn=b);if(b=this.urlPreferences.getSortColumns())this.savedSearch.sortOrder=b.map(function(c){return{direction:c.direction,field:c.fieldId}});this.savedSearch.query=this.urlPreferences.getQuery()||this.savedSearch.query;PK(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){PK(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;wZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});bo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){bo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");wZ(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
g.hasParamChanges=function(){return this.savedSearch&&this.isEditable()?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!=this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};g.openEditSavedSearch=function(){this.bLocation.url(this.paths.editSavedSearch(this.savedSearchId))};
$9.\u0275fac=function(a){return new (a||$9)(F(uI),F($I),F(wM),F(cL),F(pH),F(RK),F(wK),F(PJ),F(ON),F(pL),F(OK),F(SM),F(QN),F(VM),F(zI),F(vZ),F(BZ),F(dL),F(nI),F(OR),F(vP),F(fJ),F(hO),F(SK),F(bS),F(CK),F(WK),F(sL),F(yL))};
$9.\u0275cmp=v({type:$9,selectors:[["view-saved-search-page"]],features:[Lf([uI]),gf],decls:9,vars:7,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],["class","bv2-view-savedsearch-title-text",4,"ngIf"],["class","bv2-view-savedsearch-save-form",
4,"ngIf"],[4,"ngIf"],[1,"bv2-view-savedsearch-title-text"],["role","heading","aria-level","3",4,"ngIf"],["role","heading","aria-level","3"],[3,"matTooltip"],["aria-label","Saved search settings","matTooltip","Saved search settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences or search query have changed",4,"ngIf"],["matTooltip","Display preferences or search query have changed"],[1,"bv2-view-savedsearch-save-form"],["type","button","mat-flat-button",
"","matTooltip","Save changes to display preferences and search query",1,"gmat-button","medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences and search query",1,"gmat-button","medium",3,"click"],[1,"bv2-view-savedsearch-exit-link"],["matTooltip","Show this search with your default display preferences",3,"href","click"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",
4,"ngIf"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(G(0,"div",0)(1,"b-grid-controls",1),K("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",
function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),H(),G(2,"div",2)(3,"b-pagination",3),K("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return hqc(b,c.option)}),H()()(),G(4,"div",4)(5,"div",5),O(6,rgb,4,3,"div",6),O(7,sgb,8,1,"div",7),H(),O(8,xgb,4,3,"div",8),H());a&2&&(B(1),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),B(2),D("searchResults",b.searchResults),
B(1),nf("aria-busy",b.isLoading),B(2),D("ngIf",!b.isInitializing),B(1),D("ngIf",b.hasParamChanges()),B(1),D("ngIf",b.savedSearch))},dependencies:[XY,SZ,QY,sx,$E,mN,l_,pB],encapsulation:2});var a$=function(){};a$.\u0275fac=function(a){return new (a||a$)};a$.\u0275mod=rc({type:a$});a$.\u0275inj=fc({imports:[[sZ,VZ,OZ,Mx,bH,YN,m_,jG]]});
var Orc=zna(Xi().getUserPreferences()||new sj),Prc;if(bj(Orc)){var Qrc=[{path:"",pathMatch:"full",component:c9},{path:"dependencies",component:q7},{path:"dupes",component:E8},{path:"blocking",component:X6},{path:"resources",component:p9}],Rrc=Qrc.concat,Src,Trc={path:"todos",component:r9};Src=Zi("enableCodeMentionsUi")?[Trc]:[];Prc={path:"issues/:issueId",component:C8,children:Rrc.call(Qrc,u(Src))}}else Prc={path:"issues/:issueId",component:E6};
var Urc=[{path:"",component:P5,canActivateGuards:[U5]},{path:"issues",component:u9},{path:"recent",component:w9},{path:"issues/new",component:f6},Prc,{path:"components",component:k5},{path:"components/new",component:W5},{path:"components/:componentId/edit",component:N9},{path:"components/:componentId",component:N9},{path:"components/:componentId/manage",component:N9},{path:"teams/:teamId/edit",component:O9},{path:"teams/:teamId",component:O9},{path:"bookmark-groups/new",component:V5},{path:"bookmark-groups/:groupId",
component:W9},{path:"bookmark-groups/:groupId/edit",component:k6},{path:"hotlists/new",component:X5},{path:"hotlists/:hotlistId",component:Y9},{path:"hotlists/:hotlistId/edit",component:jZ},{path:"slos/new",component:g6},{path:"slos/:sloId",component:J6},{path:"slos/:sloId/edit",component:J6},{path:"savedsearches/:savedSearchId/edit",component:G6},{path:"hotlists",component:s9},{path:"slos",component:x9},{path:"savedsearches/:savedSearchId",component:$9},{path:"dashboard/:groupId",component:i6},{path:"settings/:settingsTab?",
component:V9},{path:"settings",component:V9},{path:"**",component:P5,canActivateGuards:[U5]}];
var Vrc=[N7,t7,u7],b$=function(){};[].concat(u(Vrc));[].concat(u(Vrc));b$.\u0275fac=function(a){return new (a||b$)};b$.\u0275mod=rc({type:b$});b$.\u0275inj=fc({imports:[[Mx,jG,UE,dF,WI]]});
var c$=function(){};c$.\u0275fac=function(a){return new (a||c$)};c$.\u0275mod=rc({type:c$});c$.\u0275inj=fc({imports:[[Mx]]});
var d$=function(){};d$.\u0275fac=function(a){return new (a||d$)};d$.\u0275mod=rc({type:d$});d$.\u0275inj=fc({imports:[[Mx,wy,c5,c$]]});
var e$=function(){};e$.\u0275fac=function(a){return new (a||e$)};e$.\u0275mod=rc({type:e$});e$.\u0275inj=fc({imports:[[Mx,IS,d$]]});
var f$=function(a,b,c){BI.call(this);this.activeSession=a;this.clipboard=b;this.analytics=c;this.issueId=this.componentId=0;this.issueTitle="";this.isExternalIssue=!1;this.HOTKEYS=xI};U(f$,BI);f$.\u0275dir=BI.\u0275dir;f$.prototype.ngOnInit=function(){};f$.prototype.openIssueIdPicker=function(){bo(this.analytics,go.EDIT_ISSUE,"click","issueIdPicker");this.trigger.open()};var At=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=f$.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return tH(this.activeSession,this.isExternalIssue)+this.issueId};g.getShortIssueUrl=function(){return tH(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId};g.getUrlAndTitle=function(){return tH(this.activeSession)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(sH(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};g.getTodoComment=function(){return"TODO("+this.getShortIssueUrl()+"): "+this.issueTitle};
f$.\u0275fac=function(a){return new (a||f$)(F(pH),F(kT),F(SM))};
f$.\u0275cmp=v({type:f$,selectors:[["b-issue-id-picker-legacy"]],viewQuery:function(a,b){a&1&&Zf(YP,7);if(a&2){var c;Yf(c=ag())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue"},features:[gf],decls:31,vars:14,consts:[["onedevPopupPanelTrigger","","matTooltip","Show links for this issue",1,"id-expand","unstyled-button","keep-focus-ring",3,"hotkey","onedevPopupPanelTriggerFor","onHotkey","click"],["trigger","onedevPopupPanelTrigger"],
[1,"id-text"],["svgIcon","arrow-dropdown",1,"icon-s"],["role","region"],["contentPanel","onedevPopupPanel"],[1,"issue-id-picker-popup"],[1,"id-details-row"],[3,"htmlFor"],["type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"focus"],["issueIdField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"gmat-button","copy",3,"click"],["svgIcon","copy",1,"icon-s"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"focus"],
["issueUrlField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"focus"],["urlAndTitleField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,"gmat-button","copy",3,"click"],["class","id-details-row",4,"ngIf"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",
1,"value",3,"focus"],["issueEmailField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"focus"],["todoCommentField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"gmat-button","copy",3,"click"]],template:function(a,b){if(a&1){var c=x();G(0,"button",0,
1);K("onHotkey",function(){return b.openIssueIdPicker()})("click",function(){return b.openIssueIdPicker()});G(2,"span",2);P(3);H();J(4,"mat-icon",3);H();G(5,"onedev-popup-panel",4,5)(7,"div",6)(8,"div",7)(9,"label",8);P(10,"Issue ID");H();G(11,"input",9,10);K("focus",function(){z(c);var q=Hf(12);return A(q.select())});H();G(13,"button",11);K("click",function(){z(c);var q=Hf(12);return A(At(b,q))});J(14,"mat-icon",12);H()();G(15,"div",7)(16,"label",8);P(17,"Issue URL");H();G(18,"input",13,14);K("focus",
function(){z(c);var q=Hf(19);return A(q.select())});H();G(20,"button",15);K("click",function(){z(c);var q=Hf(19);return A(At(b,q))});J(21,"mat-icon",12);H()();G(22,"div",7)(23,"label",8);P(24,"URL and title");H();G(25,"input",16,17);K("focus",function(){z(c);var q=Hf(26);return A(q.select())});H();G(27,"button",18);K("click",function(){z(c);var q=Hf(26);return A(At(b,q))});J(28,"mat-icon",12);H()();O(29,ygb,7,2,"div",19);O(30,zgb,7,2,"div",19);H()()}if(a&2){var d=Hf(1),e=Hf(6),f=Hf(12),h=Hf(19),k=
Hf(26);sf("expanded",d.isOpen);D("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID)("onedevPopupPanelTriggerFor",e);nf("aria-label","Show links for the issue "+b.issueId);B(3);Jf(b.issueId);B(6);D("htmlFor",f.id);B(2);nf("value",b.issueId);B(5);D("htmlFor",h.id);B(2);nf("value",b.getIssueUrl());B(5);D("htmlFor",k.id);B(2);nf("value",b.getUrlAndTitle());B(4);D("ngIf",b.isSessionInternal());B(1);D("ngIf",b.isSessionInternal())}},dependencies:[sx,hJ,pB,LE,$E,XP,YP],styles:[".container[_ngcontent-%COMP%]{display:inline-block}button.id-expand[_ngcontent-%COMP%]{font-size:11px;line-height:13px;color:#5f6368;color:var(--text-muted);font-weight:normal;padding-left:3px;background-color:#fff;background-color:var(--background);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;margin:3px;cursor:pointer;height:15px;user-select:none}button.id-expand[_ngcontent-%COMP%]:hover, button.id-expand[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}button.id-expand[_ngcontent-%COMP%]   .id-text[_ngcontent-%COMP%], button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:top}button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:2px;margin-top:-2px;transition:250ms transform}button.id-expand.expanded[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:rotate(-180deg)}.classic-picker[_nghost-%COMP%]{margin-left:6px;margin-right:6px}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;color:inherit;vertical-align:middle;height:inherit;margin:0}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   .id-text[_ngcontent-%COMP%], .classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:.8125rem;vertical-align:middle}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:0}  .onedev-popup-panel .issue-id-picker-popup{padding:10px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row{display:flex;flex-direction:row;align-items:center;width:475px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row label{flex-basis:110px;font-family:Roboto,Arial,sans-serif;font-size:13px;color:#5f6368;color:var(--text-muted)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value{flex-grow:1;font-family:Roboto,Arial,sans-serif;display:inline-block;width:345px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;outline:none;padding:5px;margin-left:5px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value:focus{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy{cursor:pointer;color:#1a73e8;color:var(--link)}"],
changeDetection:0});
var g$=function(){};g$.\u0275fac=function(a){return new (a||g$)};g$.\u0275mod=rc({type:g$});g$.\u0275inj=fc({imports:[[Mx,iJ,jG,dF,bH,pQ]]});
var h$=function(a,b){this.appEvents=b;this.hasAclToComment=this.hasAclToEdit=!1;this.issueStatusQuickAction=void 0;this.upvoted=this.isDuplicate=this.statusIsSaving=!1;this.voteCount=0;this.onVote=new Iw;this.quickAction=new Iw;this.markAsDuplicate=new Iw;this.clearCanonical=new Iw;this.frontendIsInternalOrPartner=!1;this.frontendIsInternalOrPartner=a.isInternalSession()||qH(a)};h$.\u0275fac=function(a){return new (a||h$)(F(pH),F(WK))};
h$.\u0275cmp=v({type:h$,selectors:[["edit-issue-controls"]],inputs:{issueId:"issueId",hasAclToEdit:"hasAclToEdit",hasAclToComment:"hasAclToComment",issueStatusQuickAction:"issueStatusQuickAction",statusIsSaving:"statusIsSaving",isDuplicate:"isDuplicate",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote",quickAction:"quickAction",markAsDuplicate:"markAsDuplicate",clearCanonical:"clearCanonical"},decls:10,vars:8,consts:[[3,"roundCorners"],["format","flat",3,"tooltip","disabled","onAction"],
["format","flat","tooltip","Focus comment box",3,"disabled","onAction"],["format","flat","tooltip","Mark this issue as a duplicate",3,"disabled","onAction",4,"ngIf"],["format","flat","tooltip","Mark this issue as not being a duplicate",3,"disabled","onAction",4,"ngIf"],[3,"issueId","upvoted","voteCount","onVote",4,"ngIf"],["format","flat","tooltip","Mark this issue as a duplicate",3,"disabled","onAction"],["format","flat","tooltip","Mark this issue as not being a duplicate",3,"disabled","onAction"],
[3,"issueId","upvoted","voteCount","onVote"]],template:function(a,b){a&1&&(G(0,"b-button-group",0)(1,"b-button",1),K("onAction",function(){return b.quickAction.emit(b.issueStatusQuickAction)}),G(2,"span"),P(3),H()(),G(4,"b-button",2),K("onAction",function(){return b.appEvents.focusCommentBox.next("editpage-appbar")}),G(5,"span"),P(6,"Comment"),H()(),O(7,Agb,3,1,"b-button",3),O(8,Bgb,3,1,"b-button",4),O(9,Cgb,1,3,"b-app-vote-button",5),H());a&2&&(D("roundCorners",!0),B(1),D("tooltip",null==b.issueStatusQuickAction?
null:b.issueStatusQuickAction.description)("disabled",!b.hasAclToEdit||!b.issueStatusQuickAction||b.statusIsSaving),B(2),Jf(null==b.issueStatusQuickAction?null:b.issueStatusQuickAction.displayText),B(1),D("disabled",!b.hasAclToComment),B(3),D("ngIf",!b.isDuplicate),B(1),D("ngIf",b.isDuplicate),B(1),D("ngIf",b.frontendIsInternalOrPartner))},dependencies:[DX,eH,yO,sx],encapsulation:2});
var i$=function(a){BI.call(this);this.userPreferencesManager=a;this.timestamps$=this.userPreferencesManager.preferences$.pipe(C(function(b){var c;return null!=(c=b.dismissalTimestamps)?c:void 0}));this.timestampsSubject$=Oj(this.timestamps$.pipe(Ye(this.destroyed$)),{})};U(i$,BI);i$.\u0275dir=BI.\u0275dir;i$.prototype.isDismissed=function(a){return this.timestamps$.pipe(C(function(b){return b?!!b[a]:!1}))};
i$.prototype.dismiss=function(a){var b={};b={dismissalTimestamps:Object.assign({},this.timestampsSubject$.value,(b[a]=new Date(Date.now()),b))};return this.userPreferencesManager.save(b).pipe(C(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};i$.\u0275fac=function(a){return new (a||i$)(t(zI))};i$.\u0275prov=ec({token:i$,factory:i$.\u0275fac,providedIn:"root"});
var j$=function(a,b){BI.call(this);var c=this;this.session=a;this.dismissalService=b;this.shouldEnableEaCallout$=(0,T.iif)(function(){return c.session.isInternalSession()&&rH(c.session,"enableEaCallout")},this.dismissalService.isDismissed("wtdm-ea-announcement").pipe(C(function(d){return!d})))};U(j$,BI);j$.\u0275dir=BI.\u0275dir;j$.\u0275fac=function(a){return new (a||j$)(t(pH),t(i$))};j$.\u0275prov=ec({token:j$,factory:j$.\u0275fac,providedIn:"root"});
var Wrc=["content"],k$=function(a,b,c,d,e){BI.call(this);this.appEvents=a;this.scrolledOnScreen=b;this.editIssueService=c;this.issueDetailsBrain=d;this.issuePermissionService=e;this.eclipsing=new Iw;this.shouldEclipse=!1;this.HOTKEYS=xI;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$};U(k$,BI);k$.\u0275dir=BI.\u0275dir;
k$.prototype.ngOnInit=function(){};
k$.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b=document.getElementById("bv2-issue-title-box"),c=window.getComputedStyle(b),d=function(){var e=c.width;"0px"!==e&&(a.mainDiv.nativeElement.style.width=e)};a.scrolledOnScreen.getObservable(b,!0).pipe(Ye(a.destroyed$)).subscribe(function(e){e?a.shouldEclipse=!1:(d(),a.shouldEclipse=!0);a.eclipsing.emit(a.shouldEclipse)});(0,T.merge)((0,T.fromEvent)(window,"resize"),a.appEvents.sidebarWidthChanged).pipe(He(200),Ye(a.destroyed$)).subscribe(d)})};
k$.prototype.isSaving$=function(a){var b=this;return this.issueDetailsBrain.id$.pipe(De($k),C(function(c){return b.editIssueService.savingState(c)}),Xe(function(c){return Ms(c,a)}))};k$.\u0275fac=function(a){return new (a||k$)(F(WK),F(gP),F(nS),F(mO),F(oO))};
k$.\u0275cmp=v({type:k$,selectors:[["edit-issue-scroll-eclipse"]],viewQuery:function(a,b){a&1&&Zf(Wrc,5);if(a&2){var c;Yf(c=ag())&&(b.mainDiv=c.first)}},inputs:{parent:"parent"},outputs:{eclipsing:"eclipsing"},features:[gf],decls:12,vars:19,consts:[["id","bv2-issue-title-box-nowrap",1,"bv2-issue-title-box-nowrap","bv2-edit-issue-scroll-header","scroll-eclipse",3,"hidden"],["content",""],[3,"starMessage","unStarMessage","starred","hotkey","disabled","onHotkey","starClicked"],["class","classic-picker",
3,"issueId","componentId","issueTitle","isExternalIssue",4,"ngIf"],[3,"accessLevel"],[1,"bv2-issue-title"],[1,"bv2-issue-title-text"],["class","bv2-edit-icon bv2-issue-title-widget","tabindex","0","role","button",3,"matTooltip","bv2-disabled","click","keydown.enter",4,"ngIf"],[1,"classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue"],["tabindex","0","role","button",1,"bv2-edit-icon","bv2-issue-title-widget",3,"matTooltip","click","keydown.enter"]],template:function(a,b){a&1&&(G(0,
"div",0,1)(2,"b-star-toggle",2),K("onHotkey",function(){return b.parent.toggleStarDebounced()})("starClicked",function(){return b.parent.toggleStar()}),Q(3,"async"),H(),O(4,Dgb,2,6,"b-issue-id-picker-legacy",3),J(5,"b-access-level-indicator",4),Q(6,"async"),G(7,"h3",5)(8,"span",6),P(9),H(),O(10,Egb,5,13,"span",7),Q(11,"async"),H()());a&2&&(sf("scroll-eclipse-hide",!b.shouldEclipse),D("hidden",b.parent.isLoading),B(2),D("starMessage",b.parent.starTooltip)("unStarMessage",b.parent.unStarTooltip)("starred",
!(null==b.parent.userData||!b.parent.userData.starred))("hotkey",b.HOTKEYS.TOGGLE_STAR)("disabled",!!R(3,13,b.isSaving$("star"))),B(2),D("ngIf",b.shouldEclipse),B(1),D("accessLevel",R(6,15,b.accessLevel$)),B(2),nf("aria-label",b.parent.ariaIssueTitle),B(2),If(" ",b.parent.issue.title," "),B(1),D("ngIf",R(11,17,b.hasAclToEdit$)))},dependencies:[sx,TS,$E,kN,f$,hJ,Fx],encapsulation:2});var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=rc({type:l$});
l$.\u0275inj=fc({imports:[[Mx,dT,bH,WN,g$,iJ]]});
var Xrc=["editIssueTitle"],Pgb=function(){return[]},mhb=function(a){return[a]},m$=function(a,b,c,d,e,f,h,k,q,w,y,E){BI.call(this);var I=this;this.wtdmEa=a;this.activeSession=b;this.editIssueService=c;this.issueDetailsBrain=d;this.issuePermissionService=e;this.paths=f;this.issueEditComponentService=h;this.commentHistoryDialogService=k;this.issueInteractionsTracking=q;this.errorHandler=w;this.eventsForIssueFridge=y;this.issueFridge=E;this.scrollEclipseShowing=!1;this.isSaving$=function(N){return I.issueDetailsBrain.id$.pipe(De($k),
C(function(L){return I.editIssueService.savingState(L)}),Xe(function(L){return Ms(L,N)}))};this.HOTKEYS=xI;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.hasAclToComment$=this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.canDeleteIssue$=this.issuePermissionService.canDeleteIssue$;this.canUndeleteIssue$=this.issuePermissionService.canUndeleteIssue$;this.userIsComponentAdmin$=this.issuePermissionService.userIsComponentAdmin$;
this.accessLevel$=this.issuePermissionService.accessLevel$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.audience$=this.issuePermissionService.audience$;this.undeleteButtonTooltip$=this.canUndeleteIssue$.pipe(C(function(N){return N?"":"Only component editors can undelete this issue."}));this.modifiedTime$=this.issueDetailsBrain.modifiedTime$;this.retentionState$=this.issueDetailsBrain.retentionState$};U(m$,BI);m$.\u0275dir=BI.\u0275dir;
var bhb=function(a,b){var c,d;return me(function(e){if(1==e.nextAddress){a.editIssueTitle.nativeElement.focus();c=a.parent.issueIdString;iS(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Lt(e,2,3);var f=SIb(a.issueFridge,c,[],[String(b)]);return ne(e,f,3)}if(2!=e.nextAddress)return Ot(e),et(a.eventsForIssueFridge,c),Pt(e,0);d=Nt(e);UK(a.errorHandler,d);return e.jumpTo(3)})},yhb=function(a){var b=a.issuePermissionService.accessLevel();if(!b)return!1;var c;return!(null==(c=a.parent)?
0:c.issue.isDeleted)&&"EXTERNAL_PUBLIC"===b};m$.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.issueDetailsBrain.urlComment$.subscribe(function(b){var c=b.commentNumber;b=b.commentVersion;if(c&&void 0!==b&&-1<b){var d,e=null==(d=a.parent)?void 0:d.issueId;e&&a.commentHistoryDialogService.show(Number(e),c,null!=b?b:-1)}}))};m$.\u0275fac=function(a){return new (a||m$)(F(j$),F(pH),F(nS),F(mO),F(oO),F(dL),F(x6),F(NS),F(hS),F(SK),F(NL),F(yL))};
m$.\u0275cmp=v({type:m$,selectors:[["edit-issue-main-content"]],viewQuery:function(a,b){a&1&&Zf(Xrc,5);if(a&2){var c;Yf(c=ag())&&(b.editIssueTitle=c.first)}},inputs:{parent:"parent"},features:[gf],decls:1,vars:1,consts:[["class","bv2-issue-main-content",4,"ngIf"],[1,"bv2-issue-main-content"],[1,"bv2-issue-static"],["id","rel-issues-tray-blocked-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-blocked",4,"ngIf"],["id","rel-issues-tray-blocking-content",
"class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-blocking",4,"ngIf"],["id","rel-issues-tray-duplicates-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-duplicates",4,"ngIf"],["id","rel-issues-tray-parents-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-parents",4,"ngIf"],["id","rel-issues-tray-children-content","class","tab bv2-related-issues-tab","role","tabpanel",
"aria-labelledby","rel-issues-tray-children",4,"ngIf"],["id","rel-issues-tray-mentions-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-mentions",4,"ngIf"],[3,"messageType","format",4,"ngIf"],["id","bv2-edit-issue-details-scroll","tabindex","-1","cdkScrollable","",1,"bv2-edit-issue-details-scroll",3,"bFocus"],[3,"parent","eclipsing"],[1,"bv2-issue-info"],["id","bv2-issue-title-box",1,"bv2-issue-title-box","bv2-edit-issue-scroll-header"],[3,"starMessage",
"unStarMessage","starred","hotkey","disabled","onHotkey","starClicked"],["class","classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue",4,"ngIf"],[3,"accessLevel"],["tabindex","-1",1,"bv2-issue-title"],[3,"isReady"],[1,"bv2-issue-title-text"],["class","keep-focus-ring bv2-edit-icon bv2-issue-title-widget","tabindex","0","role","button",3,"matTooltip","bv2-disabled","click","keydown",4,"ngIf"],["class","bv2-flag-button",3,"xapInlineDialog",4,"ngIf"],["removable","check-acl",3,"id",
"removeHotlist",4,"ngFor","ngForOf"],[1,"float-clear"],["class","bv2-issue-vote-count",4,"ngIf"],[1,"bv2-issue-subtext"],[1,"bv2-issue-edit-component"],["class","bv2-issue-component-path",4,"ngIf"],["class","bv2-edit-issue-component-picker",3,"selectedComponent","placeholder","isRequired","shouldFocus","selectedComponentChange","dropdownClosed",4,"ngIf"],[1,"bv2-issue-retention-chip"],[3,"retentionState","compactMode","modifiedTime"],["class","issue-detail-actions",3,"menuItems","buttonLabel","matTooltip",
4,"ngIf"],["class","margined carded bad",4,"ngIf"],[3,"issueId","issueAccessLevel","events",4,"ngIf"],[3,"issueId","issueAccessLevel","events","showFullHistory",4,"ngIf"],["class","bv2-edit-issue-history-stream",4,"ngIf"],[4,"ngIf"],["id","rel-issues-tray-blocked-content","role","tabpanel","aria-labelledby","rel-issues-tray-blocked",1,"tab","bv2-related-issues-tab"],["relation","blocked","relDisplayMessage","Mark this issue as blocked by:",3,"disabled","removeButtonTitle","addButtonTitle","items",
"searchLink","currentResourceId","componentId","itemsChange"],["id","rel-issues-tray-blocking-content","role","tabpanel","aria-labelledby","rel-issues-tray-blocking",1,"tab","bv2-related-issues-tab"],["relation","blocking","relDisplayMessage","Mark this issue as blocking:",3,"disabled","removeButtonTitle","addButtonTitle","items","searchLink","currentResourceId","componentId","itemsChange"],["id","rel-issues-tray-duplicates-content","role","tabpanel","aria-labelledby","rel-issues-tray-duplicates",
1,"tab","bv2-related-issues-tab"],[3,"disabled","hideStatus","items"],["id","rel-issues-tray-parents-content","role","tabpanel","aria-labelledby","rel-issues-tray-parents",1,"tab","bv2-related-issues-tab"],["relation","parent","relDisplayMessage","Add parent issue:",3,"disabled","removeButtonTitle","addButtonTitle","items","currentResourceId","componentId","itemChange"],["footer-items","",4,"ngIf"],["footer-items",""],["id","rel-issues-tray-children-content","role","tabpanel","aria-labelledby","rel-issues-tray-children",
1,"tab","bv2-related-issues-tab"],["relation","child","relDisplayMessage","Add child issue:",3,"disabled","removeButtonTitle","addButtonTitle","items","searchLink","currentResourceId","componentId","reorderable","itemChange","itemMove"],["id","rel-issues-tray-mentions-content","role","tabpanel","aria-labelledby","rel-issues-tray-mentions",1,"tab","bv2-related-issues-tab"],[1,"bv2-rel-issues-tray-mentions-footer"],["target","_blank",3,"href","click"],[3,"issueId","packageMentionSet","displayPackageName",
4,"ngFor","ngForOf"],[3,"issueId","packageMentionSet","displayPackageName"],[3,"messageType","format"],["href","http://go/wtdm-home","target","_blank"],["format","flat",3,"onAction"],["href","http://go/wtdm-ea","target","_blank"],["format","fill"],[1,"classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue"],["tabindex","0","role","button",1,"keep-focus-ring","bv2-edit-icon","bv2-issue-title-widget",3,"matTooltip","click","keydown"],["editIssueTitle",""],[1,"bv2-flag-button",3,"xapInlineDialog"],
["format","icon","size","small","bAriaLabel","Flag issue as spam",3,"disabled","onAction"],["name","flag","size","small"],["spamFlagBubble",""],["target","_blank",3,"href"],["removable","check-acl",3,"id","removeHotlist"],[1,"bv2-issue-vote-count"],[1,"bv2-issue-component-path"],[3,"componentPathInfo","isArchived"],["class","bv2-edit-button","tabindex","0","role","button","aria-label","Change component",3,"matTooltip","click","keydown.enter",4,"ngIf"],["tabindex","0","role","button","aria-label",
"Change component",1,"bv2-edit-button",3,"matTooltip","click","keydown.enter"],[1,"bv2-edit-issue-component-picker",3,"selectedComponent","placeholder","isRequired","shouldFocus","selectedComponentChange","dropdownClosed"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[1,"margined","carded","bad"],["format","fill",3,"tooltip","disabled","onAction"],[3,"issueId","issueAccessLevel","events"],[3,"issueId","issueAccessLevel","events","showFullHistory"],[1,"bv2-edit-issue-history-stream"],
[1,"bv2-event-content-cell"],[1,"muted","padded-s-x","margin-y"],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","attachmentsDisabled","onHotkey","onChange","onSubmit","onRestrict"],["commentBox",""],[1,"goog-inline-block"],["format","fill",3,"disabled","onAction"],["class","goog-inline-block vertical-centered",4,"ngIf"],["label","CC Me",3,"checked","disabled",
"change"],[1,"goog-inline-block","vertical-centered"],["label","CC Me",3,"checked","disabled","tooltip",4,"ngIf"],["label","CC Me",3,"checked","disabled","tooltip"]],template:function(a,b){a&1&&O(0,zhb,46,49,"div",0);a&2&&D("ngIf",b.parent)},dependencies:[QZ,B2,yO,jI,kI,tA,pX,TW,wx,sx,TS,sT,$8,k$,l_,hJ,lY,uH,f$,$E,vQ,m5,e_,PY,mN,kN,EV,T_,CN,BN,bO,Fx],encapsulation:2});
var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=rc({type:n$});n$.\u0275inj=fc({imports:[[Mx,dF]]});
var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=rc({type:o$});o$.\u0275inj=fc({imports:[[I2,TZ,HX,F2,BP,MM,cI,zO,eO,AO,xA,n$,WX,kX,MS,Mx,dT,tT,yV,bV,e9,l$,e5,kG,b5,m_,cH,iJ,mY,YX,$N,dI,b$,IX,g$,j5,wV,jG,dF,bH,wQ,JT,x_,n5,f_,NZ,mP,YN,WN,GV,S3,e$,U_,cT,aO,cO]]});uca(E6,[E2,yO,jI,kI,vx,sx,wC,rE,sE,wE,iG,hJ,wX,pN,qN,tN,rN,t7,EX,pB,LE,$E,IT,w_,fP,h$,z8,m$],[FM,GM,HM,KM,Fx]);
var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=rc({type:p$});p$.\u0275inj=fc({imports:[[HX,Mx,x7,iJ,b$,jG,eI,dF,UE,bH,x_,NZ,j9]]});
var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=rc({type:q$});q$.\u0275inj=fc({imports:[[Mx,dF,H2,FX,WI,jG]]});
var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=rc({type:r$});r$.\u0275inj=fc({imports:[[Mx,dF,kX,$N,IX,q$]]});
var s$=function(){};s$.\u0275fac=function(a){return new (a||s$)};s$.\u0275mod=rc({type:s$});s$.\u0275inj=fc({imports:[[Mx,dF,jG,WI,rT]]});
var t$=function(){};t$.\u0275fac=function(a){return new (a||t$)};t$.\u0275mod=rc({type:t$});t$.\u0275inj=fc({imports:[[F2,Mx,jG,dF,GV,$N,bH,s$,WI,rT]]});
var u$=function(){};u$.\u0275fac=function(a){return new (a||u$)};u$.\u0275mod=rc({type:u$});u$.\u0275inj=fc({imports:[[Mx,dF,F2,$N,jV]]});
var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=rc({type:v$});v$.\u0275inj=fc({imports:[[r$,F2,Mx,t$,eT,iJ,$N,g5,h9,q$,jG,eI,dF,bH,WI,WN,jV,u$]]});
var w$=function(){};w$.\u0275fac=function(a){return new (a||w$)};w$.\u0275mod=rc({type:w$});w$.\u0275inj=fc({imports:[[Mx,iJ,jG,dF,bH]]});
var x$=function(){};x$.\u0275fac=function(a){return new (a||x$)};x$.\u0275mod=rc({type:x$});x$.\u0275inj=fc({imports:[[Mx,o$,mP]]});
var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=rc({type:y$});y$.\u0275inj=fc({imports:[[dz,Ez,wy,xy,WI,jG,MB,jX,qZ,xA,bH,AO,mP,o$,v$,p$,w$,I2,NZ,dT,kX,x$]]});
var z$=function(){};z$.\u0275fac=function(a){return new (a||z$)};z$.\u0275mod=rc({type:z$});z$.\u0275inj=fc({imports:[[Mx,n5]]});
var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=rc({type:A$});A$.\u0275inj=fc({imports:[[dz,Ez,wy,xy,WI,jG,jX,qZ,mP,o$,GX,y$,o9,s7,c7,F8,z$,q9]]});
var Yrc=Urc.map(function(a){return{path:a.path,component:a.component,canDeactivate:[bZ],canActivate:[R5,T5].concat(u(a.canActivateGuards||[])),children:a.children,isRootRoute:!0}});Yrc.push({path:"**",canActivate:["dontActivate"],component:P5,isRootRoute:!0});var Zrc=V(Xi(),10),$rc,B$={initialNavigation:"disabled",relativeLinkResolution:"legacy"},asc=[];
$rc={ngModule:WI,providers:[yEb,[{provide:Gmb,multi:!0,useValue:asc},{provide:TDb,multi:!0,useValue:asc}],{provide:xEb,useFactory:function(){return"guarded"},deps:[[Hk,new Ev,new Fv]]},{provide:VI,useValue:B$?B$:{}},{provide:Px,useFactory:function(a,b,c){c=void 0===c?{}:c;return c.useHash?new Sx(a,b):new Qx(a,b)},deps:[Nx,[new dlb(Rx),new Ev],VI]},{provide:UI,useFactory:function(a,b,c){c.scrollOffset&&b.setOffset(c.scrollOffset);return new UI(a,b,c)},deps:[Hk,cnb,VI]},{provide:pEb,useExisting:B$&&
B$.preloadingStrategy?B$.preloadingStrategy:rEb},{provide:Amb,multi:!0,useFactory:function(){return new Amb("Router",Hk)}},[XI,{provide:Ilb,multi:!0,useFactory:function(a){return a.appInitializer.bind(a)},deps:[XI]},{provide:zEb,useFactory:function(a){return a.bootstrapListener.bind(a)},deps:[XI]},{provide:Llb,multi:!0,useExisting:zEb}]]};var C$=function(a,b){Pk("starting ng2 router");a.config=Yrc.map(ok);a.navigated=!1;a.lastSuccessfulId=-1;a.initialNavigation();eKb(b)};
C$.\u0275fac=function(a){return new (a||C$)(t(Hk),t(tM))};C$.\u0275mod=rc({type:C$});C$.\u0275inj=fc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:QDb,useClass:Ujc},{provide:Rx,useValue:Zrc},T5,R5],imports:[[$rc,Q5,A$],WI]});
var D$=function(){};D$.\u0275fac=function(a){return new (a||D$)};D$.\u0275mod=rc({type:D$});D$.\u0275inj=fc({imports:[[Mx,jG,bH,dF,JK,wy,xy,lZ]]});
var E$=function(){};E$.\u0275fac=function(a){return new (a||E$)};E$.\u0275mod=rc({type:E$});E$.\u0275inj=fc({imports:[[zO,Mx,lZ,m_,wy,dI,bH,wQ,B_,GV]]});
var F$=function(){};F$.\u0275fac=function(a){return new (a||F$)};F$.\u0275mod=rc({type:F$});F$.\u0275inj=fc({imports:[[Mx,jG,bH,dF,JK,wy,xy,lZ]]});
var G$=function(){};G$.\u0275fac=function(a){return new (a||G$)};G$.\u0275mod=rc({type:G$});G$.\u0275inj=fc({imports:[[Mx,wy,QB,c5]]});
var H$=function(){};H$.\u0275fac=function(a){return new (a||H$)};H$.\u0275mod=rc({type:H$});H$.\u0275inj=fc({imports:[[zO,WX,kX,YU,rQ,d5,m_,wy,mY,YX,dI,kY,wV,u_,jG,MB,e6,dF,UE,HT,bH,d5,MM,xy,G$,GV,Mx,yA]]});
var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=rc({type:I$});I$.\u0275inj=fc({imports:[[zO,Mx,lZ,m_,wy,dI,bH,M_]]});
var J$=function(){};J$.\u0275fac=function(a){return new (a||J$)};J$.\u0275mod=rc({type:J$});J$.\u0275inj=fc({imports:[[Mx,bH,jG,jX,lZ,mY,YX,dO,JK,MB,dF,wy,xy,UE,pZ]]});
var K$=function(){};[].concat(u([A6]));K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=rc({type:K$});K$.\u0275inj=fc({imports:[[MB,PO,Mx,UA,dF,jG,kX,oX]]});
var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=rc({type:L$});L$.\u0275inj=fc({imports:[[Mx,bH,jG,jX,lZ,JK,MB,dF,wy,xy,UE,pZ]]});
var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=rc({type:M$});M$.\u0275inj=fc({imports:[[zO,Mx,lZ,wy,qZ,dI,jX,bH,pZ,wQ,M_,YN]]});
var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=rc({type:N$});N$.\u0275inj=fc({imports:[[Mx,uZ,YN,jG]]});
var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=rc({type:O$});O$.\u0275inj=fc({imports:[[Mx,jG,dF,O_,YN]]});
var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=rc({type:P$});P$.\u0275inj=fc({imports:[[Mx,tT,k_]]});
var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=rc({type:Q$});Q$.\u0275inj=fc({imports:[[Mx,dT,wy,jX,IS,pZ,dI,e6,jG,PO,dF,bH,rT,YN]]});
var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=rc({type:R$});R$.\u0275inj=fc({imports:[[zO,Mx,dT,tT,gT,G3,O3,T3,oY,lZ,O4,wy,uQ,qZ,dI,jG,PO,MB,dF,ZS,HT,jX,bH,pZ,wQ,B_,WI,P$,z_,YN,GV,yA,Q$,rT]]});
var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=rc({type:S$});S$.\u0275inj=fc({imports:[[Mx,lZ,wy,uQ,qZ,jG,PO,dF,jX,bH,HT,pZ,WI,rT,yA,z_,k_]]});
var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=rc({type:T$});T$.\u0275inj=fc({imports:[[Mx,jG,bH,dF]]});
var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=rc({type:U$});U$.\u0275inj=fc({providers:[{provide:N4b,useValue:{enabled:!0}}],imports:[[d3,AO,Mx,Mx,wy,qZ,jG,jG,dF,ZS,HT,jX,bH,bH,JT,T$,MM,j9]]});
var V$=function(){this.isMultiCharShortName=Bhb;this.getTooltip=Chb};V$.\u0275fac=function(a){return new (a||V$)};
V$.\u0275cmp=v({type:V$,selectors:[["b-entity-chip"]],inputs:{entity:"entity"},decls:1,vars:1,consts:[["class","chip",3,"smallType","uncoloredMultichar","noShortName","backgroundColor","color","title",4,"ngIf"],[1,"chip",3,"title"]],template:function(a,b){a&1&&O(0,Ahb,2,12,"output",0);a&2&&D("ngIf",!!b.entity&&(b.entity.color||b.entity.shortName))},dependencies:[sx],styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%], .chip[_ngcontent-%COMP%]{vertical-align:middle}.chip[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-block;padding:2px 2px;margin-right:4px;border-radius:2px;text-align:center;line-height:14px;min-height:18px;min-width:18px;font-weight:500}.chip.smallType[_ngcontent-%COMP%]{font-size:84.6153846154%}.chip.uncoloredMultichar[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.02);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.chip.noShortName[_ngcontent-%COMP%]{min-height:.8125rem;min-width:.8125rem}\n/*# sourceMappingURL=entity_chip.css.map */"],changeDetection:0});
var W$=function(){var a=this;this.entityChanged=new Iw;this.broadcastEntityChanged=dC(function(b){a.entityChanged.emit(Object.assign({},b))},400)};W$.prototype.update=function(a){this.broadcastEntityChanged(a)};W$.\u0275fac=function(a){return new (a||W$)};
W$.\u0275cmp=v({type:W$,selectors:[["b-entity-decorator"]],inputs:{entity:"entity"},outputs:{entityChanged:"entityChanged"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"colorInput"],["matInput","","placeholder","Color","type","text",3,"ngModel","ngModelChange","input"],[1,"shortNameInput"],["matInput","","placeholder","Symbol","type","text","title","A few letters (or an emoji) that represent this item. Think very short, like an airport code. eg: eg: 'FR', 'TODO', or '\u2601\ufe0f'",3,"ngModel","ngModelChange",
"input"],["matInput","","placeholder","Text Color","type","text","title","If your chip background is dark, you may want to use 'white' for your text.",3,"ngModel","ngModelChange","input"]],template:function(a,b){a&1&&O(0,Dhb,12,3,"ng-container",0);a&2&&D("ngIf",b.entity)},dependencies:[sx,Fg,by,hy,XB,TB,ZB],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    mat-form-field[_ngcontent-%COMP%] {\n      margin-right: 16px;\n    }\n    .colorInput[_ngcontent-%COMP%] {\n      width: 120px; \n    }\n    .shortNameInput[_ngcontent-%COMP%] {\n      width: 60px;\n    }"],
changeDetection:0});
var X$=function(){this.isMultiCharShortName=Bhb;this.getTooltip=Chb};X$.\u0275fac=function(a){return new (a||X$)};
X$.\u0275cmp=v({type:X$,selectors:[["b-entity-preview"]],inputs:{entity:"entity"},decls:3,vars:3,consts:[[3,"entity"],[1,"title",3,"title"]],template:function(a,b){a&1&&(J(0,"b-entity-chip",0),G(1,"span",1),P(2),H());a&2&&(D("entity",b.entity),B(1),D("title",b.getTooltip(b.entity)),B(1),Jf(null==b.entity?null:b.entity.title))},dependencies:[V$],styles:[".title[_ngcontent-%COMP%]{vertical-align:middle}\n/*# sourceMappingURL=entity_preview.css.map */"],changeDetection:0});
var bsc=[X$,V$,W$],Y$=function(){};[].concat(u(bsc));[].concat(u(bsc));Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=rc({type:Y$});Y$.\u0275inj=fc({imports:[[Mx,wy,bH,YB,$B]]});
var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=rc({type:Z$});Z$.\u0275inj=fc({imports:[[Mx,JK,jG,dF]]});
var csc=function(){};csc.prototype.send=function(a,b){Sza(a);return this.makeRequest(a).then(function(c){return b?aAa(b,c):c})};
var Et=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};U(Et,csc);Et.prototype.getGapi=function(){var a=this;return $Aa().then(function(b){b=b||window.gapi;a.setGapiConfig(b);return eBa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
Et.prototype.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return me(function(d){if(1==d.nextAddress)return void 0===b.gapiAuthParams.minAuthTokenTimeRemaining?d.jumpTo(2):ne(d,dBa(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request({root:b.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||b.defaultApiId})))})})};
Et.prototype.parseResponse=function(a){return new Promise(function(b,c){a.then(function(d){b(!1===d.result&&null!=d.body?{data:d.body}:d.result)},function(d){c(!1===d.result&&null!=d.body?{data:d.body}:d.result)})})};Et.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&cBa(a,b,this.gapiConfigUpdates[b])};Et.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];
var dsc={disableCheatSheet:!0};dsc=void 0===dsc?{}:dsc;
var esc=[pP,ES,dz,Ez,iT,mQ,kY,fQ,wI,dI,wQ,fO,JT,kJ,B_,WN,gO,g5,zO,FZ,IV,fI,x3,z5,w5,bV,wV,yV,mT,HX,u_,f_,I$,M$,O$,N$,j6,v9,Z9,a$,E$,R$,S$,X9,uZ,O_,oY,GX,Q4,n5,i_,$U,sZ,$X,B5,y3,NX,b4,z3,o5,XZ,h_,a4,VZ,XX,RO,AO,kX,oX,l$,o$,K$,KX,cI,r_,dO,n$,x_,S_,MZ,NZ,l5,W2,YN,BP,TZ,Y$,jV,V2,T3,Z$,O4,I2,IS,FX,dT,eQ,e9,U$,d3,hV,DS,GZ,JZ,M_,z_,HZ,lZ,B3,d_,D$,F$,N3,E_,ET,tT,wT,gT,IZ,OZ,KV,nZ,U_,e5,YX,K_,R_,j5,O3,nQ,sQ,pZ,rZ,WX,G3,J$,BO,EO,L$,H$,MS,y$,d0,dF,cB,HE,{ngModule:cH,providers:[{provide:fF,useFactory:function(){var a,
b=(null==(a=Xi().getConfig())?void 0:a.getEnvironmentType())||"QA";return"PROD"===b||"NIGHTLY"===b?{apikey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",environment:"prod"}:{apikey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM",environment:"nonprod"}},deps:[Hv]}]},{ngModule:BS,providers:[iR,{provide:fPb,useFactory:function(a){return new Dt(new aRb("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,cRb,{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[bRb]},{provide:bRb,
useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc"}}}]},{ngModule:c$,providers:[O7,{provide:Inc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:Ugc,autocompleteFactory:Bbc}}}]},{ngModule:bJ,providers:[aJ,{provide:CEb,useValue:dsc}]}],fsc=[Ijc,l7b,m7b,n7b,o7b,ACb,{provide:a1b,useValue:{animationDuration:"0ms"}},{provide:ovb,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},
{provide:lwb,useValue:{disableTooltipInteractivity:!0}},{provide:x5b,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:A5b,useValue:"92912"},{provide:TOb,useFactory:Ehb},Jjc,Rjc,Sjc,Tjc],gx=function(){};gx.prototype.ngDoBootstrap=function(){Pk("bootstrapping AppModule")};[].concat(u(esc),[C$,HO]);[].concat(u(fsc));gx.\u0275fac=function(a){return new (a||gx)};gx.\u0275mod=rc({type:gx,bootstrap:[oP,y5]});gx.\u0275inj=fc({providers:[].concat(u(fsc)),imports:[[].concat(u(esc),[C$,HO])]});
OC(document,"DOMContentLoaded",function(){Pk("starting pure ng2 app with ng2 router");Dmb()});

__._ModuleManager_initialize=function(){};

__._ModuleManager_initialize('c/Yfyhhd/PldZvb/E7aOmb/HyHasc/dflQFd',[]);

}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
